/* The Data Arsenal - dark to deep maroon, red glow, Montserrat. */
:root {
  --bg: #0b0d12;
  --bg-deep: #1d0405;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-red: rgba(229, 38, 38, 0.35);
  --text: #f3f4f6;
  --muted: #b4bac4;
  --faint: #8a919c;
  --red: #e0181f;
  --red-2: #ff3b3b;
  --red-glow: rgba(255, 40, 40, 0.55);
  --ok: #4ade80;
  --radius: 12px;
  --wrap: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(120, 10, 14, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #120608 45%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-2); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 13, 18, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { width: 96px; height: auto; display: block; }
@media (min-width: 768px) { .brand img { width: 120px; } }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 10px; border-radius: 8px; transition: color .2s var(--ease); }
.top nav a:not(.btn):hover, .top nav a[aria-current] { color: var(--text); }
@media (max-width: 560px) { .top nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; border: 0; border-radius: 10px;
  padding: 0 22px; font: inherit; font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 80, 80, .35) inset, 0 8px 28px -6px var(--red-glow);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255, 110, 110, .5) inset, 0 10px 34px -4px var(--red-glow); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; margin-left: 6px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--red-2); transition: gap .2s var(--ease); }
.more:hover { gap: 9px; }

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6.4vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.glow { position: relative; white-space: nowrap; }
.glow::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 3px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--red-2) 15%, var(--red-2) 85%, transparent);
  box-shadow: 0 0 14px 2px var(--red-glow);
}

/* Hero */
.hero { position: relative; padding: 72px 0 64px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 90%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(200, 16, 22, .28), transparent 70%); pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb4b4;
  background: rgba(224, 24, 31, .12); border: 1px solid var(--line-red); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 640px; margin: 0 auto 28px; }
.form-note { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.proof { margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; opacity: .9; }
.stack img { width: 30px; height: 30px; }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 540px; margin: 0 auto; }
.signup input {
  flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(255, 59, 59, .18); }
.signup .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .signup .btn { flex: 1 1 100%; } }
.signup-msg { flex-basis: 100%; margin: 0; min-height: 0; font-size: 15px; font-weight: 600; text-align: center; color: var(--muted); }
.signup-msg.ok { color: var(--ok); }
.signup-msg.bad { color: #ff8a8a; }

/* Sections */
.section { padding: 56px 16px; }
@media (min-width: 768px) { .section { padding: 72px 32px; } }
.section-title { margin-bottom: 14px; }
.section-title.center { margin-bottom: 32px; }
.section-lead { color: var(--muted); margin: -18px auto 32px; max-width: 560px; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--red-2);
  background: rgba(224, 24, 31, .1); border: 1px solid var(--line-red); box-shadow: 0 0 24px -6px var(--red-glow); }

.parts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .parts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.part { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.part h3 { margin: 18px 0 8px; }
.part p { margin: 0; color: var(--muted); font-size: 16px; }
.part-num { position: absolute; top: 22px; right: 22px; font-weight: 800; font-size: 14px; color: var(--faint); letter-spacing: .08em; }

/* Sample email */
.sample { max-width: 760px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #0f1117; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -30px var(--red-glow); }
.sample-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.sample-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; }
.sample-head div { margin-left: 10px; display: grid; min-width: 0; }
.sample-from { font-size: 13px; color: var(--faint); }
.sample-subject { font-size: 16px; }
.sample-body { padding: 22px 22px 8px; }
@media (min-width: 768px) { .sample-body { padding: 28px 32px 12px; } }
.sample-body p { margin: 0 0 14px; color: #d6dae0; }
.sample pre, .prose pre { margin: 0 0 16px; padding: 16px 18px; border-radius: 10px; background: #07080b; border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: #e6e6e6; overflow-x: auto; }
.broke { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(224, 24, 31, .08);
  border: 1px solid var(--line-red); color: #ffd0d0 !important; font-size: 15px; }
.broke .icon-sm { flex: none; margin-top: 3px; color: var(--red-2); }

/* Tools */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--line-red); background: var(--surface-2); }
.card h3 { margin: 18px 0 8px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 16px; flex: 1; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }

/* Notes */
.notes { list-style: none; padding: 0; margin: 0 0 16px; }
.notes li { border-bottom: 1px solid var(--line); }
.notes a { display: grid; gap: 4px; padding: 18px 0; color: var(--text); text-decoration: none; }
.notes a:hover strong { color: var(--red-2); }
.notes a span:last-child { color: var(--muted); }
.date { color: var(--faint); font-size: 14px; font-weight: 600; }

/* About */
.about { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.about img { width: 100%; max-width: 280px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 0 50px -18px var(--red-glow); }
.about p { color: #d6dae0; margin: 0 0 14px; }
@media (min-width: 768px) { .about { grid-template-columns: 280px 1fr; gap: 56px; } }

/* Final call */
.final { padding: 72px 0 80px; text-align: center; position: relative; }
.final::before { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--red-2), transparent); box-shadow: 0 0 18px 1px var(--red-glow); }
.final-inner { max-width: 640px; }
.emblem { width: 130px; height: auto; filter: drop-shadow(0 0 28px rgba(255, 50, 30, .45)); }
.final h2 { margin: 12px 0 12px; font-size: clamp(32px, 5vw, 48px); }
.final .lead { margin: 0 0 26px; }

.trackian { padding: 0 16px 48px; text-align: center; color: var(--faint); font-size: 15px; }
.trackian p { margin: 0; }

/* Inner pages */
.page { padding: 56px 16px 72px; max-width: 820px; }
@media (min-width: 768px) { .page { padding: 72px 32px 88px; } }
.page h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 24px; }
.prose { color: #d6dae0; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { max-width: 68ch; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.lead-prose { font-size: 19px; color: var(--muted); }
.hero-img { border-radius: 16px; max-width: 320px; display: block; margin: 0 0 28px; border: 1px solid var(--line); }
.tool { display: grid; grid-template-columns: 1fr; gap: 18px; border-top: 1px solid var(--line); padding: 40px 0; }
@media (min-width: 768px) { .tool { grid-template-columns: 64px 1fr; } }
.tool h2 { margin-bottom: 10px; }
.tool .lead { margin: 0 0 12px; }
.tool .btn { margin-top: 8px; }

.subscribe-box { margin-top: 56px; padding: 32px 24px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, rgba(224, 24, 31, .1), rgba(224, 24, 31, .03));
  border: 1px solid var(--line-red); box-shadow: 0 0 60px -30px var(--red-glow); }
.subscribe-box h2 { font-size: 28px; margin-bottom: 8px; }
.subscribe-box p { color: var(--muted); margin: 0 0 20px; }

/* Footer */
.bottom { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--faint); font-size: 15px; background: rgba(0, 0, 0, .25); }
.bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.bottom p { margin: 4px 0; }
.bottom .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.bottom .links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.bottom .links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
