/* ================================================
   GENESIS REVENUE SYSTEMS — Design System v2
   Premium Institutional | Revenue Infrastructure
   ================================================ */

:root {
  --bg:          #04060b;
  --bg-2:        #070b12;
  --surface:     #0b121d;
  --surface-2:   #0f1928;
  --surface-3:   #131e30;
  --ink:         #eef3fb;
  --ink-2:       #d4dded;
  --muted:       #9aa8bd;
  --muted-2:     #5e6e82;
  --line:        #1a2739;
  --line-2:      #263750;
  --line-3:      #334d6e;
  --gold:        #d7b55b;
  --gold-2:      #f0d17a;
  --gold-3:      #c9a44a;
  --gold-soft:   rgba(215,181,91,0.09);
  --gold-soft-2: rgba(215,181,91,0.16);
  --gold-border: rgba(215,181,91,0.22);
  --gold-border-2: rgba(215,181,91,0.40);
  --green:       #3fc975;
  --green-soft:  rgba(63,201,117,0.12);
  --radius:      14px;
  --radius-sm:   10px;
  --radius-xs:   7px;
  --radius-lg:   22px;
  --shadow-lg:   0 32px 72px rgba(0,0,0,0.58);
  --shadow-md:   0 16px 38px rgba(0,0,0,0.38);
  --shadow-sm:   0 6px 16px rgba(0,0,0,0.28);
  --glow-gold:   0 0 48px rgba(215,181,91,0.13), 0 0 96px rgba(215,181,91,0.05);
  --glow-gold-sm:0 0 22px rgba(215,181,91,0.24);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(1400px 700px at 90% -8%, rgba(215,181,91,0.09), transparent 58%),
    radial-gradient(900px 600px at -8% -10%, rgba(45,72,109,0.17), transparent 54%),
    radial-gradient(700px 500px at 50% 110%, rgba(79,128,220,0.05), transparent 60%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-size: auto,auto,auto,44px 44px,44px 44px,auto;
}

a { color: inherit; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

h1,h2,h3 {
  margin: 0 0 12px;
  line-height: 1.06;
  letter-spacing: -0.028em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 800;
  max-width: 14ch;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 760;
}
h3 { font-size: 1.28rem; font-weight: 700; }

.accent { color: var(--gold); }

.wrap {
  width: min(1340px, 93vw);
  margin: 0 auto;
}

/* ── Animated background orbs ── */
@keyframes orb-drift-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-24px,18px) scale(1.04); }
}
@keyframes orb-drift-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(18px,-14px) scale(1.03); }
}

