/* ZeroBreach — original identity: Archivo + IBM Plex Mono, signal lime, dual theme */
:root {
  color-scheme: light dark;
  --page: #e9ece8;
  --page-2: #f8faf7;
  --ink: #0a0c0b;
  --muted: #505752;
  --line: #bdc4be;
  --surface: #ffffff;
  --inverse: #070908;
  --inverse-2: #101411;
  --inverse-ink: #f4f7f3;
  --inverse-muted: #a5afa8;
  --signal: #b7ff32;
  --signal-ink: #172200;
  --danger: #ff4d31;
  --shadow: 0 20px 70px rgba(4, 10, 6, .13);
  --radius: 14px;
  --maxw: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #070908;
    --page-2: #0b0e0c;
    --ink: #f4f7f3;
    --muted: #a2aaa4;
    --line: #283029;
    --surface: #111512;
    --inverse: #030504;
    --inverse-2: #0d110e;
    --inverse-muted: #9da69f;
    --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 98;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: inherit; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: "IBM Plex Mono", monospace; }

/* Eyebrow labels */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600; font-size: 12px; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.section-light .eyebrow { color: #4d7600; }
@media (prefers-color-scheme: dark) {
  .section-light .eyebrow { color: var(--signal); }
}

/* ── Header ─────────────────────────────── */
.topbar {
  background: var(--inverse);
  color: var(--inverse-ink);
  position: relative;
  z-index: 5;
}
.topbar-inner {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--inverse-ink);
  font-size: 17px; font-weight: 850; letter-spacing: -.025em;
  white-space: nowrap; text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.line-icon {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a, .footer-links a {
  text-decoration: none; font-size: 13px; font-weight: 650;
  color: var(--inverse-muted); transition: color .2s ease;
}
.nav-links a:hover, .footer-links a:hover { color: var(--inverse-ink); }
.top-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  background: var(--signal); color: var(--signal-ink);
  text-decoration: none; font-size: 12px; font-weight: 850;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.top-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(183, 255, 50, .25); text-decoration: none; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--inverse); color: var(--inverse-ink);
  padding: 150px 0 76px; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .042) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute;
  width: 460px; height: 460px; right: -160px; top: 130px;
  border: 80px solid rgba(183, 255, 50, .06);
  border-radius: 50%; z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
  align-items: center; gap: 74px;
  position: relative; z-index: 2;
}
.hero-grid > * { min-width: 0; }
.hero h1 {
  margin: 24px 0 25px;
  max-width: 800px;
  font-size: clamp(50px, 7vw, 104px);
  line-height: .83;
  letter-spacing: -.075em;
  font-weight: 900;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 247, 243, .78);
}
.hero-lede {
  max-width: 610px; margin: 0 0 36px;
  color: #c3cbc5;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.hero-lede strong { color: var(--inverse-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 380px;
}
.hero-visual .ring {
  position: absolute; width: 380px; height: 380px;
  border: 64px solid rgba(183, 255, 50, .08);
  border-radius: 50%;
}
.hero-visual .big-mark { width: 150px; height: 150px; color: var(--signal); position: relative; }

/* ── Buttons ────────────────────────────── */
.btn-lime {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--signal); color: var(--signal-ink);
  font-size: 13px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(183, 255, 50, .25); text-decoration: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--inverse-ink);
  font-size: 13px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: 13px 21px; border-radius: 999px;
  border: 1.5px solid #283029;
  transition: border-color .2s ease, transform .2s ease;
}
.btn-ghost:hover { border-color: var(--signal); transform: translateY(-2px); text-decoration: none; }
.section-light .btn-ghost { color: var(--ink); border-color: var(--line); }

/* ── Sections ───────────────────────────── */
.section { padding: 96px 0; }
.section-alt { padding: 96px 0; background: var(--page-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.04em; font-variation-settings: "wdth" 84;
  line-height: .95; margin: 0 0 1rem; max-width: 20ch;
}
.section-sub { color: var(--muted); max-width: 44rem; margin: 0 0 3rem; font-size: 1.08rem; }

/* Layer cards */
.layer-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem;
  list-style: none; padding: 0; margin: 0;
}
.layer-cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  box-shadow: var(--shadow);
}
.layer-cards .step-num {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: #4d7600; margin-bottom: .6rem;
}
@media (prefers-color-scheme: dark) { .layer-cards .step-num { color: var(--signal); } }
.layer-cards .step-name {
  display: block; font-weight: 850; font-size: 1.02rem;
  letter-spacing: -.01em; text-transform: uppercase; font-variation-settings: "wdth" 88;
}
.layer-cards .step-desc { display: block; color: var(--muted); font-size: .85rem; margin-top: .35rem; }

