:root {
  --paper: #0e1116;
  --paper-2: #151a21;
  --card: #1a2029;
  --card-2: #222a35;
  --ink: #f2f4f7;
  --ink-2: #b4bcc8;
  --muted: #7d8794;
  --line: #2b3440;
  --accent: #c6f432;
  --on-accent: #0e1116;
  --good: #4ade80;
  --good-soft: #12301f;
  --bad: #ff7a59;
  --bad-soft: #3a1c15;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: dark; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
a { color: inherit; }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
section { padding-block: clamp(64px, 9vw, 120px); }
.head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head p { margin-top: 14px; font-size: 1.15rem; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--accent); }
.btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); border-color: var(--ink-2); box-shadow: none; transform: none; }
.btn--dark { background: var(--paper); color: var(--ink); }
.btn--dark:hover { box-shadow: 0 12px 24px -12px #000; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 0; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; background: radial-gradient(600px 320px at 78% 30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .9rem; font-weight: 600; }
.tag__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
h1 { margin-top: 24px; font-size: clamp(2.1rem, 4.7vw, 3.9rem); line-height: 1.04; }
h1 em { white-space: nowrap; font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: 1.2rem; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Demo */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px #000; }
.demo__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.demo__head > div { display: grid; line-height: 1.3; min-width: 0; }
.demo__head strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; }
.demo__status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.demo__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
.demo__badge { margin-left: auto; padding: 4px 10px; border: 1px dashed var(--muted); border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.demo__body { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; height: 300px; padding: 20px; overflow: hidden; }
.msg { flex: none; max-width: 84%; padding: 12px 16px; border-radius: 18px; font-size: .97rem; line-height: 1.45; animation: pop .35s ease both; }
.msg time { display: block; margin-top: 4px; font-size: .74rem; opacity: .65; }
.msg--in { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 5px; align-self: flex-end; padding: 16px 18px; background: var(--accent); border-bottom-right-radius: 4px; }
.msg--typing.msg--in-typing { align-self: flex-start; background: var(--card-2); border-bottom-right-radius: 18px; border-bottom-left-radius: 4px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); animation: blink 1s infinite; }
.msg--in-typing i { background: var(--ink); }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
.demo__log { display: grid; align-content: start; gap: 8px; height: 96px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--good-soft); font-size: .88rem; font-weight: 500; }
.demo__log li { display: flex; gap: 10px; animation: pop .35s ease both; }
.demo__log li::before { content: "✓"; font-weight: 800; color: var(--good); }
.demo__log time { font-variant-numeric: tabular-nums; color: var(--good); font-weight: 700; }

/* Ticker */
.ticker { margin-top: clamp(48px, 7vw, 88px); background: var(--accent); color: var(--on-accent); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding: 14px 0 14px 28px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.ticker span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }

/* Flow diagram */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); align-items: stretch; }
.flow__col { display: grid; gap: 14px; align-content: center; }
.flow__col li { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; }
.flow__col svg { color: var(--accent); }
.flow__col--in li { margin-right: 84px; }
.flow__col--out li { margin-left: 84px; }
.flow__col li::after { content: ""; position: absolute; top: 50%; width: 84px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.flow__col--in li::after { left: 100%; }
.flow__col--out li::after { right: 100%; }
.flow__col li::before { content: ""; position: absolute; top: calc(50% - 3px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: travel 2.4s linear infinite; z-index: 1; }
.flow__col--in li::before { left: 100%; }
.flow__col--out li::before { left: -84px; }
.flow__col li:nth-child(2)::before { animation-delay: -.5s; }
.flow__col li:nth-child(3)::before { animation-delay: -1s; }
.flow__col li:nth-child(4)::before { animation-delay: -1.5s; }
.flow__col li:nth-child(5)::before { animation-delay: -2s; }
.core { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 32px 20px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 28px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card)); text-align: center; box-shadow: 0 0 80px -30px var(--accent); }
.core strong { margin-top: 18px; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.core > span { font-size: .92rem; color: var(--ink-2); }
.core__device { display: grid; gap: 14px; width: 150px; padding: 18px; border: 1.5px solid var(--ink-2); border-radius: 18px; background: var(--paper); }
.core__agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.core__agents i { aspect-ratio: 1; border-radius: 8px; background: var(--accent); animation: pulse 2.4s infinite; }
.core__agents i:nth-child(2) { animation-delay: .4s; } .core__agents i:nth-child(3) { animation-delay: .8s; }
.core__agents i:nth-child(4) { animation-delay: 1.2s; } .core__agents i:nth-child(5) { animation-delay: 1.6s; } .core__agents i:nth-child(6) { animation-delay: 2s; }
.core__led { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.core__led span { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* Scenes */
.scenes { background: var(--paper-2); border-block: 1px solid var(--line); }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.pain__art { display: grid; align-content: center; gap: 8px; height: 176px; margin: 14px 14px 0; padding: 16px; border-radius: 14px; background: var(--paper); font-size: .84rem; color: var(--ink-2); }
.pain h3 { padding: 20px 22px 18px; font-size: 1.28rem; line-height: 1.22; letter-spacing: -0.01em; }
.pain__fix { display: flex; align-items: flex-start; gap: 10px; margin: auto 14px 14px; padding: 12px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: .94rem; font-weight: 600; line-height: 1.35; }
.pain__fix svg { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.6; }
.pain--custom { justify-content: center; gap: 14px; padding: 28px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.pain--custom h3 { padding: 0; font-size: 1.7rem; }
.pain--custom p { color: var(--ink-2); }
.pain--custom .btn { align-self: flex-start; margin-top: 6px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--bad-soft); color: var(--bad); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--card); }
.row > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row b { color: var(--ink); }
.row--note { justify-content: flex-start; }
.row--note svg { width: 16px; height: 16px; color: var(--bad); }
.row--note span { flex: 1; color: var(--ink); }
.row--note time { font-size: .72rem; color: var(--muted); }
.bub { justify-self: start; max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 12px 3px; background: var(--card-2); color: var(--ink); }
.bub--out { justify-self: end; border-radius: 12px 12px 3px 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); }
.bub time { margin-left: 8px; font-size: .7rem; opacity: .6; }
.gap { display: flex; align-items: center; gap: 8px; }
.gap::before, .gap::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 6px; text-align: center; font-size: .72rem; color: var(--muted); }
.months span::before { content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 6px; border-radius: 50%; border: 1.5px dashed var(--line); }
.months .on { color: var(--ink); }
.months .on::before { border: 0; background: var(--accent); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 6px; }
.cal i { height: 20px; border-radius: 5px; background: var(--card); }
.cal .on { background: var(--accent); }
.bars { display: grid; gap: 6px; }
.bars + .bars { margin-top: 8px; }
.bars div { height: 18px; border-radius: 5px; background: var(--card); overflow: hidden; }
.bars i { display: block; height: 100%; border-radius: 5px; background: var(--ink-2); }
.bars--bad span { color: var(--bad); font-weight: 700; }
.bars--bad i { background: var(--bad); }

