/* ============================================================
   email workflow — visual walkthrough
   ============================================================ */

:root {
  --bg: #05070d;
  --panel: rgba(13, 20, 34, 0.78);
  --panel-solid: #0b1220;
  --panel-2: #101a2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9effb;
  --muted: #93a3bd;
  --dim: #5d6d88;

  --blue: #60a5fa;
  --mint: #5eead4;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --orange: #fb923c;

  --radius: 18px;
  --radius-sm: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(96, 165, 250, 0.13), transparent 62%),
    radial-gradient(900px 520px at 92% 2%, rgba(94, 234, 212, 0.10), transparent 58%),
    radial-gradient(900px 500px at 55% 102%, rgba(251, 191, 36, 0.06), transparent 62%),
    var(--bg);
  overflow-x: hidden;
}

::selection { background: rgba(94, 234, 212, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #cfe0f7;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ---------- background grid ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.08; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5);
  animation: pulse-ring 2.4s infinite;
}

.grad {
  background: linear-gradient(100deg, #5eead4 0%, #60a5fa 48%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
  padding: 0 28px;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: #04110f;
  background: linear-gradient(140deg, var(--mint), #35c9b2);
  box-shadow: 0 6px 18px rgba(94, 234, 212, 0.22);
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__mark--small { width: 26px; height: 26px; border-radius: 7px; color: var(--mint); background: rgba(94, 234, 212, 0.10); box-shadow: none; }
.brand__mark--small svg { width: 15px; height: 15px; }

.brand__text { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.brand__text span { color: var(--muted); font-weight: 500; }

.nav__links { display: flex; gap: 22px; margin-left: 10px; }
.nav__links a { font-size: 13px; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.domain-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 10px;
  font-size: 13px; font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { color: #03120f; background: linear-gradient(140deg, #6ff2dc, #3dd6bf); box-shadow: 0 8px 26px rgba(94, 234, 212, 0.22); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(94, 234, 212, 0.30); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.btn--small { height: 34px; padding: 0 13px; font-size: 12px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 28px 66px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0 0 22px;
}

.hero__lede {
  max-width: 590px;
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 42px; }

.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.stat__label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; }

/* hero visual */
.hero__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-left: 20px;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.hero__ring--1 { width: 380px; height: 380px; right: -60px; top: 10px; }
.hero__ring--2 { width: 260px; height: 260px; right: 20px; top: 70px; border-color: rgba(94, 234, 212, 0.08); }

.mail-card {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(18, 28, 46, 0.94), rgba(9, 14, 24, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
  animation: float 7s ease-in-out infinite;
  max-width: 330px;
}
.mail-card:nth-child(2) { margin-left: 44px; animation-delay: -2.2s; }
.mail-card:nth-child(3) { margin-left: 16px; animation-delay: -4.1s; }

.mail-card__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
}
.mail-card--blue .mail-card__icon { color: var(--blue); background: rgba(96, 165, 250, 0.13); }
.mail-card--mint .mail-card__icon { color: var(--mint); background: rgba(94, 234, 212, 0.12); }
.mail-card--amber .mail-card__icon { color: var(--amber); background: rgba(251, 191, 36, 0.12); }

.mail-card div { display: flex; flex-direction: column; min-width: 0; }
.mail-card b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-card div span { font-family: var(--mono); font-size: 9.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-card__tag {
  margin-left: auto;
  font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 7px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.mail-card--blue .mail-card__tag { color: var(--blue); border-color: rgba(96, 165, 250, 0.25); }
.mail-card--mint .mail-card__tag { color: var(--mint); border-color: rgba(94, 234, 212, 0.25); }
.mail-card--amber .mail-card__tag { color: var(--amber); border-color: rgba(251, 191, 36, 0.25); }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 28px;
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section__head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.section__lede {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 470px;
  justify-self: end;
}

/* ---------- scenario bar ---------- */
.scenario-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.scenario-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }
.tab.is-active {
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.10);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.08) inset;
}

.scenario-controls { display: flex; align-items: center; gap: 10px; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 34px; height: 19px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.2s;
}
.switch__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #c9d5e7;
  transition: transform 0.2s ease, background 0.2s;
}
.switch input:checked + .switch__track { background: rgba(94, 234, 212, 0.24); border-color: rgba(94, 234, 212, 0.42); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(15px); background: var(--mint); }
.switch__label { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.icon-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.icon-btn svg { width: 15px; height: 15px; }

/* ---------- diagram ---------- */
.diagram-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
}

.canvas-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

.canvas {
  position: relative;
  width: 100%;
  min-width: 880px;
  aspect-ratio: 1000 / 620;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(720px 420px at 28% 30%, rgba(96, 165, 250, 0.07), transparent 65%),
    radial-gradient(600px 380px at 72% 72%, rgba(251, 191, 36, 0.05), transparent 65%),
    linear-gradient(180deg, rgba(12, 19, 33, 0.92), rgba(7, 11, 20, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}

.active-path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  animation: dash 0.9s linear infinite;
  filter: url(#glow-soft);
}

.flow-dot { filter: url(#glow-soft); }

.node-layer { position: absolute; inset: 0; z-index: 2; }

/* nodes */
.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 12px 10px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(20, 31, 51, 0.96), rgba(9, 15, 27, 0.97));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  overflow: hidden;
}
.node::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.node.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 34px -8px var(--accent), 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, #14203a), rgba(9, 15, 27, 0.98));
}

.node__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.node__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  flex-shrink: 0;
}
.node__icon svg { width: 15px; height: 15px; }
.node__tag {
  font-family: var(--mono);
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}
.node h3 { font-size: 12.5px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.node p { margin: 0; font-size: 9.5px; color: var(--muted); line-height: 1.35; }
.node__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.node__chips span {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 1px 4px;
  white-space: nowrap;
}

.canvas-hint {
  position: absolute;
  right: 12px; bottom: 10px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
@media (max-width: 1000px) { .canvas-hint { opacity: 1; } }

/* flow label */
.flow-label {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(6, 10, 18, 0.94);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  animation: label-in 0.22s ease both;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.flow-label::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 5px;
  background: var(--label-color, currentColor);
  vertical-align: 1px;
}

/* ---------- trace panel ---------- */
.trace {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.92), rgba(8, 13, 23, 0.96));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.trace__head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.trace__title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.trace__badge {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px;
  border-radius: 999px;
  font-size: 8.5px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.10);
}
.trace__badge[data-lane="conversational"] { color: var(--mint); border-color: rgba(94, 234, 212, 0.28); background: rgba(94, 234, 212, 0.09); }
.trace__badge[data-lane="marketing"] { color: var(--amber); border-color: rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.09); }
.trace__badge[data-lane="human"] { color: var(--red); border-color: rgba(248, 113, 113, 0.28); background: rgba(248, 113, 113, 0.09); }
.trace__count { font-family: var(--mono); font-size: 9px; color: var(--dim); }
.trace h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 4px; }
.trace__head p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

.trace__log {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1;
  max-height: 470px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

.log-entry {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  padding: 5px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.045);
  animation: log-in 0.26s ease both;
}
.log-entry:last-child { border-bottom: 0; }
.log-time { font-family: var(--mono); font-size: 8px; color: var(--dim); }
.log-actor { font-family: var(--mono); font-size: 8px; color: var(--blue); font-weight: 600; }
.log-text { font-size: 10.5px; color: #c6d3e6; line-height: 1.4; }
.log-actor[data-actor="nightmail"] { color: var(--mint); }
.log-actor[data-actor="bot"] { color: var(--purple); }
.log-actor[data-actor="listmonk"] { color: var(--amber); }
.log-actor[data-actor="ses"] { color: var(--orange); }
.log-actor[data-actor="you"] { color: var(--red); }
.log-actor[data-actor="visitors"], .log-actor[data-actor="recipients"] { color: var(--muted); }

.trace__foot { padding: 10px 14px; border-top: 1px solid var(--line); }
.trace__hint { font-size: 9.5px; color: var(--dim); }

/* ---------- legend ---------- */
.legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 14px;
  font-size: 10.5px;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend__note { margin-left: auto; color: var(--dim); font-family: var(--mono); font-size: 9px; }

/* dots */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot--blue { background: var(--blue); box-shadow: 0 0 8px rgba(96, 165, 250, 0.6); }
.dot--mint { background: var(--mint); box-shadow: 0 0 8px rgba(94, 234, 212, 0.6); }
.dot--amber { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }
.dot--red { background: var(--red); box-shadow: 0 0 8px rgba(248, 113, 113, 0.6); }
.dot--purple { background: var(--purple); box-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }

/* ---------- site section ---------- */
.site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.browser {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0f19;
  box-shadow: var(--shadow);
}

.browser__bar {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 13px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
}
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.browser__dots i:first-child { background: rgba(248, 113, 113, 0.65); }
.browser__dots i:nth-child(2) { background: rgba(251, 191, 36, 0.65); }
.browser__dots i:nth-child(3) { background: rgba(94, 234, 212, 0.65); }
.browser__url {
  flex: 1;
  max-width: 280px;
  height: 22px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.browser__url .lock { color: var(--mint); font-size: 7px; }
.browser__space { flex: 1; }

.browser__page { padding: 0; }
.site-nav {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.site-logo { font-size: 13px; font-weight: 750; letter-spacing: -0.03em; }
.site-logo span { color: var(--mint); }
.site-links { display: flex; gap: 14px; margin-left: auto; }
.site-links b { font-size: 9px; font-weight: 500; color: var(--muted); }
.site-cta {
  font-size: 9px; font-weight: 700;
  color: #04110f;
  background: var(--mint);
  padding: 5px 9px;
  border-radius: 5px;
}
.site-hero { padding: 34px 28px 30px; }
.site-kicker { margin: 0 0 10px; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.18em; color: var(--mint); }
.site-hero h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.04em; max-width: 430px; margin-bottom: 8px; }
.site-sub { margin: 0 0 18px; font-size: 10.5px; color: var(--muted); }
.site-form { display: flex; gap: 6px; max-width: 330px; }
.site-input {
  flex: 1;
  height: 30px;
  display: flex; align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.20);
}
.site-btn {
  display: grid; place-items: center;
  height: 30px; padding: 0 12px;
  border-radius: 5px;
  background: var(--mint);
  color: #04110f;
  font-size: 8.5px; font-weight: 750;
}
.site-fine { margin: 8px 0 0; font-size: 8px; color: var(--dim); }
.site-footer {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 8px;
  color: var(--dim);
}
.site-news { margin-left: auto; color: var(--amber); }

.address-stack {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.9), rgba(8, 13, 23, 0.94));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}
.address-stack__label {
  margin: 0 0 5px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.address-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}
