:root {
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --brand: #8b5fd6;
  --brand-dark: #6f44b6;
  --accent: #58cc02;
  --brand-deep: #1b0036;
  --text-main: #1a2340;
  --text-soft: #5b678b;
  --border: #dbe4ff;
  --shadow: 0 12px 36px rgba(46, 78, 177, 0.12);
  --header-bg: rgba(255, 255, 255, 0.9);
  --feature-hover: #fbfdff;
  --placeholder-grad-start: #f2f6ff;
  --placeholder-grad-end: #eaf0ff;
  --placeholder-border: #b8c8ff;
  --app-section-grad-start: #f9fbff;
  --app-section-grad-end: #eef4ff;
  --btn-hover: #f4f8ff;
  --badge-bg: #f1ecff;
  --badge-border: #d9cbff;
  --badge-text: #24556b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111424;
    --surface: #1e2336;
    --surface-soft: #262c45;
    --brand: #a882f0;
    --brand-dark: #8b5fd6;
    --accent: #6ee614;
    --brand-deep: #2a1547;
    --text-main: #f0f3fa;
    --text-soft: #9aa4c4;
    --border: #2d344d;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(30, 35, 54, 0.9);
    --feature-hover: #23293f;
    --placeholder-grad-start: #232840;
    --placeholder-grad-end: #1e2238;
    --placeholder-border: #3c466e;
    --app-section-grad-start: #15192c;
    --app-section-grad-end: #1a1e34;
    --btn-hover: #262c45;
    --badge-bg: #271f42;
    --badge-border: #3b2b63;
    --badge-text: #a882f0;
  }
}

body.light-mode {
  color-scheme: light;
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --brand: #8b5fd6;
  --brand-dark: #6f44b6;
  --accent: #58cc02;
  --brand-deep: #1b0036;
  --text-main: #1a2340;
  --text-soft: #5b678b;
  --border: #dbe4ff;
  --shadow: 0 12px 36px rgba(46, 78, 177, 0.12);
  --header-bg: rgba(255, 255, 255, 0.9);
  --feature-hover: #fbfdff;
  --placeholder-grad-start: #f2f6ff;
  --placeholder-grad-end: #eaf0ff;
  --placeholder-border: #b8c8ff;
  --app-section-grad-start: #f9fbff;
  --app-section-grad-end: #eef4ff;
  --btn-hover: #f4f8ff;
  --badge-bg: #f1ecff;
  --badge-border: #d9cbff;
  --badge-text: #24556b;
}

body.dark-mode {
  color-scheme: dark;
  --bg: #111424;
  --surface: #1e2336;
  --surface-soft: #262c45;
  --brand: #a882f0;
  --brand-dark: #8b5fd6;
  --accent: #6ee614;
  --brand-deep: #2a1547;
  --text-main: #f0f3fa;
  --text-soft: #9aa4c4;
  --border: #2d344d;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(30, 35, 54, 0.9);
  --feature-hover: #23293f;
  --placeholder-grad-start: #232840;
  --placeholder-grad-end: #1e2238;
  --placeholder-border: #3c466e;
  --app-section-grad-start: #15192c;
  --app-section-grad-end: #1a1e34;
  --btn-hover: #262c45;
  --badge-bg: #271f42;
  --badge-border: #3b2b63;
  --badge-text: #a882f0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --- App Loader Styles (matches Flutter SplashScreen glass card) --- */
#app-loader {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1e2b57 0%, #2f3f84 100%);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-card {
  background: #1e2336;
  border-radius: 32px;
  border: 1px solid #2d344d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader {
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top: 8px solid #ffffff;
  width: 60px;
  height: 60px;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide the default Flutter loading indicator if it somehow appears */
.flutter-loader,
#flutter-loader,
flutter-loading-indicator {
  display: none !important;
}

/* --- Landing Page Styles --- */
#landing-page {
  display: none; /* Hidden until auth state is confirmed */
  min-height: 100vh;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden; /* Hide overflow to prevent cutoff visibility */
}

    /* --- Animated Planets --- */
    .decor-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: visible;
    }

.planet {
  position: absolute;
  opacity: 0.85;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
  animation: float 10s ease-in-out infinite;
  z-index: 0;
}

.planet svg {
  display: block;
  width: 100%;
  height: 100%;
}

.planet.one {
  width: 140px;
  height: 140px;
  top: 15%;
  right: 5%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.planet.two {
  width: 160px;
  height: 160px;
  top: 45%;
  left: -20px;
  animation-delay: -3s;
  animation-duration: 15s;
}

.planet.three {
  width: 120px;
  height: 120px;
  top: 80%;
  right: 15%;
  animation-delay: -5s;
  animation-duration: 10s;
}

.planet.four {
  width: 130px;
  height: 130px;
  top: 65%;
  left: 5%;
  animation-delay: -2s;
  animation-duration: 14s;
}

.planet.five {
  width: 100px;
  height: 100px;
  top: 25%;
  left: 15%;
  animation-delay: -7s;
  animation-duration: 11s;
}

.planet.six {
  width: 150px;
  height: 150px;
  top: -5%;
  left: 45%;
  animation-delay: -1s;
  animation-duration: 16s;
}

    @keyframes float {
      0% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-20px) rotate(5deg); }
      100% { transform: translateY(0px) rotate(0deg); }
    }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--surface-soft);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-hamburger:hover {
  background: var(--surface-soft);
}

.nav-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] .nav-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] .nav-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--brand);
}

.cta-button {
  background-color: var(--surface);
  color: var(--brand);
  border: 2px solid var(--border);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-family: inherit;
}

