/* ============================================================
   ANCIENT SIDE — Marketing Site
   Aesthetic: cinematic ancient + modern tech
   ============================================================ */

:root {
  --bg-deep: #0E0A06;
  --bg-ink: #14100B;
  --bg-stone: #1E1A14;
  --bg-stone-soft: #26201A;
  --line: rgba(244, 236, 221, 0.08);
  --line-strong: rgba(244, 236, 221, 0.14);

  --marble: #F4ECDD;
  --marble-dim: rgba(244, 236, 221, 0.72);
  --marble-mute: rgba(244, 236, 221, 0.5);
  --marble-faint: rgba(244, 236, 221, 0.32);

  --gold: #C9A24C;
  --gold-bright: #E8C170;
  --gold-deep: #8C6E2A;
  --terracotta: #B8552E;
  --teal: #4A8E8B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 80px -10px rgba(201, 162, 76, 0.35);
  --shadow-card: 0 30px 60px -30px rgba(0,0,0,0.6), 0 2px 0 rgba(244,236,221,0.04) inset;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-display: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--marble);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--bg-deep); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}

.section-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  max-width: 18ch;
  text-wrap: balance;
}

.body-lg { font-size: 18px; line-height: 1.55; color: var(--marble-dim); }
.body-md { font-size: 15px; line-height: 1.6;  color: var(--marble-dim); }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--marble-mute); }

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
section { position: relative; padding: 140px 0; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(14,10,6,0.85), rgba(14,10,6,0.4));
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 50%, var(--gold-deep));
  position: relative;
  box-shadow: 0 0 20px -2px rgba(232, 193, 112, 0.5);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(14,10,6,0.4);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 76, 0.35);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--marble-mute);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  color: var(--marble-dim);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.nav-links a:hover { color: var(--marble); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: rgba(244,236,221,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.lang-switch button {
  background: none;
  border: 0;
  color: var(--marble-mute);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.lang-switch button.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 12px 30px -10px rgba(201, 162, 76, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(201, 162, 76, 0.7); }
.btn-primary .arrow { transition: transform .35s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--marble);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(244,236,221,0.05); border-color: var(--marble-faint); }

.btn-sm { padding: 10px 18px; font-size: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(201, 162, 76, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(74, 142, 139, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(14,10,6,0.0) 60%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-left .eyebrow { margin-bottom: 28px; }
.hero-title { margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: .12s; }
.hero-title .line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--marble-dim);
  max-width: 48ch;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade .9s var(--ease-out) .5s forwards;
}
@keyframes fade { to { opacity: 1; } }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fade .9s var(--ease-out) .65s forwards;
}

.hero-meta {
  display: flex;
  gap: 36px;
  opacity: 0;
  animation: fade .9s var(--ease-out) .8s forwards;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--marble);
  line-height: 1;
}
.hero-meta-item .num em { color: var(--gold-bright); font-style: normal; }
.hero-meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marble-mute);
  margin-top: 8px;
}

/* --- Phone mockups (3 fanned) --- */
.hero-right {
  position: relative;
  height: 760px;
}

.phone-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(201, 162, 76, 0.16);
  border-radius: 50%;
  animation: orbit-spin 80s linear infinite;
  pointer-events: none;
}
.orbit-1 { width: 640px; height: 640px; }
.orbit-2 { width: 820px; height: 820px; animation-duration: 120s; animation-direction: reverse; opacity: 0.4; }
.orbit-3 { width: 480px; height: 480px; border-style: solid; border-color: rgba(201, 162, 76, 0.06); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--gold);
}

.phone-deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.phone {
  position: absolute;
  width: 250px;
  height: 540px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a241c, #14100B 60%);
  padding: 9px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(201, 162, 76, 0.22),
    0 0 60px -10px rgba(201, 162, 76, 0.3);
  transform-style: preserve-3d;
  will-change: transform;
}

.phone--left {
  transform: translate(-180px, 20px) rotateY(22deg) rotateZ(-6deg) scale(0.92);
  z-index: 1;
  animation: phone-enter-left 0.8s var(--ease-out) 0.15s both, phone-float-left 9s ease-in-out 0.95s infinite;
  opacity: 0.96;
}
.phone--center {
  transform: translateY(-10px) rotateY(0deg) scale(1.02);
  z-index: 3;
  animation: phone-enter-center 0.7s var(--ease-out) 0s both, phone-float-center 8s ease-in-out 0.7s infinite;
  box-shadow:
    0 70px 120px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(201, 162, 76, 0.32),
    0 0 90px -10px rgba(201, 162, 76, 0.5);
}
.phone--right {
  transform: translate(180px, 20px) rotateY(-22deg) rotateZ(6deg) scale(0.92);
  z-index: 2;
  animation: phone-enter-right 0.8s var(--ease-out) 0.3s both, phone-float-right 9.4s ease-in-out 1.1s infinite;
  opacity: 0.96;
}

