@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #F5F8FF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 240ms ease;
}

button { font-family: inherit; }

/* ─── THEME TOKENS ──────────────────────────────────────
   Light = Lumgoals palette. Dark = Destiny AI palette. */
:root {
  --ink:           #2C3E6B;
  --ink-2:         #6B7FA8;
  --ink-3:         #A8B5CC;
  --ink-strong:    #2C3E6B;
  --surface:       rgba(255,255,255,0.70);
  --surface-strong:rgba(255,255,255,0.85);
  --surface-soft:  rgba(255,255,255,0.50);
  --surface-border:rgba(180,210,255,0.45);
  --page-grad: linear-gradient(180deg,
    #EEF4FF 0%, #E2EDFF 20%, #EDE7FB 45%, #F4E8F0 65%, #E8F1FF 85%, #EEF4FF 100%);
  --glow-tint:    rgba(126,184,247,0.10);
  --accent:       #C5B4F0;
  --accent-glow:  #C5B4F0;
  --halo-1:       rgba(168,216,234,0.55);
  --halo-2:       rgba(197,180,240,0.45);
  --cta-bg:       linear-gradient(135deg, rgba(184,217,255,0.65), rgba(197,180,240,0.65) 40%, rgba(232,197,216,0.65) 70%, rgba(168,216,234,0.65) 100%);
  --nav-bg:       rgba(238,244,255,0.55);
  --ticker-grad:  linear-gradient(90deg,#B8D9FF,#C5B4F0,#E8C5D8,#A8D8EA,#B8D9FF);
  --ticker-edge:  rgba(238,244,255,0.9);
}
body[data-theme="dark"] {
  --ink:           #FAF5FF;
  --ink-2:         #C4B5FD;
  --ink-3:         rgba(196,181,253,0.65);
  --ink-strong:    #FAF5FF;
  --surface:       rgba(192,38,211,0.08);
  --surface-strong:rgba(192,38,211,0.14);
  --surface-soft:  rgba(124,58,237,0.10);
  --surface-border:rgba(192,38,211,0.30);
  --page-grad: linear-gradient(180deg,
    #0A0612 0%, #130820 25%, #1A0A2E 55%, #130820 80%, #0A0612 100%);
  --glow-tint:    rgba(192,38,211,0.30);
  --accent:       #F0ABFC;
  --accent-glow:  #F0ABFC;
  --halo-1:       rgba(192,38,211,0.25);
  --halo-2:       rgba(124,58,237,0.30);
  --cta-bg:       linear-gradient(135deg, rgba(109,93,242,0.58), rgba(180,140,242,0.56) 52%, rgba(109,93,242,0.42) 100%);
  --nav-bg:       rgba(10,6,18,0.55);
  --ticker-grad:  linear-gradient(90deg,#6D5DF2,#B48CF2,#6D5DF2);
  --ticker-edge:  rgba(10,6,18,0.9);
}

/* ─── Reusable bits ────────────────────────────────── */
.serif { font-family: var(--font-heading); }
.sans  { font-family: var(--font-body); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 0;
  transition: color 240ms ease;
}

.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 14px 0 0;
  max-width: 620px;
  transition: color 240ms ease;
}

/* Iridescent border helper */
.irid-border {
  position: relative;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(160deg, #B8D9FF, #C5B4F0, #E8C5D8, #A8D8EA);
}
body[data-theme="dark"] .irid-border {
  background: linear-gradient(160deg, #6D5DF2, #B48CF2, #F0ABFC);
}

/* Glass card */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px var(--glow-tint), 0 1px 0 rgba(255,255,255,0.4) inset;
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
body[data-theme="dark"] .glass {
  box-shadow: 0 4px 24px var(--glow-tint), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 16px 28px;
  transition: transform 120ms ease-out, box-shadow 200ms ease-out, background 240ms ease, color 240ms ease;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(90deg,#A7C8FC,#B29CFB);
  color: #fff;
  box-shadow: 0 6px 18px rgba(126,184,247,0.35), 0 12px 32px rgba(178,156,251,0.20);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(126,184,247,0.45), 0 16px 44px rgba(178,156,251,0.30); }
body[data-theme="dark"] .btn-primary {
  background: linear-gradient(90deg,#6D5DF2,#B48CF2);
  box-shadow: 0 6px 18px rgba(109,93,242,0.48), 0 12px 32px rgba(180,140,242,0.30);
}

.nav-download-btn {
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.btn-webapp {
  padding: 10px 16px;
  font-size: 13px;
  color: #2C3E6B;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(126,184,247,0.35);
  box-shadow: 0 8px 22px rgba(126,184,247,0.16);
  text-decoration: none;
  white-space: nowrap;
}
.btn-webapp:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 28px rgba(126,184,247,0.24);
}
body[data-theme="dark"] .btn-webapp {
  color: #FFFFFF;
  background: rgba(255,255,255,0.11);
  border-color: rgba(180,140,242,0.34);
  box-shadow: 0 8px 22px rgba(109,93,242,0.20);
}

.download-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21,12,35,0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body[data-theme="dark"] .download-modal-backdrop {
  background: rgba(8,2,18,0.62);
}

.download-modal {
  width: min(440px, 100%);
  position: relative;
  padding: 34px;
  border-radius: 28px;
  text-align: center;
}
.download-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,0.66);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
body[data-theme="dark"] .download-modal-close {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.download-modal-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.download-modal h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.02;
}
.download-modal p {
  margin: 16px auto 24px;
  max-width: 330px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
.download-modal-actions {
  display: grid;
  gap: 12px;
}
.download-choice {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  background: #0A0612;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(10,6,18,0.18);
  transition: transform 140ms ease, box-shadow 180ms ease;
}
.download-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(10,6,18,0.24);
}
.download-choice-icon {
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.webapp-choice {
  background: linear-gradient(90deg,#A7C8FC,#B29CFB);
}
body[data-theme="dark"] .webapp-choice {
  background: linear-gradient(90deg,#6D5DF2,#B48CF2);
}

.hero-affirm div:last-child {
  color: #2C3E6B !important;
}
body[data-theme="dark"] .hero-affirm {
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(180,140,242,0.34) !important;
}
body[data-theme="dark"] .hero-affirm div:first-child {
  color: #6D5DF2 !important;
}
body[data-theme="dark"] .hero-affirm div:last-child {
  color: #2C3E6B !important;
}

body[data-theme="dark"] .testimonial-quote-mark {
  color: #FFFFFF !important;
  opacity: 0.55 !important;
}

.cta-title-gradient {
  background: linear-gradient(90deg, #2C3E6B 0%, #7EB8F7 34%, #B29CFB 68%, #2C3E6B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body[data-theme="dark"] .cta-title-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, #B48CF2 42%, #6D5DF2 72%, #F5F7FB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.final-cta-card {
  background: rgba(255, 255, 255, 0.70);
}
body[data-theme="dark"] .final-cta-card {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 36px 90px -34px rgba(10, 6, 18, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
body[data-theme="dark"] .final-cta-card p,
body[data-theme="dark"] .final-cta-card > div:last-child {
  color: rgba(255, 255, 255, 0.82) !important;
}

.phone-app-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #EEF4FF;
}
.phone-app-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 0;
  color: #2C3E6B;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.phone-app-status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
}
.phone-cell-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.phone-cell-bars i {
  width: 3px;
  border-radius: 1px;
  background: currentColor;
  display: block;
}
.phone-cell-bars i:nth-child(1) { height: 4px; opacity: .48; }
.phone-cell-bars i:nth-child(2) { height: 6px; opacity: .62; }
.phone-cell-bars i:nth-child(3) { height: 8px; opacity: .78; }
.phone-cell-bars i:nth-child(4) { height: 10px; }
.phone-wifi {
  position: relative;
  width: 15px;
  height: 11px;
  overflow: hidden;
  display: inline-block;
}
.phone-wifi::before,
.phone-wifi::after,
.phone-wifi i {
  position: absolute;
  left: 50%;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%) rotate(-45deg);
}
.phone-wifi::before {
  width: 18px;
  height: 18px;
  top: 1px;
  opacity: .38;
}
.phone-wifi::after {
  width: 13px;
  height: 13px;
  top: 6px;
  opacity: .7;
}
.phone-wifi i {
  width: 7px;
  height: 7px;
  top: 11px;
}
.phone-battery {
  position: relative;
  width: 20px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  display: inline-block;
}
.phone-battery::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 2px;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  opacity: .65;
}
.phone-battery i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 4px;
  border-radius: 1.5px;
  background: currentColor;
}
.phone-app-shot {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  width: 100%;
  height: calc(100% - 36px);
  object-fit: cover;
  object-position: top center;
}
.phone-app-shot-dark { display: none; }
body[data-theme="dark"] .phone-app-screen { background: #0A0612; }
body[data-theme="dark"] .phone-frame-shell {
  background: linear-gradient(160deg, #E7ECF6, #CBD4E6 44%, #F7FAFF) !important;
  box-shadow:
    0 24px 56px -20px rgba(236,244,255,0.36),
    0 42px 100px -34px rgba(240,171,252,0.42),
    inset 0 1px 2px rgba(255,255,255,0.82) !important;
}
body[data-theme="dark"] .phone-frame-inner {
  background: #0A0612 !important;
}
body[data-theme="dark"] .phone-app-status {
  color: #F5F7FB;
}
body[data-theme="dark"] .phone-app-shot-light { display: none; }
body[data-theme="dark"] .phone-app-shot-dark { display: block; }

.btn-ghost {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
}
.btn-ghost:hover { background: var(--surface-strong); filter: brightness(1.05); }

/* ─── Page-wide background gradient + grain ──────────── */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--page-grad);
  transition: background 600ms ease;
}
.page-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── RESPONSIVE GRIDS ─────────────────────────────── */
.hero-grid       { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.problem-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mood-grid       { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
.steps-grid      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.testimonial-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.founder-grid    { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.footer-grid     {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, .8fr));
  gap: 56px;
  margin: 0 auto 60px;
  max-width: 1180px;
  justify-content: center;
}

/* Hero phones cluster — responsive */
.hero-phones {
  position: relative;
  height: 680px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── TABLET ≤ 1024px ─────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mood-grid    { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 18px; max-width: 620px; margin: 0 auto; }
  .founder-grid { grid-template-columns: 1fr; gap: 48px; max-width: 620px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero-phones { height: 580px; }
  .hero-phones-inner { transform: scale(0.85); }
}

/* ─── MOBILE ≤ 720px ─────────────────────────────── */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 0; }
  .nav-links { display: none; }
  .toolbar { gap: 6px; }
  .toolbar .nav-download-btn { display: none; }
  .toolbar .nav-webapp-btn { display: none; }
  .toggle-pill button { padding: 6px 9px; font-size: 11px; }
  .brand img { height: 32px !important; }

  /* Section paddings */
  section { padding-left: 0 !important; padding-right: 0 !important; }
  .section-padding { padding: 64px 0 60px !important; }

  /* Titles */
  .section-title { font-size: clamp(28px, 8vw, 38px); }
  .section-sub   { font-size: 15px; }

  /* Problem grid → single column */
  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .mood-grid    { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }

  /* Steps — vertical timeline */
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-line, .steps-line-dot { display: none; }
  .step-card { flex-direction: row !important; text-align: left !important; align-items: flex-start !important; gap: 18px; }
  .step-card > div:first-child { margin-bottom: 0 !important; flex-shrink: 0; }
  .step-card > div:not(:first-child) { max-width: none !important; }

  /* Hero phones — scale + reposition */
  .hero-phones { height: 480px; }
  .hero-phones-inner { transform: scale(0.62); }

  /* Hero copy — smaller */
  .hero-title { font-size: clamp(34px, 9vw, 48px) !important; line-height: 1.08 !important; }
  .hero-body  { font-size: 15px !important; }

  /* Hero floating chips on mobile — hide streak (looks cluttered) */
  .hero-streak { transform: scale(0.85); top: 10px !important; right: -4px !important; }
  .hero-affirm { transform: scale(0.85); transform-origin: bottom left; left: -4px !important; bottom: 30px !important; }

  /* CTAs */
  .btn { padding: 14px 22px; font-size: 14px; }

  /* Founder portrait — scale */
  .founder-portrait { width: 100% !important; max-width: 360px; height: 440px !important; margin: 0 auto; }

  /* Testimonials press logos */
  .press-row { gap: 24px !important; }
  .press-row > div { font-size: 16px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* CTA card */
  .cta-card { padding: 48px 28px !important; }
  .cta-title { font-size: clamp(30px, 8vw, 44px) !important; }

  /* Ticker — smaller text */
  .ticker-text { font-size: 22px !important; }

  /* Page-level pad recovery (we cleared section side padding) */
  .container { padding: 0 20px; }
}

/* sparkle char */
.sparkle::before { content: "✦"; color: var(--accent); margin-right: 6px; }

/* Keyframes */
@keyframes float-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes twinkle { 0%,100%{opacity:0.2} 50%{opacity:1} }
@keyframes drift   { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes orb-pulse { 0%,100%{transform:scale(1); filter:brightness(1)} 50%{transform:scale(1.04); filter:brightness(1.08)} }
@keyframes shimmer { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes typing-dot { 0%,60%,100%{transform:translateY(0); opacity:0.4} 30%{transform:translateY(-4px); opacity:1} }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.float { animation: float-y 6s ease-in-out infinite; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--surface-border);
  transition: background 240ms ease, border-color 240ms ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.3px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(160deg,#B8D9FF,#C5B4F0,#E8C5D8);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(197,180,240,0.4);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--ink); }

/* Logo: icon + wordmark in both themes. Wordmark inverts to white in dark. */
.logo-img-light, .logo-img-dark { display: none; align-items: center; gap: 12px; }
.logo-img-light { display: inline-flex; }
body[data-theme="dark"] .logo-img-light { display: none; }
body[data-theme="dark"] .logo-img-dark  { display: inline-flex; }
.logo-img-dark .logo-wordmark-img {
  filter: brightness(0) invert(1);
}

/* Toolbar (lang + theme toggle) */
.toolbar {
  display: flex; align-items: center; gap: 10px;
}
.toggle-pill {
  display: inline-flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(16px);
  transition: background 240ms ease, border-color 240ms ease;
}
.toggle-pill button {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.toggle-pill button.active {
  background: linear-gradient(90deg,#A7C8FC,#B29CFB);
  color: #fff;
  box-shadow: 0 4px 12px rgba(126,184,247,0.30);
}
body[data-theme="dark"] .toggle-pill button.active {
  background: linear-gradient(90deg,#6D5DF2,#B48CF2);
  box-shadow: 0 4px 12px rgba(109,93,242,0.40);
}

.footer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 6, 18, 0.48);
  backdrop-filter: blur(14px);
}
.footer-modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  position: relative;
  border-radius: 24px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(180, 210, 255, 0.45);
  box-shadow: 0 28px 80px rgba(44, 62, 107, 0.28);
}
body[data-theme="dark"] .footer-modal {
  background: rgba(20, 10, 38, 0.94);
  border-color: rgba(180, 140, 242, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}
.footer-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.footer-modal-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.footer-modal h3 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0 42px 14px 0;
}
.footer-modal p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.footer-modal-sections {
  display: grid;
  gap: 14px;
}
.footer-modal-sections div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.footer-modal-sections strong {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-modal-sections span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}
