/* ==========================================================================
   KYX by Xearth — design system
   No framework. Tokens → primitives → components → sections.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --surface: #ffffff;
  --ink: #0a0d16;
  --ink-2: #1c2030;
  --muted: #5b6172;
  --muted-2: #8a90a2;
  --line: rgba(10, 13, 22, 0.08);
  --line-2: rgba(10, 13, 22, 0.14);

  /* Brand */
  --brand: #0b5bd3;
  --brand-2: #0847a8;
  --brand-soft: #e8f0ff;
  --brand-glow: rgba(11, 91, 211, 0.22);

  /* Signals */
  --ok: #12b76a;
  --ok-soft: #e6f8ef;
  --warn: #f59e0b;
  --bad: #ef4444;

  /* Dark surfaces */
  --dark: #0a0d16;
  --dark-2: #10141f;
  --dark-3: #171c2a;
  --dark-line: rgba(255, 255, 255, 0.08);
  --dark-text: #e9ecf4;
  --dark-muted: #9aa1b5;

  /* Type */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii + shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 13, 22, 0.05), 0 1px 1px rgba(10, 13, 22, 0.03);
  --shadow-md: 0 12px 30px -12px rgba(10, 13, 22, 0.18), 0 2px 6px rgba(10, 13, 22, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(10, 13, 22, 0.35), 0 12px 30px -16px rgba(10, 13, 22, 0.2);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .eyebrow { color: #8fb4ff; }
.section--dark .lead { color: var(--dark-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7;
}
.section-head--center .eyebrow::before { display: none; }
.h1, .h2, .h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.2vw, 78px); letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); }
.h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section-head .lead { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: 0 8px 24px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.15); }
.btn--primary:hover { --btn-bg: var(--brand-2); box-shadow: 0 12px 28px -10px var(--brand-glow); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-line: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: #f0f3ff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255,255,255,.28); }
.btn--outline-light:hover { --btn-line: #fff; --btn-bg: rgba(255,255,255,.06); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-dark { color: #fff; }
.header.is-dark .nav a, .header.is-dark .header__actions .link { color: var(--dark-text); }
.header.is-dark .nav a:hover, .header.is-dark .header__actions .link:hover { background: rgba(255,255,255,.08); }
.header.is-dark .brand__name { color: #fff; }
.header.is-dark .burger span, .header.is-dark .burger span::before, .header.is-dark .burger span::after { background: #fff; }
.header.is-scrolled.is-dark { background: rgba(10, 13, 22, 0.72); border-bottom-color: var(--dark-line); }
.header.is-scrolled {
  background: rgba(247, 247, 245, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.header .container { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; display: block; }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.brand__by {
  display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: 28px; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(10,13,22,.06); color: var(--ink); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__actions .link { padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-radius: 999px; }
.header__actions .link:hover { background: rgba(10,13,22,.06); }

.burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center; border-radius: 12px;
}
.burger:hover { background: rgba(10,13,22,.06); }
.burger span { position: relative; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: rgba(247,247,245,.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 24px var(--gutter) 40px;
  flex-direction: column; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 500; padding: 14px 4px; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.mobile-nav .btn-row { margin-top: 24px; }
.mobile-nav .btn { flex: 1; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg);
}
.hero__grid { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero__main { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy .lead { margin-top: 24px; max-width: 540px; }
.hero__copy .btn-row { margin-top: 36px; }
.hero__note { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.hero__note code { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--ink-2); }

/* Hero — verification console */
.console {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--dark-text);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10,13,22,.08);
  padding: 18px;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: 60% 50%;
}
.console::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255,255,255,.14);
}
.console__bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; font-family: var(--mono); font-size: 12px; color: var(--dark-muted); }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3242; }
.console__dots i:nth-child(1) { background: #ff5f57; } .console__dots i:nth-child(2) { background: #febc2e; } .console__dots i:nth-child(3) { background: #28c840; }
.console__title { margin-left: 6px; }
.console__latency { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #8fb4ff; }
.console__latency b { color: #fff; font-weight: 500; }
.console__body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.idcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 16px; padding: 14px;
  background: #1b2236;
  border: 1px solid var(--dark-line);
  font-family: var(--mono);
}
.idcard__hdr { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .18em; color: #8fb4ff; text-transform: uppercase; }
.idcard__row { display: flex; gap: 12px; margin-top: 12px; flex: 1; }
.idcard__photo {
  width: 30%; aspect-ratio: 3/4; border-radius: 8px; flex: none;
  background: #262e45;
  position: relative;
}
.idcard__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid rgba(18,183,106,0); transition: border-color .4s;
}
.console.step-1 .idcard__photo::after, .console.step-2 .idcard__photo::after { border-color: var(--ok); }
.idcard__fields { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.idcard__fields b { display: block; font-size: 7.5px; letter-spacing: .14em; color: #7a8299; font-weight: 500; }
.idcard__fields span { display: block; font-size: 10.5px; color: #e9ecf4; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idcard__mrz { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.1); font-size: 9px; letter-spacing: .1em; color: #aab3cc; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.idcard__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40px;
  background: rgba(18,183,106,.45);
  border-bottom: 1px solid rgba(18,183,106,.9);
  opacity: 0; transform: translateY(-40px);
}
.console.step-0 .idcard__scan { opacity: 1; animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(-40px);} 100% { transform: translateY(260px);} }

.checks { display: grid; gap: 8px; align-content: start; }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  font-size: 13px; transition: border-color .4s, background .4s;
}
.check__ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #232a3c; color: #7a8299; transition: background .3s, color .3s; }
.check__ic svg { width: 12px; height: 12px; display: none; }
.check__ic::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.check.is-active .check__ic::before, .check.is-done .check__ic::before { display: none; }
.check.is-active .check__ic .ic-spin { display: block; }
.check.is-done .check__ic .ic-check { display: block; }
.check__label { flex: 1; color: #c6ccdc; }
.check__val { font-family: var(--mono); font-size: 12px; color: #7a8299; min-width: 52px; text-align: right; }
.check.is-active { border-color: rgba(143,180,255,.35); background: #141a2a; }
.check.is-active .check__ic { background: #1f3a75; color: #8fb4ff; }
.check.is-active .check__ic .ic-spin { animation: spin 1s linear infinite; }
.check.is-done .check__ic { background: rgba(18,183,106,.18); color: var(--ok); }
.check.is-done .check__val { color: var(--ok); }
.check.is-done .check__label { color: #e9ecf4; }
@keyframes spin { to { transform: rotate(360deg);} }

.verdict {
  margin-top: 4px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed var(--dark-line);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .4s, background .4s;
}
.verdict__badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; background: #1b2236; color: #7a8299; transition: background .3s, color .3s;
}
.verdict__text { font-size: 12.5px; color: #7a8299; }
.console.step-4 .verdict { border-style: solid; border-color: rgba(18,183,106,.45); background: rgba(18,183,106,.08); }
.console.step-4 .verdict__badge { background: var(--ok); color: #fff; }
.console.step-4 .verdict__text { color: #e9ecf4; }

.console__json {
  grid-column: 1 / -1;
  background: #070a12; border-radius: 14px; border: 1px solid var(--dark-line);
  padding: 12px 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.55;
  color: #aab3cc; overflow: hidden; height: 170px; position: relative; white-space: pre-wrap; word-break: break-word;
}
.console__json .k { color: #8fb4ff; } .console__json .s { color: #6fdc9f; } .console__json .n { color: #ffd479; }
.console__json .cursor { display: inline-block; width: 7px; height: 13px; background: #8fb4ff; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Trust stats */
.stats {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
}
.stat { padding: 24px 28px; display: flex; gap: 16px; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat__ic svg { width: 22px; height: 22px; }
.stat__t { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.stat__d { font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Features (bento)
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  margin-bottom: 22px; transition: background .3s, color .3s, border-color .3s;
}
.card__ic svg { width: 22px; height: 22px; }
.card:hover .card__ic { background: var(--brand); color: #fff; border-color: var(--brand); }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.card--wide { grid-column: span 2; }
.card__tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 4px 8px;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps { display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; position: relative; }
.step + .step { border-top: 1px solid var(--line); }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.step:hover .step__n { background: var(--ink); color: #fff; border-color: var(--ink); }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

.term {
  border-radius: var(--r-lg); background: var(--dark); color: var(--dark-text);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.06);
}
.term__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dark-line); background: var(--dark-2); font-family: var(--mono); font-size: 12px; color: var(--dark-muted); }
.term__bar .console__dots { margin-right: 4px; }
.term__copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--dark-muted); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--dark-line); }
.term__copy:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.term__copy svg { width: 13px; height: 13px; }
.term pre { margin: 0; padding: 20px 22px; font-size: 13px; line-height: 1.65; overflow-x: auto; color: #d6dbe8; }
.term .c { color: #6c7590; } .term .k { color: #8fb4ff; } .term .s { color: #6fdc9f; } .term .n { color: #ffd479; } .term .f { color: #f5a3ff; }
.term__out { border-top: 1px solid var(--dark-line); padding: 14px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--dark-muted); display: flex; align-items: center; gap: 10px; }
.term__out b { color: var(--ok); font-weight: 500; }
.term__out .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 28px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--dark);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ind:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ind__art { position: absolute; inset: 0; opacity: .95; transition: transform .8s var(--ease); }
.ind:hover .ind__art { transform: scale(1.04); }
.ind--fintech .ind__art { background: #0f1a3d; }
.ind--ecom .ind__art { background: #1d1140; }
.ind--ride .ind__art { background: #0b2a25; }
.ind--estate .ind__art { background: #2d1c07; }
.ind__art::after { content: none; }
.ind__ic { position: absolute; top: 22px; left: 24px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ind__ic svg { width: 20px; height: 20px; }
.ind h3 { position: relative; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ind p { position: relative; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.72); }
.ind__arrow { position: absolute; right: 22px; bottom: 26px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); transition: background .3s, transform .3s var(--ease); }
.ind__arrow svg { width: 16px; height: 16px; }
.ind:hover .ind__arrow { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing {
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface);
  display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; box-shadow: var(--shadow-sm);
}
.pricing__copy { padding: clamp(32px, 5vw, 64px); }
.pricing__copy .lead { margin-top: 18px; }
.pricing__copy .btn-row { margin-top: 32px; }
.pricing__tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tier { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; }
.tier i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.tier:nth-child(2) i { background: #7c3aed; } .tier:nth-child(3) i { background: var(--ok); }
.pricing__side {
  background: var(--dark); color: var(--dark-text); padding: clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; overflow: hidden;
}
.pricing__side::before { content: none; }
.pricing__side > * { position: relative; }
.meter { font-family: var(--mono); font-size: 12px; color: var(--dark-muted); display: grid; gap: 8px; }
.meter__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #2c6fe8; transition: width 1.4s var(--ease); }
.is-inview .meter__bar i { width: var(--w, 60%); }
.meter__row { display: flex; justify-content: space-between; }
.pricing__side p { color: var(--dark-muted); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Developers (dark)
   -------------------------------------------------------------------------- */
.dev { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.dev__list { display: grid; gap: 10px; margin-top: 36px; }
.devitem {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: 16px; border: 1px solid var(--dark-line); background: var(--dark-2);
  transition: border-color .3s, background .3s;
}
.devitem:hover { border-color: rgba(143,180,255,.35); background: var(--dark-3); }
.devitem__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(143,180,255,.12); color: #8fb4ff; }
.devitem__ic svg { width: 20px; height: 20px; }
.devitem h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.devitem p { font-size: 14px; color: var(--dark-muted); margin-top: 3px; }

.tabs { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--dark-line); background: #070a12; box-shadow: var(--shadow-lg); }
.tabs__bar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--dark-line); background: var(--dark-2); }
.tab {
  padding: 8px 14px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--dark-muted);
  transition: background .2s, color .2s;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: rgba(143,180,255,.14); color: #fff; }
.tabs__meta { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dark-muted); }
.tabs__meta b { color: var(--ok); font-weight: 500; }
.tabs pre { margin: 0; padding: 22px 24px; font-size: 13px; line-height: 1.65; overflow-x: auto; color: #d6dbe8; min-height: 300px; }
.tabs pre[hidden] { display: none; }
.tabs .c { color: #6c7590; } .tabs .k { color: #8fb4ff; } .tabs .s { color: #6fdc9f; } .tabs .n { color: #ffd479; } .tabs .b { color: #f5a3ff; }

/* --------------------------------------------------------------------------
   Security
   -------------------------------------------------------------------------- */
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.sec { padding: 32px 28px; position: relative; }
.sec + .sec { border-left: 1px solid var(--line); }
.sec__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: #0f9a5a; margin-bottom: 20px; }
.sec__ic svg { width: 20px; height: 20px; }
.sec h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.sec p { font-size: 14.5px; color: var(--muted); }
.sec__n { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--brand); color: #fff; text-align: center;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 64px);
}
.cta::before, .cta::after { content: none; }
.cta > * { position: relative; }
.cta .h2 { max-width: 760px; margin-inline: auto; }
.cta .lead { color: rgba(255,255,255,.8); max-width: 600px; margin: 18px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 36px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 300px; font-size: 14.5px; color: var(--muted); }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer li a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.footer li a:hover { color: var(--ink); }
.footer__bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.footer__status { display: inline-flex; align-items: center; gap: 8px; }
.footer__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* --------------------------------------------------------------------------
   Legal / support pages
   -------------------------------------------------------------------------- */
.page { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 10vw, 128px); }
.page__grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.page__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.page__aside .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.page__aside .back svg { width: 16px; height: 16px; }
.page__aside .back:hover { color: var(--ink); }
.toc { display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; font-size: 14px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--ink); }
.page__head { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page__meta { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 44px 0 14px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 22px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
.prose ul { margin: 0 0 14px; padding-left: 0; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .6; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,91,211,.35); }
.prose a:hover { text-decoration-color: var(--brand); }
.kv { display: grid; gap: 10px; margin: 14px 0 20px; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.kv b { font-weight: 500; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 18px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); margin: 0; }
.contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding: 26px 28px; border-radius: var(--r-lg); background: var(--dark); color: var(--dark-text); margin-bottom: 40px;
}
.contact-card p { color: var(--dark-muted); font-size: 15px; margin: 6px 0 0; }
.contact-card strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.contact-card .mail { font-family: var(--mono); color: #8fb4ff; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-inview { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: repeat(2, 1fr); }
  .sec:nth-child(3) { border-left: 0; }
  .sec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .header__actions { display: none; }
  .burger { display: inline-flex; }
  .hero__main { grid-template-columns: 1fr; }
  .console { transform: none; }
  .how, .dev, .pricing { grid-template-columns: 1fr; }
  .page__grid { grid-template-columns: 1fr; }
  .page__aside { position: static; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .bento, .industries, .security { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .sec + .sec { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .console { padding: 12px; }
  .console__body { grid-template-columns: 1fr; }
  .console__json { height: 150px; font-size: 10.5px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero__copy .btn-row .btn { width: 100%; }
  .contact-card { grid-template-columns: 1fr; }
  .hero__note { display: block; line-height: 1.9; }
  .hero__note svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
}
