/* Brade AI — Landing Page */

:root {
  /* Base brand */
  --brand: #0f3a4a;
  --brand-deep: #0a2a36;
  --brand-soft: #1a5368;

  /* Theme (light default) */
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-soft: #f1efe9;
  --ink: #0c1e26;
  --ink-2: #334a54;
  --ink-3: #6c7c83;
  --line: #e4e0d6;
  --line-2: #eceae2;

  /* Accent (tweakable) */
  --accent: #0f3a4a;
  --accent-ink: #ffffff;

  /* Type */
  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
}

/* ---------- Themes ---------- */
html[data-theme="dark"] {
  --bg: #0a1b22;
  --bg-elev: #0f262f;
  --bg-soft: #12303b;
  --ink: #f2ece0;
  --ink-2: #b8c4c9;
  --ink-3: #7d8f97;
  --line: #1c3b47;
  --line-2: #17333e;
}

html[data-theme="paper"] {
  --bg: #f5efe3;
  --bg-elev: #fbf6ec;
  --bg-soft: #ece4d3;
  --ink: #23221c;
  --ink-2: #53503f;
  --ink-3: #7f7a65;
  --line: #ddd3bb;
  --line-2: #e6ddc6;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; }

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

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow--hero::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

@keyframes dot-in-left {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dot-in-right {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.eyebrow--hero::before,
.eyebrow--hero::after {
  opacity: 0;
}
.reveal.visible .eyebrow--hero::before {
  animation: dot-in-left .6s cubic-bezier(.16,1,.3,1) .3s forwards;
}
.reveal.visible .eyebrow--hero::after {
  animation: dot-in-right .6s cubic-bezier(.16,1,.3,1) .3s forwards;
}

h1, h2, h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h1 .serif {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2 .serif {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
}
h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, black); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn .arrow {
  width: 16px; height: 16px; display: inline-block;
  transition: transform .2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .right { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 48ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* Perspective grid background */
.hero::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  top: 5%;
  bottom: -80%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(600px) rotateX(45deg);
  transform-origin: 50% 0%;
  -webkit-mask-image:
    radial-gradient(ellipse 80% 70% at 50% 35%, rgba(0,0,0,1), transparent 70%);
  mask-image:
    radial-gradient(ellipse 80% 70% at 50% 35%, rgba(0,0,0,1), transparent 70%);
  animation: grid-drift 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 72px; }
}

.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
/* Hero punchline — typewriter reveal */
.hero-punchline {
  display: inline-block;
  color: var(--accent);
  clip-path: inset(-10% 100% -10% 0);
}
@keyframes typewriter-reveal {
  to { clip-path: inset(-10% 0 -10% 0); }
}
.hero-punchline.visible {
  animation: typewriter-reveal .8s cubic-bezier(.25,.1,.25,1) forwards;
}

.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 28px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot-green { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in oklab, #22c55e 18%, transparent); }

/* Hero Layout variants */
html[data-hero="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
html[data-hero="centered"] .hero .lede { margin-left: auto; margin-right: auto; }
html[data-hero="centered"] .hero-ctas { justify-content: center; }
html[data-hero="centered"] .hero-meta { justify-content: center; }
html[data-hero="centered"] .hero-mock { margin-top: 64px; width: 100%; max-width: 1040px; }
html[data-hero="centered"] .hero-eyebrow-wrap { justify-content: center; display: flex; }

html[data-hero="asymmetric"] .hero-grid {
  grid-template-columns: 1fr 2.2fr;
  gap: 40px;
}
@media (max-width: 1020px) {
  html[data-hero="asymmetric"] .hero-grid { grid-template-columns: 1fr; }
  html[data-hero="centered"] .hero-mock { margin-top: 40px; }
}

/* ---------- Hero Mock (email → draft) ---------- */
.hero-mock {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 20px 40px -20px rgba(10, 30, 40, 0.18),
    0 40px 80px -30px rgba(10, 30, 40, 0.12);
  overflow: hidden;
}

/* ── Demo section (Brade in Action) ── */
.demo {
  padding-top: 64px;
  padding-bottom: 80px;
}
.demo-label {
  margin-bottom: 16px;
}

/* Scroll-triggered reveal — stays hidden until JS adds .visible */
.reveal-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0ms);
}
.reveal-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fade-only variant — no translateY, preserves perspective on video wrap */
.reveal-scroll--fade {
  transform: none;
}
.reveal-scroll--fade.visible {
  transform: none;
}

/* ── 3D scroll tilt for hero video ── */
.hero-video-wrap {
  perspective: 1200px;
  perspective-origin: 50% 30%;
}
.hero-video-3d {
  transform: rotateX(14deg) scale(0.94);
  box-shadow:
    0 40px 80px -20px rgba(10,30,40,0.25),
    0 0 0 1px var(--line);
  transition: box-shadow .4s ease;
  will-change: transform;
}
html[data-theme="dark"] .hero-mock {
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55), 0 2px 0 rgba(255,255,255,0.02) inset;
}

.mock-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.mock-chrome .dots { display: flex; gap: 6px; }
.mock-chrome .dots span { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--ink-3) 30%, transparent); }
.mock-chrome .title {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.mock-chrome .timer {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.mock-chrome .timer .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .3; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ── Three-column mock layout ── */
.mock-three-col {
  display: grid;
  grid-template-columns: 160px 210px 1fr;
  height: 540px;
  overflow: hidden;
}

/* ── Sidebar ── */
.mock-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */
.sb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line);
}
.sb-brand-block {
  display: flex; align-items: center; gap: 7px;
}
.sb-logo {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex: none;
}
.sb-brand-text b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.sb-brand-text span { font-size: 9.5px; color: var(--ink-3); }
.sb-user-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); color: var(--ink-3);
  font-size: 8px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
}

