/* =========================================================================
   Pulse — API·서비스 상태 모니터링 SaaS
   Design paradigm: Swiss-grid precise developer tech
   ========================================================================= */

/* ===== Fonts (self-hosted, no runtime CDN) ===== */
@font-face {
  font-family: 'Pretendard';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/pretendard-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/pretendard-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/pretendard-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/pretendard-black.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }

/* ===== Design Tokens ===== */
:root {
  --paper: #f7f8fa;
  --paper-2: #ffffff;
  --ink: #0a0c10;
  --ink-2: #353b45;
  --muted: #6b7280;
  --line: #e2e6ec;
  --line-strong: #cfd5de;
  --accent: #2563ff;
  --accent-ink: #1746c8;
  --accent-soft: #eaf0ff;
  --up: #16c784;
  --up-soft: #e3f8ef;
  --down: #ef4444;
  --down-soft: #fdeaea;
  --warn: #f59e0b;
  --panel: #0d1017;
  --panel-2: #141925;
  --panel-line: #232a38;
  --panel-text: #c6ccd6;

  --font-ui: 'Pretendard', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
  --gut: 24px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(10,12,16,.04), 0 8px 28px -16px rgba(10,12,16,.18);
}

/* ===== Base ===== */
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-weight: 900; }
p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* monospace technical label */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px; background: var(--accent);
  display: inline-block;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 13px; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(247,248,250,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247,248,250,.92);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0; margin-right: auto; }
.brand svg { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.is-active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a1f2b; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ===== Section scaffolding ===== */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 14px; }
.section-head p { font-size: 17px; }
.section-line { border: 0; border-top: 1px solid var(--line); }

/* ===== Grid background utility ===== */
.gridlines {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 80% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 80% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 80px 0 88px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); margin: 20px 0 22px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 18px; max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  padding-top: 22px; border-top: 1px dashed var(--line-strong);
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta .dot-up { color: var(--up); }

/* ===== Dark panel / dashboard mockup ===== */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(10,12,16,.5);
  overflow: hidden;
  color: var(--panel-text);
}
.panel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--panel-line);
  background: var(--panel-2);
}
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #2b3344; }
.panel-bar .title {
  font-family: var(--font-mono); font-size: 12px; color: #7d889c; margin-left: 6px;
}
.panel-bar .live {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--up);
  display: inline-flex; align-items: center; gap: 6px;
}
.panel-bar .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 0 rgba(22,199,132,.6); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(22,199,132,.5); }
  70% { box-shadow: 0 0 0 7px rgba(22,199,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,199,132,0); }
}
.panel-body { padding: 18px; }