.address-chip code { font-size: 9px; border: 0; background: transparent; padding: 0; color: #c6d3e6; }
.address-chip em { margin-left: auto; font-style: normal; font-size: 8px; color: var(--dim); white-space: nowrap; }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; background: rgba(10, 16, 28, 0.65); }
.table { width: 100%; border-collapse: collapse; min-width: 820px; }
.table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.table td { padding: 11px 14px; font-size: 11.5px; color: #c6d3e6; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table code { font-size: 10px; }
.table td:nth-child(3), .table td:nth-child(4) { color: var(--muted); }

.badge {
  display: inline-flex; align-items: center;
  height: 19px; padding: 0 7px;
  border-radius: 999px;
  font-size: 8px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap;
}
.badge--blue { color: var(--blue); background: rgba(96, 165, 250, 0.10); border: 1px solid rgba(96, 165, 250, 0.22); }
.badge--mint { color: var(--mint); background: rgba(94, 234, 212, 0.09); border: 1px solid rgba(94, 234, 212, 0.22); }
.badge--amber { color: var(--amber); background: rgba(251, 191, 36, 0.09); border: 1px solid rgba(251, 191, 36, 0.22); }
.badge--red { color: var(--red); background: rgba(248, 113, 113, 0.09); border: 1px solid rgba(248, 113, 113, 0.22); }

/* ---------- lanes ---------- */
.lane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lane-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(170deg, rgba(16, 25, 42, 0.9), rgba(8, 13, 23, 0.94));
  overflow: hidden;
}
.lane-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lane), transparent);
  opacity: 0.8;
}
.lane-card--blue { --lane: var(--blue); }
.lane-card--mint { --lane: var(--mint); }
.lane-card--amber { --lane: var(--amber); }
.lane-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lane-icon {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--lane);
  background: color-mix(in srgb, var(--lane) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--lane) 20%, transparent);
}
.lane-card h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 7px; }
.lane-card p { margin: 0 0 14px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.lane-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.lane-card li { font-size: 10px; color: var(--dim); }
.lane-card li::before { content: "—"; margin-right: 6px; color: var(--lane); }

/* ---------- bot scope ---------- */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scope-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(170deg, rgba(16, 25, 42, 0.9), rgba(8, 13, 23, 0.94));
}
.scope-card--can { border-color: rgba(94, 234, 212, 0.18); }
.scope-card--cannot { border-color: rgba(248, 113, 113, 0.16); }
.scope-card h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; }
.scope-mark {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
}
.scope-card--can .scope-mark { color: var(--mint); background: rgba(94, 234, 212, 0.12); }
.scope-card--cannot .scope-mark { color: var(--red); background: rgba(248, 113, 113, 0.12); }
.scope-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.scope-card li { font-size: 11.5px; color: #c6d3e6; line-height: 1.45; }
.scope-card--can li::before { content: "✓"; color: var(--mint); margin-right: 8px; font-weight: 700; }
.scope-card--cannot li::before { content: "×"; color: var(--red); margin-right: 8px; font-weight: 700; }

/* ---------- cost ---------- */
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cost-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(170deg, rgba(16, 25, 42, 0.9), rgba(8, 13, 23, 0.94));
}
.cost-card--accent { border-color: rgba(94, 234, 212, 0.20); box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.05) inset; }
.cost-card__label { margin: 0 0 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.cost-card__num { margin: 0 0 16px; font-size: 38px; font-weight: 750; letter-spacing: -0.055em; }
.cost-card__num span { font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.cost-card ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cost-card li { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,.05); }
.cost-card li b { color: var(--text); font-family: var(--mono); font-size: 10.5px; font-weight: 500; }
.cost-card__note { margin: 0; font-size: 10px; color: var(--dim); line-height: 1.5; }
.fineprint { margin: 18px 0 0; font-size: 9.5px; color: var(--dim); max-width: 760px; line-height: 1.6; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 28px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--dim);
}
.footer__left, .footer__right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer__right i { font-style: normal; opacity: 0.4; }
.footer__right a { color: var(--muted); margin-left: 10px; }
.footer__right a:hover { color: var(--text); }

/* ---------- animations ---------- */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes dash { to { stroke-dashoffset: -15; } }

@keyframes log-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes label-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 66px; }
  .hero__visual { min-height: 260px; flex-direction: row; flex-wrap: wrap; padding-left: 0; }
  .mail-card { max-width: 300px; }
  .mail-card:nth-child(2), .mail-card:nth-child(3) { margin-left: 0; }
  .hero__ring { display: none; }
  .diagram-grid { grid-template-columns: 1fr; }
  .trace { min-height: 0; }
  .trace__log { max-height: 300px; }
  .section__head { grid-template-columns: 1fr; gap: 12px; }
  .section__lede { justify-self: start; }
  .site-grid { grid-template-columns: 1fr; }
  .lane-grid { grid-template-columns: 1fr; }
  .scope-grid, .cost-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 0 16px; gap: 12px; }
  .nav__links { display: none; }
  .domain-pill { display: none; }
  .hero, .section, .footer { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero__stats { gap: 22px; }
  .hero__visual { min-height: 0; }
  .mail-card { max-width: 100%; }
  .scenario-tabs { gap: 5px; }
  .tab { height: 30px; padding: 0 9px; font-size: 10.5px; }
  .legend__note { display: none; }
  .table { min-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
