:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --alt: #f5f5f7;
  --white: #ffffff;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --rule: #d2d2d7;
  --night: #000000;
  --night-2: #161617;
  --night-text: #f5f5f7;
  --night-muted: #a1a1a6;
  --attack: #ff9f0a;
  --defend: #2997ff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--defend); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--white); color: var(--text); padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1200px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Global nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 252, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 600; }
.nav-brand:hover { text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #424245;
  font-size: 14px;
  white-space: nowrap;
}
.nav li a:hover { color: var(--text); text-decoration: none; }
.nav li a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 28px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--button);
  color: var(--white);
  font-size: 17px;
}
.pill:hover { background: var(--button-hover); text-decoration: none; }
.text-link { font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero */
.hero { text-align: center; padding: 96px 0 72px; }
.hero .kicker { font-size: 21px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.hero .lede { max-width: 640px; margin: 20px auto 0; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--muted); }

.page-hero { text-align: center; padding: 88px 0 56px; }
.page-hero h1 { font-size: clamp(40px, 6.5vw, 72px); line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; }
.page-hero p { max-width: 640px; margin: 18px auto 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.38; color: var(--muted); }

/* Live threat tile */
.live { background: var(--night); color: var(--night-text); padding: 88px 0 72px; }
.live-head { text-align: center; margin-bottom: 40px; }
.live-head h2 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; font-weight: 700; }
.live-head p { max-width: 620px; margin: 14px auto 0; font-size: 21px; color: var(--night-muted); }

.live-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
}
.live-canvas-wrap {
  position: relative;
  background: var(--night-2);
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
}
.live-canvas-wrap canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--night-text);
}
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--attack); }

.live-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--night-2); border-radius: 18px; padding: 16px; }
.stat-num { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 13px; color: var(--night-muted); margin-top: 2px; }
.stat-num.is-defend { color: var(--defend); }
.stat-num.is-attack { color: var(--attack); }

.feed { background: var(--night-2); border-radius: 18px; padding: 18px; overflow: hidden; }
.feed h3 { font-size: 15px; font-weight: 600; color: var(--night-text); margin-bottom: 10px; }
.feed ol { list-style: none; margin: 0; padding: 0; }
.feed li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.feed li:first-child { border-top: 0; }
.feed time { font-family: var(--mono); color: var(--night-muted); font-size: 12px; }
.feed .what { color: var(--night-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what small { color: var(--night-muted); font-size: 12px; margin-left: 6px; }
.feed .status { font-weight: 600; font-size: 12px; }
.feed .status.blocked { color: var(--defend); }
.feed .status.flagged { color: var(--attack); }

.live-note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--night-muted); }
.live-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 13px; color: var(--night-muted); }
.live-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 3px; border-radius: 2px; }
.swatch.attack { background: var(--attack); }
.swatch.defend { background: var(--defend); }

/* Tiles */
.tiles-section { padding: 12px 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  background: var(--alt);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tile h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; }
.tile p { margin: 12px auto 0; max-width: 380px; font-size: 19px; color: var(--muted); }
.tile .links { margin-top: 20px; display: flex; justify-content: center; gap: 24px; }
.tile-dark { background: var(--night-2); color: var(--night-text); }
.tile-dark p { color: var(--night-muted); }
.tile-dark a { color: var(--defend); }

/* Statement */
.statement { text-align: center; padding: 120px 0; }
.statement h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 700; max-width: 820px; margin: 0 auto; }
.statement p { max-width: 640px; margin: 20px auto 0; font-size: 21px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; text-align: left; }
.pillars h3 { font-size: 21px; margin-bottom: 8px; }
.pillars p { font-size: 17px; color: var(--muted); margin: 0; max-width: none; }

/* Services detail */
.svc { padding: 96px 0; border-top: 1px solid var(--rule); }
.svc:nth-of-type(even) { background: var(--alt); border-top: 0; }
.svc-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.svc-head h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; font-weight: 700; }
.svc-head p { margin-top: 14px; font-size: 21px; color: var(--muted); }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.svc-col { background: var(--white); border-radius: 20px; padding: 32px; }
.svc:nth-of-type(odd) .svc-col { background: var(--alt); }
.svc-col h3 { font-size: 19px; margin-bottom: 12px; }
.svc-col ul { margin: 0; padding-left: 20px; color: #424245; }
.svc-col li { margin-bottom: 8px; }

/* About */
.bio { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; padding: 32px 0 96px; }
.bio h2 { font-size: 32px; margin-bottom: 16px; }
.bio p { font-size: 19px; color: #424245; margin-bottom: 16px; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 16px 0; border-top: 1px solid var(--rule); }
.creds li:last-child { border-bottom: 1px solid var(--rule); }
.creds .k { display: block; font-size: 13px; color: var(--muted); }
.creds .v { display: block; font-size: 17px; font-weight: 600; }

.process { background: var(--alt); padding: 96px 0; }
.process-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.process-head h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; line-height: 1.1; }
.process-head p { margin-top: 14px; font-size: 21px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: var(--white); border-radius: 20px; padding: 28px 24px; }
.steps li::before { content: counter(s); display: block; font-size: 40px; font-weight: 700; color: var(--defend); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }

/* Contact */
.contact-block { text-align: center; padding: 24px 0 120px; }
.contact-email { display: inline-block; font-size: clamp(26px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; word-break: break-word; }
.contact-list { max-width: 560px; margin: 48px auto 0; text-align: left; background: var(--alt); border-radius: 20px; padding: 32px; }
.contact-list h2 { font-size: 21px; margin-bottom: 12px; }
.contact-list ul { margin: 0 0 16px; padding-left: 20px; color: #424245; }
.contact-list li { margin-bottom: 6px; }
.contact-list p { font-size: 15px; color: var(--muted); }

/* Footer */
.footer { background: var(--alt); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 24px 0 32px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--rule); padding-top: 18px; }
.footer a { color: #424245; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 900px) {
  .live-stage { grid-template-columns: minmax(0, 1fr); }
  .live-canvas-wrap { min-height: 340px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 700px) {
  .tiles, .svc-cols { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 280px; padding: 48px 24px; }
  .nav-brand span { display: none; }
  .hero { padding: 64px 0 48px; }
  .statement { padding: 80px 0; }
  .svc, .process { padding: 72px 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat-num { font-size: 22px; }
}
