/* =====================================================================
   HyperSentinel — landing page styles
   Palette and type are taken from the brand kit (brand/guidelines.html).
   ===================================================================== */

/* ---------------------------------------------------------------------
   Type. Switzer (Indian Type Foundry via Fontshare, ITF Free Font License,
   free for commercial use) is the single sans for display and body. Kode Mono
   carries labels, data and navigation.
   --------------------------------------------------------------------- */
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/switzer/Switzer-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/switzer/Switzer-LightItalic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/switzer/Switzer-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/switzer/Switzer-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/switzer/Switzer-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../assets/fonts/switzer/Switzer-Semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kode Mono'; src: url('../assets/fonts/kode/KodeMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kode Mono'; src: url('../assets/fonts/kode/KodeMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Kode Mono'; src: url('../assets/fonts/kode/KodeMono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* brand */
  --forest: #0C2B26;
  --abyss:  #041B17;
  --moss:   #17453F;
  --mint:   #9EFAE2;
  --jade:   #1F8F73;
  --fog:    #F3F5F4;
  --mist:   #E5E7E5;
  --paper:  #FFFFFF;
  --ink:    #011614;
  --slate:  #5F6B68;
  --ember:  #F5A08C;

  /* type */
  --serif: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* display face (same family as body) */
  --sans:  'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'Kode Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(84px, 9.5vw, 136px);
  --radius: 4px;
  --nav-h: 72px;

  /* per-theme tokens (set by .theme-dark / .theme-light) */
  --bg: var(--forest);
  --fg: var(--fog);
  --fg-muted: rgba(243, 245, 244, 0.62);
  --line: rgba(156, 250, 226, 0.16);
  --accent: var(--mint);
  --chip-bg: rgba(243, 245, 244, 0.08);
  --chip-fg: var(--fog);
  --surface: rgba(243, 245, 244, 0.035);
}

.theme-light {
  --bg: var(--fog);
  --fg: var(--ink);
  --fg-muted: var(--slate);
  --line: rgba(1, 22, 20, 0.12);
  --accent: var(--jade);
  --chip-bg: var(--paper);
  --chip-fg: var(--ink);
  --surface: var(--paper);
}
.theme-dark {
  --bg: var(--forest);
  --fg: var(--fog);
  --fg-muted: rgba(243, 245, 244, 0.62);
  --line: rgba(156, 250, 226, 0.16);
  --accent: var(--mint);
  --chip-bg: rgba(243, 245, 244, 0.08);
  --chip-fg: var(--fog);
  --surface: rgba(243, 245, 244, 0.035);
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--fog);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--mint); color: var(--forest); }

/* ------------------------------------------------------------ type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.022em; }
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.muted { color: var(--fg-muted); }

.display-xl, .display-l, .display-m {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--fg);
}
.display-xl { font-size: clamp(2.5rem, 7vw, 6.4rem); overflow-wrap: anywhere; }
.display-l  { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.06; }
.display-m  { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.15; }
.display-xl em, .display-l em, .display-m em { font-style: normal; font-weight: 300; color: var(--accent); }
.statement { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -0.025em; font-weight: 300; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; font-weight: 300; letter-spacing: -0.01em; }
.kicker { color: var(--accent); margin-bottom: 1.4rem; }

/* SplitText line masks: pad the clip box so descenders and ascenders are never cut */
.line { display: block; }
.ch { position: relative; }
.ch .is-noise, .ch.is-noise { color: var(--fg-muted); }
.line-mask { padding: .1em .08em .18em; margin: -.1em -.08em -.18em; }
[data-split] { visibility: visible; }
html.is-loading [data-split] { visibility: hidden; }

