/* ============================================================
   МОТЫГА — Landing styles (production main site)
   Theme is driven by data-attributes on <html>:
     data-base="warm|cool"  data-accent="lime|amber|violet"  data-grain="on|off"
   Display + body type: Manrope.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Base tone ---------- */
:root,
:root[data-base="warm"] {
  --bg:        oklch(0.145 0.006 80);
  --bg-2:      oklch(0.182 0.008 80);
  --surface:   oklch(0.214 0.009 80);
  --surface-2: oklch(0.262 0.010 80);
  --line:        oklch(1 0 0 / 0.085);
  --line-strong: oklch(1 0 0 / 0.17);
  --fg:    oklch(0.965 0.005 80);
  --muted: oklch(0.74 0.008 80);
  --faint: oklch(0.56 0.008 80);
}
:root[data-base="cool"] {
  --bg:        oklch(0.148 0.012 255);
  --bg-2:      oklch(0.185 0.014 255);
  --surface:   oklch(0.216 0.016 255);
  --surface-2: oklch(0.264 0.018 255);
  --line:        oklch(1 0 0 / 0.09);
  --line-strong: oklch(1 0 0 / 0.18);
  --fg:    oklch(0.965 0.006 255);
  --muted: oklch(0.74 0.012 255);
  --faint: oklch(0.56 0.012 255);
}

/* ---------- Accent ---------- */
:root,
:root[data-accent="lime"] {
  --accent:      oklch(0.875 0.215 128);
  --accent-soft: oklch(0.875 0.215 128 / 0.14);
  --accent-line: oklch(0.875 0.215 128 / 0.42);
  --on-accent:   oklch(0.21 0.05 128);
  --glow:        oklch(0.875 0.215 128 / 0.35);
}
:root[data-accent="amber"] {
  --accent:      oklch(0.805 0.172 67);
  --accent-soft: oklch(0.805 0.172 67 / 0.15);
  --accent-line: oklch(0.805 0.172 67 / 0.42);
  --on-accent:   oklch(0.22 0.06 67);
  --glow:        oklch(0.805 0.172 67 / 0.35);
}
:root[data-accent="violet"] {
  --accent:      oklch(0.72 0.205 298);
  --accent-soft: oklch(0.72 0.205 298 / 0.16);
  --accent-line: oklch(0.72 0.205 298 / 0.45);
  --on-accent:   oklch(0.98 0.01 298);
  --glow:        oklch(0.72 0.205 298 / 0.42);
}

/* ---------- Type families ---------- */
:root {
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Grain texture overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
:root[data-grain="on"] .grain { opacity: 0.05; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow.no-tick::before { display: none; }
.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 11px; line-height: 1;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px var(--accent-line), 0 14px 40px -14px var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--accent-line), 0 18px 54px -12px var(--glow); transform: translateY(-2px); }
.btn-ghost {
  color: var(--fg); background: oklch(1 0 0 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.08); transform: translateY(-2px); }