/* Search */
.sb-search {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 8px 6px;
  padding: 5px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px; color: var(--ink-3);
}
.sb-search svg { width: 12px; height: 12px; flex: none; }

/* Nav items */
.sb-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 6px; }
.sb-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: default;
  transition: background .15s;
  white-space: nowrap;
  overflow: hidden;
}
.sb-item svg { width: 14px; height: 14px; flex: none; }
.sb-item.active {
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 500;
}

/* Chevron on expandable parent */
.sb-chevron { width: 10px !important; height: 10px !important; transform: rotate(90deg); opacity: .5; }

.sb-badge {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 9px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* Tree children (nested under Inbox) */
.sb-children {
  display: flex; flex-direction: column; gap: 0;
  padding-left: 26px;
}
.sb-child {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--ink-3);
  cursor: default;
  white-space: nowrap;
}
.sb-count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--ink-3);
  opacity: .7;
}
.sb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.sb-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 10px;
}

/* ── Email list column ── */
.mock-list {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ml-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--bg);
}
.ml-count {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.ml-item {
  display: grid;
  grid-template-columns: 30px 1fr 8px;
  gap: 8px;
  align-items: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  cursor: default;
  transition: background .15s;
  background: var(--bg-elev);
}
.ml-item.sel {
  background: color-mix(in oklab, var(--accent) 7%, var(--bg-elev));
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.ml-item.unread .ml-from { font-weight: 600; color: var(--ink); }
.ml-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 600;
  color: var(--ink-2);
  flex: none;
}
.ml-body { min-width: 0; }
.ml-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ml-from { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-time { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); flex: none; }
.ml-subj { font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ml-co { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.ml-dot {
  width: 7px; height: 7px; border-radius: 50%;
  margin-top: 11px;
  flex: none;
}
.ml-dot.processing { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent); animation: pulse 1.8s ease-in-out infinite; }
.ml-dot.ready { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in oklab, #22c55e 18%, transparent); }
.ml-dot.parsing { background: #eab308; }
.ml-dot.sent { background: var(--line); }

/* ── Detail panel ── */
.mock-detail {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg-elev);
  overflow: hidden;
}
.dt-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.dt-from-row {
  display: flex; align-items: center; gap: 10px;
}
.dt-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  color: var(--ink-2); flex: none;
}
.dt-from-info { min-width: 0; }
.dt-from-info b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.dt-from-info span { font-size: 11.5px; color: var(--ink-3); }
.dt-meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.dt-subj {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  margin-top: 10px;
}

/* Pipeline strip */
.dt-pipeline {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.dt-steps {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  margin-bottom: 8px;
}
.dt-pip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  opacity: .4;
  transition: opacity .3s, color .3s;
}
.dt-pip.active { opacity: 1; color: var(--ink); }
.dt-pip.done { opacity: .7; color: var(--ink-2); }
.dt-pip-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 8px; font-style: normal;
  color: transparent;
}
.dt-pip.done .dt-pip-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dt-pip.active .dt-pip-mark { border-color: var(--accent); }
.dt-pip.active .dt-pip-mark::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
.dt-bar {
  height: 3px; background: var(--line); border-radius: 99px;
  overflow: hidden; position: relative;
}
.dt-bar > i {
  display: block; position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent); width: 0%;
  transition: width .45s ease;
}