/* monitor rows inside dashboard */
.mon-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--panel-line);
}
.mon-row:last-child { border-bottom: 0; }
.mon-name { font-family: var(--font-mono); font-size: 13px; color: #e6eaf2; }
.mon-url { font-family: var(--font-mono); font-size: 11px; color: #6b7588; margin-top: 2px; }
.mon-right { text-align: right; }
.mon-status {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.mon-status.up { color: var(--up); }
.mon-status.down { color: var(--down); }
.mon-status.deg { color: var(--warn); }
.mon-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mon-latency { font-family: var(--font-mono); font-size: 11px; color: #7d889c; margin-top: 3px; }

/* uptime tick bars */
.ticks { display: flex; gap: 2px; margin-top: 10px; }
.ticks i {
  flex: 1; height: 22px; border-radius: 1px; background: var(--up); display: block;
}
.ticks i.down { background: var(--down); }
.ticks i.deg { background: var(--warn); }

/* ===== Feature triad ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.fcard {
  padding: 32px 28px; border-right: 1px solid var(--line);
  position: relative;
}
.fcard:last-child { border-right: 0; }
.fcard .ficon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 18px;
}
.fcard .ficon svg { width: 22px; height: 22px; stroke: var(--accent); }
.fcard h3 { font-size: 19px; margin-bottom: 10px; }
.fcard p { font-size: 14.5px; }
.fcard .fnum {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-mono); font-size: 12px; color: var(--line-strong);
}
.fcard ul { margin-top: 14px; display: grid; gap: 7px; }
.fcard li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
  padding-left: 18px; position: relative;
}
.fcard li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.step .snum {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  color: var(--accent); margin-bottom: 16px;
  display: inline-block; padding: 3px 10px; border: 1px solid var(--accent-soft);
  background: var(--accent-soft); border-radius: 100px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; }

/* ===== Code block ===== */
.code {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.code-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--panel-line); background: var(--panel-2);
}
.code-head .fname { font-family: var(--font-mono); font-size: 12px; color: #8a93a6; }
.code-head .copy {
  margin-left: auto; background: none; border: 1px solid var(--panel-line); color: #8a93a6;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 4px;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.code-head .copy:hover { color: #fff; border-color: #46506a; }
.code pre {
  margin: 0; padding: 18px 16px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: #d6dce8;
}
.code .c-key { color: #7aa2ff; }
.code .c-str { color: #8ee6b4; }
.code .c-com { color: #5b6880; font-style: italic; }
.code .c-fn { color: #e3b341; }
.code .c-num { color: #f0a8a8; }
.code .c-cmd { color: #7aa2ff; }

/* ===== Integrations grid ===== */
.integ-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
}
.integ {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 26px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.integ svg { width: 22px; height: 22px; }
.integ:hover { background: var(--paper); color: var(--ink); }

/* ===== Trust metrics counters ===== */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--ink);
}
.metric { padding: 36px 26px; border-right: 1px solid #1c2230; color: #fff; }
.metric:last-child { border-right: 0; }
.metric .mval {
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.02em; color: #fff;
}
.metric .mval .u { color: var(--accent); }
.metric .mlabel { font-size: 13.5px; color: #9aa3b2; margin-top: 8px; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 12px; padding: 56px 48px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, #1a2030 1px, transparent 1px),
    linear-gradient(to bottom, #1a2030 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 120% at 90% 50%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 90% 50%, #000, transparent 70%);
  opacity: .6;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band p { color: #aeb6c4; font-size: 17px; margin-bottom: 28px; max-width: 42em; }
.cta-band .hero-actions { margin-bottom: 0; }

/* ===== Generic content blocks ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.rev .split-media { order: -1; }
.prose h3 { font-size: 24px; margin-bottom: 14px; }
.prose p { font-size: 16px; margin-bottom: 14px; }
.feature-list { display: grid; gap: 14px; margin-top: 22px; }
.feature-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
}
.feature-list .ck {
  width: 22px; height: 22px; border-radius: 5px; background: var(--up-soft);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .ck svg { width: 13px; height: 13px; stroke: var(--up); }
.feature-list b { display: block; margin-bottom: 2px; }
.feature-list span.d { font-size: 14px; color: var(--muted); }

/* chips / badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-strong); background: var(--paper-2);
  padding: 5px 11px; border-radius: 100px;
}
.chip.up { color: var(--up); border-color: var(--up); background: var(--up-soft); }

/* ===== Response-time chart card ===== */
.chart-card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow);
}
.chart-card .panel-body { padding: 20px; }
.chart-legend {
  display: flex; gap: 18px; font-family: var(--font-mono); font-size: 11px;
  color: #8a93a6; margin-bottom: 14px; flex-wrap: wrap;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 2px; display: inline-block; }

/* ===== Incident timeline ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
}
.tl-item.up::before { border-color: var(--up); }
.tl-item.down::before { border-color: var(--down); }
.tl-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tl-item h4 { font-size: 15.5px; margin: 4px 0 4px; }
.tl-item p { font-size: 14px; }
.tl-tag {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .08em; padding: 2px 8px; border-radius: 4px; margin-left: 8px;
}
.tl-tag.investigating { background: var(--down-soft); color: var(--down); }
.tl-tag.identified { background: #fff3df; color: var(--warn); }
.tl-tag.resolved { background: var(--up-soft); color: var(--up); }

/* ===== Pricing ===== */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; }
.toggle-wrap .lbl { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.toggle-wrap .lbl.active { color: var(--ink); }
.toggle {
  position: relative; width: 52px; height: 28px; border-radius: 100px;
  background: var(--line-strong); border: 0; cursor: pointer; transition: background .2s;
}
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.toggle[aria-checked="true"]::after { transform: translateX(24px); }
.save-pill {
  font-family: var(--font-mono); font-size: 11px; color: var(--up);
  background: var(--up-soft); padding: 3px 9px; border-radius: 100px;
}

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tier {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--accent); box-shadow: 0 20px 48px -28px rgba(37,99,255,.5); position: relative; }
.tier.featured .ribbon {
  position: absolute; top: -1px; right: -1px;
  background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px;
  padding: 5px 12px; border-radius: 0 var(--radius) 0 var(--radius);
}
.tier h3 { font-size: 20px; margin-bottom: 6px; }
.tier .tdesc { font-size: 14px; color: var(--muted); min-height: 40px; }
.tier .price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.tier .price .amt { font-family: var(--font-mono); font-weight: 600; font-size: 38px; letter-spacing: -0.02em; }
.tier .price .per { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.tier .price-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-height: 18px; margin-bottom: 20px; }
.tier .btn { margin-bottom: 22px; }
.tier ul { display: grid; gap: 11px; }
.tier li {
  font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 20px 1fr; gap: 9px;
}
.tier li svg { width: 16px; height: 16px; stroke: var(--up); margin-top: 4px; }
.tier li.off { color: var(--muted); }
.tier li.off svg { stroke: var(--line-strong); }

/* comparison table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp-table tbody th { font-weight: 600; }
.cmp-table td { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); text-align: center; }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; }
.cmp-table .yes { color: var(--up); }
.cmp-table .no { color: var(--line-strong); }
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--paper-2); }

/* ===== FAQ ===== */
.faq { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 24px 22px; }
.faq .faq-body p { font-size: 15px; }

/* ===== Docs ===== */
.docs-layout { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 88px; }
.docs-nav .group { margin-bottom: 26px; }
.docs-nav .group-title {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 10px;
}
.docs-nav a {
  display: block; font-size: 14px; color: var(--ink-2); padding: 6px 12px;
  border-left: 2px solid var(--line); margin-left: 0;
}
.docs-nav a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.docs-nav a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.docs-content > section { scroll-margin-top: 88px; margin-bottom: 56px; }
.docs-content h2 { font-size: 26px; margin-bottom: 8px; }
.docs-content h3 { font-size: 18px; margin: 28px 0 12px; }
.docs-content p { font-size: 15.5px; margin-bottom: 14px; }
.docs-content .code { margin: 16px 0; }
.docs-content ul.dlist { display: grid; gap: 8px; margin: 12px 0 16px; }
.docs-content ul.dlist li { font-size: 15px; padding-left: 18px; position: relative; }
.docs-content ul.dlist li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 18px 0; font-size: 14.5px;
}
.callout .ctitle { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); display: block; margin-bottom: 4px; }
kbd {
  font-family: var(--font-mono); font-size: 12px; background: var(--paper-2);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 6px;
}

/* ===== Contact form ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hint { font-size: 13px; color: var(--muted); }
.contact-aside { display: grid; gap: 18px; }
.info-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.info-card h3 { font-size: 16px; margin-bottom: 10px; }
.info-card .row { display: flex; gap: 10px; font-size: 14.5px; padding: 6px 0; color: var(--ink-2); }
.info-card .row .k { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 64px; }
.info-card a { color: var(--accent); }

/* ===== Status page mock (features) ===== */
.statuspage {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.sp-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-head .sp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sp-allgood {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 13px; color: var(--up); font-weight: 600;
}
.sp-allgood::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--up); }
.sp-body { padding: 8px 24px 20px; }
.sp-svc { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sp-svc:last-child { border-bottom: 0; }
.sp-svc .nm { font-size: 14.5px; font-weight: 500; }
.sp-svc .pct { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.sp-svc .st { font-family: var(--font-mono); font-size: 12px; }
.sp-svc .st.up { color: var(--up); }
.sp-svc .st.deg { color: var(--warn); }
.sp-ticks { display: flex; gap: 2px; margin-top: 8px; grid-column: 1 / -1; }
.sp-ticks i { flex: 1; height: 26px; border-radius: 1px; background: var(--up); }
.sp-ticks i.deg { background: var(--warn); }
.sp-ticks i.down { background: var(--down); }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #aeb6c4; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #1c2230; }
.footer-brand svg { height: 26px; }
.footer-brand .wordmark { display: flex; align-items: center; gap: 8px; }
.footer-brand .wordmark text, .footer-brand svg text { fill: #fff; }
.footer-brand p { color: #808a9a; font-size: 14px; margin-top: 14px; max-width: 30em; }
.footer-col h4 { color: #fff; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; color: #aeb6c4; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding-top: 28px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom .biz { color: #6b7588; font-size: 12.5px; line-height: 1.7; font-family: var(--font-mono); }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-open { background: none; border: 0; padding: 0; cursor: pointer; color: #aeb6c4; font: inherit; font-size: 13.5px; }
.legal-open:hover { color: #fff; text-decoration: underline; }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: var(--gut); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,12,16,.6); backdrop-filter: blur(2px); animation: fade .2s ease; }
.modal__panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--paper-2); color: var(--ink); padding: 38px 40px; border-radius: 10px;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  animation: pop .2s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.modal__panel h2 { font-size: 24px; margin-bottom: 6px; }
.modal__panel .updated { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.modal__panel h3 { font-size: 16px; margin: 22px 0 8px; }
.modal__panel p, .modal__panel li { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.modal__panel ul { list-style: disc; padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.modal__panel ol { list-style: decimal; padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.modal__close {
  position: absolute; top: 16px; right: 18px; background: none; border: 0; font-size: 26px;
  line-height: 1; cursor: pointer; color: var(--muted); width: 34px; height: 34px; border-radius: 6px;
}
.modal__close:hover { background: var(--paper); color: var(--ink); }
.modal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.modal table th, .modal table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.modal table th { background: var(--paper); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.modal table td { color: var(--ink-2); }

/* ===== 404 ===== */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf .code-big { font-family: var(--font-mono); font-weight: 600; font-size: clamp(80px, 16vw, 160px); color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.nf .down-tag { font-family: var(--font-mono); color: var(--down); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.nf .down-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--down); }
.nf h1 { font-size: 24px; margin: 8px 0 12px; }
.nf p { margin-bottom: 24px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .integ-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
}
@media (max-width: 760px) {
  :root { --gut: 18px; }
  .section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .nav-links {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 10px var(--gut) 18px;
  }
  .site-header.nav-open .nav-links a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .cards-3 { grid-template-columns: 1fr; }
  .fcard { border-right: 0; border-bottom: 1px solid var(--line); }
  .fcard:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { padding: 40px 26px; }
  .metric { padding: 26px 20px; }
}
@media (max-width: 480px) {
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid #1c2230; }
  .metric:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 14px; }
}

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