/* ============================================================
   Gainwisely — landing system
   Brand kept verbatim; extended with interactive components.
   ============================================================ */
:root {
  --bg: #080908;
  --bg-2: #0d0f0d;
  --panel: #111411;
  --panel-2: #171a17;
  --ink: #f6f8f2;
  --text: #d9dfd2;
  --muted: #8b9487;
  --quiet: #5f685d;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --lime: #c8ff00;
  --lime-soft: rgba(200, 255, 0, .12);
  --teal: #13dcc4;
  --teal-soft: rgba(19, 220, 196, .11);
  --amber: #f7ba42;
  --orange: #ff8a3d;
  --danger: #ff5f65;
  --shadow: 0 32px 90px rgba(0, 0, 0, .55);
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: "Geist", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(200, 255, 0, .13), transparent 32rem),
    linear-gradient(180deg, #080908 0%, #0a0b0a 46%, #080908 100%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }

.shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.mono { font-family: var(--mono); }
.cond { font-family: var(--cond); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- scroll progress + ambient cursor glow ---- */
.scrollbar {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--lime), var(--teal));
  box-shadow: 0 0 16px rgba(200, 255, 0, .4);
}
.cursor-glow {
  position: fixed; z-index: 0; top: 0; left: 0;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(200, 255, 0, .07), transparent 62%);
  opacity: 0; transition: opacity .4s ease;
  mix-blend-mode: screen;
}

/* ---------------------------- NAV ---------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(8, 9, 8, .72);
  backdrop-filter: blur(18px);
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(8, 9, 8, .92); border-color: rgba(255,255,255,.1); }
.nav-inner {
  min-height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%; object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(200, 255, 0, .13)); flex: 0 0 auto;
}
.brand-name {
  color: var(--ink); font: 900 24px/1 var(--cond);
  letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.nav-links {
  display: none; align-items: center; gap: 4px;
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------------------- BUTTONS ---------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px;
  padding: 0 17px; border: 1px solid transparent; color: var(--ink);
  font-weight: 800; font-size: 13px; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary { color: #080908; background: var(--lime); box-shadow: 0 14px 34px rgba(200, 255, 0, .18); }
.btn.primary:hover { box-shadow: 0 18px 44px rgba(200, 255, 0, .3); }
.btn.secondary { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); }
.btn.secondary:hover { border-color: rgba(19, 220, 196, .35); color: var(--teal); }
.btn.teal { color: #04110f; background: var(--teal); box-shadow: 0 14px 34px rgba(19, 220, 196, .16); }
.btn.teal:hover { box-shadow: 0 18px 44px rgba(19, 220, 196, .28); }
.btn.sm { min-height: 38px; padding-inline: 14px; font-size: 12px; }
/* sheen sweep on primary/teal */
.btn.primary::before, .btn.teal::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: none;
}
.btn.primary:hover::before, .btn.teal:hover::before { animation: sheen .7s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }

