/* API Breaks — presell design system.
   Concept: "status board" — the page looks like the monitoring product itself.
   Dark blue-black base, single amber accent, mono for data. No frameworks. */

:root {
  --bg: #0b0e14;
  --bg-raise: #10151d;
  --bg-card: #131a24;
  --line: #1d2634;
  --line-bright: #2c3a4e;
  --text: #e9edf4;
  --dim: #98a5b8;
  --accent: #e8a33d;
  --accent-bright: #f5bd63;
  --accent-ink: #14100a;
  --ok: #43c08b;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -140px, rgba(232, 163, 61, 0.09), transparent 60%),
    radial-gradient(900px 500px at -180px 320px, rgba(67, 110, 168, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* faint blueprint grid over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(to right, rgba(151, 170, 199, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151, 170, 199, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(1200px 800px at 50% 0, #000 30%, transparent 85%);
}
main, header.site, footer.site { position: relative; z-index: 1; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(232, 163, 61, 0.35); }

/* ---------- header ---------- */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.logo {
  font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.02em; color: var(--text); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .slash { color: var(--accent); }
nav.site { display: flex; gap: 22px; flex-wrap: wrap; }
nav.site a { color: var(--dim); font-size: 0.94rem; }
nav.site a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 30px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }

.kicker {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid rgba(232, 163, 61, 0.35);
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  background: rgba(232, 163, 61, 0.07); margin-bottom: 22px;
}
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 20px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--dim); font-size: 1.13rem; max-width: 34em; margin: 0 0 30px; text-wrap: pretty; }

h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance;
}
.section { padding: 54px 0 8px; }
.section-note { color: var(--dim); max-width: 46em; margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 10px; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.btn.primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px rgba(232, 163, 61, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover { background: var(--accent-bright); }
.btn.ghost { color: var(--text); border: 1px solid var(--line-bright); background: rgba(255, 255, 255, 0.02); }
.btn.ghost:hover { border-color: var(--dim); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- the deadline board (hero signature) ---------- */
.board {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-raise));
  border: 1px solid var(--line-bright); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(4, 8, 16, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.board-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--dim);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.board-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: background 0.15s var(--ease);
}
.board-row:last-of-type { border-bottom: 0; }
.board-row:hover { background: rgba(232, 163, 61, 0.05); text-decoration: none; }
.board-date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.board-what { font-size: 0.93rem; color: var(--dim); }
.board-what strong { color: var(--text); font-weight: 600; }
.board-count {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: rgba(232, 163, 61, 0.1); border: 1px solid rgba(232, 163, 61, 0.3);
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.board-foot { padding: 11px 18px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); }

/* ---------- retiring-models ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; margin-top: 40px; }
.ticker-inner {
  display: flex; gap: 3.2em; white-space: nowrap; padding: 10px 0;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim);
  animation: slide 46s linear infinite; width: max-content;
}
.ticker-inner span b { color: var(--accent); font-weight: 600; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.steps li {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1; }
.steps h3 { margin: 0 0 6px; font-size: 1.06rem; font-weight: 600; font-family: var(--font-body); }
.steps p { margin: 0; color: var(--dim); font-size: 0.97rem; max-width: 46em; }
@media (max-width: 560px) { .steps li { grid-template-columns: 52px 1fr; } .step-no { font-size: 1.4rem; } }

/* ---------- spec / note blocks ---------- */
.spec {
  border-left: 3px solid var(--accent); background: var(--bg-raise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; color: var(--dim); font-size: 0.96rem; max-width: 52em;
}
.spec strong { color: var(--text); }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--line-bright); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; background: var(--bg-raise); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.07em;
  color: var(--dim); font-weight: 600; background: var(--bg-card);
}
td.yes { color: var(--ok); font-weight: 600; }
td.no { color: var(--dim); }
td code, p code, li code {
  font-family: var(--font-mono); font-size: 0.84em; color: var(--accent-bright);
  background: rgba(232, 163, 61, 0.08); border: 1px solid rgba(232, 163, 61, 0.18);
  padding: 1px 6px; border-radius: 5px; white-space: nowrap;
}

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 6px; align-items: stretch; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg-raise); border: 1px solid var(--line-bright);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tier:hover { transform: translateY(-3px); border-color: var(--dim); }
.tier.featured {
  background: linear-gradient(180deg, rgba(232, 163, 61, 0.10), var(--bg-raise) 55%);
  border-color: rgba(232, 163, 61, 0.55);
  box-shadow: 0 24px 50px -28px rgba(232, 163, 61, 0.4);
}
.tier .name { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.09em; color: var(--dim); }
.tier.featured .name { color: var(--accent); }
.tier .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.tier .price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.tier ul { padding: 0; margin: 16px 0 22px; list-style: none; flex: 1; }
.tier li { padding: 7px 0 7px 26px; position: relative; color: var(--dim); font-size: 0.95rem; border-top: 1px dashed var(--line); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "→"; position: absolute; left: 2px; color: var(--accent); font-family: var(--font-mono); }
.tier li strong { color: var(--text); }

/* ---------- bands & footer ---------- */
.band {
  margin-top: 60px; border: 1px solid var(--line-bright); border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 12% 0, rgba(232, 163, 61, 0.12), transparent 60%),
    var(--bg-card);
  padding: 34px 32px;
}
.band h2 { margin-top: 0; }
.band p { color: var(--dim); max-width: 52em; }

.fineprint { color: var(--dim); font-size: 0.93rem; max-width: 52em; }

footer.site { border-top: 1px solid var(--line); margin-top: 70px; padding: 26px 0 46px; color: var(--dim); font-size: 0.88rem; }
footer.site a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- event pages ---------- */
.event-hero { padding: 64px 0 20px; }
.count-big {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.15rem); letter-spacing: 0.05em;
  display: inline-flex; gap: 10px; align-items: center; margin-bottom: 20px;
}
.count-big .dot { animation-duration: 1.6s; }

/* ---------- load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fadeUp 0.7s var(--ease) both; }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.3s; }
  .reveal.d4 { animation-delay: 0.42s; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; } .dot { animation: none; }
}