/* ------------------------------------------------------------ layout */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; background: var(--bg); color: var(--fg); padding-block: var(--section-y); }
.col-content { max-width: 760px; }
.col-content > * + * { margin-top: 1.6rem; }
.col-content .btn { margin-top: 2.2rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ label chips */
.label { display: flex; gap: 6px; margin-bottom: clamp(26px, 3vw, 40px); flex-wrap: wrap; }
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 11px 14px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  border-radius: 2px;
  min-width: 64px;
  min-height: 34px;
  white-space: nowrap;
}
.chip--muted { color: var(--fg-muted); }
.theme-light .chip { box-shadow: 0 1px 0 rgba(1, 22, 20, 0.04); }
.theme-light .chip--muted { background: var(--mist); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; line-height: 1;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--mint { background: var(--mint); color: var(--forest); }
.btn--mint:hover { background: #b6ffee; }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--outline { border-color: var(--fg); color: var(--fg); }
.btn--outline:hover { background: var(--fg); color: var(--bg); }
.btn--dark { background: var(--forest); color: var(--fog); }
.btn--dark:hover { background: var(--moss); }
.btn--sm { padding: 0.75em 1.15em; font-size: 0.85rem; }
.btn--lg { padding: 1.15em 1.9em; font-size: 1.05rem; }
.btn--mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  color: var(--fog);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 43, 38, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(156, 250, 226, 0.08);
}
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__brand { display: inline-flex; }
.nav__logo { height: 34px; width: auto; }
.nav__links {
  display: flex; gap: 2px; padding: 3px;
  background: rgba(243, 245, 244, 0.06);
  border: 1px solid rgba(243, 245, 244, 0.06);
  border-radius: 3px;
}
.nav__links a {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 2px; color: rgba(243, 245, 244, 0.72);
  transition: background .25s, color .25s;
}
.nav__links a:hover { color: var(--fog); }
.nav__links a.is-active { background: var(--fog); color: var(--forest); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.nav__status { display: none; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.66rem; line-height: 1.3; color: rgba(243,245,244,.8); }
.nav__status-live { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); }
.dot { width: 7px; height: 7px; border-radius: 1px; background: var(--mint); box-shadow: inset 0 0 0 1px var(--mint); display: inline-block; flex: 0 0 auto; animation: cursor 1.6s steps(1) infinite; }
@keyframes cursor { 0% { background: var(--mint); } 50% { background: transparent; } 100% { background: var(--mint); } }

.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav__burger span { width: 20px; height: 1.5px; background: var(--fog); transition: transform .3s, opacity .3s; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--forest);
  display: none; padding: 32px var(--gutter);
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav .btn { margin-top: 24px; justify-content: center; border-bottom: 0; font-size: 1rem; }

@media (max-width: 1100px) {
  .nav__status { display: none; }
}
@media (max-width: 900px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
}

/* ------------------------------------------------------------ hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--mint); color: var(--forest); border-radius: 3px;
  animation: nudge 2.6s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 7px);} }
.hero {
  position: relative;
  background: var(--forest);
  color: var(--fog);
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px));
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* soft mint glow, like the foundation site's fluid backdrop */
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(156,250,226,0.16), transparent 60%),
    radial-gradient(45% 45% at 85% 10%, rgba(31,143,115,0.28), transparent 60%);
  filter: blur(40px);
  pointer-events: none; z-index: -1;
}
.hero__copy { text-align: center; max-width: 1100px; }
.hero__copy .display-xl { max-width: 16ch; margin-inline: auto; }
.hero__sub { max-width: 640px; margin: 2rem auto 0; color: rgba(243,245,244,.78); }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__field { border-bottom: 1px solid rgba(158,250,226,0.1); }

.hero__field {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  height: clamp(340px, 52vh, 560px);
  border-top: 1px solid rgba(156,250,226,0.1);
  border-bottom: 1px solid rgba(156,250,226,0.1);
  background: linear-gradient(180deg, rgba(4,27,23,0) 0%, rgba(4,27,23,0.55) 100%);
}
.ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__field .ascii { cursor: crosshair; }

.trace-card {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  display: flex; align-items: stretch;
  background: var(--fog); color: var(--forest);
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.trace-card:hover { transform: translateY(-3px); }
.trace-card__icon { display: grid; place-items: center; width: 54px; background: var(--mint); color: var(--forest); }
.trace-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; font-size: 0.7rem; }
.trace-card__title b { color: var(--jade); font-weight: 600; }
.trace-card__meta { color: var(--slate); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--mint); color: var(--forest); border-radius: 3px;
  animation: nudge 2.6s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 6px);} }

.hero__links { position: absolute; right: var(--gutter); bottom: calc(28px + var(--ask-fab-h, 40px) + 6px); z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.hero__links a {
  background: var(--fog); color: var(--forest); padding: 12px 16px; border-radius: 3px; font-size: 0.7rem; font-weight: 600;
  transition: background .25s, transform .3s;
}
.hero__links a:hover { background: var(--mint); transform: translateX(-3px); }

/* ---- Sentinel launcher: fixed bottom-right, joins the hero stack on load (see askFab() in main.js) */
.ask-fab {
  position: fixed; right: var(--gutter); bottom: 28px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fog); color: var(--forest); padding: 12px 16px; border-radius: 3px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(158,250,226,.55), 0 14px 34px rgba(0,0,0,.35);
  animation: fab-in .9s cubic-bezier(.2,.7,.2,1) .8s both, fab-breathe 3.2s ease-in-out 1.7s infinite;
  transition: background .25s, color .25s, transform .3s;
}
.ask-fab:hover { background: var(--mint); transform: translateX(-3px); animation-play-state: running, paused; box-shadow: 0 0 0 6px rgba(158,250,226,.22), 0 14px 34px rgba(0,0,0,.35); }
/* the site's square live marker (same as .dot on the live pill), blinking like a cursor; jade on the fog pill for contrast */
.ask-fab__dot { width: 7px; height: 7px; border-radius: 1px; background: var(--jade); box-shadow: inset 0 0 0 1px var(--jade); flex: 0 0 auto; animation: fab-cursor 1.6s steps(1) infinite; }
.ask-fab:hover .ask-fab__dot { background: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); animation: none; }
@keyframes fab-cursor { 0% { background: var(--jade); } 50% { background: transparent; } 100% { background: var(--jade); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fab-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(158,250,226,.55), 0 14px 34px rgba(0,0,0,.35); }
  50%      { box-shadow: 0 0 0 9px rgba(158,250,226,0), 0 14px 34px rgba(0,0,0,.35); }
}
@keyframes fab-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

