/* ============================================================
   SCORT — Investor Prototype
   Design System & Homepage Styles
   ============================================================ */

:root {
  /* Brand */
  --navy: #1a2744;
  --navy-deep: #0f1b2d;
  --navy-darker: #08111f;
  --gold: #c9a45c;
  --gold-light: #e8d5a8;
  --gold-glow: rgba(201, 164, 92, 0.35);
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #eef1f6;
  --gray-300: #c7cfdb;
  --gray-500: #6b7689;
  --gray-700: #3a4256;

  /* Surfaces */
  --bg: #07101e;
  --surface: #0f1b2d;
  --surface-2: #15243d;
  --surface-3: #1c2f4d;
  --border: rgba(201, 164, 92, 0.18);
  --border-strong: rgba(201, 164, 92, 0.45);

  /* Type */
  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Effects */
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(201, 164, 92, 0.2);

  /* Layout */
  --max-w: 1280px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--gray-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(201, 164, 92, 0.06);
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 18px 0 16px;
}
.section-head p {
  color: var(--gray-300);
  font-size: 17px;
  line-height: 1.6;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(8, 17, 31, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.1);
  transition: padding 0.3s ease;
}
.nav.scrolled { padding: 8px 0; }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  width: 50px;
  height: 50px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}
.nav-brand-tagline {
  color: #c9a45c;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-brand .mark { color: var(--gold); }
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  transition: all 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold); color: var(--navy-deep); }
.nav-toggle { display: none; }

/* Language toggle pill — always visible on desktop and mobile */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  margin-left: 12px;
  border: 1px solid rgba(201,164,92,0.4);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  transition: all .2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-toggle:hover { background: rgba(201,164,92,0.1); }
.lang-toggle .sep { opacity: 0.4; padding: 0 2px; }
.lang-toggle .active { color: var(--white); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  box-shadow: 0 10px 30px -10px var(--gold-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px -10px var(--gold-glow); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(201, 164, 92, 0.08); border-color: var(--gold); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gray-100);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 164, 92, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(26, 39, 68, 0.9), transparent 50%),
    var(--navy-darker);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 164, 92, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 92, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-content h1 {
  font-size: clamp(44px, 6vw, 78px);
  margin: 24px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #c9a45c 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--gray-300);
  margin-bottom: 40px;
  max-width: 580px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hero-stats .stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold);
  font-weight: 600;
}
.hero-stats .stat .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-top: 6px;
}