/* ── Shimmer sweep animation ── */
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── Reveal animation ── */
@keyframes reveal-up {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:none; }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4,6,11,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38,55,80,0.52);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo-wrap {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e2ebf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.84rem;
}
.nav-links a {
  text-decoration: none;
  color: #a8b4c8;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: #f1f5fd; }

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(53,72,98,0.85);
  border-radius: 8px;
  background: rgba(11,17,26,0.9);
  color: #c7d2e5;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(38,55,80,0.8);
  background: rgba(9,13,20,0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #dbe5f5;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Buttons ── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn-primary {
  color: #090c12;
  border-color: var(--gold-3);
  background: linear-gradient(135deg, #f4da82 0%, #d7b55b 55%, #be993e 100%);
  box-shadow: 0 4px 20px rgba(215,181,91,0.24);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: none;
  transition: none;
}
.btn-primary:hover::before {
  animation: shimmer 0.5s ease forwards;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 8px 30px rgba(215,181,91,0.38), var(--glow-gold-sm);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(20,30,46,0.92), rgba(12,18,28,0.92));
  border-color: var(--line-2);
  color: #d0daf0;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--line-3);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 0.96rem;
  border-radius: 14px;
  letter-spacing: 0.025em;
}

/* ── Sections ── */
main section { padding: 96px 0; }

.section-alt {
  background:
    linear-gradient(180deg, rgba(8,13,22,0.96) 0%, rgba(6,10,18,0.92) 100%);
  border-top: 1px solid rgba(38,55,80,0.85);
  border-bottom: 1px solid rgba(38,55,80,0.85);
  position: relative;
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}
.section-alt > * { position: relative; z-index: 1; }
.section-cta {
  background:
    radial-gradient(900px 450px at 50% 50%, rgba(215,181,91,0.055), transparent 68%),
    linear-gradient(180deg, rgba(14,22,34,0.82), rgba(8,12,20,0.65));
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

/* ── Section labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.71rem;
  letter-spacing: 0.13em;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-label::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.75;
}
.section-title { max-width: 24ch; }
.section-intro {
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.04rem;
  line-height: 1.72;
}

/* ── Hero ── */
.hero {
  padding-top: 116px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}
.hero-bg-orb-a {
  width: 640px; height: 420px;
  background: rgba(215,181,91,0.07);
  top: -80px; right: -40px;
  animation: orb-drift-a 14s ease-in-out infinite;
}
.hero-bg-orb-b {
  width: 480px; height: 360px;
  background: rgba(45,72,130,0.11);
  bottom: -60px; left: -40px;
  animation: orb-drift-b 18s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(215,181,91,0.44);
  background: rgba(18,12,4,0.82);
  color: #dfc478;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.10em;
  font-weight: 800;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
  flex: 0 0 auto;
}

.hero p.sub {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.12rem;
  line-height: 1.72;
  margin-top: 4px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid rgba(38,55,80,0.78);
  background: rgba(8,12,20,0.76);
  color: #8fa0b8;
  font-size: 0.83rem;
  padding: 10px 16px;
}
.trust-bar::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
  opacity: 0.85;
}

/* ── Panel (base) ── */
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,23,36,0.96), rgba(10,16,24,0.96));
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.025);
}

/* ── Hero System Panel ── */
.hero-system {
  aspect-ratio: 4/3;
  padding: 28px;
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg), var(--glow-gold);
  display: grid;
  grid-template-columns: 1fr 188px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "diagram stat" "diagram log";
  gap: 14px 18px;
  align-items: start;
  background:
    linear-gradient(150deg, rgba(4,7,12,0.88) 0%, rgba(4,7,12,0.72) 55%, rgba(4,7,12,0.52) 100%),
    radial-gradient(600px 340px at 70% 60%, rgba(215,181,91,0.11), transparent 62%),
    image-set(
      url("geai-assets/81a8ec4c269cbbe7a02e0069f458d0b55913aa3d.avif") type("image/avif"),
      url("geai-hero-ref.png") type("image/png")
    ),
    linear-gradient(180deg, #121a28, #0b121d);
  background-position: center,center,50% 52%,center;
  background-repeat: no-repeat,no-repeat,no-repeat,no-repeat;
  background-size: cover,cover,cover,cover;
}