/* Gains */
.gains__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gain { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.gain__art { display: grid; align-content: center; height: 150px; margin-bottom: 24px; padding: 18px; border-radius: 16px; background: var(--paper); }
.gain h3 { font-size: 1.5rem; }
.gain p { margin-top: 8px; color: var(--ink-2); }
.hours { gap: 12px; }
.hours__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.hours__bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.hours__bar i { height: 22px; border-radius: 3px; background: var(--card-2); }
.hours__bar--admin i:nth-child(n+9):nth-child(-n+17) { background: var(--ink-2); }
.hours__bar--ai i { background: var(--accent); }
.hours__scale { display: flex; justify-content: space-between; margin-left: 62px; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.crew { grid-auto-flow: column; justify-content: center; align-items: center; gap: 16px; }
.crew__people { display: flex; gap: 4px; color: var(--ink-2); }
.crew__people svg { width: 34px; height: 34px; }
.crew__plus { font-family: var(--display); font-size: 1.8rem; color: var(--muted); }
.crew__ai { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.crew__ai i { display: grid; place-items: center; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 .72rem var(--display); }
.box { justify-items: center; }
.box__pc { position: relative; display: grid; place-items: center; width: 150px; height: 96px; border: 1.5px solid var(--ink-2); border-radius: 18px; background: var(--card); color: var(--accent); }
.box__pc svg { width: 36px; height: 36px; }
.box__led { position: absolute; left: 14px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
.box__vent { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px); }

/* Process */
.process { padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 52px; height: 1px; background: var(--accent); }
.steps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.steps h3 { margin-top: 20px; font-size: 1.4rem; }
.steps p { margin-top: 8px; color: var(--ink-2); }

/* About */
.about { background: var(--paper-2); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.about p { margin-top: 20px; max-width: 44ch; font-size: 1.15rem; color: var(--ink-2); }
.team { display: grid; gap: 22px; }
.team__me { position: relative; justify-self: center; display: grid; gap: 2px; padding: 16px 34px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-align: center; }
.team__me b { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.team__me span { font-size: .85rem; }
.team__me::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--muted); }
.team__agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 22px; border-top: 1px solid var(--muted); }
.team__agents li { display: grid; justify-items: center; gap: 10px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.team__agents i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--card)); color: var(--accent); font: 700 .8rem var(--display); }
.team__agents b { font-family: var(--display); font-size: 1rem; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); color: var(--ink); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; background: var(--accent); color: var(--on-accent); }
details p { padding: 0 24px 22px; color: var(--ink-2); max-width: 66ch; }

/* CTA */
.cta { padding-top: 0; }
.cta__box { padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); border-radius: 32px; background: var(--accent); color: var(--on-accent); }
.cta__box h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.cta__box > p { margin-top: 18px; max-width: 48ch; font-size: 1.2rem; }
.cta__box .btn { margin-top: 32px; }

/* Footer */
.foot { padding-block: 28px; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: .92rem; color: var(--muted); }

@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes travel { from { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } to { transform: translateX(76px); opacity: 0; } }

@media (max-width: 960px) {
  .hero__grid, .about__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
  .gains__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .flow__col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow__col li { margin: 0; padding: 12px 14px; font-size: .95rem; }
  .flow__col li::after, .flow__col li::before { display: none; }
  .flow__col li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .core { position: relative; justify-self: center; width: min(100%, 320px); }
  .core::before, .core::after { content: ""; position: absolute; left: 50%; width: 2px; height: 32px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); }
  .core::before { bottom: calc(100% + 6px); }
  .core::after { top: calc(100% + 6px); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .team__agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__cta .btn, .cta__box .btn { width: 100%; }
  .btn { padding-inline: 20px; text-align: center; }
  .demo__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow__col li::before { display: none; }
}