/* Hero ecosystem orb */
.hero-orb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 540px;
  margin: 0 auto;
}
.hero-orb .core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 60%, var(--navy) 100%);
  box-shadow: 0 0 80px var(--gold-glow), inset 0 0 30px rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  animation: corePulse 4s ease-in-out infinite;
}
.hero-orb .core img { width: 60%; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 80px var(--gold-glow), inset 0 0 30px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 130px var(--gold-glow), inset 0 0 30px rgba(0,0,0,0.4); }
}
.hero-orb .ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(201, 164, 92, 0.3);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-orb .ring.r2 { inset: 12%; animation-duration: 60s; animation-direction: reverse; border-style: solid; border-color: rgba(201, 164, 92, 0.15); }
.hero-orb .ring.r3 { inset: 24%; animation-duration: 80s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-orb .node {
  position: absolute;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  animation: floatNode 6s ease-in-out infinite;
}
.hero-orb .node:nth-child(4) { top: 0; left: 50%; transform: translateX(-50%); }
.hero-orb .node:nth-child(5) { top: 50%; right: 0; transform: translateY(-50%); animation-delay: -1.5s; }
.hero-orb .node:nth-child(6) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: -3s; }
.hero-orb .node:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); animation-delay: -4.5s; }
.hero-orb .node:nth-child(8) { top: 12%; right: 12%; animation-delay: -2s; }
.hero-orb .node:nth-child(9) { bottom: 12%; right: 12%; animation-delay: -3.5s; }
.hero-orb .node:nth-child(10) { bottom: 12%; left: 12%; animation-delay: -5s; }
.hero-orb .node:nth-child(11) { top: 12%; left: 12%; animation-delay: -0.8s; }
@keyframes floatNode {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ============================================================
   FRAGMENTED SECTION
   ============================================================ */
.fragmented {
  background: linear-gradient(180deg, var(--navy-darker), var(--navy-deep));
}
.frag-stage {
  position: relative;
  height: 480px;
  max-width: 920px;
  margin: 0 auto;
}
.frag-island {
  position: absolute;
  padding: 14px 22px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  white-space: nowrap;
  transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.frag-stage.connected .frag-island {
  border-color: var(--border-strong);
  color: var(--white);
  box-shadow: 0 0 30px rgba(201, 164, 92, 0.15);
}
.frag-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 130px; height: 130px;
  margin: -65px 0 0 -65px;
  background: radial-gradient(circle, var(--gold), var(--navy) 80%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  box-shadow: 0 0 60px var(--gold-glow);
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.frag-stage.connected .frag-center { opacity: 1; transform: scale(1); }
.frag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.frag-svg line {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 1s ease;
}
.frag-stage.connected .frag-svg line { opacity: 0.4; animation: dashFlow 20s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -100; } }

.frag-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 50px;
}
.frag-toggle button {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.06em;
  transition: all 0.25s;
}
.frag-toggle button.active {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

/* ============================================================
   ECOSYSTEM UNIVERSE
   ============================================================ */
.ecosystem {
  background: radial-gradient(ellipse at center, var(--navy) 0%, var(--navy-darker) 70%);
}
.universe {
  position: relative;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  margin: 0 auto;
}
.universe-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 18%; aspect-ratio: 1;
  margin: -9% 0 0 -9%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 50%, var(--navy) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 60px var(--gold-glow), inset 0 0 30px rgba(0,0,0,0.4);
  z-index: 5;
}
.universe-core img { width: 70%; }
.universe-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(201, 164, 92, 0.18);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}
.universe-module {
  position: absolute;
  width: 22%;
  padding: 16px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.universe-module:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(201,164,92,0.25);
}
.universe-module .icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.universe-module .title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.universe-module .desc {
  font-size: 11px;
  color: var(--gray-300);
  margin-top: 6px;
  line-height: 1.4;
}

/* 8 modules positioned around */
.universe-module.m1 { top: 0; left: 50%; transform: translateX(-50%); }
.universe-module.m2 { top: 14%; right: 4%; }
.universe-module.m3 { top: 50%; right: 0; transform: translateY(-50%); }
.universe-module.m4 { bottom: 14%; right: 4%; }
.universe-module.m5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.universe-module.m6 { bottom: 14%; left: 4%; }
.universe-module.m7 { top: 50%; left: 0; transform: translateY(-50%); }
.universe-module.m8 { top: 14%; left: 4%; }

@media (max-width: 760px) {
  .universe { width: 100%; aspect-ratio: auto; }
  .universe-orbit, .universe-core { display: none; }
  .universe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .universe-module { position: static; width: auto; transform: none !important; }
}

/* ============================================================
   AI ENGINE
   ============================================================ */
.ai-engine {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,164,92,0.1), transparent 50%),
    var(--navy-deep);
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ai-grid { grid-template-columns: 1fr; } }

.ai-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(201,164,92,0.05));
  opacity: 0;
  transition: opacity 0.3s;
}
.ai-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-glow); }
.ai-card:hover::before { opacity: 1; }
.ai-card .ai-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,164,92,0.2), rgba(201,164,92,0.05));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.ai-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}
.ai-card .feats {
  list-style: none;
  font-size: 13px;
  color: var(--gray-300);
}
.ai-card .feats li {
  padding: 4px 0 4px 16px;
  position: relative;
}
.ai-card .feats li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   LIFECYCLE
   ============================================================ */
.lifecycle { background: var(--navy-darker); }
.lifecycle-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 60px 0 20px;
  overflow-x: auto;
  gap: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.lifecycle-track::-webkit-scrollbar { display: none; }