.phone {
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}

.phone-stage:has(.is-selected) .phone { animation: none !important; }

.phone:hover,
.phone.is-selected {
  z-index: 30 !important;
  cursor: pointer;
  box-shadow:
    0 100px 160px -30px rgba(0,0,0,0.95),
    0 0 0 1px rgba(201, 162, 76, 0.5),
    0 0 130px -10px rgba(201, 162, 76, 0.75) !important;
}
.phone--left:hover,
.phone--left.is-selected {
  transform: translate3d(-180px, 10px, 120px) rotateY(14deg) rotateZ(-3deg) scale(1.08) !important;
}
.phone--center:hover,
.phone--center.is-selected {
  transform: translate3d(0, -18px, 120px) rotateY(0deg) scale(1.06) !important;
}
.phone--right:hover,
.phone--right.is-selected {
  transform: translate3d(180px, 10px, 120px) rotateY(-14deg) rotateZ(3deg) scale(1.08) !important;
}

@keyframes phone-float-left {
  0%, 100% { transform: translate(-180px, 20px) rotateY(22deg) rotateZ(-6deg) scale(0.92); }
  50%      { transform: translate(-180px, 6px)  rotateY(22deg) rotateZ(-6deg) scale(0.92); }
}
@keyframes phone-float-center {
  0%, 100% { transform: translateY(-10px) rotateY(0deg) scale(1.02); }
  50%      { transform: translateY(-26px) rotateY(0deg) scale(1.02); }
}
@keyframes phone-float-right {
  0%, 100% { transform: translate(180px, 20px) rotateY(-22deg) rotateZ(6deg) scale(0.92); }
  50%      { transform: translate(180px, 6px)  rotateY(-22deg) rotateZ(6deg) scale(0.92); }
}
@keyframes phone-enter-left {
  from { opacity: 0; transform: translate(-230px, 60px) rotateY(22deg) rotateZ(-6deg) scale(0.84); }
  to   { opacity: 0.96; transform: translate(-180px, 20px) rotateY(22deg) rotateZ(-6deg) scale(0.92); }
}
@keyframes phone-enter-center {
  from { opacity: 0; transform: translateY(50px) rotateY(0deg) scale(0.92); }
  to   { opacity: 1; transform: translateY(-10px) rotateY(0deg) scale(1.02); }
}
@keyframes phone-enter-right {
  from { opacity: 0; transform: translate(230px, 60px) rotateY(-22deg) rotateZ(6deg) scale(0.84); }
  to   { opacity: 0.96; transform: translate(180px, 20px) rotateY(-22deg) rotateZ(6deg) scale(0.92); }
}

.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #1c1610, #0E0A06);
  border-radius: 30px;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 20px;
  border-radius: 999px;
  background: #050402;
  z-index: 10;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--marble-dim);
}
.phone-status .signal { display: inline-flex; gap: 2px; align-items: center; color: var(--gold); }
.phone-content {
  padding: 36px 12px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.app-search {
  flex: 1;
  background: rgba(244,236,221,0.04);
  border: 1px solid rgba(201, 162, 76, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--marble-mute);
  display: flex; align-items: center; gap: 8px;
}
.app-search-row .filter {
  width: 38px;
  border-radius: 12px;
  background: rgba(244,236,221,0.04);
  border: 1px solid rgba(201, 162, 76, 0.22);
  display: grid; place-items: center;
  color: var(--gold);
}

.app-card {
  background: linear-gradient(165deg, rgba(244,236,221,0.05), rgba(244,236,221,0.015));
  border: 1px solid rgba(201, 162, 76, 0.20);
  border-radius: 18px;
  padding: 14px;
  position: relative;
}

.app-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(201,162,76,0.20), rgba(201,162,76,0.06));
  border: 1px solid rgba(201,162,76,0.30);
  display: grid; place-items: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-bright);
  background: rgba(201, 162, 76, 0.08);
  border: 1px solid rgba(201, 162, 76, 0.32);
  font-style: italic;
  letter-spacing: 0.01em;
}
.app-pill--cta {
  color: var(--gold-bright);
  background: rgba(201, 162, 76, 0.12);
}

