/* ===================================================================
   QuantrolPlus — Landing page styles (Dark Premium)
   Brand palette derived from the logo.
=================================================================== */
:root {
  --navy-900: #060B1F;
  --navy-800: #0A1233;
  --navy-700: #0E1A44;
  --navy-600: #142255;
  --blue: #3B82F6;
  --blue-bright: #2563EB;
  --blue-glow: #4F8CFF;
  --cyan: #22D3EE;
  --text: #EAF0FF;
  --text-dim: #9FB0D0;
  --text-faint: #6B7CA0;
  --border: rgba(120, 150, 220, 0.14);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1160px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Animated background ===== */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(1200px 800px at 50% -10%, #10214f 0%, transparent 60%),
  linear-gradient(180deg, var(--navy-900), var(--navy-800) 40%, var(--navy-900)); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 22s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; top: -120px; left: -80px; background: radial-gradient(circle, #2563EB, transparent 70%); }
.blob-2 { width: 460px; height: 460px; top: 30%; right: -120px; background: radial-gradient(circle, #7C3AED, transparent 70%); animation-delay: -7s; }
.blob-3 { width: 420px; height: 420px; bottom: -100px; left: 30%; background: radial-gradient(circle, #06B6D4, transparent 70%); animation-delay: -14s; }
.grid-overlay { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(120,150,220,.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(120,150,220,.05) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse at 50% 0, #000 20%, transparent 75%); }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.08); } }

/* ===== Navbar ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 14, 36, 0.72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 14px; white-space: nowrap; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 6px; padding: 12px 24px 22px; background: rgba(8,14,36,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.mobile-menu a { padding: 12px 4px; color: var(--text-dim); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { border: 0; margin-top: 8px; text-align: center; }
.mobile-menu.open { display: flex; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 700; border-radius: 12px; padding: 13px 22px; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-bright), var(--blue-glow)); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(37,99,235,.5); }

/* ===== Store badges ===== */
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text); transition: transform .2s, background .2s, border-color .2s; }
.store-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(120,150,220,.35); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.store-badge strong { font-family: var(--font); font-size: 16px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 160px 0 90px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(6,11,31,.72) 0%, rgba(6,11,31,.55) 35%, rgba(6,11,31,.82) 78%, var(--navy-900) 100%),
    url("assets/images/header-family.jpg");
  background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 26px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 22px; }
.gradient-text { background: linear-gradient(120deg, #60A5FA, #22D3EE 40%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 640px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-dim); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-actions.center { margin-top: 26px; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ===== Animated 3D logo cube ===== */
/* Size is driven by --size so the same cube can be reused at any scale (hero, navbar). */
.scene { --size: 168px; --persp: 1000px; --spin: 18s;
  display: block; position: relative; margin-top: 64px; width: var(--size); height: var(--size); perspective: var(--persp); }
.cube { display: block; position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d; animation: cube-spin var(--spin) linear infinite; }
.cube:hover { animation-play-state: paused; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 26px;
  background: linear-gradient(150deg, rgba(16,24,54,.94), rgba(8,12,32,.96));
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: inset 0 1px 12px rgba(255,255,255,.06), 0 0 34px color-mix(in srgb, var(--c) 32%, transparent); }
.face-logo { width: 62px; height: 62px; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.face span { font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: #fff; }
.face:nth-child(1) span { color: var(--c); }
.face:nth-child(1) { transform: rotateY(0deg)   translateZ(calc(var(--size) / 2)); }
.face:nth-child(2) { transform: rotateY(90deg)  translateZ(calc(var(--size) / 2)); }
.face:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.face:nth-child(5) { transform: rotateX(90deg)  translateZ(calc(var(--size) / 2)); }
.face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.cube-glow { position: absolute; left: 50%; top: 62%; width: 200px; height: 64px; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse, rgba(59,130,246,.5), transparent 70%); filter: blur(20px); z-index: -1; animation: glow-pulse 4s ease-in-out infinite; }
@keyframes cube-spin { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@keyframes glow-pulse { 0%,100% { opacity: .55; } 50% { opacity: .9; } }

/* Navbar brand: the same cube, shrunk down to logo size */
/* z-index:0 makes a stacking context so the glow (z-index:-1) sits above the nav background, not behind it */
.brand-scene { --size: 44px; --persp: 260px; --spin: 12s; margin-top: 0; z-index: 0; }
.brand-scene .face { gap: 0; border-radius: 10px; border-width: 1px;
  box-shadow: inset 0 1px 6px rgba(255,255,255,.06), 0 0 14px color-mix(in srgb, var(--c) 34%, transparent); }
.brand-scene .face span { display: none; }               /* no room for labels at this size */
.brand-scene .face-logo { width: 30px; height: 30px; border-radius: 7px; box-shadow: none; }
.brand-scene .cube-glow { top: 58%; width: 62px; height: 24px; filter: blur(10px); }
.brand:hover .cube { animation-play-state: paused; }

/* Hero orbit visual */
.hero-visual { margin-top: 70px; width: 100%; display: flex; justify-content: center; }
.orbit { position: relative; width: min(680px, 92vw); height: 320px; }
.orbit-core { position: absolute; top: 50%; left: 50%; width: 150px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 40px rgba(59,130,246,.5)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-58%); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: rgba(12,20,48,.75); border: 1px solid var(--border); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: bob 6s ease-in-out infinite; }
.chip svg { color: var(--c, var(--blue)); }
.chip-health { --c:#EF4444; top: 6%; left: 12%; }
.chip-finance { --c:#F59E0B; top: 2%; right: 14%; animation-delay: -1s; }
.chip-business { --c:#22C55E; top: 44%; left: 0; animation-delay: -2s; }
.chip-school { --c:#8B5CF6; top: 40%; right: 2%; animation-delay: -3s; }
.chip-trips { --c:#06B6D4; bottom: 4%; left: 20%; animation-delay: -4s; }
.chip-goals { --c:#EC4899; bottom: 0; right: 20%; animation-delay: -2.5s; }

/* ===== Value strip ===== */
.value-strip { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: center; }
.value-item strong { display: block; font-family: var(--font); font-size: clamp(1.4rem, 3vw, 2rem); background: linear-gradient(120deg,#60A5FA,#A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-item span { font-size: 13px; color: var(--text-dim); }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-glow); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ===== Feature grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* display:grid outranks the browser's [hidden] rule, so state it explicitly.
   The tiles stay in the HTML for search engines; script.js hides them. */
.feature-grid[hidden] { display: none; }
.feature-card { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); overflow: hidden; transition: transform .3s, border-color .3s, background .3s; }
.feature-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 140px at 20% -10%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); background: var(--card-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.feature-ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; position: relative; }
.feature-card p { color: var(--text-dim); font-size: .95rem; position: relative; }
.feature-card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ===== Feature sections ===== */
.feature-sec { position: relative; overflow: hidden; }
/* Optional backdrop: drop _background.jpg into the feature's content folder.
   Held well back so the copy over it stays readable. */
.feature-sec.has-bg { --bg-opacity: .22; }
.feature-sec.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--bg); background-size: cover; background-position: center;
  opacity: var(--bg-opacity); }
/* darken top and bottom so the section still blends into the page */
.feature-sec.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--c) 16%, transparent), transparent 75%),
    linear-gradient(180deg, var(--navy-900) 0%, rgba(6,11,31,.55) 26%, rgba(6,11,31,.6) 74%, var(--navy-900) 100%); }
.feature-hint { text-align: center; margin-top: 26px; font-size: .9rem; color: var(--text-faint); }

/* ===== Feature chips — compact buttons instead of big tiles ===== */
.feature-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.feature-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 12px; border-radius: 999px;
  font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--text-dim); cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  transition: color .25s, background .25s, border-color .25s, transform .25s; }
.feature-chip:hover { color: #fff; transform: translateY(-2px);
  background: color-mix(in srgb, var(--c) 16%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.feature-chip:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
/* modules share their feature's colour, so a dot reads better than an icon */
.feature-chip i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.feature-chip[disabled] i { box-shadow: none; }
.feature-chip[disabled] { opacity: .4; cursor: not-allowed; }
.feature-chip[disabled]:hover { transform: none; background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text-dim); }
.feature-chip .soon { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

/* ===== Fullscreen feature stage ===== */
/* z-index sits below the navbar (100) so the menu stays visible and usable */
.stage { position: fixed; inset: 0; z-index: 90; opacity: 0; transition: opacity .5s ease; }
.stage[hidden] { display: none; }
.stage.open { opacity: 1; }
body.stage-open { overflow: hidden; }

/* blurred, darkened screen behind everything — the "image in background" feel */
.stage-bg { position: absolute; inset: 0; overflow: hidden; background: var(--navy-900); }
.stage-bg-layer { position: absolute; inset: -8%; opacity: 0; transform: scale(1.08);
  background-size: cover; background-position: center; filter: blur(34px) saturate(1.25) brightness(.5);
  transition: opacity 1s ease, transform 4s ease-out; }
.stage-bg-layer.active { opacity: 1; transform: scale(1); }
.stage-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 22% 40%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%),
    linear-gradient(100deg, rgba(5,8,22,.94) 34%, rgba(5,8,22,.6) 62%, rgba(5,8,22,.9)); }

.stage-inner { position: relative; z-index: 2; height: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 96px 24px 90px; display: flex; align-items: center; gap: clamp(28px, 5vw, 80px); }

/* left: the words */
.stage-copy { flex: 1 1 50%; min-width: 0; }
.stage-label { display: inline-flex; align-items: center; gap: 11px; margin-bottom: clamp(16px, 3vh, 30px);
  font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.stage-label i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.stage-label i svg { width: 17px; height: 17px; }
.stage-text { position: relative; }
/* The outgoing text clears quickly and the incoming one is delayed, so two
   large titles never sit on top of each other mid-transition. */
.stage-el { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: translateY(26px);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.stage-el.active { position: relative; opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .5s ease .24s, transform .75s cubic-bezier(.2,.9,.3,1) .24s; }
.stage-el h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 18px;
  background: linear-gradient(115deg, #fff 26%, color-mix(in srgb, var(--c) 75%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-el p { color: var(--text-dim); font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 44ch; }

/* right: the phone */
.stage-phone { flex: 0 0 auto; position: relative;
  width: min(calc(64vh / 2.2315), 34vw, 300px); aspect-ratio: 717 / 1600;
  border-radius: 26px; overflow: hidden; background: #05070f; border: 1px solid rgba(150,175,235,.18);
  box-shadow: 0 40px 90px rgba(0,0,0,.75), 0 0 90px color-mix(in srgb, var(--c) 26%, transparent); }
.stage-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
  transition: opacity .8s ease, transform 1.1s cubic-bezier(.2,.9,.3,1); }
.stage-slide.active { opacity: 1; transform: none; }
.stage-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* bottom-left counter with the line that fills as autoplay runs */
.stage-nav { position: absolute; left: max(24px, calc(50vw - var(--maxw) / 2 + 24px)); bottom: 34px; z-index: 3;
  display: flex; align-items: center; gap: 13px; font-family: var(--font); font-weight: 700;
  font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--text); }
.stage-total { color: var(--text-faint); }
.stage-sep { position: relative; width: clamp(60px, 9vw, 120px); height: 1px; background: rgba(255,255,255,.28); }
.stage-sep i { position: absolute; inset: 0; width: 0; background: var(--c); }
.stage-sep i.run { transition: width linear; }
.stage-arrows { display: flex; gap: 9px; margin-left: 8px; }
.stage-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--border);
  transition: background .2s, border-color .2s, transform .2s; }
.stage-arrow:hover { background: var(--c); border-color: var(--c); color: #fff; transform: translateY(-2px); }

.stage-close { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px 10px 15px; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-size: .84rem; font-weight: 600; color: var(--text-dim);
  background: rgba(255,255,255,.07); border: 1px solid var(--border); transition: background .2s, color .2s; }
.stage-close:hover { background: rgba(255,255,255,.16); color: #fff; }
.stage-close svg { width: 15px; height: 15px; }

.stage-hint { position: absolute; right: max(24px, calc(50vw - var(--maxw) / 2 + 24px)); bottom: 38px; z-index: 3;
  display: flex; align-items: center; gap: 12px; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); }
.stage-hint span { display: block; width: 46px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.stage-hint span::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--text);
  animation: hint-slide 2.4s ease-in-out infinite; }
@keyframes hint-slide { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(250%); } }

@media (max-width: 860px) {
  .stage-inner { flex-direction: column-reverse; justify-content: center; gap: 22px; padding: 88px 20px 104px; text-align: center; }
  .stage-phone { width: min(calc(38vh / 2.2315), 46vw, 190px); }
  .stage-copy { flex: 0 0 auto; }
  .stage-el p { margin-inline: auto; }
  /* stack them: counter above, close below, both centred */
  .stage-nav { left: 50%; transform: translateX(-50%); bottom: 82px; }
  .stage-hint { display: none; }
  .stage-close { bottom: 24px; }
}


/* ===== Split sections ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.split-text > p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 24px; }
.check-list { list-style: none; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text-dim); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--blue-bright), var(--cyan)); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.glass-card { border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(0,0,0,.45); overflow: hidden; }
.family-card img { border-radius: var(--radius-lg); }
.family-card { padding: 10px; }

/* Balance card */
.balance-card { padding: 30px; }
.bc-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .95rem; color: var(--text-dim); }
.bc-head { font-family: var(--font); font-size: 1.1rem; color: var(--text); margin-bottom: 14px; }
.bc-head b { font-size: 1.4rem; }
.bc-row b { font-family: var(--font); color: var(--text); }
.pos { color: #4ADE80 !important; }
.neg { color: #F87171 !important; }
.bc-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); margin-bottom: 20px; overflow: hidden; }
.bc-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 999px; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { width: 0; } }
.bc-tags { display: flex; gap: 8px; margin-top: 6px; }
.bc-tags span { font-size: 11px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-dim); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.mini-stat strong { display: block; font-family: var(--font); font-size: 1.05rem; margin-bottom: 3px; }
.mini-stat span { font-size: .85rem; color: var(--text-dim); }

/* ===== Future ===== */
.future-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.future-step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.future-step .dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-bright), var(--cyan)); display: block; margin-bottom: 16px; box-shadow: 0 0 0 6px rgba(59,130,246,.12); }
.future-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.future-step p { color: var(--text-dim); font-size: .95rem; }