.lifecycle-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 0;
}
.lifecycle-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1 0 110px;
}
.lifecycle-step .dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: all 0.3s;
}
.lifecycle-step:hover .dot {
  background: var(--gold);
  color: var(--navy-deep);
  transform: scale(1.1);
}
.lifecycle-step .lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.04em;
}

/* ============================================================
   MARKET
   ============================================================ */
.market {
  background: linear-gradient(180deg, var(--navy-darker), var(--navy));
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
.market-card {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.market-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(201,164,92,0.15) 80%, transparent 90%);
  animation: spin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
}
.market-card:hover::after { opacity: 1; }
.market-card > * { position: relative; z-index: 1; }
.market-card .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--gold);
  font-weight: 600;
  display: block;
  line-height: 1;
}
.market-card .num .currency { font-size: 0.55em; color: var(--gold-light); margin-right: 4px; }
.market-card .num .unit { font-size: 0.45em; color: var(--gray-300); margin-left: 6px; letter-spacing: 0.04em; }
.market-card .lbl {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.market-message {
  text-align: center;
  margin-top: 60px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--gold-light);
  font-style: italic;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   REVENUE GALAXY
   ============================================================ */
.revenue {
  background: var(--navy-darker);
  overflow: hidden;
}
.galaxy {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
}
.galaxy-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 16%; aspect-ratio: 1;
  margin: -8% 0 0 -8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--navy) 80%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 0 80px var(--gold-glow);
  z-index: 5;
}
.galaxy-core img {
  width: 70px;
  height: auto;
}
.galaxy-orbit {
  position: absolute;
  inset: 35%;
  border: 1px dashed rgba(201, 164, 92, 0.12);
  border-radius: 50%;
}
.galaxy-orbit.o2 { inset: 25%; }
.galaxy-orbit.o3 { inset: 15%; }
.galaxy .stream {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 20px;
  white-space: normal;
  max-width: 120px;
  text-align: center;
  line-height: 1.3;
  animation: orbitStream var(--dur, 60s) linear infinite;
}
@keyframes orbitStream {
  to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg) translate(-50%, -50%); }
}

/* ============================================================
   JOURNEYS
   ============================================================ */
.journeys { background: var(--navy-deep); }
.journey-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.journey-tab {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.06em;
  transition: all 0.25s;
  cursor: pointer;
  text-transform: uppercase;
}
.journey-tab:hover { color: var(--white); border-color: var(--gold); }
.journey-tab.active {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.journey-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
}
@media (max-width: 900px) { .journey-track { grid-template-columns: repeat(2, 1fr); } }
.journey-step {
  padding: 28px 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: all 0.25s;
}
.journey-step:hover { border-color: var(--gold); transform: translateY(-3px); }
.journey-step .step-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
  display: block;
}
.journey-step .step-lbl {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.journey-step .step-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

/* ============================================================
   FOOTER / FINAL CTA
   ============================================================ */
.final-cta {
  background:
    radial-gradient(ellipse at center, rgba(201,164,92,0.12), transparent 60%),
    var(--navy-darker);
  text-align: center;
  padding: 140px 0;
}
.final-cta h2 {
  font-size: clamp(32px, 4vw, 50px);
  max-width: 780px;
  margin: 0 auto 24px;
}
.final-cta p {
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
}
.final-cta .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

footer {
  padding: 60px 0 40px;
  background: #050b16;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray-500);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .foot-links { display: flex; gap: 28px; }
footer a:hover { color: var(--gold); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SHARED PAGE COMPONENTS
   ============================================================ */

/* ---- Mega nav dropdown ---- */
.nav-links .has-mega { position: relative; }
.nav-links .has-mega > a::after {
  content: '▾';
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.6;
}
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(720px, 90vw);
  background: rgba(15, 27, 45, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}
/* Bridge: invisible padding above the mega panel fills the hover gap */
.mega::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-links .has-mega:hover .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--gray-300);
  transition: all 0.2s;
}
.mega a:hover {
  background: rgba(201,164,92,0.08);
  color: var(--gold);
}
.mega a strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}
.mega a small {
  font-size: 11px;
  color: var(--gray-500);
}