.app-card-row {
  display: flex; gap: 12px; align-items: flex-start;
}
.app-card-row > .app-content { flex: 1; min-width: 0; }
.app-card-row .head {
  display: flex; justify-content: flex-start; align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.app-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--marble);
  line-height: 1.05;
  margin: 4px 0 6px;
  letter-spacing: -0.005em;
}
.app-card-body {
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--marble-dim);
  font-style: italic;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.app-card-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.app-meta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-family: var(--font-display);
  color: var(--marble-dim);
  background: rgba(244,236,221,0.04);
  border: 1px solid rgba(201, 162, 76, 0.18);
}
.app-meta-chip.distance {
  color: var(--gold-bright);
  background: rgba(201, 162, 76, 0.12);
  border-color: rgba(201, 162, 76, 0.4);
}

.app-portal {
  background: linear-gradient(170deg, rgba(244,236,221,0.05), rgba(20,16,11,0.5));
  border: 1px solid rgba(201, 162, 76, 0.26);
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.app-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(201, 162, 76, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(184, 85, 46, 0.10), transparent 60%);
  pointer-events: none;
}
.app-portal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(201, 162, 76, 0.12);
  border: 1px solid rgba(201, 162, 76, 0.35);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.app-portal h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--marble);
  margin: 0 0 6px;
  line-height: 1;
  position: relative; z-index: 1;
}
.app-portal p {
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--marble-dim);
  font-style: italic;
  margin: 0 0 12px;
  position: relative; z-index: 1;
}
.app-portal-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gold-bright);
  background: rgba(201, 162, 76, 0.08);
  border: 1px solid rgba(201, 162, 76, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.app-portal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.app-portal-stat {
  background: rgba(244,236,221,0.05);
  border: 1px solid rgba(201, 162, 76, 0.22);
  border-radius: 14px;
  padding: 10px;
}
.app-portal-stat .head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--gold);
}
.app-portal-stat .head .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(201, 162, 76, 0.15);
  display: grid; place-items: center;
}
.app-portal-stat .head .line {
  width: 18px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.app-portal-stat .n {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--marble);
  line-height: 1;
  margin-top: 8px;
}
.app-portal-stat .l {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--marble-mute);
  margin-top: 4px;
  font-style: italic;
}

.app-portal-strip {
  background: rgba(244,236,221,0.04);
  border: 1px solid rgba(201, 162, 76, 0.22);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.app-portal-strip .end {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(201, 162, 76, 0.14);
  border: 1px solid rgba(201, 162, 76, 0.32);
  display: grid; place-items: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.app-portal-strip svg.curve { flex: 1; height: 18px; }

.app-portal-cta {
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative; z-index: 1;
  box-shadow: 0 8px 20px -6px rgba(201, 162, 76, 0.5);
}

/* ============================================================
   PHONE 3 — MAP & ROUTE
   ============================================================ */
.phone-map {
  padding: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-map .app-dock { margin: 0 12px 16px; }

.map-illus {
  position: relative;
  flex: 1.1;
  min-height: 260px;
  overflow: hidden;
}
.map-illus svg { width: 100%; height: 100%; display: block; }
.map-filter-btn {
  position: absolute;
  top: 28px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(20,16,11,0.9);
  border: 1px solid rgba(201, 162, 76, 0.35);
  display: grid; place-items: center;
  color: var(--gold-bright);
  box-shadow: 0 4px 8px -4px rgba(0,0,0,0.6);
  z-index: 3;
}
.map-user-dot {
  position: absolute;
  top: 38%; left: 60%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 2px solid #0E0A06;
  box-shadow: 0 0 0 0 rgba(232, 193, 112, 0.55);
  animation: userPulse 1.8s ease-out infinite;
  z-index: 3;
}
@keyframes userPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 193, 112, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(232, 193, 112, 0); }
}
.map-marker {
  position: absolute;
  top: 47%; left: 74%;
  width: 22px; height: 28px;
  z-index: 3;
  transform: translate(-50%, -100%);
}
.map-marker::before {
  content: "";
  position: absolute;
  inset: 0 0 4px 0;
  background: var(--gold);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 2px solid #0E0A06;
  box-shadow: 0 4px 12px -2px rgba(201, 162, 76, 0.6);
}
.map-marker::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--gold);
  filter: drop-shadow(0 1px 0 #0E0A06);
}
.map-marker .num {
  position: absolute;
  inset: 0 0 4px 0;
  display: grid; place-items: center;
  color: #0E0A06;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  z-index: 2;
}

