/* Cyberwhill Security — site styles. Fonts are self-hosted so the strict CSP works. */

@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brand: #4F46E5;
  --brand-dark: #4338CA;
  --brand-soft: #C7D2FE;
  --ink: #0B1020;
  --body: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --tint: #F8FAFC;
  --white: #FFFFFF;
  --head: "Space Grotesk", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--body); background: var(--white); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-size: 22px; letter-spacing: -0.03em; }
.brand-name { font-weight: 700; color: var(--ink); }
.brand-sub { font-weight: 400; color: var(--brand); margin-left: -4px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-block; padding: 10px 0; }
.nav a:hover { color: var(--brand); }
.nav .nav-cta { background: var(--brand); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.nav .nav-cta:hover { background: var(--brand-dark); color: var(--white); }

/* Hero */
.hero {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(79,70,229,0.85) 0%, rgba(79,70,229,0) 42%),
    radial-gradient(circle at 92% 10%, rgba(219,39,119,0.55) 0%, rgba(219,39,119,0) 36%),
    radial-gradient(circle at 88% 95%, rgba(245,158,11,0.45) 0%, rgba(245,158,11,0) 32%),
    radial-gradient(circle at 6% 95%, rgba(13,148,136,0.6) 0%, rgba(13,148,136,0) 36%);
  color: #E2E8F0;
}
.hero-inner { padding: 112px 24px 120px; max-width: 880px; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; color: var(--brand-soft); margin-bottom: 20px; }
.hero h1 { color: var(--white); font-size: clamp(40px, 6.5vw, 72px); margin-bottom: 24px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #CBD5E1; max-width: 680px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand-dark); }
.btn-light:hover { background: #EEF2FF; color: var(--ink); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { max-width: 640px; color: var(--muted); font-size: 18px; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--white); }
.card p { color: var(--muted); margin: 0; }
.card::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 3px; background: var(--brand); margin-bottom: 20px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.step-num { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--brand); display: block; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.about-name { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.about-role { color: var(--brand); font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.badge { border: 1px solid var(--brand-soft); background: #EEF2FF; color: var(--ink); border-radius: 12px; padding: 14px 18px; font-weight: 600; font-size: 15px; }
.badge span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); background: var(--white); }

.research { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.research .card p { margin-bottom: 12px; }
.card-kicker { font-family: var(--head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand) !important; font-weight: 700; }
.card-link { margin: 0 !important; }
.card-link a { font-weight: 600; }

.contact { background: var(--brand); color: #E0E7FF; padding: 96px 0; text-align: center; }
.contact h2 { color: var(--white); }
.contact p { font-size: 18px; margin-bottom: 28px; }
.contact-inner { max-width: 720px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .site-header { position: static; }
  .cards, .steps, .about, .research { grid-template-columns: minmax(0, 1fr); }
  .section, .contact { padding: 72px 0; }
  .hero-inner { padding: 80px 24px 88px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