/* ---- Page hero (sub-pages) ---- */
.page-hero {
  padding: 180px 0 80px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(201,164,92,0.18), transparent 60%),
    var(--navy-darker);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 18px 0 20px;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
}
.page-hero p {
  font-size: 18px;
  color: var(--gray-300);
  max-width: 720px;
  line-height: 1.65;
}
.page-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.page-hero-stats .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  font-weight: 600;
}
.page-hero-stats .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ---- Breadcrumb ---- */
.crumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--gold); }

/* ---- Section variations ---- */
.sec-light { background: var(--navy-deep); }
.sec-dark { background: var(--navy-darker); }
.sec-mid { background: linear-gradient(180deg, var(--navy-darker), var(--navy-deep)); }

/* ---- Generic card grid ---- */
.cards {
  display: grid;
  gap: 20px;
}
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}
.card .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,164,92,0.2), rgba(201,164,92,0.05));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.6;
}
.card .meta {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-500);
}
.card .meta span { color: var(--gold); font-weight: 600; }

/* ---- Comparison table ---- */
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}
.cmp-table th, .cmp-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.cmp-table thead th {
  background: var(--surface-2);
  color: var(--gray-300);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cmp-table thead th.scort {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
}
.cmp-table tbody tr:hover { background: rgba(201,164,92,0.04); }
.cmp-table td:first-child, .cmp-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--white);
}
.cmp-table .yes { color: #5fc77a; font-weight: 700; }
.cmp-table .no { color: #6b7689; }
.cmp-table .partial { color: var(--gold-light); }
.cmp-table .scort-cell { background: rgba(201,164,92,0.06); color: var(--gold); font-weight: 700; }
.cmp-wrap { overflow-x: auto; }

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.filter-bar input, .filter-bar select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gray-100);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  flex: 1 1 160px;
  min-width: 0;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--gold); }
.chip {
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--gold); border-color: var(--border-strong); }
.chip.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

/* ---- Property listing card ---- */
.listing {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.listing:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.listing .img {
  height: 200px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  position: relative;
  display: grid;
  place-items: center;
  font-size: 56px;
  overflow: hidden;
}
.listing .img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,164,92,0.25), transparent 50%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
}
.listing .badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 12px;
  background: rgba(201,164,92,0.95);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.listing .body { padding: 20px; }
.listing .price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  font-weight: 600;
}
.listing .ttl {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 4px 0 6px;
}
.listing .loc {
  font-size: 13px;
  color: var(--gray-500);
}
.listing .specs {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-300);
}
.listing .specs span strong { color: var(--gold); margin-right: 4px; }

/* ---- Dashboard / KPIs ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.kpi {
  padding: 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.kpi .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}
.kpi .val {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  font-weight: 600;
  margin-top: 6px;
  line-height: 1;
}
.kpi .delta {
  margin-top: 10px;
  font-size: 12px;
  color: #5fc77a;
  font-weight: 600;
}
.kpi .delta.down { color: #e88787; }
.kpi .spark {
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 36px;
  opacity: 0.6;
}
.kpi .spark path { fill: none; stroke: var(--gold); stroke-width: 1.5; }

.panel {
  padding: 28px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.panel h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}
.panel .panel-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.dash-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .dash-row { grid-template-columns: 1fr; } }

/* Bar chart (CSS only) */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bar-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), rgba(201,164,92,0.2));
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: filter 0.2s;
}
.bar-chart .bar:hover { filter: brightness(1.2); }
.bar-chart .bar::after {
  content: attr(data-lbl);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}