.route-card {
  background: linear-gradient(180deg, rgba(244,236,221,0.05), rgba(244,236,221,0.02));
  border: 1px solid rgba(201, 162, 76, 0.25);
  border-radius: 18px 18px 14px 14px;
  margin: -22px 10px 8px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 16px -10px rgba(0,0,0,0.6), 0 1px 0 rgba(244,236,221,0.04) inset;
  backdrop-filter: blur(12px);
}
.route-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.route-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(201, 162, 76, 0.12);
  border: 1px solid rgba(201, 162, 76, 0.3);
  display: grid; place-items: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.route-titles { flex: 1; min-width: 0; }
.route-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--marble);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.route-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--marble-mute);
  margin-top: 2px;
}
.route-counter {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(201, 162, 76, 0.10);
  border: 1px solid rgba(201, 162, 76, 0.3);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold-bright);
}

.route-steps {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.route-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.rs-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 76, 0.4);
  color: var(--marble-mute);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: transparent;
}
.route-step.active .rs-dot {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  box-shadow: 0 0 12px -2px var(--gold);
}
.rs-dot.flag { background: transparent; color: var(--gold); border-color: rgba(201, 162, 76, 0.5); }
.rs-name {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--marble-mute);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.route-step.active .rs-name { color: var(--gold-bright); font-weight: 700; }
.route-conn {
  flex: 0 0 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 76, 0.4), transparent);
  margin-top: 9px;
}

.route-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rm-cell {
  border: 1px solid rgba(201, 162, 76, 0.22);
  border-radius: 10px;
  padding: 6px 9px;
  background: rgba(244, 236, 221, 0.03);
}
.rm-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--marble-mute);
  text-transform: uppercase;
}
.rm-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-top: 2px;
}

.route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.route-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.route-btn.ghost {
  background: rgba(244, 236, 221, 0.04);
  border: 1px solid rgba(201, 162, 76, 0.3);
  color: var(--marble);
}
.route-btn.solid {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 4px 12px -4px rgba(201, 162, 76, 0.5);
}
.app-dock {
  margin-top: auto;
  display: flex;
  background: rgba(20,16,11,0.9);
  border: 1px solid rgba(201, 162, 76, 0.22);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.app-dock-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--marble-mute);
}
.app-dock-tab.active {
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
}
.app-dock-tab.icon-only { max-width: 50px; }

/* floating chips */
.float-chip {
  position: absolute;
  background: rgba(20,16,11,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7);
  animation: chip-float 7s ease-in-out infinite;
  z-index: 6;
}
.float-chip-1 { top: 40px; right: 10px; animation-delay: .5s; }
.float-chip-2 { bottom: 90px; left: -20px; animation-delay: 1.6s; }
.float-chip-3 { bottom: 60px; right: 20px; animation-delay: 1.1s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-chip-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201, 162, 76, 0.15);
  color: var(--gold-bright);
}
.float-chip-text .ttl { font-size: 12px; font-weight: 600; color: var(--marble); }
.float-chip-text .sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--marble-mute);
  margin-top: 2px;
  text-transform: uppercase;
}
.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #69d27c;
  box-shadow: 0 0 0 0 rgba(105, 210, 124, 0.7);
  animation: pulseDot 1.6s ease-out infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(105, 210, 124, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(105, 210, 124, 0); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--bg-ink);
}
.marquee {
  display: flex;
  gap: 60px;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--marble-faint);
  font-style: italic;
}
.marquee span { display: inline-flex; align-items: center; gap: 60px; }
.marquee .dot { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 24px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(244,236,221,0.03), rgba(244,236,221,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s, background .5s;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 162, 76, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature:hover::before { opacity: 1; }

.feature.span-6 { grid-column: span 6; }
.feature.span-8 { grid-column: span 8; }
.feature.span-12 { grid-column: span 12; }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(201, 162, 76, 0.15), rgba(201, 162, 76, 0.05));
  border: 1px solid rgba(201, 162, 76, 0.25);
  display: grid; place-items: center;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

.feature-num {
  position: absolute;
  top: 24px; right: 28px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--marble-faint);
  letter-spacing: 0.18em;
}

.feature h3 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 14px;
  max-width: 18ch;
}
.feature p { color: var(--marble-mute); font-size: 14px; line-height: 1.6; }
.feature .meta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feature .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marble-dim);
  background: rgba(244,236,221,0.04);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ============================================================
   PORTAL SHOWCASE
   ============================================================ */