/* Scrollable content */
.dt-content {
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  overflow-y: auto;
  scroll-behavior: smooth;
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
.dt-content p { color: inherit; margin: 0 0 10px; }
.dt-email { margin-bottom: 16px; }
.dt-items {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  color: var(--ink);
}
.dt-items .line { display: flex; justify-content: space-between; padding: 2px 0; }
.dt-items .line .qty { color: var(--ink-3); }
.dt-items .line.highlight {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  margin: 0 -4px; padding: 2px 4px;
  border-radius: 3px;
  animation: scan-pop .5s ease both;
}
@keyframes scan-pop {
  from { background: color-mix(in oklab, var(--accent) 25%, transparent); }
  to { background: color-mix(in oklab, var(--accent) 10%, transparent); }
}
.dt-attach {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--ink-2);
  margin-top: 10px;
}
.att-icon {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Draft card */
.dt-draft {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.dt-draft-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-soft);
}
.dt-draft-logo {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.dt-draft-pill {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in oklab, #22c55e 14%, transparent);
  border: 1px solid color-mix(in oklab, #22c55e 30%, transparent);
  color: #16a34a;
}
html[data-theme="dark"] .dt-draft-pill { color: #86efac; }
.dt-draft-body {
  padding: 14px 14px;
  font-size: 13px; line-height: 1.55; color: var(--ink);
}
.typing {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.dt-draft-body table {
  width: 100%; border-collapse: collapse;
  margin: 8px 0 6px;
  font-family: var(--f-mono); font-size: 11px;
}
.dt-draft-body table th, .dt-draft-body table td {
  text-align: left; padding: 4px 3px;
  border-bottom: 1px dashed var(--line);
}
.dt-draft-body table th { color: var(--ink-3); font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.dt-draft-body table td.num { text-align: right; color: var(--ink); }
.total {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  padding-top: 8px; margin-top: 2px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink); font-weight: 600;
}
.fade-in { animation: fade-in .5s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Action bar */
.dt-actions {
  display: flex; gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.dt-actions .act {
  font-family: var(--f-sans); font-size: 12px;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink);
  cursor: pointer;
}
.dt-actions .act.primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.dt-actions .act:disabled { opacity: .4; cursor: default; }
.dt-actions .spacer { flex: 1; }
.dt-actions .hint { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); align-self: center; }

/* Mock responsive */
@media (max-width: 1020px) {
  .mock-three-col { grid-template-columns: 200px 1fr; height: 440px; }
  .mock-sidebar { display: none; }
}
@media (max-width: 720px) {
  .mock-three-col { grid-template-columns: 1fr; height: 400px; }
  .mock-list { display: none; }
}

/* ---------- Logo bar ---------- */
.logo-bar {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-bar .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 24px;
}
.logo-bar .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 24px;
}
.logo-bar .logo {
  display: flex; align-items: center; justify-content: center;
  height: 44px;
  color: var(--ink-2);
  opacity: 0.7;
  transition: opacity .2s, color .2s;
  font-weight: 500;
}
.logo-bar .logo:hover { opacity: 1; color: var(--ink); }
.logo-bar .logo svg { height: 22px; width: auto; }
@media (max-width: 720px) {
  .logo-bar .row { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-card {
  background: var(--bg);
  padding: 32px 28px 36px;
  min-height: 280px;
  display: flex; flex-direction: column;
  position: relative;
}
.step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.step-icon {
  width: 40px; height: 40px;
  color: var(--ink-2);
  opacity: .65;
  transition: opacity .3s, color .3s;
  flex: none;
}
.step-card:hover .step-icon { opacity: 1; color: var(--accent); }
.step-icon svg { width: 100%; height: 100%; }
.step-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
}
.step-card h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step-card p { font-size: 14px; line-height: 1.55; }

/* Step-card scroll-reveal */
.step-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease var(--delay, 0ms), transform .5s ease var(--delay, 0ms);
}
.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Use cases ---------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.uc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  transition: transform .2s, border-color .2s;
}
.uc:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.uc .uc-tag-row {
  display: flex; align-items: center; gap: 8px;
  align-self: flex-start;
}
.uc .uc-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.uc .uc-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  padding: 4px 8px;
  border-radius: 4px;
}
.uc h3 { font-size: 22px; }
.uc p { font-size: 14px; line-height: 1.55; }
.uc .uc-sample {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.uc.span-6 { grid-column: span 6; }
.uc.span-4 { grid-column: span 4; }
.uc.span-8 { grid-column: span 8; }
.uc.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .uc.span-6, .uc.span-4, .uc.span-8, .uc.span-12 { grid-column: span 12; }
}

/* ── Use cases: scroll-driven card swap ── */
.uc-scroll-stage { --uc-progress: 0; }

.uc-scroll-spacer { height: 200vh; }

.uc-scroll-sticky {
  position: sticky;
  top: 100px;
  overflow: hidden;
}

/* Card exit: staggered shrink + fade + blur */
.uc-scroll-stage.uc-animating .uc-main-grid .uc {
  --exit-raw: calc((var(--uc-progress) - 0.05 - var(--uc-i, 0) * 0.04) / 0.35);
  --exit: clamp(0, var(--exit-raw), 1);
  opacity: calc(1 - var(--exit));
  transform: scale(calc(1 - var(--exit) * 0.12)) translateY(calc(var(--exit) * 30px));
  filter: blur(calc(var(--exit) * 4px));
  will-change: transform, opacity, filter;
  pointer-events: none;
}

/* Custom workflow card entrance */
.uc-custom-reveal {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  z-index: 2;
}

.uc-custom-lead {
  --lead-raw: calc((var(--uc-progress) - 0.25) / 0.20);
  --lead: clamp(0, var(--lead-raw), 1);
  opacity: var(--lead);
  transform: translateY(calc((1 - var(--lead)) * 18px));
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--accent);
  text-align: center;
  letter-spacing: -0.01em;
  max-width: 640px;
  will-change: opacity, transform;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 12px 30px -14px rgba(10, 30, 40, 0.18);
}