/* Donut */
.donut {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--gold) 0 35%,
    var(--gold-light) 35% 60%,
    var(--surface-3) 60% 80%,
    var(--gray-700) 80% 100%
  );
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
}
.donut::before {
  content: '';
  position: absolute;
  inset: 22%;
  background: var(--surface);
  border-radius: 50%;
}
.donut .donut-label {
  position: relative;
  text-align: center;
  z-index: 1;
}
.donut .donut-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
}
.donut .donut-label small {
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.legend { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend .lg { display: flex; align-items: center; gap: 10px; }
.legend .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.legend .dot.l2 { background: var(--gold-light); }
.legend .dot.l3 { background: var(--surface-3); }
.legend .dot.l4 { background: var(--gray-700); }
.legend .lg span { margin-left: auto; color: var(--gold); font-weight: 600; }

/* Activity feed */
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed-item {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(201,164,92,0.04);
  border: 1px solid rgba(201,164,92,0.08);
}
.feed-item .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(201,164,92,0.15);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.feed-item .body { font-size: 13px; color: var(--gray-100); line-height: 1.5; }
.feed-item .body small { display: block; color: var(--gray-500); font-size: 11px; margin-top: 4px; }

/* ---- Chat / AI demo ---- */
.chat-shell {
  background: linear-gradient(180deg, var(--surface), var(--navy-darker));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 540px;
}
.chat-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--navy));
}
.chat-head h4 { font-family: var(--font-sans); font-size: 14px; }
.chat-head p { font-size: 11px; color: #5fc77a; margin-top: 2px; letter-spacing: 0.1em; text-transform: uppercase; }
.chat-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble.ai strong { color: var(--gold); }
.chat-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.chat-foot input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 100px;
  color: var(--gray-100);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.chat-foot button {
  padding: 0 22px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ---- World map (CSS) ---- */
.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  fill: #2a3a5c;
  opacity: 0.18;
}
.world-pin { z-index: 1; }
.world-map {
  position: relative;
  aspect-ratio: 2 / 1;
  width: 100%;
  background:
    radial-gradient(ellipse at center, rgba(201,164,92,0.05), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image:
    radial-gradient(circle, rgba(201,164,92,0.18) 1px, transparent 1px),
    var(--surface);
  background-size: 14px 14px, auto;
}
.world-pin {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(201,164,92,0.2), 0 0 20px var(--gold);
  cursor: pointer;
  animation: pinPulse 2.4s ease-in-out infinite;
}
.world-pin::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  background: var(--navy-darker);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.world-pin:hover::after { opacity: 1; }
.world-pin.phase-1 { background: var(--gold); }
.world-pin.phase-2 { background: var(--gold-light); animation-delay: 0.2s; }
.world-pin.phase-3 { background: #ffd277; animation-delay: 0.4s; }
.world-pin.phase-4 { background: #b8d4ff; animation-delay: 0.6s; }
.world-pin.phase-5 { background: #c19af4; animation-delay: 0.8s; }
.world-pin.phase-6 { background: #87dfb6; animation-delay: 1s; }
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(201,164,92,0.2), 0 0 20px var(--gold); }
  50% { box-shadow: 0 0 0 14px rgba(201,164,92,0.05), 0 0 30px var(--gold); }
}

.phase-list { display: grid; gap: 14px; }
.phase-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.phase-row:hover { border-color: var(--gold); transform: translateX(4px); }
.phase-row .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
}
.phase-row .ttl { font-size: 16px; font-weight: 600; color: var(--white); }
.phase-row .sub { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.phase-row .badge {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phase-row .badge.live { background: rgba(95,199,122,0.15); color: #5fc77a; border: 1px solid rgba(95,199,122,0.3); }
.phase-row .badge.next { background: rgba(201,164,92,0.15); color: var(--gold); border: 1px solid var(--border-strong); }
.phase-row .badge.future { background: rgba(107,118,137,0.15); color: var(--gray-500); border: 1px solid rgba(107,118,137,0.2); }

/* ---- Pricing / Tier cards ---- */
.tier {
  padding: 36px 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--gold); }
.tier.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,164,92,0.12), var(--surface));
}
.tier.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tier .ttl {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
}
.tier .price {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  font-weight: 600;
}
.tier .price small {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
}
.tier ul { list-style: none; margin: 24px 0; }
.tier ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--gray-300);
}
.tier ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Form ---- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gray-100);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }

