/* ============================================================
   Closing Edge Platform — Market software & order flow
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }

:root {
  --ink: #0b0b0d;
  --ink-2: #34343b;
  --ink-3: #62626b;
  --ink-4: #6a6a74;
  --ink-5: #a0a0aa;

  --paper: #f5f4f0;
  --paper-2: #eeede8;
  --white: #ffffff;

  --bg: #08080a;
  --bg-2: #0d0d11;
  --panel: #111116;

  --line: rgba(11, 11, 13, 0.11);
  --line-strong: rgba(11, 11, 13, 0.2);
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-dark-strong: rgba(255, 255, 255, 0.16);

  --muted-dark: #9a9aa5;
  --muted-dark-2: #72727e;

  --violet: #6847ef;
  --violet-deep: #6847ef;
  --violet-bright: #a78bfa;
  --violet-pale: #ede9ff;
  --violet-wash: rgba(124, 92, 255, 0.08);

  --green: #7df2b0;
  --green-ink: #0d7a46;
  --coral: #ff9f8a;
  --amber: #f5c26b;
  --blue: #8fd3ff;

  --max-width: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);

  --font-display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; }

body.menu-open { overflow: hidden; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

/* ---------------- Type & layout helpers ---------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  position: relative;
  padding: clamp(76px, 9vw, 132px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark {
  background: var(--bg);
  color: #f1f1f4;
  border-top-color: var(--line-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5.5vw, 68px);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.9vw, 66px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 15ch;
  margin-top: 18px;
}

.section-head .lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 45ch;
  padding-bottom: 4px;
}

.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head .lead { color: var(--muted-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.2;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--violet);
  flex: none;
}

.section--dark .eyebrow { color: var(--muted-dark); }
.section--dark .eyebrow::before { background: var(--violet-bright); }

.accent { color: var(--violet); }

/* ---------------- Buttons & links ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--violet-deep);
  color: #fff;
  border-color: var(--violet-deep);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.22);
}

.btn-primary:hover {
  background: #5a3bdb;
  border-color: #5a3bdb;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  background: rgba(11, 11, 13, 0.035);
  border-color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: var(--line-dark-strong);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
}

.btn svg { width: 14px; height: 14px; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding-bottom: 5px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link span { font-size: 12px; }
.text-link:hover { color: var(--violet); border-color: var(--violet); }

/* ---------------- Navigation ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(8, 8, 10, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  flex: none;
}

.brand .brand-accent { color: var(--violet-bright); }

.brand-divider {
  width: 1px;
  height: 17px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #7d7d89;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #b6b6c1;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 23px; }

.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 66px 0 auto;
  z-index: 99;
  background: #0a0a0d;
  border-bottom: 1px solid var(--line-dark);
  padding: 18px var(--pad-x) 28px;
  display: none;
  max-height: calc(100vh - 66px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7d7de;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mobile-menu a span { color: #5f5f6b; font-family: var(--font-mono); font-size: 10px; }
.mobile-menu .btn { margin-top: 20px; width: 100%; }
.mobile-menu .menu-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #5f5f6b;
  line-height: 1.7;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--bg);
  color: #f2f2f5;
  padding-top: 66px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 58% 38%, #000 15%, transparent 76%);
  mask-image: radial-gradient(ellipse 85% 75% at 58% 38%, #000 15%, transparent 76%);
  pointer-events: none;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -220px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.24) 0%, rgba(124, 92, 255, 0.06) 42%, transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow {
  position: absolute;
  left: -240px;
  bottom: -320px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(62px, 8vw, 104px) 0 clamp(56px, 6vw, 88px);
}

.hero-copy { max-width: 600px; }

.hero-eyebrow { color: #a2a2ad; }

.hero-eyebrow .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(125, 242, 176, 0.08), 0 0 12px rgba(125, 242, 176, 0.55);
  flex: none;
}

.hero h1 {
  margin: 26px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.1vw, 88px);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.055em;
  color: #fff;
}

.hero h1 .line { display: block; }

.hero h1 .grad {
  background: linear-gradient(105deg, #eeeaff 0%, #c9b8ff 42%, #8b6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 52ch;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.62;
  color: #a2a2ad;
}

.hero-sub strong { color: #d9d9e0; font-weight: 500; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: #74747f;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 12px; height: 12px; color: var(--violet-bright); flex: none; }

/* ---------------- Hero console ---------------- */