/* ---------------------------- HERO ---------------------------- */
.hero {
  min-height: 100svh; padding: 104px 0 60px; display: grid;
  align-items: center; overflow: hidden; position: relative;
}
.hero-grid { display: grid; gap: 42px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px;
  padding: 0 12px; border: 1px solid rgba(200, 255, 0, .22); border-radius: 999px;
  background: rgba(200, 255, 0, .07); color: var(--lime);
  font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow.teal { color: var(--teal); border-color: rgba(19, 220, 196, .25); background: rgba(19, 220, 196, .08); }
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 20px 0 18px; color: var(--ink);
  font: 900 clamp(62px, 12vw, 128px)/.86 var(--cond);
  letter-spacing: 0; text-transform: uppercase; text-wrap: balance;
}
h1 em, h2 em { color: var(--lime); font-style: normal; }
.hero-copy {
  max-width: 620px; color: #abb5a6; font-size: clamp(16px, 4vw, 20px);
  line-height: 1.6; margin-bottom: 28px; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-proof {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.proof-item { padding: 14px 10px; border-right: 1px solid var(--line); text-align: center; }
.proof-item:last-child { border-right: 0; }
.proof-value { color: var(--ink); font: 900 31px/1 var(--cond); text-transform: uppercase; }
.proof-label {
  margin-top: 4px; color: var(--quiet); font: 700 9px/1.35 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---- audience segmented control ---- */
.seg {
  display: inline-flex; position: relative; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .035); margin-bottom: 22px;
}
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: 50%;
  border-radius: 999px; background: var(--lime);
  box-shadow: 0 8px 22px rgba(200, 255, 0, .22);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.seg[data-active="gym"] .seg-thumb { transform: translateX(100%); background: var(--teal); box-shadow: 0 8px 22px rgba(19, 220, 196, .22); }
.seg button {
  position: relative; z-index: 1; flex: 1; min-width: 132px; min-height: 36px;
  border: 0; background: transparent; border-radius: 999px;
  color: var(--muted); font: 800 12px/1 var(--sans); letter-spacing: .02em;
  text-transform: uppercase; transition: color .25s ease;
}
.seg button[aria-selected="true"] { color: #080908; }

/* ---------------------------- PHONE ---------------------------- */
.stage-wrap { position: relative; min-height: 560px; }
.phone-stage {
  display: flex; justify-content: center; position: relative; min-height: 520px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.phone-stage::before {
  content: ""; position: absolute; width: min(420px, 90vw); height: min(420px, 90vw);
  top: 54px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, .15), transparent 67%); filter: blur(2px);
}
.phone {
  width: min(284px, 72vw); aspect-ratio: 9 / 19.35; border-radius: 40px;
  background: #020302; border: 2px solid #252a25; overflow: hidden; position: relative;
  box-shadow: var(--shadow), 0 0 64px rgba(200, 255, 0, .08);
  animation: float 5.8s ease-in-out infinite;
  will-change: transform;
}
.phone.side {
  position: absolute; width: min(228px, 56vw); opacity: .72;
  transform: translate(-132px, 62px) rotate(-8deg); animation: none;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .52);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.notch {
  position: absolute; top: 12px; left: 50%; z-index: 8; width: 90px; height: 26px;
  border-radius: 999px; transform: translateX(-50%); background: #000;
}
.screen {
  position: absolute; inset: 0; padding: 48px 16px 16px;
  background: radial-gradient(circle at 50% 9%, rgba(200, 255, 0, .12), transparent 38%), #080908;
}
/* swap between home + active inside the main phone */
.pane { position: absolute; inset: 0; padding: 48px 16px 18px; }
.pane[hidden] { display: none; }
.pane.active-screen { background: radial-gradient(circle at 50% 8%, rgba(19, 220, 196, .12), transparent 38%), #080908; }
.pane.home-screen { background: radial-gradient(circle at 50% 9%, rgba(200, 255, 0, .12), transparent 38%), #080908; }

.screen-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.small-label { color: var(--quiet); font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.screen-title { margin-top: 5px; color: var(--ink); font: 900 28px/1 var(--cond); text-transform: uppercase; }
.streak {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px;
  border-radius: 999px; color: var(--lime); background: rgba(200, 255, 0, .1);
  border: 1px solid rgba(200, 255, 0, .18); font: 700 12px/1 var(--mono);
}
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.day {
  height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255, 255, 255, .045); color: var(--quiet); font: 700 10px/1 var(--mono);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.day.active { color: #080908; background: var(--lime); }
.day.done { color: var(--lime); background: rgba(200,255,0,.14); }
.workout-card {
  border: 1px solid rgba(200, 255, 0, .17); border-radius: 18px; padding: 15px;
  background: linear-gradient(145deg, #17200e, #0f130b); margin-bottom: 14px;
}
.workout-top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.tag {
  display: inline-flex; align-items: center; min-height: 22px; border-radius: 7px; padding: 0 8px;
  color: #9ca893; background: rgba(255, 255, 255, .06); font: 700 9px/1 var(--mono); text-transform: uppercase;
}
.workout-name { color: var(--ink); font: 900 26px/1 var(--cond); text-transform: uppercase; margin-bottom: 5px; }
.workout-sub { color: var(--quiet); font-size: 11px; margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.chip {
  border: 1px solid rgba(19, 220, 196, .26); border-radius: 999px; padding: 4px 8px;
  color: var(--teal); font: 700 8px/1 var(--mono); text-transform: uppercase;
}
.start {
  height: 40px; width: 100%; display: grid; place-items: center; border: 0; border-radius: 11px;
  background: var(--lime); color: #080908; font: 900 14px/1 var(--cond);
  letter-spacing: .04em; text-transform: uppercase;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.start:hover { box-shadow: 0 10px 26px rgba(200,255,0,.3); }
.start:active { transform: scale(.97); }
.exercise-row { display: grid; gap: 8px; }
.exercise {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  min-height: 54px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045); padding: 9px 10px;
  transition: border-color .2s ease, background .2s ease;
}
.exercise:hover { border-color: rgba(200,255,0,.3); background: rgba(255,255,255,.06); }
.ex-num {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(200, 255, 0, .12); color: var(--lime); font: 800 10px/1 var(--mono);
}
.ex-name { color: var(--text); font-weight: 700; font-size: 12px; }
.ex-meta { color: var(--quiet); font-size: 10px; margin-top: 2px; }
.ex-target { color: var(--lime); font: 700 10px/1 var(--mono); }

/* active session pane */
.session-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.round {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .05);
  font-weight: 800; transition: color .2s ease, border-color .2s ease;
}
.round:hover { color: var(--ink); border-color: var(--line-strong); }
.timer-pill {
  height: 34px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 0 12px;
  background: rgba(255, 255, 255, .06); color: var(--ink); font: 700 13px/1 var(--mono);
  transition: background .3s ease, color .3s ease;
}
.timer-pill.resting { background: rgba(19,220,196,.14); color: var(--teal); }
.timer-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.progress-line { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; margin-bottom: 20px; }
.progress-line span { display: block; width: 18%; height: 100%; background: var(--lime); transition: width .5s var(--ease); }
.exercise-focus { text-align: center; margin-bottom: 16px; }
.exercise-focus h3 { color: var(--ink); font: 900 34px/1 var(--cond); text-transform: uppercase; margin: 6px 0; }
.last-set {
  border: 1px solid var(--line); border-radius: 13px; padding: 10px; text-align: center;
  color: var(--muted); font-size: 12px; background: rgba(255, 255, 255, .04); margin-bottom: 12px;
}
.last-set b { color: var(--text); }
.input-card {
  border: 1px solid var(--line); border-radius: 17px; padding: 14px;
  background: rgba(255, 255, 255, .045); margin-bottom: 12px; text-align: center;
}
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }
.step-btn {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.05);
  color: var(--ink); font: 800 20px/1 var(--sans);
  display: grid; place-items: center; transition: transform .12s var(--ease), border-color .2s ease, background .2s ease;
}
.step-btn:hover { border-color: var(--lime); color: var(--lime); }
.step-btn:active { transform: scale(.9); }
.weight {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  color: var(--ink); font: 900 54px/.9 var(--cond); min-width: 132px;
}
.weight span { color: var(--muted); font: 700 15px/1 var(--sans); margin-bottom: 8px; }
.weight em { font-style: normal; font-variant-numeric: tabular-nums; }
.reps { color: var(--muted); font: 700 13px/1 var(--mono); margin-top: 10px; }
.set-dots { display: flex; justify-content: center; gap: 9px; margin: 12px 0; }
.set-dot {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .07); color: var(--muted); font: 700 12px/1 var(--mono);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.set-dot.on { background: var(--lime); color: #080908; }
.set-dot.pop { transform: scale(1.18); }
.log-btn {
  height: 46px; width: 100%; display: grid; place-items: center; border: 0; border-radius: 13px;
  background: var(--lime); color: #080908; font: 900 15px/1 var(--cond);
  text-transform: uppercase; letter-spacing: .04em;
  transition: transform .14s var(--ease), box-shadow .2s var(--ease), background .25s ease, color .25s ease;
}
.log-btn:hover { box-shadow: 0 12px 28px rgba(200,255,0,.32); }
.log-btn:active { transform: scale(.97); }
.log-btn.done { background: rgba(19,220,196,.16); color: var(--teal); box-shadow: none; }

/* hint pill that floats by the phone */
.demo-hint {
  position: absolute; z-index: 9; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(13,15,13,.92); backdrop-filter: blur(8px);
  color: var(--text); font: 700 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; transition: opacity .4s ease;
}
.demo-hint .pulse { color: var(--lime); }

/* ---- portal preview as the "gym" hero face ---- */
.hero-portal {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: scale(.97);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero-portal .portal-window { max-width: 560px; }
.stage-wrap[data-face="gym"] .phone-stage { opacity: 0; pointer-events: none; transform: scale(.97); }
.stage-wrap[data-face="gym"] .hero-portal { opacity: 1; pointer-events: auto; transform: scale(1); }

/* ---------------------------- SECTIONS ---------------------------- */
section.block { padding: 82px 0; border-top: 1px solid rgba(255, 255, 255, .06); position: relative; z-index: 1; }
.section-head { max-width: 760px; margin-bottom: 34px; }
h2 {
  color: var(--ink); font: 900 clamp(44px, 10vw, 78px)/.92 var(--cond);
  letter-spacing: 0; text-transform: uppercase; margin: 18px 0 14px; text-wrap: balance;
}
.section-head p, .wide-copy { color: var(--muted); font-size: 16px; line-height: 1.7; text-wrap: pretty; }

.split { display: grid; gap: 14px; }
.side-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .024));
  transition: border-color .3s ease, transform .3s var(--ease);
}
.side-card:hover { border-color: rgba(200,255,0,.22); transform: translateY(-3px); }
.side-card.portal:hover { border-color: rgba(19,220,196,.26); }
.side-card h3 { color: var(--ink); font: 900 31px/1 var(--cond); text-transform: uppercase; margin-bottom: 8px; }
.side-card p { color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.feature-list { display: grid; gap: 10px; }
.feature-list div {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07);
}
.feature-list span {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  background: var(--lime-soft); color: var(--lime); font: 800 11px/1 var(--mono);
}
.side-card.portal .feature-list span { background: var(--teal-soft); color: var(--teal); }
.feature-list strong { display: block; color: var(--text); margin-bottom: 3px; }
.feature-list small { color: var(--muted); line-height: 1.45; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature-card {
  position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  background: var(--panel); min-height: 158px; overflow: hidden;
  transition: border-color .3s ease, transform .3s var(--ease), background .3s ease;
}
.feature-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--lime); transform: scaleY(0); transform-origin: 0 0;
  transition: transform .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(200,255,0,.2); background: #131713; }
.feature-card:hover::after { transform: scaleY(1); }
.feature-card .n { color: var(--lime); font: 800 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.feature-card h3 { color: var(--ink); font: 900 22px/1 var(--cond); margin: 16px 0 8px; text-transform: uppercase; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.screens { display: grid; gap: 28px; align-items: center; }
.screen-notes { display: grid; gap: 10px; }
.note {
  border: 1px solid var(--line); border-radius: 14px; padding: 15px;
  background: rgba(255, 255, 255, .035); transition: border-color .25s ease, transform .25s var(--ease);
}
.note:hover { border-color: rgba(200,255,0,.22); transform: translateX(4px); }
.note strong { display: block; color: var(--text); margin-bottom: 5px; }
.note span { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------------------------- PORTAL WINDOW ---------------------------- */
.portal-showcase { display: grid; gap: 28px; align-items: center; }
.portal-copy p { color: var(--muted); line-height: 1.7; }
.portal-window {
  border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
  background: #f6f5ef; color: #11130f; box-shadow: var(--shadow); width: 100%;
}
.window-bar {
  height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid rgba(17, 19, 15, .1); background: #ebe9df;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbc8bc; }
.url {
  flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border-radius: 999px; background: #fff; color: #777568; font: 600 10px/1 var(--mono);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.url::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6cc24a; flex: 0 0 auto; }
.window-tag {
  flex: 0 0 auto; height: 18px; display: inline-flex; align-items: center; padding: 0 8px;
  border-radius: 999px; background: rgba(17, 19, 15, .08); color: #6b6a5e;
  font: 700 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.portal-body { display: grid; grid-template-columns: 148px 1fr; min-height: 500px; }
.portal-side { background: #11130f; color: #e9ecd9; padding: 14px 10px; }
.portal-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 800; font-size: 12px; }
.portal-logo img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; flex: 0 0 auto; }
.portal-nav { display: grid; gap: 6px; }
.portal-nav span {
  min-height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 8px;
  color: #858d7f; font-size: 10px; font-weight: 700; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.portal-nav span:hover { background: #1a1f15; color: #c7cdbb; }
.portal-nav span.on { background: #20251a; color: var(--lime); }
.portal-nav span .nav-ico { width: 5px; height: 5px; border-radius: 1px; background: currentColor; opacity: .6; }
.portal-main { padding: 16px; background: #f7f6f0; overflow: hidden; }
.portal-main-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.portal-main h3 { margin: 0; color: #11130f; font-size: 19px; line-height: 1; }
.portal-main .subline { color: #747469; font-size: 11px; margin-top: 5px; }
.portal-action {
  min-height: 32px; padding: 0 12px; border-radius: 8px; background: #11130f; color: var(--lime);
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  transition: transform .15s var(--ease), box-shadow .2s ease;
}
.portal-action:hover { box-shadow: 0 8px 20px rgba(17,19,15,.25); transform: translateY(-1px); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi {
  min-height: 72px; border-radius: 12px; border: 1px solid #dfddd0; background: #fff; padding: 10px;
  transition: border-color .25s ease, transform .25s var(--ease);
}
.kpi:hover { border-color: #b9c79a; transform: translateY(-2px); }
.kpi span { display: block; color: #777568; font: 700 9px/1.25 var(--mono); text-transform: uppercase; }
.kpi strong { display: block; color: #11130f; font: 900 25px/1 var(--cond); margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .trend { font: 700 9px/1 var(--mono); margin-top: 5px; color: #5a8a3a; }
.kpi .trend.down { color: #b06a2a; }
.portal-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; }
.table, .queue { border: 1px solid #dfddd0; border-radius: 13px; background: #fff; overflow: hidden; }
.table-head, .queue-head {
  height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  border-bottom: 1px solid #e7e4d9; color: #11130f; font-size: 12px; font-weight: 800;
}
.client-row {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #eeece3; transition: background .18s ease;
}
.client-row:last-child { border-bottom: 0; }
.client-row:hover { background: #f2f1e7; }
.avatar {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #11130f; background: #e7e4d9; font: 900 11px/1 var(--cond);
}
.avatar.lime { background: #d7f764; }
.avatar.teal { background: #8ce9dc; }
.avatar.amber { background: #ffd37a; }
.client-name { color: #11130f; font-size: 12px; font-weight: 800; }
.client-meta { color: #777568; font-size: 10px; margin-top: 2px; }
.status {
  min-height: 23px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 8px;
  font: 800 9px/1 var(--mono); color: #11130f; background: #eef0e7; white-space: nowrap;
}
.status.good { background: #dfffa5; }
.status.watch { background: #ffe0a1; }
.status.rest { background: #d9f7f2; }
.queue-list { display: grid; padding: 10px; gap: 9px; }
.queue-item { border-radius: 10px; padding: 10px; background: #f6f5ef; border: 1px solid #e8e5da; }
.queue-item strong { display: block; color: #11130f; font-size: 12px; margin-bottom: 4px; }
.queue-item span { color: #777568; font-size: 10px; line-height: 1.35; }
.bars { display: flex; align-items: end; gap: 6px; height: 66px; margin-top: 10px; }
.bars i {
  flex: 1; border-radius: 999px 999px 0 0; background: #11130f; min-height: 4px; opacity: .92;
  height: 0; transition: height .8s var(--ease);
}
.bars i:nth-child(2) { background: var(--lime); }
.bars i:nth-child(3) { background: var(--teal); }
.bars i:nth-child(4) { background: var(--amber); }

/* ---------------------------- CTA + FOOTER ---------------------------- */
.cta {
  text-align: center; padding: 86px 0; border-top: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(circle at 50% 0%, rgba(200, 255, 0, .11), transparent 34rem), #080908;
  position: relative; z-index: 1;
}
.cta h2 { margin-inline: auto; }
.cta p { max-width: 620px; margin: 0 auto 28px; color: var(--muted); line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 28px 0; color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
.foot-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-links a { transition: color .18s ease; }
.foot-links a:hover { color: var(--ink); }

/* ---------------------------- REVEAL ---------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.up { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 640px); }
  .nav-inner { min-height: 62px; }
  .nav-actions .secondary { display: none; }
  .brand-name { font-size: 22px; }
  .brand-logo { width: 34px; height: 34px; }
  .hero { padding-top: 88px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-proof { margin-inline: auto; }
  .seg { margin-inline: auto; }
  .stage-wrap { min-height: 600px; }
  .phone-stage { min-height: 548px; }
  .phone.side { transform: translate(-82px, 92px) rotate(-9deg); width: min(214px, 52vw); }
  .hero-portal { position: relative; }
  .split, .screens, .portal-showcase { grid-template-columns: 1fr; }
  .portal-window { margin-inline: -6px; }
  .portal-body { grid-template-columns: 84px 1fr; min-height: 408px; }
  .portal-side { padding: 12px 8px; }
  .portal-logo span:last-child { display: none; }
  .portal-nav span { padding-inline: 7px; font-size: 9px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .queue { display: none; }
  .portal-action { display: none; }
  .client-row { grid-template-columns: 28px 1fr; }
  .client-row .status { display: none; }
  section.block { padding: 70px 0; }
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.04fr .96fr; }
  .split { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .screens { grid-template-columns: .9fr 1.1fr; }
  .portal-showcase { grid-template-columns: .64fr 1.36fr; }
  .foot-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1080px) {
  .hero { padding-top: 120px; }
  .stage-wrap { min-height: 640px; }
  .phone-stage { min-height: 600px; }
  .phone { width: 300px; }
  .phone.side { width: 238px; transform: translate(-154px, 70px) rotate(-8deg); }
}

@media (min-width: 1240px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 76px; }
  .portal-body { grid-template-columns: 164px 1fr; min-height: 540px; }
  .portal-main { padding: 20px; }
  .kpis { gap: 10px; margin-bottom: 14px; }
  .portal-grid { gap: 12px; }
  .client-row { padding: 12px 14px; }
  .queue-list { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .phone { animation: none; }
}