@media (max-width: 760px) {
  .hero__links { display: none; }
  .ask-fab { bottom: 16px; right: 16px; padding: 11px 14px; }
  .trace-card { right: var(--gutter); bottom: 16px; }
  .trace-card__body { font-size: 0.62rem; gap: 3px; padding: 10px 12px; min-width: 0; }
  .trace-card__body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trace-card__icon { width: 42px; flex: 0 0 42px; }
  .hero__field { height: clamp(300px, 60vw, 420px); }
}
@media (max-width: 420px) {
  .trace-card__body { font-size: .62rem; }
  .trace-card__meta { display: none; }
}
.hero__field { margin-top: clamp(40px, 6vw, 80px); }
.trace-card { max-width: calc(100% - 2 * var(--gutter)); }
.trace-card__body { min-width: 0; }
.hero__links a { white-space: nowrap; }

.marquee { overflow: hidden; border-bottom: 1px solid rgba(156,250,226,0.08); padding: 14px 0; color: rgba(243,245,244,.55); }
.marquee__track { display: flex; width: max-content; gap: 0; }
.marquee__track span { padding-inline: 28px; position: relative; white-space: nowrap; }
.marquee__track span::after { content: '·'; position: absolute; right: -4px; color: var(--mint); }

/* ------------------------------------------------------------ flow (fees) */
.flow { display: grid; gap: 8px; align-content: start; }
.flow__node {
  background: var(--surface); border: 1px solid var(--line); padding: 20px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.flow__node strong { font-size: 1.3rem; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; }
.flow__node--accent { background: var(--mint); color: var(--forest); border-color: var(--mint); }
.flow__node--accent .mono { color: var(--forest); }
.flow__arrow { color: var(--accent); text-align: center; font-size: 1.1rem; transform: rotate(90deg); }

/* ------------------------------------------------------------ terminal */
.terminal { border: 1px solid var(--line); border-radius: 6px; background: var(--abyss); text-transform: none; letter-spacing: 0.01em; font-size: 0.8rem; height: 400px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; color: var(--fg-muted); }
.terminal__bar .muted { margin-left: auto; }
.terminal__body { flex: 1; min-height: 0; overflow: hidden; padding: 20px 18px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; line-height: 1.7; }
.terminal__line { white-space: pre-wrap; }
.terminal__line.q { color: var(--mint); }
.terminal__line.q::before { content: '> '; color: var(--fg-muted); }
.terminal__line.a { color: rgba(243,245,244,.85); padding-left: 16px; border-left: 1px solid var(--line); }
.terminal__line.a.is-thinking::after { content: '▮'; animation: blink .8s steps(1) infinite; color: var(--mint); }
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------ cta */
.cta { position: relative; background: var(--abyss); color: var(--fog); padding-block: clamp(72px, 9vw, 130px); overflow: hidden; isolation: isolate; }
.ascii--band { position: absolute; inset: 0; z-index: -1; opacity: .55; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(4,27,23,.85), rgba(4,27,23,.2)); pointer-events: none; }
.cta__inner { text-align: center; }
.cta .display-xl { margin-inline: auto; }
.ratio { white-space: nowrap; }
/* drawn slash: same stem weight and colour as the numerals, one clean diagonal */
.ratio__slash {
  display: inline-block; position: relative; vertical-align: baseline;
  width: .34em; height: .7em; margin: 0 .01em 0 .02em;
}
.ratio__slash::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: .08em; height: .82em; background: currentColor; border-radius: .01em;
  transform: translate(-50%, -50%) rotate(19deg);
}
.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; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 2.6rem; }