/* ── Waitlist ───────────────────────────── */
.waitlist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.waitlist-form { display: flex; gap: .6rem; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--ink); font-size: 1rem; font-family: inherit;
  outline: none; transition: border-color .2s ease;
}
.waitlist-form input[type="email"]:focus { border-color: var(--signal); }
.waitlist-form input[aria-invalid="true"] { border-color: var(--danger); }
.form-error {
  color: var(--danger); font-size: .88rem; font-weight: 600;
  min-height: 1.4em; margin: .7rem 0 0;
}
.form-success {
  background: var(--surface);
  border: 1.5px solid #4d7600;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin-top: 1rem;
}
.form-success strong { display: block; margin-bottom: .25rem; }
.form-success p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── News ───────────────────────────────── */
.news-index, .news-article { max-width: 46rem; margin: 0 auto; padding: 4.5rem 1.5rem 6rem; }
.page-title {
  font-size: clamp(34px, 5vw, 60px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.04em; font-variation-settings: "wdth" 84; line-height: .95;
  margin: 0 0 .75rem;
}
.page-sub { color: var(--muted); margin: 0 0 2.75rem; font-size: 1.05rem; }
.news-card {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; margin-bottom: 1.1rem; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .2s ease, transform .2s ease;
}
.news-card:hover { border-color: var(--signal); transform: translateY(-2px); text-decoration: none; }
.news-card h2 { margin: .7rem 0 .5rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; }
.news-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.news-meta {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.severity { font-weight: 600; }
.severity-critical { color: var(--danger); }
.severity-high { color: #ffb13b; }
.severity-medium { color: #4d7600; }
@media (prefers-color-scheme: dark) { .severity-medium { color: var(--signal); } }
.news-article h1 {
  font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.035em; font-variation-settings: "wdth" 84; line-height: .95;
  margin: .9rem 0 1.1rem;
}
.news-article .prose { color: var(--muted); }
.news-article .prose h2 { color: var(--ink); font-size: 1.35rem; margin-top: 2.2rem; text-transform: none; letter-spacing: -.01em; font-variation-settings: "wdth" 98; }
.news-article .prose h3 { color: var(--ink); font-size: 1.1rem; margin-top: 1.6rem; text-transform: none; letter-spacing: 0; }
.news-article .prose code {
  font-family: "IBM Plex Mono", monospace;
  background: var(--page-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .1rem .4rem; font-size: .85em; color: #4d7600;
}
@media (prefers-color-scheme: dark) { .news-article .prose code { color: var(--signal); } }
.news-article .prose ul { padding-left: 1.25rem; }
.news-article .prose li { margin-bottom: .35rem; }
.news-article .prose strong { color: var(--ink); }
.news-article .prose a { color: #4d7600; font-weight: 600; }
@media (prefers-color-scheme: dark) { .news-article .prose a { color: var(--signal); } }
.back-link {
  display: inline-block; margin-bottom: 1.5rem; font-size: .9rem; font-weight: 650;
  color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--ink); }

/* ── Footer ─────────────────────────────── */
.site-footer {
  background: var(--inverse); color: var(--inverse-muted);
  border-top: 1px solid #283029;
  padding: 3rem 1.5rem; margin-top: auto;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--inverse-ink);
  font-size: 17px; font-weight: 850; letter-spacing: -.025em; margin-bottom: .4rem; }
.footer-tag { font-size: .95rem; margin: 0 0 1.5rem; }
.footer-links { display: flex; gap: 30px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fine-print {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em;
  color: var(--inverse-muted); margin: 0;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 240px; }
  .hero-visual .ring { width: 260px; height: 260px; border-width: 44px; }
  .layer-cards { grid-template-columns: repeat(2, 1fr); }
  .layer-cards li:last-child { grid-column: 1 / -1; }
  .waitlist-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .hero { padding: 106px 0 48px; }
  .hero h1 { font-size: clamp(50px, 14.4vw, 66px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn-lime, .hero-actions .btn-ghost { justify-content: center; }
  .nav-links { display: none; }
  .waitlist-form { flex-direction: column; }
  .section, .section-alt { padding: 64px 0; }
}
