:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: #0d1b2d;
  --panel-strong: #11243a;
  --line: rgba(160, 190, 220, .16);
  --line-strong: rgba(160, 190, 220, .28);
  --text: #edf5ff;
  --muted: #8da2b8;
  --muted-strong: #bdcad8;
  --cyan: #56d6ff;
  --cyan-soft: rgba(86, 214, 255, .12);
  --orange: #ffb469;
  --green: #72e6a0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 74% 12%, rgba(38, 123, 162, .16), transparent 31rem), radial-gradient(circle at 16% 52%, rgba(62, 60, 136, .11), transparent 28rem);
}
a { color: inherit; text-decoration: none; }
button, a { cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.page-shell { overflow: hidden; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; color: var(--cyan); border: 1px solid rgba(86, 214, 255, .45); border-radius: 10px; background: rgba(86, 214, 255, .08); }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 13px/1 var(--mono); letter-spacing: .08em; }
.brand small { margin-top: 5px; color: var(--muted); font: 400 10px/1 var(--mono); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted-strong); font-size: 14px; }
.nav-links a:not(.nav-button) { transition: color .2s ease; }
.nav-links a:not(.nav-button):hover { color: var(--cyan); }
.nav-button { padding: 10px 14px; color: var(--bg); font-weight: 700; background: var(--cyan); border-radius: 7px; transition: background .2s ease, transform .2s ease; }
.nav-button:hover { background: #89e4ff; transform: translateY(-1px); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 88px; align-items: center; padding-top: 112px; padding-bottom: 104px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--cyan); font: 600 11px/1 var(--mono); letter-spacing: .11em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(114, 230, 160, .11); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(43px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--cyan); font-style: normal; }
.hero-lede { max-width: 640px; margin-bottom: 32px; color: var(--muted-strong); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--bg); background: var(--cyan); }
.button-primary:hover { background: #8de7ff; }
.button-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.trust-line { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 26px; color: var(--muted); font: 400 11px/1.4 var(--mono); }
.check-icon { display: inline-grid; width: 15px; height: 15px; margin-right: 5px; place-items: center; color: var(--green); font-style: normal; border: 1px solid rgba(114,230,160,.35); border-radius: 50%; }

.hero-console { position: relative; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13, 27, 45, .9); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.hero-console::before { position: absolute; inset: -1px; z-index: -1; content: ""; border: 1px solid rgba(86, 214, 255, .12); border-radius: 12px; transform: translate(9px, 9px); }
.console-topbar { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 16px; color: var(--muted); border-bottom: 1px solid var(--line); font: 400 10px var(--mono); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #617387; }
.window-dots i:first-child { background: #ec7b71; }
.window-dots i:nth-child(2) { background: #e5c76a; }
.window-dots i:last-child { background: #71cf9b; }
.console-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--green); font-size: 9px; }
.console-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.console-body { padding: 28px; }
.console-kicker { color: var(--muted); font: 600 10px var(--mono); letter-spacing: .12em; }
.callback-url { display: block; margin: 13px 0 26px; color: var(--cyan); font: 500 13px/1.8 var(--mono); word-break: break-word; }
.console-divider { height: 1px; margin: 0 -28px 18px; background: var(--line); }
.flow-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; min-height: 42px; color: var(--muted-strong); border-bottom: 1px solid rgba(160,190,220,.08); font-size: 13px; }
.flow-row:last-of-type { border-bottom: 0; }
.flow-num { color: var(--muted); font: 500 10px var(--mono); }
.flow-row b { color: var(--orange); font: 600 10px var(--mono); }
.console-foot { display: flex; align-items: center; gap: 8px; margin-top: 23px; color: var(--muted); font: 400 10px var(--mono); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(114,230,160,.1); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 20px 24px 20px 0; border-right: 1px solid var(--line); }
.metric:not(:first-child) { padding-left: 24px; }
.metric:last-child { border-right: 0; }
.metric strong { color: var(--cyan); font: 500 19px var(--mono); white-space: nowrap; }
.metric span { color: var(--muted-strong); font-size: 12px; line-height: 1.35; }
.metric small { color: var(--muted); font: 400 9px var(--mono); }
.metric-accent strong { color: var(--orange); }

.flow-section { padding-top: 126px; padding-bottom: 130px; }
.section-heading { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 70px; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.05em; }
.section-heading > p:last-child { max-width: 420px; margin-bottom: 3px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { position: relative; min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 9px; background: rgba(13,27,45,.52); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.step-card:hover { border-color: var(--line-strong); background: rgba(17,36,58,.72); transform: translateY(-2px); }
.step-card-active { border-color: rgba(86,214,255,.42); background: linear-gradient(135deg, rgba(86,214,255,.11), rgba(13,27,45,.63) 48%); }
.step-index { position: absolute; top: 28px; right: 28px; color: var(--muted); font: 500 11px var(--mono); }
.step-icon { width: 29px; height: 29px; margin: 1px 0 28px; color: var(--cyan); }
.step-card h3 { margin-bottom: 10px; font-size: 21px; letter-spacing: -.025em; }
.step-card p { min-height: 74px; margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.step-card code { color: var(--orange); font: 400 10px var(--mono); }

.account-section { padding-bottom: 112px; }
.account-panel { display: grid; grid-template-columns: 1fr minmax(330px, .8fr); gap: 50px; align-items: center; padding: 38px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(100deg, rgba(17,36,58,.92), rgba(13,27,45,.72)); }
.account-panel .eyebrow { margin-bottom: 15px; }
.account-panel h2 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.account-panel-copy > p:last-child { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.session-card { display: flex; align-items: center; gap: 13px; min-height: 88px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(7,17,31,.5); }
.session-avatar { display: grid; flex: 0 0 45px; width: 45px; height: 45px; place-items: center; color: var(--cyan); font: 600 15px var(--mono); border: 1px solid rgba(86,214,255,.35); border-radius: 50%; background: var(--cyan-soft); overflow: hidden; }
.session-avatar img { width: 100%; height: 100%; object-fit: cover; }
.session-details { min-width: 0; flex: 1; }
.session-details strong, .session-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-details strong { font-size: 14px; }
.session-details span { margin-top: 4px; color: var(--muted); font: 400 10px var(--mono); }
.session-action { color: var(--cyan); font: 600 10px var(--mono); }
.session-card[data-state="authenticated"] { border-color: rgba(114,230,160,.35); }
.session-card[data-state="authenticated"] .session-avatar { color: var(--green); border-color: rgba(114,230,160,.35); background: rgba(114,230,160,.1); }

.site-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 28px; color: var(--muted); border-top: 1px solid var(--line); font: 400 10px var(--mono); }
.site-footer a { color: var(--cyan); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 52px; padding-top: 78px; }
  .hero-console { max-width: 620px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p:last-child { max-width: 620px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, 560px); }
  .site-header { min-height: 74px; }
  .nav-links a:not(.nav-button) { display: none; }
  .nav-links { gap: 0; font-size: 12px; }
  h1 { font-size: clamp(40px, 13vw, 62px); }
  .hero-lede { font-size: 16px; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .console-body { padding: 22px; }
  .console-divider { margin-right: -22px; margin-left: -22px; }
  .console-topbar { padding: 0 12px; }
  .console-topbar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .console-status { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { display: block; min-height: 98px; padding: 17px 12px 17px 0; }
  .metric:not(:first-child) { padding-left: 12px; }
  .metric strong { display: block; margin-bottom: 8px; font-size: 16px; }
  .flow-section { padding-top: 84px; padding-bottom: 84px; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card p { min-height: 0; }
  .account-panel { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .session-card { min-width: 0; }
  .site-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