/* ---- Two-column split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 14px 0 18px;
}
.split p { color: var(--gray-300); font-size: 16px; line-height: 1.7; }
.split .highlights {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.split .highlights li {
  padding: 10px 14px 10px 38px;
  position: relative;
  background: rgba(201,164,92,0.04);
  border: 1px solid rgba(201,164,92,0.1);
  border-radius: 10px;
  font-size: 14px;
}
.split .highlights li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
}

/* ---- Mortgage calculator preview ---- */
.calc-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 32px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (max-width: 800px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-result {
  text-align: center;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(201,164,92,0.12), transparent);
  border-radius: var(--radius);
  padding: 40px 20px;
}
.calc-result .big {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.calc-result small {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 10px;
  display: block;
}

/* ---- Tag pill ---- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(201,164,92,0.1);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}
.tag.green { background: rgba(95,199,122,0.1); color: #5fc77a; border-color: rgba(95,199,122,0.3); }
.tag.blue { background: rgba(110,160,255,0.1); color: #8eb6ff; border-color: rgba(110,160,255,0.3); }

/* ---- Full universe (ecosystem page) ---- */
.eco-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .eco-stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eco-stack { grid-template-columns: 1fr; } }

.eco-cell {
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.eco-cell:hover { transform: translateY(-4px); border-color: var(--gold); }
.eco-cell .ico { font-size: 32px; margin-bottom: 14px; }
.eco-cell h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}
.eco-cell ul {
  list-style: none;
  font-size: 13px;
  color: var(--gray-300);
}
.eco-cell ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.eco-cell ul li:last-child { border-bottom: 0; }

/* ---- Revenue chip grid ---- */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.rev-chip {
  padding: 22px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.rev-chip:hover { border-color: var(--gold); transform: translateY(-3px); }
.rev-chip::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(201,164,92,0.15), transparent 70%);
}
.rev-chip .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.rev-chip h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  margin: 6px 0 8px;
  color: var(--white);
}
.rev-chip p { font-size: 13px; color: var(--gray-300); line-height: 1.5; }