.console-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}

.console-glow {
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background: radial-gradient(circle at 52% 42%, rgba(124, 92, 255, 0.25) 0%, rgba(124, 92, 255, 0.05) 42%, transparent 68%);
  filter: blur(34px);
  pointer-events: none;
}

.console {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(21, 21, 28, 0.98) 0%, rgba(12, 12, 16, 0.99) 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8c8c98;
}

.console-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 92, 255, 0.14);
  color: var(--violet-bright);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.console-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 0.13em;
  color: #9a9aa5;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(125, 242, 176, 0.75);
}

.console-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.14);
  position: relative;
}

.console-tab {
  position: relative;
  padding: 10px 10px 9px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #666672;
}

.console-tab.is-active { color: #dedee6; }
.console-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 1px;
  background: var(--violet-bright);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.65);
}

.console-clock {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #5c5c68;
}

.console-body { padding: 14px 15px 15px; }

.console-instrument {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.ci-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-label { font-size: 7.5px; letter-spacing: 0.14em; color: #5c5c68; }

.ci-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #ededf2;
}

.ci-name em {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  font-size: 6.5px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: #8d8d99;
}

.ci-right { text-align: right; }
.ci-mid {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.ci-mid small { font-size: 13px; color: #8d8d99; margin-left: 2px; letter-spacing: 0; }
.ci-spread { display: block; margin-top: 4px; font-size: 7.5px; letter-spacing: 0.08em; color: #6e6e7a; }

.sparkline {
  height: 34px;
  margin: 2px 0 12px;
  opacity: 0.9;
}

.sparkline svg { width: 100%; height: 100%; overflow: visible; }

.spark-line {
  fill: none;
  stroke: var(--violet-bright);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawLine 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards;
}

.spark-fill { fill: url(#sparkGrad); opacity: 0; animation: fadeIn 0.8s ease 1.2s forwards; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.book {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
}

.book-head,
.book-row {
  display: grid;
  grid-template-columns: 1fr 0.78fr 0.78fr 1fr;
  gap: 6px;
  align-items: center;
  padding: 5px 9px;
}

.book-head {
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: #5c5c68;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.book-row {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.038);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.book-row:last-child { border-bottom: 0; }

.book-row span { position: relative; z-index: 1; }
.book-row .bsize { text-align: left; color: #7b7b87; }
.book-row .asize { text-align: right; color: #7b7b87; }
.book-row .bid { text-align: right; color: var(--green); }
.book-row .ask { text-align: left; color: var(--coral); }

.book-row .bid::before,
.book-row .ask::before {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: var(--w, 50%);
  z-index: -1;
  opacity: 0.13;
}

.book-row .bid::before {
  right: -9px;
  background: linear-gradient(90deg, transparent, var(--green));
}

.book-row .ask::before {
  left: -9px;
  background: linear-gradient(90deg, var(--coral), transparent);
}

.order-ticket {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(124, 92, 255, 0.27);
  border-radius: 9px;
  background: rgba(124, 92, 255, 0.07);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: #85858f;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--violet-bright);
  font-size: 7px;
}

.ticket-status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.7);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ticket-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 6px;
  font-size: 10px;
  color: #ededf2;
}

.ticket-side { color: var(--green); font-weight: 700; letter-spacing: 0.04em; }
.ticket-qty small { color: #8d8d99; font-size: 8.5px; }
.ticket-venue { margin-left: auto; color: var(--violet-bright); font-size: 8px; letter-spacing: 0.07em; }

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 6.8px;
  letter-spacing: 0.08em;
  color: #666672;
}

.ticket-check { margin-left: auto; color: var(--green); }

.console-pipeline {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 9px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
}

.pipe-node {
  flex: none;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  font-size: 6.2px;
  letter-spacing: 0.07em;
  color: #62626e;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pipe-node.is-done { color: #a7a7b2; border-color: rgba(255, 255, 255, 0.14); }
.pipe-node.is-active {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 92, 255, 0.18);
}

.pipe-connector {
  flex: 1;
  min-width: 3px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.console-log {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  font-size: 7.5px;
  letter-spacing: 0.02em;
  color: #666672;
  overflow: hidden;
  white-space: nowrap;
}

.log-time { color: #4f4f5a; flex: none; }
.log-key { color: var(--violet-bright); flex: none; }
.log-val { color: #9a9aa5; overflow: hidden; text-overflow: ellipsis; }

.log-caret {
  width: 4px;
  height: 9px;
  margin-left: 1px;
  background: var(--violet-bright);
  opacity: 0.7;
  animation: blink 1.2s steps(1) infinite;
  flex: none;
}

.console-chip {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  background: rgba(13, 13, 17, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  color: #9a9aa5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.console-chip::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.console-chip--top { top: -11px; right: 30px; }

.console-caption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8d8d99;
}

/* ---------------- Capability ticker ---------------- */

.ticker {
  position: relative;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 48px;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.ticker-label {
  position: relative;
  z-index: 3;
  flex: none;
  padding: 0 22px 0 var(--pad-x);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #5f5f6b;
  background: var(--bg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group { display: flex; align-items: center; }

.ticker-item {
  position: relative;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #85858f;
  white-space: nowrap;
}

.ticker-item::after {
  content: "·";
  position: absolute;
  right: -2px;
  color: #3e3e47;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Intro ---------------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.intro-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
  margin-top: 18px;
}

.intro-copy { padding-top: 4px; }
.intro-copy p {
  font-size: clamp(15.5px, 1.35vw, 17px);
  line-height: 1.67;
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 58ch;
}

.intro-copy p:last-of-type { margin-bottom: 0; }

.boundary {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--violet);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 2;
  letter-spacing: 0.015em;
  color: var(--ink-3);
}

.boundary-row { display: flex; gap: 10px; align-items: baseline; }
.boundary-row + .boundary-row { margin-top: 1px; }

.b-label {
  flex: none;
  width: 48px;
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--ink-4);
}

.boundary-row strong { color: var(--ink); font-weight: 600; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vw, 82px);
  border-top: 1px solid var(--line);
}

.principle {
  padding: 24px 34px 2px 0;
}

.principle + .principle {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.principle-num {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--violet);
}

.principle h3 {
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.principle p {
  max-width: 30ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------------- Products ---------------- */

.product-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: stretch;
}

.product-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.product-tab {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 21px 12px 21px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.product-tab:hover { background: rgba(124, 92, 255, 0.035); }
.product-tab:hover .pt-name { color: var(--violet); }
.product-tab:hover .pt-arrow { color: var(--violet); transform: translate(2px, -2px); }

.product-tab.is-active { background: rgba(124, 92, 255, 0.055); }
.product-tab.is-active::before { background: var(--violet); }
.product-tab.is-active .pt-num { color: var(--violet); }
.product-tab.is-active .pt-arrow { color: var(--violet); }

.pt-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  align-self: start;
  padding-top: 3px;
}

.pt-body { min-width: 0; }

.pt-name {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.pt-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

.pt-arrow {
  font-size: 15px;
  color: var(--ink-5);
  transition: color 0.2s ease, transform 0.2s ease;
}

.product-note {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.product-note .pn-label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--violet);
}

.product-note p {
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}

.product-note .pn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.product-note .pn-chips span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

.product-panel {
  display: none;
  flex-direction: column;
  min-height: 540px;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}

.product-panel.is-active {
  display: flex;
  animation: panelIn 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.pp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.pp-tag {
  padding: 5px 8px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 4px;
  background: rgba(124, 92, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.pp-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

.product-panel h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.product-panel > p {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-2);
}

.pp-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.pp-cap {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.pp-cap:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.pp-cap:nth-child(even) { padding-left: 18px; }

.pp-cap-label {
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.pp-cap-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

.pp-visual {
  margin-top: auto;
  padding-top: 28px;
}

/* Mini terminals inside product panels */

.mini-terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: #0b0b0f;
  box-shadow: 0 18px 42px rgba(11, 11, 13, 0.14);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.7;
  color: #a3a3ae;
}

.mt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 8px;
  letter-spacing: 0.07em;
  color: #8d8d99;
}

.mt-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  letter-spacing: 0.11em;
  color: var(--green);
  white-space: nowrap;
}

.mt-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(125, 242, 176, 0.7);
}

.mt-line {
  padding: 2px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mt-line:first-of-type { padding-top: 8px; }
.mt-line:last-of-type { padding-bottom: 8px; }

.mt-key { color: #85858f; }
.mt-str { color: var(--amber); }
.mt-num { color: var(--blue); }
.mt-fn { color: var(--green); }

.mt-foot {
  padding: 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: #8d8d99;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 10px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quote-cell { padding: 8px 10px; background: #0b0b0f; }
.q-label { display: block; margin-bottom: 3px; font-size: 6.8px; letter-spacing: 0.1em; color: #62626e; }
.q-value { display: block; font-size: 13px; letter-spacing: -0.03em; color: #e9e9ef; }
.q-value.is-accent { color: var(--violet-bright); }

.confidence {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 10px 12px 4px;
  font-size: 7px;
  letter-spacing: 0.09em;
  color: #62626e;
}

.confidence-track {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.confidence-track i {
  display: block;
  height: 100%;
  width: 91%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--green));
}

.order-summary {
  padding: 10px 12px 5px;
  font-size: 10px;
  color: #d8d8e0;
}

.os-side { color: var(--green); font-weight: 700; letter-spacing: 0.03em; }
.os-at { color: #62626e; }
.os-tag {
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  font-size: 7px;
  letter-spacing: 0.07em;
  color: #9a9aa5;
}
.os-venue { float: right; padding-top: 1px; font-size: 7.5px; letter-spacing: 0.06em; color: var(--violet-bright); }

.state-track { display: flex; align-items: center; padding: 10px 12px 0; }
.st-dot { width: 6px; height: 6px; flex: none; border: 1px solid #45454f; border-radius: 50%; }
.st-dot.is-done { border-color: var(--green); background: var(--green); box-shadow: 0 0 7px rgba(125, 242, 176, 0.4); }
.st-line { height: 1px; flex: 1; background: #2b2b33; }
.st-line.is-done { background: rgba(125, 242, 176, 0.45); }

.state-labels {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px 0;
  font-size: 6.5px;
  letter-spacing: 0.03em;
  color: #62626e;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 10px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 6.8px;
  letter-spacing: 0.06em;
  color: var(--green);
}

.ctl-table { padding: 8px 12px; }

.ctl-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr 0.75fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 7.8px;
  letter-spacing: 0.02em;
  color: #a3a3ae;
}

.ctl-row:last-child { border-bottom: 0; }
.ctl-head {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: #5c5c68;
}
.ctl-row .ok { color: var(--green); }

/* ---------------- Order flow ---------------- */

.flow {
  background: #09090c;
  color: #f1f1f4;
  overflow: hidden;
}

.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 10%, transparent 78%);
  pointer-events: none;
}

.flow .container { position: relative; z-index: 1; }

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.flow-steps { border-top: 1px solid var(--line-dark); }

.flow-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 0.2s ease;
}

.flow-step:hover { border-bottom-color: rgba(167, 139, 250, 0.35); }

.flow-step-num {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #5c5c68;
  transition: color 0.2s ease;
}

.flow-step:hover .flow-step-num { color: var(--violet-bright); }

.flow-step h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f0f0f4;
}

.flow-step p {
  max-width: 42ch;
  font-size: 12.5px;
  line-height: 1.58;
  color: #8d8d99;
}

.trace-card {
  overflow: hidden;
  border: 1px solid var(--line-dark-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #111116 0%, #0c0c10 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.trace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #6e6e7a;
}

.trace-id { color: #d4d4dc; }

.trace-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  white-space: nowrap;
}

.trace-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(125, 242, 176, 0.6);
  animation: blink 1.8s ease-in-out infinite;
}

.trace-rows { padding: 5px 0; }

.trace-row {
  display: grid;
  grid-template-columns: 82px 86px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
}

.trace-row:last-child { border-bottom: 0; }
.trace-time { color: #51515c; }
.trace-state { color: var(--violet-bright); letter-spacing: 0.06em; }
.trace-row.is-done .trace-state { color: var(--green); }
.trace-detail { color: #8d8d99; }
.trace-detail b { color: #e2e2e9; font-weight: 500; }

.trace-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 13px 18px;
  border-top: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.015);
}

.trace-extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.18);
}

.trace-extras div {
  padding: 11px 18px;
  border-right: 1px solid var(--line-dark);
}

.trace-extras div:last-child { border-right: 0; }

.trace-extras span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: #7a7a86;
}

.trace-extras strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: #b2b2bd;
}

.trace-note {
  margin: 0;
  padding: 11px 18px 13px;
  border-top: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #8d8d99;
}

.state-chip {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8d8d99;
}

.state-chip.is-end {
  color: var(--green);
  border-color: rgba(125, 242, 176, 0.28);
  background: rgba(125, 242, 176, 0.05);
}

.state-chip.is-branch {
  color: var(--coral);
  border-color: rgba(255, 159, 138, 0.25);
  background: rgba(255, 159, 138, 0.04);
}

/* ---------------- Developers ---------------- */

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
}

.dev-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.dev-copy h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.dev-copy > p {
  max-width: 48ch;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
}

.dev-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.dev-point-label {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.dev-point h3 {
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dev-point p {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.code-card {
  overflow: hidden;
  border: 1px solid rgba(11, 11, 13, 0.2);
  border-radius: 15px;
  background: #0b0b0f;
  box-shadow: 0 26px 64px rgba(11, 11, 13, 0.16);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111116;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.code-tab {
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: #8d8d99;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.code-tab:hover { color: #d4d4dc; }
.code-tab.is-active { color: #fff; background: rgba(255, 255, 255, 0.08); }

.code-copy {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8d8d99;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.code-copy:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.code-body {
  overflow-x: auto;
  padding: 20px 18px;
}

.code-panel { display: none; }
.code-panel.is-active { display: block; }

.code-body pre {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.85;
  color: #c6c6d0;
  tab-size: 2;
  white-space: pre;
}

.tok-key { color: #b9a4ff; }
.tok-fn { color: var(--green); }
.tok-str { color: var(--amber); }
.tok-num { color: var(--blue); }
.tok-com { color: #5f5f6a; }

.code-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e0e12;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  color: #8d8d99;
}

.code-foot span:first-child { color: #b2b2bd; }

.code-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.code-meta div {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.code-meta div:last-child { border-right: 0; }

.code-meta span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}

.code-meta strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

/* ---------------- Markets ---------------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.market-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.market-card::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.28);
  background: #fff;
}

.market-card:hover::after { opacity: 1; }

.market-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.market-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--violet);
}

.market-icon svg { width: 18px; height: 18px; }

.market-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.market-card p {
  max-width: 30ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.market-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.market-foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.market-foot a:hover { color: var(--violet); border-color: var(--violet); }

/* ---------------- Connect ---------------- */

.connect {
  position: relative;
  background: #08080b;
  color: #f1f1f4;
  overflow: hidden;
}

.connect::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  width: 720px;
  height: 720px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18) 0%, transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.connect .container { position: relative; z-index: 1; }

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
}

.connect h2 {
  max-width: 12ch;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.045em;
  color: #fff;
}

.connect-copy > p {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #9a9aa5;
}

.connect-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin: 28px 0 32px;
}

.connect-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #b2b2bd;
}

.connect-item svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--violet-bright);
}

.network-card {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.network-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%);
  pointer-events: none;
}

.network-card svg { width: 100%; height: auto; position: relative; }

.net-line {
  fill: none;
  stroke: rgba(167, 139, 250, 0.5);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  animation: dashFlow 9s linear infinite;
}

.net-line.is-green { stroke: rgba(125, 242, 176, 0.32); }

@keyframes dashFlow { to { stroke-dashoffset: -100; } }

.net-node rect { fill: #111116; stroke: rgba(255, 255, 255, 0.14); }
.net-node text { fill: #b2b2bd; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }
.net-node text.sub { fill: #5f5f6b; font-size: 6.5px; letter-spacing: 0.07em; }
.net-node .dot { fill: var(--violet-bright); }
.net-node .dot.green { fill: var(--green); }

.net-core rect {
  fill: rgba(124, 92, 255, 0.14);
  stroke: rgba(167, 139, 250, 0.48);
}
.net-core text.title { fill: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.net-core text.sub { fill: var(--violet-bright); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.12em; }

.network-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 10px 6px 2px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8d8d99;
}

.network-foot span { display: inline-flex; align-items: center; gap: 6px; }
.network-foot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ---------------- Operations ---------------- */

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.op-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.op-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.26); }

.op-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.op-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--violet);
  background: var(--paper);
}

.op-icon svg { width: 17px; height: 17px; }

.op-num {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.op-card h3 {
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.op-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------------- FAQ ---------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.faq-side { position: sticky; top: 100px; }

.faq-side h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.faq-side p {
  max-width: 34ch;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-3);
}

.faq-side .text-link { margin-top: 24px; }

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 21px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.18s ease;
}

.faq-q:hover { color: var(--violet); }

.faq-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--violet);
  border-color: rgba(124, 92, 255, 0.4);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-a p {
  max-width: 70ch;
  padding: 0 44px 22px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* ---------------- Final CTA ---------------- */

.cta-section {
  position: relative;
  padding: clamp(64px, 8vw, 108px) 0;
  background: #08080b;
  color: #fff;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -220px;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.17) 0%, transparent 68%);
  pointer-events: none;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 5.5vw, 68px);
  border: 1px solid var(--line-dark-strong);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(124, 92, 255, 0.14) 0%, rgba(255, 255, 255, 0.018) 48%, rgba(125, 242, 176, 0.045) 100%),
    #0c0c10;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000 10%, transparent 72%);
  pointer-events: none;
}

.cta-copy, .cta-actions { position: relative; z-index: 1; }

.cta-copy h2 {
  max-width: 14ch;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}

.cta-copy p {
  max-width: 47ch;
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #a2a2ad;
}

.cta-actions { display: flex; flex-direction: column; gap: 10px; }

.cta-actions .btn { width: 100%; min-height: 52px; }

.cta-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.cta-action:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }

.cta-action-label {
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #6e6e7a;
}

.cta-action-value { font-size: 13px; font-weight: 500; color: #e6e6ec; }

.cta-action-arrow { color: var(--violet-bright); font-size: 16px; }

.cta-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #9a9aa5;
}

/* ---------------- Footer ---------------- */

.footer {
  padding: 56px 0 30px;
  border-top: 1px solid var(--line-dark);
  background: #08080b;
  color: #72727e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}

.footer .brand { margin-bottom: 16px; }

.footer-desc {
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.65;
  color: #85858f;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8d8d99;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  color: #a1a1ac;
  transition: color 0.18s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  flex-wrap: wrap;
}

.footer-legal {
  max-width: 78ch;
  font-size: 10px;
  line-height: 1.7;
  color: #8d8d99;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  color: #8d8d99;
  text-align: right;
  flex: none;
}

.footer-meta span { display: inline-flex; align-items: center; gap: 6px; }

.footer-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(125, 242, 176, 0.5);
}

/* ---------------- Reveal ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Focus ---------------- */

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.hero :focus-visible,
.connect :focus-visible,
.cta-section :focus-visible,
.footer :focus-visible {
  outline-color: var(--violet-bright);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 72px;
  }

  .hero-copy { max-width: 720px; }
  .console-wrap { max-width: 680px; margin: 0 auto; }

  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid h2 { max-width: 16ch; }

  .product-shell { grid-template-columns: 1fr; }
  .product-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
  }
  .product-tab { border-right: 1px solid var(--line); }
  .product-tab:nth-child(even) { border-right: 0; }
  .product-panel { min-height: 500px; }

  .dev-grid { grid-template-columns: 1fr; }
  .dev-copy h2 { max-width: 18ch; }
  .dev-copy > p { max-width: 56ch; }

  .connect-grid { grid-template-columns: 1fr; }
  .network-card { max-width: 620px; margin: 0 auto; width: 100%; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-side p { max-width: 46ch; }
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .section-head h2 { max-width: 18ch; }
  .section-head .lead { max-width: 56ch; }

  .flow-grid { grid-template-columns: 1fr; }
  .trace-card { max-width: 680px; }

  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta-card { grid-template-columns: 1fr; }
  .cta-copy h2 { max-width: 18ch; }
  .cta-actions { max-width: 440px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .footer-desc { max-width: 52ch; }
}

@media (max-width: 720px) {
  .brand { font-size: 21px; }
  .brand-tag { display: none; }
  .brand-divider { display: none; }
  .nav-cta { display: none; }

  .hero h1 { font-size: clamp(44px, 12vw, 68px); }
  .hero-meta { gap: 8px 16px; }

  .console-chip { display: none; }
  .console { border-radius: 14px; }

  .ticker-label { display: none; }

  .principles { grid-template-columns: 1fr; }
  .principle { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .principle + .principle { padding-left: 0; border-left: 0; }
  .principle:last-child { border-bottom: 0; }

  .product-tabs { grid-template-columns: 1fr; }
  .product-tab { border-right: 0; }

  .dev-points { grid-template-columns: 1fr; gap: 18px; }

  .connect-list { grid-template-columns: 1fr; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-meta { align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }

  .nav-inner { height: 60px; }
  .mobile-menu { top: 60px; max-height: calc(100vh - 60px); }

  .hero { padding-top: 60px; }
  .hero-inner { padding-top: 58px; padding-bottom: 56px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-meta { font-size: 8.5px; }

  .console-body { padding: 12px 12px 13px; }
  .console-tabs { padding: 0 9px; }
  .console-tab { padding-left: 7px; padding-right: 7px; }
  .console-clock { display: none; }
  .ci-mid { font-size: 23px; }
  .book-head, .book-row { grid-template-columns: 1fr 0.8fr 0.8fr 1fr; padding: 5px 7px; }
  .book-row { font-size: 8px; }
  .ticket-meta { gap: 7px; font-size: 6.2px; }
  .console-pipeline { padding: 8px 10px; gap: 2px; }
  .pipe-node { font-size: 5.6px; padding: 3px 4px; }
  .console-log { padding: 7px 10px; font-size: 6.8px; }

  .section-head h2 { font-size: clamp(34px, 9vw, 48px); }
  .intro-grid h2,
  .connect h2,
  .cta-copy h2 { font-size: clamp(34px, 9vw, 48px); }

  .product-panel { min-height: 0; padding: 22px 18px; border-radius: 14px; }
  .pp-caps { grid-template-columns: 1fr; }
  .pp-cap:nth-child(odd) { padding-right: 0; border-right: 0; }
  .pp-cap:nth-child(even) { padding-left: 0; }
  .pp-visual { padding-top: 22px; }
  .mini-terminal { font-size: 8.5px; }
  .quote-grid { grid-template-columns: 1fr; }
  .q-value { font-size: 14px; }

  .market-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }

  .trace-row { grid-template-columns: 70px 78px minmax(0, 1fr); gap: 8px; padding: 8px 12px; font-size: 8px; }
  .trace-head { padding: 11px 12px; }
  .trace-foot { padding: 11px 12px; }

  .code-head { flex-wrap: wrap; }
  .code-copy { margin-left: 0; }
  .code-body { padding: 16px 12px; }
  .code-body pre { font-size: 9.5px; }

  .cta-card { padding: 26px 20px; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 15px; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .nav-right .btn { width: auto; }
  .cta-actions .btn { width: 100%; }
  .console-instrument { align-items: flex-start; }
  .ci-mid { font-size: 21px; }
  .book-row { font-size: 7.5px; }
  .ticket-qty { font-size: 9px; }
  .state-labels { font-size: 5.8px; }
  .checks { font-size: 6.2px; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .spark-line { stroke-dashoffset: 0; }
  .spark-fill { opacity: 1; }
}
