:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: #131c3a;
  --surface-2: #18234a;
  --border: rgba(148, 163, 214, 0.16);
  --text: #e8ecf8;
  --muted: #9aa6c7;
  --accent: #34d399;
  --accent-2: #60a5fa;
  --warn: #fbbf24;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #062018; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.c-mute { color: var(--muted); }
.c-pass { color: var(--accent); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.dot--pass { background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--accent); color: #052016; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(52, 211, 153, .7); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 16, 32, 0.72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 600 13px var(--mono); color: #052016; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links .btn { color: #052016; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(96, 165, 250, .18), transparent 70%),
    radial-gradient(500px 360px at 10% 30%, rgba(52, 211, 153, .14), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; background: rgba(19, 28, 58, .6); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; margin: 22px 0 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__cta.center { justify-content: center; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li { font: 13px var(--mono); color: var(--muted); padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }

/* Console */
.console { background: #070b18; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.console__bar span { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.console__bar span:nth-child(2) { background: var(--warn); }
.console__bar span:nth-child(3) { background: var(--accent); }
.console__bar p { margin: 0 0 0 10px; font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__body { margin: 0; padding: 20px 22px; font: 13.5px/1.75 var(--mono); color: var(--text); overflow-x: auto; min-height: 380px; }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.kicker { font: 600 13px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.about .section__head { margin: 0; }
.about__body p { color: var(--muted); font-size: 1.05rem; }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #052016; background: var(--accent); }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, .45); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 15px; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(52, 211, 153, .12); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li { font: 12px var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.timeline__item { display: grid; grid-template-columns: 150px 1fr; gap: 40px; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 144px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline__meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-right: 24px; }
.timeline__date { font: 13px var(--mono); color: var(--muted); }
.badge { font: 600 12px var(--mono); padding: 4px 10px; border-radius: 6px; background: rgba(52, 211, 153, .14); color: var(--accent); }
.badge--alt { background: rgba(96, 165, 250, .14); color: var(--accent-2); }
.timeline__body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.timeline__body h3 { font-size: 1.2rem; }
.timeline__body p { color: var(--muted); }
.timeline__body ul { display: grid; gap: 8px; }
.timeline__body li { position: relative; padding-left: 20px; color: var(--text); font-size: 15px; }
.timeline__body li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* Case study */
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 40px; border-radius: 22px; background: linear-gradient(145deg, var(--surface), var(--bg-alt)); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 24px; }
.case__label { font: 13px var(--mono); color: var(--accent-2); }
.case h3 { font-size: 1.8rem; }
.case__copy > p { color: var(--muted); }
.case__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.case h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case__cols li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.case__panel { background: #070b18; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; align-self: start; }
.meter__row { display: flex; justify-content: space-between; font-size: 14px; margin-top: 14px; }
.meter__row b { font: 600 12px var(--mono); color: var(--accent); }
.meter__bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.is-visible .meter__bar i { width: var(--w); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 0; }
.kpis div { background: var(--surface); border-radius: 12px; padding: 12px; text-align: center; }
.kpis dt { font-size: 12px; color: var(--muted); }
.kpis dd { margin: 4px 0 0; font-size: 1.4rem; font-weight: 800; }
.note { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.mini .card { padding: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.steps span { font: 600 14px var(--mono); color: var(--accent); }
.steps h3 { margin-top: 10px; font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Contact */
.contact { text-align: center; background: radial-gradient(700px 360px at 50% 0%, rgba(52, 211, 153, .14), transparent 70%), var(--bg-alt); }
.contact__inner { max-width: 720px; }
.contact .lead { margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .meter__bar i { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .about, .case { grid-template-columns: 1fr; }
  .cards--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__links .btn { margin-top: 12px; border: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 56px 0 48px; }
  .section { padding: 72px 0; }
  .cards--3, .cards--2, .steps, .case__cols { grid-template-columns: 1fr; }
  .case { padding: 24px; }
  .console__body { font-size: 12px; min-height: 0; }
  .timeline::before, .timeline__item::before { display: none; }
  .timeline__item { grid-template-columns: 1fr; gap: 12px; }
  .timeline__meta { flex-direction: row; align-items: center; }
  .brand__name { font-size: 15px; }
}