.uc-custom-inner {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  --enter-raw: calc((var(--uc-progress) - 0.45) / 0.45);
  --enter: clamp(0, var(--enter-raw), 1);
  opacity: var(--enter);
  transform: scale(calc(0.85 + var(--enter, 0) * 0.15));
  filter: blur(calc((1 - var(--enter, 0)) * 6px));
  will-change: transform, filter, opacity;
  box-shadow: 0 24px 60px -16px rgba(10, 30, 40, 0.15);
}

.uc-custom-inner .uc-tag-row { display: flex; align-items: center; gap: 8px; }
.uc-custom-inner .uc-icon { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.uc-custom-inner .uc-tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  padding: 4px 8px; border-radius: 4px;
}
.uc-custom-inner h3 { font-size: 28px; margin: 0; }
.uc-custom-inner p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; margin: 0; }

.uc-scroll-stage.uc-custom-in .uc-custom-reveal { pointer-events: auto; }

/* Mobile: disable scroll animation, show all cards normally */
@media (max-width: 900px) {
  .uc-scroll-spacer { height: auto !important; }
  .uc-scroll-sticky { position: relative !important; top: auto !important; }
  .uc-custom-reveal {
    position: relative !important; opacity: 1 !important;
    pointer-events: auto !important; margin-top: 20px;
    gap: 12px;
  }
  .uc-custom-lead {
    opacity: 1 !important; transform: none !important;
    font-size: 18px; text-align: left; align-self: flex-start;
    max-width: none; padding: 10px 18px;
  }
  .uc-custom-inner {
    opacity: 1 !important;
    transform: none !important; filter: none !important;
    padding: 26px; max-width: none; text-align: left;
    align-items: flex-start; border-radius: var(--radius); box-shadow: none;
  }
  .uc-scroll-stage.uc-animating .uc-main-grid .uc {
    opacity: 1 !important; transform: none !important;
    filter: none !important; pointer-events: auto !important;
  }
}