.portal {
  background: var(--bg-ink);
  padding: 180px 0;
  overflow: hidden;
  position: relative;
}
.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 162, 76, 0.12), transparent 50%);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.portal-stage {
  position: relative;
  aspect-ratio: 1/1;
  display: grid; place-items: center;
}
.portal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.portal-label {
  position: absolute;
  z-index: 2;
  text-align: center;
}
.portal-label .code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 8px;
}
.portal-label .ttl {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--marble);
  line-height: 1;
}

.portal-route {
  margin-top: 36px;
  background: rgba(20,16,11,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.portal-route-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.portal-route-head .mono { color: var(--gold); }

.route-strip {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}
.route-strip span {
  flex: 1;
  background: rgba(244,236,221,0.06);
  position: relative;
}
.route-strip span.done { background: var(--gold); }
.route-strip span.active { background: var(--gold-bright); box-shadow: 0 0 12px var(--gold); }

.route-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.route-stop {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.route-stop .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(244,236,221,0.04);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--marble-dim);
  flex-shrink: 0;
}
.route-stop.done .num { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.route-stop.active .num { background: transparent; border-color: var(--gold); color: var(--gold); }
.route-stop .nm { color: var(--marble-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   DUAL SECTION: 3D + AI
   ============================================================ */
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: linear-gradient(180deg, var(--bg-stone), var(--bg-ink));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}
.panel .eyebrow { margin-bottom: 22px; }
.panel h3 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 14ch;
}
.panel p { color: var(--marble-dim); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }

.model-stage {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(201, 162, 76, 0.25), transparent 50%),
    linear-gradient(180deg, #0a0805, #1a1410);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.model-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 76, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.model-temple {
  position: relative;
  width: 60%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
  animation: model-spin 18s linear infinite;
  transform-style: preserve-3d;
}
@keyframes model-spin {
  0%   { transform: rotateY(0deg) rotateX(6deg); }
  100% { transform: rotateY(360deg) rotateX(6deg); }
}
.model-platform {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 162, 76, 0.4), transparent 60%);
  filter: blur(4px);
}
.model-controls {
  position: absolute;
  top: 16px; right: 16px;
  display: flex; gap: 8px;
}
.model-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(20,16,11,0.7);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--marble-dim);
}

.ai-chat {
  flex: 1;
  background: rgba(14,10,6,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.ai-msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.ai-msg.user {
  align-self: flex-end;
  background: rgba(201, 162, 76, 0.14);
  border: 1px solid rgba(201, 162, 76, 0.25);
  color: var(--marble);
  border-bottom-right-radius: 4px;
}
.ai-msg.bot {
  align-self: flex-start;
  background: rgba(244,236,221,0.04);
  border: 1px solid var(--line);
  color: var(--marble-dim);
  border-bottom-left-radius: 4px;
}
.ai-msg .src {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.ai-typing {
  display: flex; gap: 5px;
  padding: 14px 16px;
  background: rgba(244,236,221,0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.ai-composer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: rgba(20,16,11,0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
}
.ai-composer span { font-size: 13px; color: var(--marble-mute); flex: 1; }
.ai-composer .send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center;
  color: var(--bg-deep);
}

/* ============================================================
   MAP + ALERT
   ============================================================ */
.map-section {
  padding: 180px 0;
  background: var(--bg-ink);
  position: relative;
  overflow: hidden;
}
.map-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.map-canvas {
  position: relative;
  background: linear-gradient(180deg, #1c1812, #0a0805);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 620px;
}
.map-canvas svg { width: 100%; height: 100%; }
.map-canvas-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 76, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 76, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.map-pin {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%);
}
.map-pin-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(20,16,11,0.92);
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold-bright);
  font-size: 14px;
  box-shadow: 0 0 0 0 rgba(201, 162, 76, 0.6);
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 76, 0.6); }
  100% { box-shadow: 0 0 0 18px rgba(201, 162, 76, 0); }
}
.map-pin-tail {
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.map-user {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--marble);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(74, 142, 139, 0.7);
  animation: pinPulse 1.6s ease-out infinite;
  z-index: 5;
}

.map-route-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  filter: drop-shadow(0 0 6px rgba(201, 162, 76, 0.6));
  animation: route-dash 24s linear infinite;
}
@keyframes route-dash { to { stroke-dashoffset: -500; } }