/* ---- Stepper ---- */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 800px) { .stepper { grid-template-columns: 1fr; } }
.step-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step-card .step-n {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.step-card h4 { font-family: var(--font-sans); font-size: 15px; margin: 12px 0 8px; }
.step-card p { font-size: 13px; color: var(--gray-300); line-height: 1.5; }

/* ---- Process flow line ---- */
.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.flow-node {
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.flow-arrow { color: var(--gold); font-size: 18px; }

/* ---- Section spacing helpers ---- */
.section-tight { padding: 80px 0; }
.section-narrow { padding: 60px 0; }

/* ---- Avatar circles ---- */
.av-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 14px;
}

/* ---- Status dot ---- */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5fc77a;
  box-shadow: 0 0 0 4px rgba(95,199,122,0.2);
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================================
   MOBILE — ≤ 768px
   ============================================================ */
@media (max-width: 768px) {

  /* ===== Container ===== */
  .container { padding: 0 16px; }

  /* ===== Sections ===== */
  section { padding: 64px 0; }
  .section-tight { padding: 52px 0; }
  .section-narrow { padding: 40px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .section-head p { font-size: 15px; }

  /* ===== Nav ===== */
  .nav .container {
    flex-wrap: wrap;
    padding: 0 16px;
    gap: 0;
  }

  /* Brand shrinks */
  .nav-brand { flex: 1; gap: 8px; }
  .nav-brand img { width: 36px; height: 36px; }
  .nav-brand-name { font-size: 18px; }
  .nav-brand-tagline { font-size: 9px; }

  /* CTA smaller */
  .nav-cta { padding: 7px 12px; font-size: 11px; }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    font-size: 20px;
    color: var(--gold);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(201,164,92,0.06);
    transition: background 0.2s;
  }
  .nav-toggle:hover { background: rgba(201,164,92,0.14); }

  /* Nav links — hidden by default, full-width row below header */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    gap: 0;
    background: rgba(8, 17, 31, 0.98);
    border-top: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  .nav-links.nav-open { display: flex; }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(201,164,92,0.08);
  }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > a {
    display: block;
    padding: 11px 20px;
  }

  /* Lang toggle pill — compact on mobile, sits between CTA and hamburger */
  .lang-toggle {
    padding: 5px 10px;
    font-size: 11px;
    margin: 0 6px;
  }

  /* Mega menus — inline on mobile, collapsed until group label is tapped */
  .nav-links .has-mega > a::after { display: none; }
  .mega {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none !important;
    width: 100%;
    border-radius: 0;
    background: rgba(15, 27, 45, 0.5);
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 4px 0 10px 16px;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .has-mega.mega-open > .mega { display: grid; }
  .mega::before { display: none; }
  .mega a { padding: 8px 12px; font-size: 12px; }
  .mega a strong { font-size: 12px; }

  /* ===== Hero ===== */
  .hero { padding: 110px 0 56px; min-height: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-content h1 { font-size: clamp(30px, 8vw, 42px); margin: 16px 0 20px; }
  .hero-content p { font-size: 15px; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
  .hero-stats .stat .num { font-size: 24px; }
  .hero-orb { display: none; }

  /* ===== Fragmentation ===== */
  .frag-stage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    gap: 10px;
    position: static;
    max-width: none;
    padding: 0;
  }
  .frag-island {
    position: static !important;
    transform: none !important;
    white-space: normal;
    text-align: center;
    font-size: 13px;
    padding: 10px 12px;
  }
  .frag-center { display: none; }
  .frag-svg { display: none; }
  .frag-toggle { flex-wrap: wrap; gap: 10px; margin-top: 28px; }

  /* ===== Ecosystem Universe ===== */
  /* already has a 760px rule; reinforce for 768px */
  .universe { width: 100%; aspect-ratio: auto; }
  .universe-orbit, .universe-core { display: none; }
  .universe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .universe-module { position: static; width: auto; transform: none !important; }

  /* ===== AI Engine ===== */
  .ai-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== Lifecycle ===== */
  .lifecycle-track { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 16px; }
  .lifecycle-step { flex: 0 0 90px; }

  /* ===== Market counters ===== */
  .market-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== Revenue Galaxy ===== */
  .galaxy {
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 0 20px;
  }
  .galaxy-orbit, .galaxy-core { display: none; }
  .galaxy .stream {
    position: static;
    transform: none;
    animation: none;
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  /* ===== Journeys ===== */
  .journey-track { grid-template-columns: 1fr; }
  .journey-tabs { gap: 8px; }
  .journey-tab { padding: 10px 16px; font-size: 12px; }

  /* ===== Final CTA ===== */
  .final-cta { padding: 80px 0; }
  .final-cta .btn-row { flex-direction: column; align-items: center; gap: 10px; }
  .final-cta .btn-row .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* ===== Page hero (sub-pages) ===== */
  .page-hero { padding: 110px 0 52px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 38px); }
  .page-hero p { font-size: 15px; }
  .page-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }

  /* ===== Generic cards & grids ===== */
  .cards.cols-2,
  .cards.cols-3,
  .cards.cols-4 { grid-template-columns: 1fr; }
  .eco-stack { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }

  /* ===== Comparison / tables ===== */
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ===== Dashboard KPIs ===== */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }

  /* ===== Phase rows ===== */
  .phase-row { grid-template-columns: 48px 1fr; }
  .phase-row .badge { display: none; }

  /* ===== Footer ===== */
  footer .container { flex-direction: column; text-align: center; gap: 16px; }
  footer .foot-links { flex-wrap: wrap; justify-content: center; gap: 14px; }

  /* ===== Forms ===== */
  .form-grid { grid-template-columns: 1fr; }
  .calc-shell { grid-template-columns: 1fr; }

  /* ===== Typography ===== */
  h1 { font-size: clamp(28px, 7vw, 40px); }
  h2 { font-size: clamp(22px, 5.5vw, 32px); }
}
