/* ============================================
   dreamOut - Main Styles (Eterik Sis Theme)
   ============================================ */

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-6xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--font-size-4xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--font-size-xl)); }
h4 { font-size: var(--font-size-lg); }

p { color: var(#ffffff); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md), 0 0 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 77, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-md);
}

.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-md) 0;
  background: rgba(248, 245, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all var(--transition-base);
}

.header.header-hidden {
  transform: translateY(-100%);
}

[data-theme="dark"] .header {
  background: rgba(13, 10, 26, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-family: var(--font-logo);
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 30%;
}

.logo-text {
  font-family: var(--font-logo);
  font-weight: 400;
  line-height: 1.1;
  max-width: 260px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ===== Mobile App Install Banner ===== */
.app-install-banner {
  --app-banner-height: 74px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-fixed) + 2);
  display: none;
  min-height: var(--app-banner-height);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(248, 245, 255, 0.96);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 8px 24px rgba(21, 16, 48, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="dark"] .app-install-banner {
  background: rgba(13, 10, 26, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.app-install-banner__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.app-install-banner__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-install-banner__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.app-install-banner__title {
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-install-banner__subtitle {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-install-banner__button {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.app-install-banner__button:active {
  transform: translateY(1px);
}

@media (max-width: 820px) {
  body.has-app-install-banner {
    padding-top: var(--app-banner-height, 74px);
  }

  body.has-app-install-banner .app-install-banner {
    display: flex;
  }

  body.has-app-install-banner .header {
    top: var(--app-banner-height, 74px);
  }

  body.has-app-install-banner .mobile-menu {
    top: calc(70px + var(--app-banner-height, 74px));
  }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.icon-sun, .icon-moon {
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] .icon-sun { opacity: 0; }
[data-theme="dark"] .icon-moon { opacity: 1; }
[data-theme="light"] .icon-sun { opacity: 1; }
[data-theme="light"] .icon-moon { opacity: 0; }

.icon-sun { position: absolute; }
.icon-moon { position: absolute; }

.lang-select {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-select:hover {
  border-color: var(--color-primary);
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}

.trust-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.trust-links a:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.google-data-note {
  max-width: 680px;
  margin-top: var(--space-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg);
  transform: translateY(-120%);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text-primary);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(70px + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .hero-particles {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(179, 136, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(77, 208, 225, 0.15) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: rgba(124, 77, 255, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  margin-bottom: var(--space-lg);
  max-width: 760px;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  max-width: 620px;
}

.app-purpose {
  max-width: 560px;
  margin-bottom: var(--space-xl);
  color: var(--color-text-secondary);
}

.app-purpose a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: min(360px, 86vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  background: linear-gradient(145deg, #0a0813, #19142e);
  border: 1px solid rgba(179, 136, 255, 0.28);
  border-radius: 44px;
  box-shadow: var(--shadow-lg), 0 24px 80px rgba(124, 77, 255, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .phone-mockup {
    animation: phoneFloat 6s ease-in-out infinite;
  }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 34%;
  height: 4.4%;
  background: #000;
  border-radius: var(--radius-full);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
}

.phone-screen {
  background: linear-gradient(180deg, #1A1430 0%, #0D0A1A 100%);
  border-radius: 28px;
  padding: 50px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 480px;
}

.dream-card {
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
}

.dream-card-icon {
  font-size: var(--font-size-2xl);
}

.dream-card-text {
  font-size: var(--font-size-sm);
  color: #EDE7F6;
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.dream-card-date {
  font-size: var(--font-size-xs);
  color: rgba(179, 157, 219, 0.7);
}

.interpretation-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(179, 136, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  flex: 1;
}

.interpretation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.interpretation-badge {
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: var(--gradient-primary);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.interpretation-match {
  font-size: var(--font-size-xs);
  color: #4DD0E1;
  font-weight: 600;
}

.interpretation-text {
  font-size: var(--font-size-xs);
  color: rgba(237, 231, 246, 0.8);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.interpretation-actions {
  font-size: var(--font-size-xs);
  color: rgba(179, 136, 255, 0.8);
}

/* ===== Sections Common ===== */
section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-badge {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* ===== Features Section ===== */
.features {
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 77, 255, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== DreamArt Section ===== */
.dreamart {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(77, 208, 225, 0.13), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(179, 136, 255, 0.16), transparent 32%),
    var(--color-background);
}

.dreamart-header {
  max-width: 820px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.dreamart-style-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.dreamart-style-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

[data-theme="dark"] .dreamart-style-list span {
  background: rgba(26, 20, 48, 0.72);
}

.dreamart-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 77, 255, 0.55) transparent;
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.dreamart-carousel::-webkit-scrollbar {
  height: 8px;
}

.dreamart-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.dreamart-carousel::-webkit-scrollbar-thumb {
  background: rgba(124, 77, 255, 0.55);
  border-radius: var(--radius-full);
}

.dreamart-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 2vw, 24px);
  padding: var(--space-md) clamp(16px, 4vw, 48px) var(--space-xl);
}

@media (prefers-reduced-motion: no-preference) {
  .dreamart-track {
    animation: dreamArtSlide 52s linear infinite;
  }
}

.dreamart-carousel:hover .dreamart-track,
.dreamart-carousel:focus-within .dreamart-track,
.dreamart-carousel:active .dreamart-track {
  animation-play-state: paused;
}

@keyframes dreamArtSlide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 100vw)); }
}

.dreamart-card {
  position: relative;
  flex: 0 0 clamp(210px, 19vw, 280px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(179, 136, 255, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(13, 10, 26, 0.06)),
    linear-gradient(145deg, #211638, #6d55d7);
  box-shadow: var(--shadow-lg);
}

.dreamart-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 10, 26, 0.02), rgba(13, 10, 26, 0.18));
}

.dreamart-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dreamart-card--two { background-color: #173a52; }
.dreamart-card--three { background-color: #3c1c44; }
.dreamart-card--four { background-color: #143b31; }
.dreamart-card--five { background-color: #453015; }
.dreamart-card--six { background-color: #171a3f; }
.dreamart-card--seven { background-color: #3b2230; }
.dreamart-card--eight { background-color: #102d45; }
.dreamart-card--nine { background-color: #2f254d; }
.dreamart-card--ten { background-color: #17392e; }
.dreamart-card--eleven { background-color: #41203f; }
.dreamart-card--twelve { background-color: #122f36; }
.dreamart-card--thirteen { background-color: #3a2917; }
.dreamart-card--fourteen { background-color: #211d45; }
.dreamart-card--fifteen { background-color: #173045; }

/* ===== Schools Section ===== */
.schools {
  background: var(--color-background);
}

.schools-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.school-tab {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.school-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.school-tab.active {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-color: transparent;
}

.schools-content {
  max-width: 800px;
  margin: 0 auto;
}

.school-panel {
  display: none;
}

.school-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.school-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.school-item:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.school-icon {
  font-size: var(--font-size-2xl);
}

.school-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===== Privacy Section ===== */
.privacy {
  background: var(--color-surface);
}

.privacy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.privacy-desc {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.check-icon {
  width: 24px;
  height: 24px;
  color: var(--color-success);
  flex-shrink: 0;
}

.privacy-visual {
  display: flex;
  justify-content: center;
}

.encryption-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 77, 255, 0.4);
  color: white;
}

.shield-icon {
  font-size: 4rem;
}

.shield-text {
  text-align: center;
}

.shield-title {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.shield-subtitle {
  display: block;
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

/* ===== Testimonials Section ===== */
.testimonials {
  background: var(--color-background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #FFD700;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-primary);
}

.author-country {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* ===== Download Section ===== */
.download {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.download-content {
  position: relative;
  text-align: center;
  color: white;
}

.download-title {
  font-size: clamp(2rem, 4vw, var(--font-size-4xl));
  color: white;
  margin-bottom: var(--space-md);
}

.download-subtitle {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: white;
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.store-btn:not(.store-btn--soon):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn--soon {
  cursor: default;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.store-btn--soon .store-icon {
  opacity: 0.64;
}

.store-btn--soon .store-label {
  opacity: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-icon {
  width: 28px;
  height: 28px;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.store-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.download-note {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.footer-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

.footer-locale {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

.footer-seo-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-seo-langs a {
  color: inherit;
  text-decoration: none;
}

.footer-archive-link {
  color: inherit;
  text-decoration: underline;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: calc(70px + 48px) 0 96px;
  min-height: 100vh;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header {
  margin-bottom: 40px;
  text-align: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.legal-lang-selector {
  margin-bottom: 16px;
}

.legal-lang-selector select {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.legal-title {
  margin-bottom: 12px;
  background: var(--gradient-primary);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

.legal-content h2 {
  margin: 32px 0 16px;
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.8;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 12px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  list-style: disc;
}

.legal-highlight {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
}

.legal-highlight-title {
  margin-bottom: 8px;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.legal-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.legal-updated {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  text-align: center;
}

.legal-copyright {
  margin-top: 40px;
  color: #757575;
  font-size: 0.85em;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 32px 24px;
  }
}

/* ===== RTL Support ===== */
[dir="rtl"] .hero-content,
[dir="rtl"] .privacy-content,
[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .nav-link::after,
[dir="rtl"] .logo,
[dir="rtl"] .check-icon {
  left: auto;
  right: 0;
}

[dir="rtl"] .hero-cta {
  flex-direction: row-reverse;
}

[dir="rtl"] .store-text {
  text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto var(--space-md);
  }

  .app-purpose {
    margin: 0 auto var(--space-xl);
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: 0;
  }

  .phone-mockup {
    width: min(320px, 78vw);
  }

  .privacy-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .privacy-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: var(--font-size-xl);
  }

  .phone-mockup {
    width: min(300px, 78vw);
  }

  .features-grid,
  .schools-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .dreamart-style-list {
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .dreamart-style-list span {
    flex: 0 0 auto;
  }

  .dreamart-card {
    flex-basis: calc(100vw - 48px);
  }

  .dreamart-track {
    gap: 24px;
    padding-right: 24px;
    padding-left: 24px;
  }

  @media (prefers-reduced-motion: no-preference) {
    .dreamart-track {
      animation: dreamArtSlideMobile 42s steps(12) infinite;
    }
  }

  @keyframes dreamArtSlideMobile {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1200vw + 288px)); }
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .download-buttons {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .schools-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .school-tab {
    text-align: center;
  }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .theme-toggle,
  .mobile-menu,
  .hero-visual,
  .download-buttons {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ===== RTL Support for Arabic and other RTL Languages ===== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-text {
    text-align: right;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-title {
    text-align: right;
}

[dir="rtl"] .hero-subtitle {
    text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
    text-align: right;
}

[dir="rtl"] .article-content {
    text-align: right;
}

[dir="rtl"] .article-content p {
    text-align: right;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-links li {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature-card {
    text-align: right;
}

[dir="rtl"] .feature-icon {
    margin-right: 0;
    margin-left: var(--space-lg);
}

[dir="rtl"] .school-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .privacy-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-card {
    text-align: right;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .author-avatar {
    margin-right: 0;
    margin-left: var(--space-md);
}

[dir="rtl"] .check-icon {
    margin-right: 0;
    margin-left: var(--space-md);
}

[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .back-link span {
    margin-right: 0;
    margin-left: var(--space-sm);
}

/* Mobile menu RTL */
[dir="rtl"] .mobile-menu {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

[dir="rtl"] .mobile-menu.active {
    transform: translateX(0);
}

[dir="rtl"] .menu-close {
    left: auto;
    right: var(--space-lg);
}

/* Navigation RTL */
[dir="rtl"] .nav-link {
    text-align: right;
}

[dir="rtl"] .dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

/* Blog article RTL */
[dir="rtl"] .article-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .article-meta span {
    margin-right: 0;
    margin-left: var(--space-lg);
}

[dir="rtl"] .article-tags {
    flex-direction: row-reverse;
}

[dir="rtl"] .tag {
    margin-right: 0;
    margin-left: var(--space-sm);
}

/* Stats RTL */
[dir="rtl"] .stat-item {
    text-align: center;
}

[dir="rtl"] .stat-icon {
    margin-right: 0;
    margin-left: var(--space-md);
}

/* Theme toggle RTL */
[dir="rtl"] .theme-toggle {
    margin-right: 0;
    margin-left: var(--space-md);
}

/* Button RTL */
[dir="rtl"] .btn {
    text-align: center;
}

[dir="rtl"] .download-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .download-buttons a {
    margin-right: 0;
    margin-left: var(--space-md);
}

/* ===== FAQ Section ===== */
.faq {
  background: var(--color-surface);
}

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  gap: var(--space-md);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-lg);
}

.faq-answer strong {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .faq-question {
    font-size: var(--font-size-base);
    padding: var(--space-lg);
  }
  .faq-answer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }
}

.lang-content { display: none; }
.lang-content.active { display: block; }

/* ===== Blog Article Pages ===== */
.article-page {
  padding-top: 70px;
}

.article-hero {
  padding: 80px 0 40px;
  background: var(--gradient-hero);
  text-align: center;
}

.article-category {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-title {
  margin-bottom: 16px;
  background: var(--gradient-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

.article-image-container {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.article-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-content p {
  margin-bottom: 24px;
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
  line-height: 1.9;
}

.article-content h2 {
  margin: 48px 0 24px;
  color: var(--color-text-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.article-content h3 {
  margin: 32px 0 16px;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
  line-height: 1.7;
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content strong {
  color: var(--color-primary);
}

.answer-box {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.answer-box p {
  margin-bottom: 0;
  font-weight: 500;
}

.article-callout {
  margin: 32px 0;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}

.step-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: var(--font-size-base);
  font-weight: 800;
}

.step-content h3 {
  margin: 0 0 6px;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
}

.step-content p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

.cta-box {
  margin: 48px 0;
  padding: 32px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-box h2,
.cta-box h3 {
  margin: 0 0 12px;
  color: white;
}

.cta-box p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: white;
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.more-articles {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--color-border);
}

.more-articles h2 {
  margin-bottom: 24px;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.mini-card {
  display: block;
  padding: 20px;
  background: var(--color-surface);
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.mini-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mini-card h3,
.mini-card h4 {
  margin-bottom: 8px;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.mini-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .article-hero {
    padding: 56px 0 32px;
  }

  .step-box {
    flex-direction: column;
  }
}