/* ===== CTA ===== */
.cta-section { padding: 90px 0; }
.cta-card { text-align: center; padding: 64px 32px; border-radius: var(--radius-lg); background:
  radial-gradient(700px 300px at 50% 0, rgba(37,99,235,.28), transparent 70%), rgba(255,255,255,.03);
  border: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-logo { height: 72px; width: auto; margin: 0 auto 22px; border-radius: 14px; box-shadow: 0 0 40px rgba(59,130,246,.45); }
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.cta-card p { color: var(--text-dim); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: rgba(6,10,26,.6); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 44px; margin-bottom: 16px; border-radius: 10px; }
.footer-brand p { color: var(--text-dim); font-size: .92rem; max-width: 320px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: .95rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); font-size: 12px; font-weight: 700; margin: 0; color: var(--text-dim); }
.socials a:hover { background: var(--blue-bright); color: #fff; border-color: var(--blue-bright); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .future-line { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .expander-inner { padding: 18px 14px; }
  .hero { padding: 120px 0 40px; }
  .brand-scene { --size: 38px; }
  .brand-scene .face-logo { width: 26px; height: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .mini-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .orbit { height: 260px; }
  .orbit-core { width: 110px; }
  .chip { font-size: 11px; padding: 7px 11px; }
}
/* Touch devices have no hover, so keep the slider arrows visible */
@media (hover: none) {
  .slider-arrow { opacity: .9; }
}
/* On short screens trim the chrome first, and only then the phones.
   min-width guard so these never override the narrow-screen sizes above. */
@media (min-width: 561px) and (max-height: 860px) {
  .slider { padding: 12px 0; }
  .expander-inner { padding: 18px 20px; }
  .expander-head { margin-bottom: 14px; }
}
@media (min-width: 561px) and (max-height: 720px) {
  .slider { padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .pulse-dot, .cube, .cube-glow { animation: none; }
  .cube { transform: rotateX(-22deg) rotateY(-35deg); }
  .reveal { transition: none; opacity: 1; transform: none; }
  .expander, .expander-inner, .slider-track { transition: none; }
  .expander-inner { opacity: 1; transform: none; }
}