.home-hero {
  background:
    linear-gradient(150deg, rgba(4,7,12,0.88) 0%, rgba(4,7,12,0.72) 55%, rgba(4,7,12,0.52) 100%),
    radial-gradient(600px 340px at 70% 60%, rgba(215,181,91,0.11), transparent 62%),
    url("home-hero.jpg"),
    linear-gradient(180deg, #121a28, #0b121d);
  background-position: center, center, 50% 52%, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover, cover;
}
.hero-system::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(212,175,55,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: 1;
}
.hero-system::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.30) 0%, transparent 60%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Hero system: abstract variant (vertical pages) ── */
.hero-system-abstract {
  background:
    radial-gradient(700px 400px at 30% 25%, rgba(215,181,91,0.07), transparent 62%),
    radial-gradient(500px 350px at 80% 75%, rgba(45,72,130,0.10), transparent 56%),
    linear-gradient(135deg, #0e1928 0%, #090f18 100%);
  background-size: auto,auto,auto;
}
.hero-system-abstract::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(212,175,55,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: 1;
}
.hero-system-abstract::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Diagram inside hero panel ── */
.diagram {
  grid-area: diagram;
  position: relative;
  z-index: 3;
}
.diagram-label {
  color: var(--muted-2);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 14px;
}
.diagram-track {
  display: grid;
  gap: 7px;
  width: min(300px, 100%);
}
.diagram-node {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(55,78,112,0.95);
  border-radius: 8px;
  background: rgba(4,8,16,0.94);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #dbe4f1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.node-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.node-dot.green {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.node-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.node-tag {
  margin-left: auto;
  background: var(--green-soft);
  border: 1px solid rgba(63,201,117,0.20);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.node-tag.gold {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
}
.diagram-arrow {
  padding-left: 18px;
  color: var(--gold-2);
  font-size: 0.75rem;
  opacity: 0.65;
}

/* ── Stat & log chips (right column of hero grid) ── */
.stat-chip {
  grid-area: stat;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(215,181,91,0.50);
  border-radius: 11px;
  background: rgba(4,6,11,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(215,181,91,0.10) inset;
}
.stat-chip strong {
  display: block;
  margin-top: 6px;
  color: var(--gold-2);
  letter-spacing: -0.04em;
  font-size: 1.9rem;
  font-weight: 800;
  text-shadow: 0 0 28px rgba(215,181,91,0.35);
}
.log-chip {
  grid-area: log;
  align-self: end;
  position: relative;
  z-index: 4;
  width: auto;
  border: 1px solid rgba(215,181,91,0.26);
  border-radius: 11px;
  background: rgba(7,11,19,0.94);
  backdrop-filter: blur(8px);
  padding: 14px 16px;
}
.log-chip-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.66rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.log-chip-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  flex: 0 0 auto;
}
.log-chip p {
  margin: 0;
  color: #cdd8ee;
  font-size: 0.83rem;
  line-height: 1.52;
}

/* ── Flow Strip ── */
.flow-strip {
  padding: 0;
  background: rgba(4,7,12,0.92);
  border-top: 1px solid rgba(30,45,65,0.9);
  border-bottom: 1px solid rgba(30,45,65,0.9);
}
.flow-strip .wrap { padding: 0; }
.flow-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  counter-reset: flow-step;
  position: relative;
}
/* Horizontal connector thread behind the dots */
.flow-grid::after {
  content: "";
  position: absolute;
  top: calc(50% - 12px);
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,181,91,0.13) 15%, rgba(215,181,91,0.13) 85%, transparent);
  pointer-events: none;
  z-index: 0;
}
.flow-node {
  counter-increment: flow-step;
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 20px;
  color: rgba(120,140,165,0.70);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: color 0.22s;
  border: none;
  background: transparent;
}
/* Circle dot containing the step number */
.flow-node::before {
  content: "0" counter(flow-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(215,181,91,0.18);
  background: rgba(6,10,18,0.98);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: rgba(215,181,91,0.30);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
  flex-shrink: 0;
}
.flow-node:hover {
  color: rgba(200,216,235,0.85);
}
.flow-node:hover::before {
  border-color: rgba(215,181,91,0.30);
  color: rgba(215,181,91,0.55);
}
.flow-node.active {
  color: var(--gold-2);
}
.flow-node.active::before {
  border-color: rgba(215,181,91,0.75);
  color: var(--gold-2);
  background: rgba(215,181,91,0.10);
  box-shadow: 0 0 18px rgba(215,181,91,0.28), 0 0 0 4px rgba(215,181,91,0.06);
}
.flow-arrow { display: none; }

/* ── Problem Section ── */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.problem-bullets {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.problem-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cfd8e8;
  font-size: 1.02rem;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26,39,57,0.72);
  background: rgba(9,14,22,0.62);
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.problem-bullets li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
  flex: 0 0 auto;
}
.problem-bullets li:hover {
  border-color: rgba(215,181,91,0.18);
  transform: translateX(3px);
}
.problem-callout {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(215,181,91,0.055), rgba(215,181,91,0.018));
  padding: 44px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.problem-callout::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.problem-callout::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,181,91,0.08), transparent 70%);
  pointer-events: none;
}
.problem-callout-number {
  font-size: clamp(3.8rem, 7.5vw, 5.4rem);
  font-weight: 800;
  color: var(--gold-2);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 14px;
}
.problem-callout-text {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 20ch;
  margin: 0 auto;
  line-height: 1.58;
}