/* ---------- Data layer ---------- */
.data-layer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .data-layer { grid-template-columns: 1fr; } }
.data-layer h2 .serif { color: var(--accent); }
/* ── Spider-web visualization ── */
.spider-web {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: visible;
}
.web-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Pulsating connection lines */
.web-line-pulse {
  stroke: var(--accent);
  stroke-width: 2.5;
  opacity: 0.5;
  animation: line-flow 2.5s linear infinite;
}
@keyframes line-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 48; }
}

/* Center hub */
.web-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(110px, 13vw, 150px);
  height: clamp(110px, 13vw, 150px);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.web-hub-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.web-hub-title {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
}
.web-hub-sub {
  font-family: var(--f-mono);
  font-size: clamp(8px, 0.9vw, 10px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: .6;
  margin-top: 2px;
}

/* ── Spider-web sequenced animation ── */

/* Initial state: everything hidden */
.spider-web .web-hub {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.spider-web.anim-hub .web-hub {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Nodes: start invisible, sprout on anim-nodes */
.spider-web .web-node {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 11px)) scale(0);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.34,1.56,.64,1);
  transition-delay: var(--sprout-delay, 0ms);
}
.spider-web.anim-nodes .web-node {
  opacity: 1;
  transform: translate(-50%, calc(-50% + 11px)) scale(1);
}

/* Lines: draw in on anim-lines */
.web-line-draw {
  transition: stroke-dashoffset 0.7s cubic-bezier(.16,1,.3,1);
}
.spider-web.anim-lines .web-line-draw {
  stroke-dashoffset: 0 !important;
}

/* Pulse lines hidden until fully done */
.spider-web .web-line-pulse {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spider-web.anim-done .web-line-pulse {
  opacity: 0.5;
}

/* Re-enable floating only after done */
.spider-web.anim-done .web-node {
  animation: web-float ease-in-out infinite alternate;
}

/* Outer nodes — icon-centric */
.web-node {
  position: absolute;
  z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.spider-web.anim-done .web-node:hover {
  transform: translate(-50%, calc(-50% + 11px - 4px));
}
@keyframes web-float {
  0%   { transform: translate(-50%, calc(-50% + 11px)); }
  100% { transform: translate(-50%, calc(-50% + 11px - 5px)); }
}
.web-node-glyph {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.web-node-glyph svg { width: 24px; height: 24px; display: block; }
.web-node:hover .web-node-glyph {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg-elev));
}
.web-node-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
  text-align: center;
}
.web-node:hover .web-node-label { color: var(--ink); }