.btn-lg { padding: 17px 28px; font-size: 16.5px; border-radius: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.scrolled {
  background: oklch(0.145 0.006 80 / 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
:root[data-base="cool"] .nav.scrolled { background: oklch(0.148 0.012 255 / 0.72); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; position: relative; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-name small {
  font-family: var(--font-mono); font-weight: 400; font-size: 11px;
  color: var(--faint); letter-spacing: 0.12em; margin-left: 7px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: oklch(1 0 0 / 0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
/* Uniform height for all header controls so the top-right cluster lines up
   (icon button, language select and the CTA buttons were three different heights). */
.nav-cta > * { height: 38px; box-sizing: border-box; }
.nav-cta .btn { padding: 0 18px; font-size: 14px; }
.nav-cta .lang-sel { padding: 0 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 720px; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 40%, var(--accent-soft) 0%, transparent 70%);
  filter: blur(8px);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, black 10%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 50% 30%, black 10%, transparent 75%);
  opacity: 0.6;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 7.4vw, 104px); line-height: 0.98;
  letter-spacing: -0.035em; margin: 22px auto 0; max-width: 16ch; text-wrap: balance;
}
.hero h1 .stroke { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.5;
  max-width: 56ch; margin: 26px auto 0; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 13px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  padding: 7px 8px 7px 14px; border-radius: 100px;
  background: oklch(1 0 0 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted);
}
.hero-badge b { color: var(--fg); font-weight: 700; }
.hero-badge .tag {
  font-size: 11px; padding: 3px 9px; border-radius: 100px; color: var(--on-accent);
  background: var(--accent); font-weight: 700;
}

/* ---------- Prompt console ---------- */
.console {
  position: relative; z-index: 2; margin: 52px auto 0; max-width: 720px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 90px -40px oklch(0 0 0 / 0.8);
  overflow: hidden; text-align: left;
}
.console-bar { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.console-bar .label { margin-left: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.console-body { padding: 30px 26px 28px; }
.console-row { display: flex; align-items: flex-start; gap: 13px; }
.console-prompt-mark { color: var(--accent); font-family: var(--font-mono); font-size: 20px; font-weight: 600; flex: none; line-height: 1.5; }
/* Reserve 2 lines so the page never jumps while the prompt types/wraps. */
.console-input { flex: 1; font-size: 19px; font-weight: 500; color: var(--fg); min-height: 58px; line-height: 1.5; }
.console-input .caret {
  display: inline-block; width: 2px; height: 22px; background: var(--accent);
  margin-left: 2px; vertical-align: middle; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
/* Fixed height so inserting the route chip never shifts layout. */
.console-route {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong);
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap; min-height: 64px;
}
.route-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.route-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--accent-soft); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent-line);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.route-chip.show { opacity: 1; transform: none; }
.route-chip .ico { width: 16px; height: 16px; }
.route-chip .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 400; }

/* ---------- Marquee ---------- */
.marquee-sec { padding: 18px 0 6px; }
.marquee-cap { text-align: center; margin-bottom: 22px; justify-content: center; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scrollx 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.m-item {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--muted);
  padding: 0 30px; white-space: nowrap;
}
.m-item .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* ---------- Section header ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(31px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.025em;
  margin-top: 18px; text-wrap: balance;
}
.section-head p { font-size: 18.5px; color: var(--muted); margin-top: 18px; line-height: 1.5; text-wrap: pretty; }
.section-num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.14em; }

/* ---------- Hub grid ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Click = the front card is "thrown away" (flies off), revealing the description
   underneath. Cards are opaque so the cursor flashlight never washes over them. */
/* Fixed height so the front and the revealed back are EXACTLY the same size (both faces
   are absolute → the card height equals min-height for every card, uniform across the grid). */
.hub-card { position: relative; min-height: 256px; cursor: pointer; }
.hub-face {
  position: absolute; inset: 0; padding: 26px; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hub-back { z-index: 1; }
.hub-front { z-index: 2; transition: transform .5s cubic-bezier(.36,.66,.04,1), opacity .42s ease, box-shadow .25s; }
.hub-card:hover .hub-front { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent-line); }
.hub-card.flipped .hub-front { transform: translate(72px, -150px) rotate(15deg) scale(.82); opacity: 0; pointer-events: none; }
.hub-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--accent); margin-bottom: 18px;
}
.hub-ico svg { width: 23px; height: 23px; }
.hub-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.hub-card p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.45; }
.hub-models { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.hub-models span {
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  padding: 4px 8px; border-radius: 7px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Chat / code two-column ---------- */
.chat-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.chat-copy h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,4vw,48px);
  letter-spacing: -0.025em; line-height: 1.04; margin-top: 16px;
}
.chat-copy > p { font-size: 18px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.feat-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.feat-row { display: flex; gap: 15px; align-items: flex-start; }
.feat-row .fi {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.feat-row .fi svg { width: 17px; height: 17px; }
.feat-row h4 { font-size: 16.5px; font-weight: 700; }
.feat-row p { font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

.chat-ui {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 90px -45px oklch(0 0 0 / 0.85);
  overflow: hidden;
}
.chat-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.chat-model {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600;
  padding: 8px 13px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chat-model .d { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-model .swap { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-left: 4px; }
.chat-tabs { display: flex; gap: 5px; }
.chat-tab {
  font-family: var(--font-mono); font-size: 11.5px; padding: 6px 11px; border-radius: 8px; color: var(--faint);
  transition: color .2s, background .2s; letter-spacing: 0.03em;
}
.chat-tab.active { color: var(--on-accent); background: var(--accent); }
.chat-tab:not(.active):hover { color: var(--fg); background: oklch(1 0 0 / 0.05); }
.chat-body { padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; height: 340px; overflow-y: auto; scrollbar-width: thin; }
.chat-body::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.msg { max-width: 84%; }
.msg.user { align-self: flex-end; }
.msg .bubble { padding: 13px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.msg.user .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.bot .bubble { background: var(--surface-2); color: var(--fg); border-bottom-left-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.msg .who { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-bottom: 6px; letter-spacing: 0.04em; }
.msg.user .who { text-align: right; }
.msg.bot .bubble .typing { display: inline-flex; gap: 4px; }
.msg.bot .bubble .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1.1s infinite; }
.msg.bot .bubble .typing i:nth-child(2){ animation-delay:.15s } .msg.bot .bubble .typing i:nth-child(3){ animation-delay:.3s }
@keyframes bounce { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-4px);opacity:1} }
.chat-media {
  margin-top: 4px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, var(--surface) 10px 20px);
  aspect-ratio: 16/10; display: grid; place-items: center;
}
.chat-media .ph { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-align: center; padding: 8px; }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-top: 1px solid var(--line); }
.chat-input .fld {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 11px; background: var(--bg-2); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-family: var(--font-body);
  outline: none; transition: box-shadow .2s;
}
.chat-input .fld::placeholder { color: var(--faint); }
.chat-input .fld:focus { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.chat-input .send { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.chat-input .send svg { width: 18px; height: 18px; }

/* ---------- Code card (Motyga Code) ---------- */
.code-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 90px -45px oklch(0 0 0 / 0.85);
  overflow: hidden;
}
.code-body {
  padding: 22px 22px 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.6;
  color: var(--fg); display: flex; flex-direction: column; gap: 9px; min-height: 286px;
}
.code-line { display: flex; gap: 9px; align-items: baseline; word-break: break-word; opacity: 0; transform: translateY(4px); animation: codein .32s forwards; }
@keyframes codein { to { opacity: 1; transform: none; } }
.code-line .mark { color: var(--accent); flex: none; font-weight: 600; }
.code-line .c { color: var(--faint); }
.code-line .s { color: oklch(0.86 0.14 200); }
.code-line.result { color: var(--accent); }
.code-line.result .mark { color: var(--accent); }
.code-line .work { display: inline-flex; gap: 4px; padding: 4px 0; }
.code-line .work i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: bounce 1.1s infinite; }
.code-line .work i:nth-child(2){ animation-delay:.15s } .code-line .work i:nth-child(3){ animation-delay:.3s }

/* ---------- Agents ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.agent-card {
  padding: 22px; border-radius: 16px; background: oklch(1 0 0 / 0.025); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s, box-shadow .25s;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent-line); }
.agent-emoji {
  width: 42px; height: 42px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--accent); margin-bottom: 15px;
}
.agent-emoji svg { width: 21px; height: 21px; }
.agent-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.agent-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.agent-card .run {
  margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.04em; white-space: nowrap;
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.stat { background: var(--bg); padding: 30px 26px; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,3.6vw,44px); letter-spacing: -0.02em; }
.stat .n .u { color: var(--accent); }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 7px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 84px 40px; border-radius: 26px;
  /* opaque, like the other cards — the cursor flashlight stays BEHIND it, not on it */
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.cta-glow { display: none; }  /* no internal glow — match the other opaque cards (light stays behind) */
.cta h2 { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px,5vw,62px); letter-spacing: -0.03em; line-height: 1.02; margin-top: 18px; text-wrap: balance; }
.cta p { position: relative; color: var(--muted); font-size: 19px; margin: 20px auto 0; max-width: 48ch; }
.cta .hero-actions { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom .copy { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.footer-brand-line { max-width: 320px; }
.footer-brand-line p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.5; }

/* ---------- Cursor-follow glow ---------- */
.cursor-glow {
  position: fixed; z-index: 0; left: 0; top: 0; width: 520px; height: 520px;
  margin-left: -260px; margin-top: -260px; pointer-events: none;
  transform: translate3d(var(--cx, 50vw), var(--cy, 30vh), 0);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity .4s ease; will-change: transform;
  mix-blend-mode: screen; filter: blur(20px);
}
.cursor-glow.on { opacity: .6; }
/* lift all real content above the glow so it stays a background effect */
body > nav, body > header, body > section, body > footer { position: relative; z-index: 1; }

/* ---------- Language dropdown + icon button ---------- */
.lang-sel {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--fg);
  background: oklch(1 0 0 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong);
  padding: 8px 10px; border-radius: 9px; cursor: pointer; outline: none; border: none;
  appearance: none; -webkit-appearance: none;
}
.lang-sel:hover { background: oklch(1 0 0 / 0.08); }
.lang-sel option { background: var(--bg-2); color: var(--fg); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  color: var(--accent); background: oklch(1 0 0 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color .2s, background .2s;
}
.icon-btn:hover { background: oklch(1 0 0 / 0.08); }
.icon-btn.off { color: var(--faint); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Hub card back content ---------- */
.hub-back .bk-h { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.hub-back p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.hub-back .bk-back { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card {
  position: relative; padding: 28px 24px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent-line); }
.price-card.featured { background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: inset 0 0 0 1.5px var(--accent-line), 0 34px 80px -44px var(--glow); }
.price-badge {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent);
  padding: 4px 9px; border-radius: 100px; font-weight: 700;
}
.price-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.price-amt { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.price-amt .v { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; }
.price-amt .u { color: var(--muted); font-size: 14px; }
.price-sub { color: var(--faint); font-size: 12.5px; margin-top: 5px; font-family: var(--font-mono); }
.price-feats { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.price-feats li { list-style: none; display: flex; gap: 9px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.price-feats li::before { content: "✦"; color: var(--accent); flex: none; }
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.pricing-note a { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .console-input .caret { animation: none; }
  .code-line { animation: none; }
  .route-chip { transition: none; opacity: 1; transform: none; }
  .hub-front { transition: none; }
  .msg.bot .bubble .typing i, .code-line .work i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 124px 0 64px; }
  .section { padding: 70px 0; }
  .hub-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chat-tabs { display: none; }
  .nav-cta .nav-login { display: none; }
  .footer-cols { gap: 36px; }
  .cta { padding: 60px 22px; }
}