/* ── Stack Section ── */
.stack-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.stack-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.stack-card {
  min-height: 224px;
  padding: 36px 28px 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  border-color: var(--line);
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,181,91,0.20);
  box-shadow: 0 24px 56px rgba(0,0,0,0.44), var(--glow-gold);
}

/* Icon background */
.stack-card::before {
  content: "";
  position: absolute;
  left: 20px; top: 20px;
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--gold-border);
  background: linear-gradient(135deg, rgba(215,181,91,0.14), rgba(215,181,91,0.05));
}
/* Gold top accent on hover */
.stack-card > .card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2) 50%, transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.stack-card:hover > .card-accent { opacity: 0.65; }

/* Remove panel default ::after on stack cards */
.stack-card::after { display: none; }

.card-icon {
  position: absolute;
  left: 32px; top: 32px;
  width: 32px; height: 32px;
  z-index: 3;
}
.card-icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stack-card h3 {
  margin-top: 58px;
  margin-bottom: 10px;
  font-size: 1.18rem;
}
.stack-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
  margin: 0;
}

/* ── Steps / How It Works ── */
.steps-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
/* Connecting line between steps */
.steps-wrap::before {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), var(--gold-border));
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .num {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--gold-border-2);
  background: linear-gradient(135deg, rgba(215,181,91,0.14), rgba(215,181,91,0.04));
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: var(--glow-gold-sm);
}
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Outcomes / KPI ── */
.kpi-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-list-outcomes {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi-pill {
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(10,16,24,0.85);
  color: #dce5f5;
  font-size: 0.92rem;
  padding: 13px 16px;
}
.kpi-list-outcomes .kpi-pill {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(39,70,109,0.82);
  background: linear-gradient(180deg, rgba(8,14,24,0.96), rgba(5,11,20,0.96));
  color: #e8effa;
  font-size: 1rem;
  padding: 18px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.kpi-list-outcomes .kpi-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  flex: 0 0 auto;
}
.kpi-list-outcomes .kpi-pill:hover {
  border-color: rgba(59,95,143,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.muted-small { color: var(--muted); font-size: 0.82rem; }
.outcome-board .section-title { margin-bottom: 6px; }

/* ── Verticals / Tiles ── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tile {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 44px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: linear-gradient(145deg, rgba(14,22,34,0.97), rgba(9,15,23,0.97));
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.tile-medspa {
  background-image:
    linear-gradient(160deg, rgba(6,10,18,0.93) 0%, rgba(6,10,18,0.78) 55%, rgba(6,10,18,0.60) 100%),
    url("images/31.jpg");
  background-size: cover;
  background-position: center;
}
.tile-pi {
  background-image:
    linear-gradient(160deg, rgba(6,10,18,0.93) 0%, rgba(6,10,18,0.78) 55%, rgba(6,10,18,0.60) 100%),
    url("images/40.jpg");
  background-size: cover;
  background-position: center;
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2) 50%, transparent 80%);
  opacity: 0.45;
  transition: opacity 0.22s;
}
.tile::after {
  content: "";
  position: absolute;
  bottom: -70px; right: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,181,91,0.065), transparent 70%);
  pointer-events: none;
  transition: transform 0.4s ease;
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(215,181,91,0.24);
  box-shadow: 0 24px 56px rgba(0,0,0,0.46), var(--glow-gold);
}
.tile:hover::before { opacity: 0.90; }
.tile:hover::after  { transform: scale(1.2); }
.tile h3 {
  font-size: 1.56rem;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.tile p {
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
  position: relative; z-index: 1;
  line-height: 1.68;
  margin-bottom: 28px;
}
.tile-arrow {
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
  position: relative; z-index: 1;
}
.tile:hover .tile-arrow,
.tile:focus-visible .tile-arrow { gap: 12px; }

.tile-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-3);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.tile-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  position: relative; z-index: 1;
}
.tile-bullets li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.tile-bullets li:last-child { border-bottom: none; }
.tile-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-3);
  opacity: 0.55;
}

/* ── Offer / Pricing ── */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 20px;
  color: #cfd8e7;
  font-size: 0.97rem;
  line-height: 1.62;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Booking ── */
.book-panel { padding: 38px; }
.section-video .video-head { margin-bottom: 24px; }
.video-panel {
  padding: 14px;
  border-color: rgba(44, 62, 92, 0.72);
  background: linear-gradient(180deg, rgba(11, 17, 28, 0.94), rgba(8, 13, 22, 0.88));
}
.promo-video {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(55, 77, 112, 0.6);
  background: #04070e;
}
.video-inline-panel {
  margin-bottom: 20px;
  padding: 14px;
  border-color: rgba(41, 58, 87, 0.7);
}
.video-inline-kicker {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.promo-video-inline {
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}
.booking-embed-shell {
  border-radius: 12px;
  border: 1px solid rgba(41, 58, 85, 0.7);
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.86), rgba(8, 12, 20, 0.72));
  padding: 4px;
}
.booking-embed {
  width: 100%;
  min-height: 740px;
  border: none;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
}
.calendar-placeholder {
  border-radius: 12px;
  border: 1px solid rgba(38,55,80,0.68);
  background: linear-gradient(180deg, rgba(14,22,34,0.72), rgba(9,14,22,0.52));
  padding: 28px;
}
.book-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.track-btn { width: 100%; justify-content: center; }
.book-links-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 4px;
}
.book-detail-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.80rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 4px;
  border-radius: 7px;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.book-detail-link:hover { color: var(--gold-2); }

/* ── Contact Intake ── */
.intake-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: start;
}
.intake-panel {
  padding: 28px;
  border-color: rgba(44, 62, 92, 0.72);
  background: linear-gradient(180deg, rgba(11, 17, 28, 0.96), rgba(8, 13, 22, 0.92));
}
.intake-form {
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  gap: 8px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.intake-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cfd9ea;
  letter-spacing: 0.02em;
}
.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid rgba(52, 73, 105, 0.78);
  background: rgba(8, 12, 20, 0.88);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.intake-form textarea {
  resize: vertical;
  min-height: 120px;
}
.intake-form input::placeholder,
.intake-form textarea::placeholder {
  color: #7f8ea4;
}
.intake-form input:focus-visible,
.intake-form select:focus-visible,
.intake-form textarea:focus-visible {
  border-color: rgba(215, 181, 91, 0.72);
  box-shadow: 0 0 0 3px rgba(215, 181, 91, 0.13);
  outline: none;
}
.form-status {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* ── After You Book ── */
.after-book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.after-book-card {
  padding: 34px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,19,30,0.96), rgba(8,13,22,0.96));
  transition: border-color 0.22s, transform 0.22s;
}
.after-book-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.after-book-num {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.after-book-num::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.64;
}