.cta-button:hover {
  background-color: var(--btn-hover);
  border-color: var(--brand);
}

.cta-button.primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: 0 6px 20px rgba(88, 204, 2, 0.25);
}

.cta-button.primary:hover {
  background-color: #4eb502;
  border-color: #4eb502;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 204, 2, 0.35);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 5rem 5% 4rem;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.trust-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.85rem 0.9rem;
  min-width: 140px;
}

.trust-stat-value {
  display: block;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 800;
}

.trust-stat-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.hero-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem;
  position: relative;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.image-placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--placeholder-grad-start),
    var(--placeholder-grad-start) 16px,
    var(--placeholder-grad-end) 16px,
    var(--placeholder-grad-end) 32px
  );
  border: 2px dashed var(--placeholder-border);
  border-radius: 18px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  padding: 1.2rem;
  min-height: 260px;
  position: relative;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  top: 14px;
  right: 14px;
  background: radial-gradient(circle, #8b5fd6 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}

.placeholder-note {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.features {
  padding: 5rem 5%;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.features h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-main);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  padding: 2.25rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  box-shadow: 0 4px 24px rgba(31, 56, 133, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand) 0%, #58cc02 100%);
  border-radius: 4px 0 0 4px;
}

.feature-card:nth-child(2)::before { background: linear-gradient(180deg, #1cb0f6 0%, var(--brand) 100%); }
.feature-card:nth-child(3)::before { background: linear-gradient(180deg, #ffc800 0%, #58cc02 100%); }
.feature-card:nth-child(4)::before { background: linear-gradient(180deg, #ff6b6b 0%, var(--brand) 100%); }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(139, 95, 214, 0.2), 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  border-color: rgba(139, 95, 214, 0.25);
}

.feature-card h3 {
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
  font-size: 0.95rem;
}

.feature-image-row {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px -16px rgba(139, 95, 214, 0.25), 0 0 0 1px rgba(139, 95, 214, 0.12);
}

/* Mobile Apps Section */
.mobile-apps {
  padding: 5rem 5%;
  text-align: center;
  background: linear-gradient(180deg, var(--app-section-grad-start) 0%, var(--app-section-grad-end) 100%);
}

.mobile-apps h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.mobile-apps p {
  color: var(--text-soft);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-apps-visual {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.mobile-apps-visual .feature-image {
  width: 100%;
  height: auto;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--surface);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.08);
}

.store-button:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
}

.store-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.use-cases {
  padding: 5rem 5%;
  background-color: var(--surface);
}

.use-cases h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.use-cases-desc {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.use-case-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(31, 56, 133, 0.08);
}

.use-case-card h3 {
  color: var(--brand);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.use-case-card p {
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.faq {
  padding: 5rem 5%;
  background: linear-gradient(180deg, var(--app-section-grad-start) 0%, var(--app-section-grad-end) 100%);
}

.faq h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--brand);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.social-proof {
  text-align: center;
  padding: 5rem 5%;
}

.social-proof h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.social-proof p {
  color: var(--text-soft);
  font-size: 1.125rem;
}

.testimonial-cards {
  margin: 2rem auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 6px 18px rgba(31, 56, 133, 0.08);
}

.testimonial-card strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 0.35rem;
}

.testimonial-card span {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
}

footer {
  background-color: var(--surface);
  padding: 3rem 5% 2rem;
  text-align: center;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  z-index: 1;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--brand);
}

.language-switcher {
  display: flex;
  gap: 0.75rem;
}

.language-switcher a {
  opacity: 0.7;
  font-weight: 500;
  font-size: 0.9rem;
}

.language-switcher a:hover {
  opacity: 1;
}

.language-switcher a.active {
  color: var(--brand);
  opacity: 1;
  font-weight: 600;
}

.language-switcher-header {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.lang-globe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: 6px;
  line-height: 1;
}

.lang-globe-btn:hover {
  background: var(--surface-soft);
}

.lang-globe-icon {
  flex-shrink: 0;
  opacity: 0.85;
  display: block;
  vertical-align: middle;
}

.lang-current-label {
  font-weight: 500;
  min-width: 1.5rem;
  max-width: 9rem;
  padding-right: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.lang-dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: 90vw;
  width: 360px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.lang-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.lang-dialog-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-dialog-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.lang-search {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-main);
}

.lang-search::placeholder {
  color: var(--text-soft);
}

.lang-search:focus {
  outline: none;
  border-color: var(--brand);
}

.lang-list {
  max-height: 24rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  -webkit-overflow-scrolling: touch;
}

.lang-dialog-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s;
}

.lang-dialog-item:hover {
  background: var(--surface-soft);
}

.lang-dialog-item--selected {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
}

.lang-dialog-item-native {
  font-weight: 500;
  flex: 1;
}

.lang-dialog-item-english {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.lang-dialog-item-check {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero-subtitle {
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

  .nav-menu-backdrop.nav-menu-backdrop--visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    flex-direction: column;
    gap: 0;
    padding: 0 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-menu.nav-menu--open {
    max-height: 360px;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-menu a:hover {
    color: var(--brand);
  }

  .nav-menu .language-switcher-header {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
    background: none;
    border-radius: 0;
    border: none;
  }

  .nav-menu .lang-globe-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .nav-menu .theme-toggle {
    width: 100%;
    padding: 1rem 0;
    justify-content: flex-start;
    border-radius: 0;
  }

  .nav-login-btn {
    flex-shrink: 0;
  }

  .features h2 { font-size: 2rem; }
  .feature-image-row { grid-template-columns: 1fr; }
}