.map-area {
  fill: rgba(184, 85, 46, 0.15);
  stroke: rgba(184, 85, 46, 0.6);
  stroke-width: 1.5;
}
.map-area-2 {
  fill: rgba(74, 142, 139, 0.12);
  stroke: rgba(74, 142, 139, 0.6);
  stroke-width: 1.5;
}

.alert-card {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 86%;
  max-width: 380px;
  background: rgba(20,16,11,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 76, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; gap: 12px;
  align-items: center;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.6);
  animation: slide-in 1s var(--ease-out) infinite alternate;
}
@keyframes slide-in {
  0% { transform: translate(-50%, -6px); }
  100% { transform: translate(-50%, 0); }
}
.alert-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201, 162, 76, 0.18);
  display: grid; place-items: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.alert-text { flex: 1; }
.alert-text .ttl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.alert-text .sub {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--marble);
  line-height: 1;
}
.alert-text .meta { font-size: 10px; color: var(--marble-mute); margin-top: 4px; }
.alert-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(244,236,221,0.06);
  display: grid; place-items: center;
  color: var(--marble-dim);
  font-size: 14px;
}

.map-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.side-card {
  background: linear-gradient(180deg, rgba(244,236,221,0.03), rgba(244,236,221,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.side-card .eyebrow { margin-bottom: 18px; }
.side-card h3 { font-size: 28px; font-weight: 400; line-height: 1.1; margin-bottom: 14px; }
.side-card p { color: var(--marble-mute); font-size: 14px; line-height: 1.55; }

.side-card .stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
}
.stat .n { font-family: var(--font-display); font-size: 30px; color: var(--gold-bright); line-height: 1; }
.stat .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marble-mute); margin-top: 6px; }

/* ============================================================
   LANGUAGES
   ============================================================ */
.lang { padding: 140px 0; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.lang-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(244,236,221,0.03), rgba(244,236,221,0.01));
  transition: transform .4s var(--ease-out), border-color .4s;
  cursor: pointer;
}
.lang-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 76, 0.4); }
.lang-card .flag {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  background: linear-gradient(140deg, rgba(201, 162, 76, 0.15), rgba(201, 162, 76, 0.04));
  border: 1px solid rgba(201, 162, 76, 0.25);
  color: var(--gold-bright);
  margin-bottom: 22px;
}
.lang-card .name { font-family: var(--font-display); font-size: 26px; margin-bottom: 4px; }
.lang-card .native { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marble-mute); margin-bottom: 18px; }
.lang-card .phrase { font-size: 13px; color: var(--marble-dim); font-style: italic; line-height: 1.4; }

/* ============================================================
   FOOTER CTA
   ============================================================ */
.cta {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 162, 76, 0.2), transparent 60%);
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  width: 800px; height: 800px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 76, 0.18), transparent 60%);
  filter: blur(60px);
  animation: cta-pulse 5s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.cta-inner { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; }
.cta h2 {
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cta h2 em { font-style: italic; color: var(--gold-bright); }
.cta p { color: var(--marble-dim); font-size: 19px; max-width: 60ch; margin: 0 auto 50px; line-height: 1.55; }

.store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(20,16,11,0.7);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--marble);
  transition: all .3s var(--ease-out);
}
.store-btn:hover { background: rgba(244,236,221,0.05); border-color: var(--gold); transform: translateY(-2px); }
.store-btn .logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.store-btn .logo-appgallery { background: linear-gradient(140deg, #E8132F 0%, #C00C28 100%); }
.store-btn .logo-googleplay { background: #0E0A06; border: 1px solid rgba(244, 236, 221, 0.12); }
.store-btn .logo-appstore { background: linear-gradient(140deg, #1c1812, #050402); border: 1px solid rgba(244, 236, 221, 0.15); }
.store-btn .logo svg { display: block; }
.store-btn .txt { text-align: left; }
.store-btn .txt .a { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marble-mute); }
.store-btn .txt .b { font-family: var(--font-display); font-size: 20px; line-height: 1; margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: var(--bg-ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer .brand { margin-bottom: 16px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marble-mute);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  color: var(--marble-dim);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .3s;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marble-mute);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner, .portal-grid, .map-grid, .dual { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 30px; }
  .hero-right { height: 600px; }
  .feature, .feature.span-6, .feature.span-8 { grid-column: span 6; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  section { padding: 100px 0; }
  .container { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
  .feature, .feature.span-6, .feature.span-8 { grid-column: span 12; }
  .lang-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .panel { padding: 28px; min-height: 480px; }
  .route-stops { grid-template-columns: 1fr 1fr; }
}