/* ── FAQ accordion ── */
.faq-list {
  max-width: 840px;
  display: grid;
  gap: 0;
}
.faq-item { border-bottom: 1px solid rgba(26,39,57,0.78); }
.faq-item:first-child { border-top: 1px solid rgba(26,39,57,0.78); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.faq-q h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.42;
}
.faq-q:hover h3 { color: var(--gold-2); }
.faq-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(10,15,23,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.faq-item.open .faq-icon {
  background: var(--gold-soft-2);
  border-color: var(--gold-border);
  color: var(--gold-2);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.16,1,0.3,1), padding 0.32s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 22px;
}
.faq-a p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.72;
  margin: 0;
}

/* ── Standalone CTA section ── */
.cta-section { text-align: center; }
.cta-section .section-title  { max-width: 32ch; margin: 0 auto 16px; }
.cta-section .section-label  { justify-content: center; }
.cta-section .section-label::before { display: none; }
.cta-section .section-intro  { margin: 0 auto 34px; }
.cta-section .btn-row        { justify-content: center; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 36px;
  align-items: center;
  padding: 32px 0 42px;
  font-size: 0.87rem;
}
.footer-brand {
  color: var(--ink-2);
  font-weight: 800;
  font-size: 0.80rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  grid-column: 1;
}
.footer-contact { grid-column: 1; }
.footer-privacy {
  grid-column: 1;
  font-size: 0.79rem;
  color: var(--muted-2);
}
.footer-right {
  grid-column: 2;
  grid-row: 1 / 4;
  text-align: right;
  display: flex;
  align-items: center;
}