/* ------------------------------------------------------------ footer */
.footer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.footer__light { background: var(--mist); color: var(--ink); padding: clamp(40px, 5vw, 64px) var(--gutter); display: flex; flex-direction: column; gap: 56px; }
.footer__brand { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__brand .muted { color: var(--slate); }
.footer__brand img { height: 42px; width: auto; }
.subscribe { margin-top: auto; max-width: 480px; }
.subscribe label { display: block; font-size: 1.5rem; margin-bottom: 14px; }
.subscribe__row { display: flex; gap: 6px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid transparent; background: var(--paper); color: var(--ink);
  border-radius: 3px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: none;
}
.subscribe input:focus { outline: none; border-color: var(--jade); }

.subscribe__msg { margin-top: 10px; min-height: 1.2em; color: var(--jade); }
.footer__copy { font-size: 0.68rem; color: var(--slate); }

.footer__dark { background: var(--forest); color: var(--fog); padding: clamp(40px, 5vw, 64px) var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols a { color: rgba(243,245,244,.8); transition: color .25s; }
.footer__cols a:hover { color: var(--mint); }
.footer__mail { font-size: clamp(1.2rem, 1.8vw, 1.6rem); text-transform: none; letter-spacing: 0; margin-top: auto; }
.footer__mail a:hover { color: var(--mint); }
.footer__built { font-size: 0.68rem; color: rgba(243,245,244,.55); }
@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ motion prefs */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .scroll-cue, .chart__cursor { animation: none; }
  .ask-fab, .ask-fab__dot { animation: none; }
  html.is-loading [data-split] { visibility: visible; }
}


/* ------------------------------------------------------------ shared: rules, legends */
.rule {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0 12px; border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px); margin-bottom: 16px;
}
.live-pill { display: inline-flex; gap: 8px; align-items: center; color: var(--mint); }
.lg { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--mint); vertical-align: middle; margin-right: 8px; }
.lg--unreal { border-top-style: dashed; opacity: .85; }
.lg--btc { border-top: 2px dotted var(--fog); opacity: .6; }
.lg--long, .lg--short { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--mint); }
.lg--short { background: var(--ember); }