@media (max-width: 980px) {
  .spider-web { aspect-ratio: 4 / 3; }
  .web-node-glyph { width: 42px; height: 42px; border-radius: 50%; }
  .web-node-glyph svg { width: 20px; height: 20px; display: block; }
  .web-node-label { font-size: 9px; }
}

/* ---------- Oversight / control ---------- */
.oversight {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .oversight { grid-template-columns: 1fr; } }
.review-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.review-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  transition: background .2s;
}
.review-row:last-child { border-bottom: 0; }
.review-row:hover { background: var(--bg-soft); }
.review-row .from {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.review-row .from b { color: var(--ink); font-weight: 500; }
.review-row .from span { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-row .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.pill {
  font-family: var(--f-sans);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg);
  font-weight: 500;
  white-space: nowrap;
}
.pill.ready { background: color-mix(in oklab, #22c55e 14%, transparent); border-color: color-mix(in oklab, #22c55e 30%, transparent); color: color-mix(in oklab, #14532d 75%, #22c55e); }
html[data-theme="dark"] .pill.ready { color: #86efac; }
.pill.waiting { background: color-mix(in oklab, #eab308 14%, transparent); border-color: color-mix(in oklab, #eab308 30%, transparent); color: color-mix(in oklab, #713f12 75%, #eab308); }
html[data-theme="dark"] .pill.waiting { color: #fde68a; }
.pill.sent { background: var(--bg-soft); color: var(--ink-3); }

/* Stats bar */
.stats-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.stats-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 12px;
}
.stats-bar-item + .stats-bar-item { border-left: 1px solid var(--line); }
.stats-bar-value {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stats-bar-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.oversight-points { display: grid; gap: 20px; }
.oversight-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}
.oversight-point .n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 4px;
}
.oversight-point h4 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.oversight-point p { font-size: 14.5px; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quote {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.quote .qt {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.quote .qt::before {
  content: "\201C";
  font-family: var(--f-serif);
  font-size: 48px;
  line-height: 0;
  vertical-align: -12px;
  color: var(--accent);
  margin-right: 4px;
}
.quote .by {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13.5px;
}
.quote .by .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.quote .by b { display: block; color: var(--ink); font-weight: 500; }
.quote .by span { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Security ---------- */
.security {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .security { grid-template-columns: 1fr; padding: 32px; } }
.sec-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sec-badge {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg);
}
.sec-badge .mk {
  width: 34px; height: 34px; border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line));
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
}
.sec-badge b { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.sec-badge span { font-size: 12px; color: var(--ink-3); }

/* ---------- Footer CTA ---------- */
.footer-cta {
  background: var(--brand);
  color: #f3f1e8;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .footer-cta { background: var(--bg-elev); border-top: 1px solid var(--line); }
html[data-theme="paper"] .footer-cta { background: var(--brand); }
.footer-cta .container { position: relative; z-index: 1; padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(80px, 10vw, 120px); }
.footer-cta h2 { color: #f7f4ea; }
.footer-cta h2 .serif { color: color-mix(in oklab, var(--accent) 60%, #f3f1e8); }
html[data-theme="dark"] .footer-cta h2 .serif { color: var(--accent); }
.footer-cta p { color: color-mix(in oklab, #f3f1e8 70%, transparent); margin-top: 16px; max-width: 48ch; font-size: 17px; }
.footer-cta .btn-primary {
  background: #f3f1e8;
  color: var(--brand);
  margin-top: 36px;
}
.footer-cta .btn-primary:hover { background: #fff; }
.footer-cta .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, #f3f1e8 8%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, #f3f1e8 8%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
}

/* ---------- Footer ---------- */
.footer {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}
.footer-meta a {
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--ink); }
.footer-sep { opacity: 0.5; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  padding: 18px;
  display: none;
  font-family: var(--f-sans);
}
.tweaks-panel.on { display: block; }
.tweaks-panel h4 {
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks-panel .row { margin-bottom: 14px; }
.tweaks-panel .row label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.tweaks-panel .seg {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tweaks-panel .seg button {
  flex: 1;
  padding: 7px 6px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tweaks-panel .seg button.on {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.tweaks-panel .swatches { display: flex; gap: 8px; }
.tweaks-panel .swatches button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s;
}
.tweaks-panel .swatches button:hover { transform: scale(1.08); }
.tweaks-panel .swatches button.on { border-color: var(--ink); }

/* ── Global reveal-on-scroll ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-scale {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.visible {
  animation: reveal-up .7s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0ms);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
}
.reveal-scale.visible {
  animation: reveal-scale .8s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0ms);
}

/* Section heads */
.section-head .reveal { --d: 0ms; }
.section-head .reveal:nth-child(2) { --d: 120ms; }

/* Use-case cards */
.uc.reveal { transition: none; }
.uc.reveal.visible { animation: reveal-up .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* Oversight points */
.oversight-point.reveal.visible { animation: reveal-up .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* Quote cards */
.quote.reveal.visible { animation: reveal-up .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* Security badges */
.sec-badge.reveal.visible { animation: reveal-up .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* Logo bar */
.logo-bar .logo.reveal.visible { animation: reveal-up .5s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* Footer CTA */
.footer-cta .reveal.visible { animation: reveal-up .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* Review panel */
.review-row.reveal.visible { animation: reveal-up .45s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }

/* ── Interactive card tilt on hover ── */
.uc {
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .2s, box-shadow .35s ease;
}
.uc:hover {
  box-shadow: 0 20px 40px -16px rgba(10,30,40,0.12);
}

/* ── Eyebrow line-draw on reveal ── */
@keyframes line-draw {
  from { width: 0; }
  to   { width: 18px; }
}
.reveal.visible .eyebrow:not(.eyebrow--hero)::before,
.section-head .reveal.visible .eyebrow:not(.eyebrow--hero)::before {
  animation: line-draw .5s cubic-bezier(.16,1,.3,1) .15s both;
}

/* ── Enhanced button hover ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

/* ── Step card hover lift ── */
.step-card {
  transition: opacity .5s ease var(--delay, 0ms), transform .5s ease var(--delay, 0ms), box-shadow .3s ease;
}
.step-card:hover {
  box-shadow: 0 16px 40px -12px rgba(10,30,40,0.1);
}

/* ── Quote card subtle hover ── */
.quote {
  transition: transform .3s ease, box-shadow .3s ease;
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(10,30,40,0.1);
}

/* ── Review row stagger ── */
.review-row {
  transition: background .2s ease;
}

/* ── Nav smooth entrance ── */
.nav {
  animation: nav-slide .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes nav-slide {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Brade in Action — scroll-driven reveal ── */
.brade-action {
  margin-top: 56px;
  text-align: center;
}

.brade-action-words {
  display: flex;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 20px;
}

.brade-action-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  filter: blur(4px);
  transition: opacity 0.55s cubic-bezier(.16,1,.3,1),
              transform 0.55s cubic-bezier(.16,1,.3,1),
              filter 0.55s cubic-bezier(.16,1,.3,1);
}
.brade-action-word:nth-child(1) { transition-delay: 0ms; }
.brade-action-word:nth-child(2) { transition-delay: 140ms; }
.brade-action-word:nth-child(3) { transition-delay: 280ms; }

.brade-action.is-visible .brade-action-word {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.brade-action-stage {
  --progress: 0;
  perspective: 1400px;
  perspective-origin: 50% 0%;
}

.brade-action-stage > .hero-mock {
  transform-origin: 50% 100%;
  transform: rotateX(calc(45deg * (1 - var(--progress))));
  opacity: clamp(0, calc(var(--progress) * 2), 1);
  will-change: transform, opacity;
}