/* ── Mobile Sticky ── */
.mobile-sticky {
  position: fixed;
  left: 14px; right: 14px; bottom: 16px;
  z-index: 80;
  display: none;
}
.mobile-sticky .btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 0.94rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), var(--glow-gold);
}

/* ── Reveal animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.62s cubic-bezier(0.16,1,0.3,1),
    transform 0.62s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* Keep above-the-fold content visible immediately for faster LCP. */
.hero [data-reveal],
.hero [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Responsive ── */
@media (max-width: 1120px) {
  .hero-grid,
  .problem-grid,
  .offer-grid,
  .grid-2,
  .grid-3,
  .stack-grid,
  .steps-wrap,
  .after-book-grid,
  .tiles-grid { grid-template-columns: 1fr; }

  .steps-wrap::before { display: none; }

  .hero-system {
    aspect-ratio: unset;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "diagram" "stat" "log";
  }

  .flow-arrow { display: none; }
  .flow-grid  { gap: 8px; justify-content: flex-start; }

  .stack-grid       { grid-template-columns: 1fr; }
  .kpi-list-outcomes{ grid-template-columns: 1fr; }
  .book-tracks,
  .inline-book-grid { grid-template-columns: 1fr; }
  .intake-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }

  .stack-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-right { grid-column: 1; grid-row: auto; text-align: left; margin-top: 12px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 10px;
    padding: 14px;
    background: rgba(5,8,14,0.97);
    border-bottom: 1px solid rgba(38,55,80,0.62);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 10px 12px;
    border: 1px solid rgba(38,55,80,0.65);
    border-radius: 9px;
    background: rgba(10,16,24,0.7);
  }
  .nav-social {
    margin-left: 0;
    justify-content: flex-start;
    padding: 4px 0 2px;
  }
  .nav-social .nav-icon {
    width: 36px;
    height: 36px;
    font-size: 0.86rem;
  }
  .site-header .wrap { padding: 13px 0; }
  .brand-logo-wrap { width: 34px; height: 34px; }
  .site-header > .wrap > .btn-primary { display: none; }

  main section { padding: 66px 0; }
  .hero { padding-top: 80px; padding-bottom: 70px; }

  .panel { padding: 24px; }
  .booking-embed { min-height: 700px; }
  .tile  { min-height: 240px; padding: 32px 28px; }
  .home-hero {
    background-image:
      linear-gradient(150deg, rgba(4,7,12,0.88) 0%, rgba(4,7,12,0.72) 55%, rgba(4,7,12,0.52) 100%),
      radial-gradient(600px 340px at 70% 60%, rgba(215,181,91,0.11), transparent 62%),
      url("home-hero-mobile.jpg"),
      linear-gradient(180deg, #121a28, #0b121d);
  }
  .tile-medspa {
    background-image:
      linear-gradient(160deg, rgba(6,10,18,0.93) 0%, rgba(6,10,18,0.78) 55%, rgba(6,10,18,0.60) 100%),
      url("images/31-mobile.jpg");
  }
  .tile-pi {
    background-image:
      linear-gradient(160deg, rgba(6,10,18,0.93) 0%, rgba(6,10,18,0.78) 55%, rgba(6,10,18,0.60) 100%),
      url("images/40-mobile.jpg");
  }
  .hero .btn-row .btn {
    width: 100%;
  }

  .mobile-sticky { display: block; }
  .site-footer { padding-bottom: 86px; }
}