/* ------------------------------------------------------------ live engine (stage) */
#live { background: #031714; }
.stage { position: relative; }
.stage__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.live__value {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(4rem, 10vw, 8.6rem); color: var(--mint); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(158,250,226,.22);
}
.live__unit { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--fg-muted); }
.stage__legend { display: grid; gap: 7px; justify-items: start; color: var(--fg-muted); margin-top: 18px; }
.stage__legend .lgrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; max-width: 320px; }
.stage__legend .lgname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__legend > span { white-space: nowrap; }
.stage__legend b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--mint); font-variant-numeric: tabular-nums; text-transform: none; justify-self: end; }
.stage__legend b.fog { color: var(--fg); }
.stage__when { color: var(--fg-muted); }
.stage__plot { position: relative; height: clamp(320px, 62vw, 460px); margin-top: 8px; cursor: crosshair; }
.stage__plot::before {
  /* stage light behind the curve */
  content: ''; position: absolute; inset: -10% -4%; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 55% at 60% 55%, rgba(158,250,226,.09), transparent 70%);
  filter: blur(40px);
}
.chart__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart__tick { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; fill: rgba(243,245,244,.5); }
.chart__tick.is-zero { fill: rgba(243,245,244,.85); }
.chart__period { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; font-weight: 600; fill: rgba(243,245,244,.38); }
.chart__period.is-on { fill: var(--mint); }
.chart__tag rect { fill: #031714; stroke: var(--mint); stroke-width: 1; }
.chart__tag text { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; fill: var(--mint); }
.chart__tag--unreal rect { stroke-dasharray: 3 2; }
.chart__tag--btc rect { stroke: rgba(243,245,244,.35); }
.chart__tag--btc text { fill: rgba(243,245,244,.8); font-weight: 500; }
.chart__cursor { animation: chartcursor 1.6s steps(1) infinite; }
@keyframes chartcursor { 0% { fill: #DFFFF5; } 50% { fill: transparent; stroke: #DFFFF5; stroke-width: 1.2; } 100% { fill: #DFFFF5; } }
.chart__note-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; font-weight: 600; fill: rgba(243,245,244,.78); }
.chart__note-value { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; fill: var(--mint); }
.chart__note-value.is-down { fill: var(--ember); }
.chart__xdot--real { fill: #DFFFF5; }
.chart__xdot--unreal { fill: #031714; stroke: var(--mint); stroke-width: 1.5; }
.chart__xdot--btc { fill: var(--fog); opacity: .85; }
.chart__rail-chip { fill: var(--mint); }
.chart__rail-text { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; fill: var(--forest); }
.lg { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--mint); vertical-align: middle; flex: 0 0 auto; }
.lg--real { border-top-color: #DFFFF5; }
.lg--unreal { border-top-style: dashed; opacity: .85; }
.lg--btc { border-top: 2px dotted var(--fog); opacity: .6; }
.lg--long, .lg--short { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--mint); margin-right: 8px; }
.lg--short { background: var(--ember); }
@media (min-width: 900px) {
  /* layered: the figure and legend sit over the top of the plot */
  .stage__head { position: absolute; top: 0; left: 0; z-index: 2; max-width: 50%; }
  .stage__legend { position: absolute; top: 10px; right: 0; z-index: 2; margin: 0; justify-items: stretch; max-width: 340px; }
  .stage__plot { height: clamp(460px, 58vh, 640px); margin-top: 0; }
}
@media (max-width: 899px) { .stage__when { flex-basis: 100%; } }

/* ------------------------------------------------------------ flywheel */
.flywheel { background: var(--abyss); }
.split--fly { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.loop { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 56px 44px; padding: 28px 8px; }
.loop__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.loop__node { position: relative; z-index: 1; background: var(--forest); border: 1px solid rgba(158,250,226,.22); border-radius: 4px; padding: 18px 18px 16px; display: grid; gap: 6px; text-align: center; }
.loop__node b { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.015em; white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) { .loop__node b { font-size: .92rem; } .loop { gap: 48px 28px; } .loop__node { padding: 16px 12px 14px; } }
.loop__node .mono { color: var(--fg-muted); font-size: .62rem; }
.loop__node--accent { border-color: var(--mint); box-shadow: 0 0 0 1px rgba(158,250,226,.25), 0 0 40px rgba(158,250,226,.12); }
.loop__node--accent b { color: var(--mint); }
.loop__node[data-node="3"] { grid-column: 2; grid-row: 2; }
.loop__sparks { opacity: 0; }
.fly-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.fly-stat { background: var(--abyss); padding: 22px 24px 24px; display: grid; gap: 10px; }
.fly-stat b { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; }
.fly-stat b.soon { color: var(--fg-muted); font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.fly-stat__src { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: .62rem; }
.fly-stat__src .dot { animation: none; }
@media (max-width: 900px) {
  .split--fly { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; gap: 44px 40px; padding: 8px 0; }
  .loop__node[data-node="2"] { grid-column: 2; grid-row: 2; }
  .loop__node[data-node="3"] { grid-column: 1; grid-row: 2; }
}
@media (max-width: 760px) { .fly-stats { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .loop { gap: 40px 46px; } .loop__node { padding: 14px 8px 12px; } .loop__node b { font-size: .92rem; } .loop__node .mono { font-size: .56rem; } }

.positions {
  /* Открытых позиций бывает две, а бывает шесть. Без потолка ширины две карточки
     растягивались во весь экран, и числа внутри выглядели прижатыми к краю. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  width: fit-content; max-width: 100%; margin-inline: auto;
}
@media (max-width: 640px) {
  /* На телефоне сжатая по содержимому рамка выглядела уже соседних блоков — там она во всю ширину. */
  .positions { width: auto; grid-template-columns: 1fr; }
}
.pos { background: var(--bg); padding: 22px 24px 24px; display: grid; gap: 8px; }
.pos__coin { color: var(--fg-muted); }
.pos__roe { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; }
.pos__meta { color: var(--fg-muted); }
.pos__meta b { color: var(--mint); font-weight: 600; }

.wins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.win { background: var(--bg); padding: 18px 18px 20px; display: grid; gap: 6px; }
.win__coin { color: var(--fg-muted); font-size: .66rem; }
.win__pct { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.035em; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; }
.win__meta { color: var(--fg-muted); font-size: .62rem; }
@media (max-width: 1000px) { .wins { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .wins { grid-template-columns: repeat(2, 1fr); } }

.tape { margin-top: 16px; border: 1px solid var(--line); background: rgba(4,27,23,.35); font-size: .76rem; letter-spacing: .04em; }
.tape__head, .tape__row { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1fr .8fr; gap: 12px; padding: 0 20px; align-items: center; }
.tape__head { height: 40px; color: var(--fg-muted); border-bottom: 1px solid var(--line); font-size: .66rem; }
.tape__win { overflow: hidden; position: relative; }
.tape__win::after { content: ''; position: absolute; inset: auto 0 0 0; height: 44px; background: linear-gradient(180deg, rgba(4,27,23,0), rgba(4,27,23,.9)); pointer-events: none; }
.tape__row { height: 44px; border-bottom: 1px solid rgba(158,250,226,.07); }
.tape__coin { font-weight: 600; color: var(--fg); }
.side--long { color: var(--mint); }
.side--short { color: var(--ember); }
.up { color: var(--mint); }
.down { color: var(--ember); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .tape__head, .tape__row { grid-template-columns: .9fr 1.5fr .9fr 1fr; padding: 0 14px; gap: 8px; font-size: .7rem; }
  .tape__head > :last-child, .tape__row > :last-child, .tape__time { display: none; }
  .rule > .muted { display: none; }
}

/* ------------------------------------------------------------ the engine */
.engine { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.engine__copy { align-self: start; padding-top: 0; }
.engine__copy > * + * { margin-top: 1.4rem; }
.engine__copy .lead b { font-weight: 500; color: var(--fg); }
.map { position: relative; isolation: isolate; background: transparent; aspect-ratio: 1; max-height: 560px; }
.map__canvas { position: absolute; inset: 0 0 44px 0; width: 100%; height: calc(100% - 44px); display: block; cursor: crosshair; }
.map__cap { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; gap: 22px; padding: 0 4px; color: rgba(243,245,244,.62); }
.map__cap span { white-space: nowrap; }
@media (max-width: 560px) {
  .map { aspect-ratio: auto; max-height: none; display: flex; flex-direction: column; }
  .map__canvas { position: relative; inset: auto; width: 100%; height: min(92vw, 420px); }
  .map__cap { position: static; height: auto; flex-wrap: wrap; gap: 10px 18px; padding: 12px 0 0; font-size: .62rem; }
  .map__live { margin-left: 0; flex-basis: 100%; order: -1; }
}
.map__live { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; color: var(--mint); }
@media (max-width: 900px) { .engine { grid-template-columns: 1fr; } .map { max-height: none; } }

.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.stages li { background: var(--surface); padding: 20px 20px 22px; display: grid; gap: 10px; }
.stages__n { color: var(--accent); }
.stages li b { font-weight: 400; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1; }
.stages__d { color: var(--fg-muted); font-size: .64rem; }
@media (max-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); } .stages li:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ carry table */
.carry { border: 1px solid var(--line); background: rgba(4,27,23,.35); padding: 6px 22px 16px; }
.carry__table { width: 100%; border-collapse: collapse; font-size: .78rem; letter-spacing: .04em; }
.carry__table th { text-align: left; font-weight: 500; color: var(--fg-muted); padding: 14px 0 12px; border-bottom: 1px solid var(--line); font-size: .66rem; }
.carry__table td { padding: 16px 0; border-bottom: 1px solid rgba(158,250,226,.08); vertical-align: middle; }
.carry__table tr:last-child td { border-bottom: 0; }
.carry__asset { font-weight: 600; font-size: .95rem; letter-spacing: 0; font-family: var(--serif); }
.carry__apr { display: flex; align-items: center; gap: 14px; color: var(--mint); font-weight: 600; }
.carry__bar { flex: 1; max-width: 160px; height: 6px; background: rgba(158,250,226,.12); border-radius: 1px; overflow: hidden; }
.carry__bar i { display: block; height: 100%; background: var(--mint); transform-origin: left; }
.carry__state { color: var(--mint); }
.carry__state .dot { margin-right: 8px; animation: none; }
.carry__note { margin-top: 12px; color: var(--fg-muted); font-size: .64rem; }
@media (max-width: 640px) { .carry__table th:nth-child(3), .carry__table td:nth-child(3) { display: none; } .carry__bar { max-width: 90px; } }

/* ------------------------------------------------------------ trust (economics) */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.trust__card { background: var(--bg); padding: 26px 26px 30px; display: flex; flex-direction: column; }
.trust__icon { color: var(--accent); margin-bottom: 40px; }
.trust__card h3 { font-weight: 400; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 10px; }
.trust__card p { color: var(--fg-muted); font-size: .98rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } .trust__icon { margin-bottom: 20px; } }

/* ------------------------------------------------------------ mobile hardening */
@media (max-width: 560px) {
  .container { width: calc(100% - 2 * var(--gutter)); }
  .label { margin-bottom: 24px; }
  .chip { white-space: normal; line-height: 1.3; padding: 9px 12px; }
  .live__value { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .live__unit { font-size: 1.1rem; }
  .stage__legend { gap: 10px 16px; font-size: .62rem; }
  .stage__legend b { font-size: .95rem; }
  .positions { grid-template-columns: 1fr; }
  .pos { padding: 18px; }
  .rule { flex-wrap: wrap; row-gap: 6px; }
  .split, .split--reverse { gap: 32px; }
  .carry { padding: 4px 14px 12px; }
  .carry__table { font-size: .7rem; }
  .carry__apr { gap: 8px; }
  .terminal { height: 340px; font-size: .74rem; }
  .terminal__body { padding: 14px 12px 16px; }
  .terminal__bar { font-size: .6rem; }
  .terminal__bar .muted { display: none; }
  .flow__node { padding: 16px 18px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .subscribe__row { flex-direction: column; }
  .subscribe .btn { justify-content: center; }
  .cta__actions .mono { text-align: center; padding: 0 12px; }
  .nav__logo { height: 30px; }
}

/* ------------------------------------------------------------ the engine "window"
   A framed sheet that slides up over the pinned Live section, with the map's
   grid filling the whole section. --grid is animated by GSAP on scroll. */
.window {
  --grid: 0;
  position: relative; z-index: 3; isolation: isolate;
  background: var(--abyss);
  border: 1px solid rgba(158,250,226,.22); border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -30px 90px rgba(0,0,0,.55), 0 -1px 0 rgba(158,250,226,.12);
  overflow: hidden;
}
.map::before {
  /* the grid lives only in a soft circle around the map and fades out beyond it */
  content: ''; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  opacity: var(--grid);
  background-image:
    linear-gradient(rgba(158,250,226,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158,250,226,.09) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 47%, #000 0 36%, transparent 64%);
          mask-image: radial-gradient(circle at 50% 47%, #000 0 36%, transparent 64%);
}
.window::after {
  /* window handle */
  content: ''; position: absolute; top: 14px; left: 50%; width: 56px; height: 3px; transform: translateX(-50%);
  background: rgba(158,250,226,.35); border-radius: 2px;
}
.window .stages li { background: rgba(4,27,23,.55); }
#live { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .window { border-radius: 12px 12px 0 0; }
}

/* ------------------------------------------------------------ ask banner
   Compact one-row card that replaces the old terminal section. */
.section--tight { padding-block: clamp(24px, 3vw, 44px); }
/* welcome band: one short line between the intro and the live engine */
.welcome { background: var(--mist); padding-block: clamp(32px, 4.5vw, 60px); border-top: 1px solid rgba(1,22,20,.08); }
.welcome__line { text-align: center; margin: 0 auto; max-width: 48ch; text-wrap: balance; }
/* The banner sits directly under the idle section: drop the seam between them. */
.section:has(+ #ask) { padding-bottom: 0; }
.ask-banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 52px);
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--abyss);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.ask-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(156,250,226,0.1), transparent 60%),
    radial-gradient(40% 100% at 100% 50%, rgba(31,143,115,0.18), transparent 60%);
}
.ask-banner__orbs { position: relative; width: 84px; height: 72px; flex: 0 0 auto; }
.orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #DFFFF5 0%, var(--mint) 28%, var(--jade) 68%, var(--moss) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset -6px -8px 14px rgba(4,27,23,.35);
}
.orb--a { width: 44px; height: 44px; left: 4px; top: 12px; }
.orb--b { width: 28px; height: 28px; left: 44px; top: 4px; opacity: .55; filter: saturate(.5); }
.orb--c { width: 22px; height: 22px; left: 46px; top: 38px; }
.ask-banner__copy { min-width: 0; }
.ask-banner__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.ask-banner__text { color: var(--fg-muted); font-size: clamp(0.98rem, 1.15vw, 1.1rem); line-height: 1.5; max-width: 74ch; }
.ask-banner__text b { color: var(--fg); font-weight: 600; }
.btn--pill {
  border-radius: 999px; background: var(--fog); color: var(--forest); border-color: var(--fog);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; padding: 1em 1.8em; white-space: nowrap;
}
.btn--pill:hover { background: var(--mint); border-color: var(--mint); }
@media (max-width: 900px) {
  .ask-banner { grid-template-columns: auto minmax(0, 1fr); }
  .ask-banner .btn--pill { grid-column: 2; justify-self: start; }
}
/* Phone: the title sits beside the orbs, copy and button run full width beneath.
   `display: contents` lifts the title and text out of their wrapper so the grid
   can place them on separate rows. */
@media (max-width: 560px) {
  .ask-banner {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px; row-gap: 18px;
    padding: 24px 20px; border-radius: 14px;
  }
  .ask-banner__orbs { grid-area: 1 / 1; align-self: center; width: 52px; height: 46px; }
  .orb--a { width: 28px; height: 28px; left: 0; top: 9px; }
  .orb--b { width: 18px; height: 18px; left: 28px; top: 2px; }
  .orb--c { width: 14px; height: 14px; left: 30px; top: 25px; }
  .ask-banner__copy { display: contents; }
  .ask-banner__title {
    grid-area: 1 / 2; align-self: center; margin-bottom: 0;
    font-size: clamp(1.18rem, 5.4vw, 1.5rem);
  }
  .ask-banner__text { grid-area: 2 / 1 / 3 / -1; }
  .ask-banner .btn--pill { grid-area: 3 / 1 / 4 / -1; width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------ fees (inside flywheel)
   The fee flow sits on the left, the "Free. For now." copy on the right. */
.fees { margin-top: clamp(96px, 12vw, 176px); scroll-margin-top: var(--nav-h); }
.split--fees { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.split--fees .col-content .lead { max-width: 60ch; }
@media (max-width: 900px) {
  .split--fees { grid-template-columns: 1fr; }
  .split--fees .col-content { order: -1; }
}

/* ------------------------------------------------------------ engine → flywheel seam
   The engine sheet now ends: rounded bottom edge and a shadow cast onto the
   flywheel, which sits on the lighter forest tone with a mint glow at its top.
   A ruler-tick breaker marks the seam. Sections then alternate abyss/forest. */
.window {
  border-radius: 18px; border-bottom: 1px solid rgba(158,250,226,.22);
  box-shadow: 0 -30px 90px rgba(0,0,0,.55), 0 34px 80px rgba(0,0,0,.5), 0 -1px 0 rgba(158,250,226,.12);
}
@media (max-width: 760px) { .window { border-radius: 12px; } }

.flywheel { background: var(--forest); overflow: hidden; isolation: isolate; }
.flywheel::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 60%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(156,250,226,0.12), transparent 70%),
    radial-gradient(40% 40% at 90% 12%, rgba(31,143,115,0.22), transparent 65%);
  filter: blur(30px);
}
.breaker {
  position: relative; height: 22px;
  margin: calc(-1 * var(--section-y)) 0 calc(var(--section-y) - 22px);
  border-bottom: 1px solid rgba(158,250,226,.14);
  background:
    repeating-linear-gradient(90deg, rgba(158,250,226,.32) 0 1px, transparent 1px 64px) center bottom / auto 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(158,250,226,.16) 0 1px, transparent 1px 16px) center bottom / auto 7px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

#idle { background: var(--abyss); }
#ask { background: var(--abyss); }
.ask-banner { background: var(--forest); }

/* ------------------------------------------------------------ ask → cta handoff
   More air under the banner, and the CTA's ascii band fades in from the top so
   the two abyss sections melt together instead of meeting at a hard edge. */
#ask { padding-bottom: clamp(88px, 10vw, 150px); }
.ascii--band {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 100%);
}

/* подвал: только знак, подписка и одна строка прав со ссылками */
.footer__legal { display: inline-flex; gap: 14px; margin-left: 10px; }
.footer__legal a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; opacity: .75; }
.footer__legal a:hover { opacity: 1; }

/* ------------------------------------------------------------ Ask Sentinel: окно диалога */
.askwin {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: min(420px, calc(100vw - 36px)); max-height: min(620px, calc(100vh - 36px));
  display: none; grid-template-rows: auto 1fr auto auto;
  background: var(--abyss, #041B17); border: 1px solid rgba(158,250,226,.28); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55); overflow: hidden;
}
.askwin.is-open { display: grid; }
.askwin__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(158,250,226,.16); }
.askwin__title { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.askwin__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.askwin__close { background: none; border: 1px solid rgba(158,250,226,.28); border-radius: 10px; color: var(--fg-muted); font-size: 20px; line-height: 1; cursor: pointer; width: 36px; height: 36px; }
.askwin__close:hover { color: var(--fg); }
.askwin__log { padding: 14px 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.askmsg { max-width: 92%; padding: 10px 13px; border-radius: 13px; font-size: .95rem; line-height: 1.45; }
.askmsg--bot { background: rgba(158,250,226,.08); border: 1px solid rgba(158,250,226,.16); color: var(--fg); justify-self: start; }
.askmsg--me { background: var(--mint); color: var(--ink, #011614); justify-self: end; }
.askmsg__meta { display: block; margin-top: 7px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.askdots { display: inline-flex; gap: 5px; }
.askdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); opacity: .45; animation: askblink 1.1s infinite; }
.askdots i:nth-child(2) { animation-delay: .15s } .askdots i:nth-child(3) { animation-delay: .3s }
@keyframes askblink { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
.askwin__chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 16px 12px; }
.askwin__chips button {
  background: transparent; border: 1px solid rgba(158,250,226,.22); color: var(--fg-muted);
  border-radius: 999px; padding: 6px 11px; font-size: .7rem; cursor: pointer; font-family: inherit;
}
.askwin__chips button:hover { border-color: var(--mint); color: var(--mint); }
.askwin__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(158,250,226,.16); }
.askwin__input { background: rgba(255,255,255,.04); border: 1px solid rgba(158,250,226,.18); border-radius: 11px; padding: 11px 13px; color: var(--fg); font-size: 16px; }
/* 16px — не прихоть: на меньшем айфон увеличивает страницу при фокусе, и окно уезжает за край. */
.askwin__input:focus { outline: none; border-color: var(--mint); }
.askwin__send { background: var(--mint); color: var(--ink, #011614); border: 0; border-radius: 11px; width: 46px; flex: 0 0 auto; font-size: 1.1rem; cursor: pointer; }
.ask-fab.is-hidden { display: none; }
@media (max-width: 560px) { .askwin { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .askwin__close { width: 44px; height: 44px; } }
