/* Self-hosted fonts (latin subset, from Google Fonts; SIL Open Font License) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/inter-latin-var.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lato-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/lato-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/lato-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/lato-latin-700-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --teal: #2DD4BF;
  --amber: #F5A524;
  --bg: #0A1220;
  --bg-2: #0D1828;
  --card: rgba(18, 26, 38, 0.82);
  --card-cyber: rgba(15, 42, 46, 0.55);
  --line: rgba(45, 212, 191, 0.22);
  --line-amber: rgba(245, 165, 36, 0.45);
  --text: #F1F5F9;
  --muted: #A9B6C6;
  --teal-text: #2DD4BF;
  --amber-text: #F5A524;
  --grid: rgba(45, 212, 191, 0.05);
  --node: rgba(45, 212, 191, 0.55);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --chip-on-accent: #0A1220;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F7FA;
    --bg-2: #EAF0F5;
    --card: rgba(255, 255, 255, 0.92);
    --card-cyber: rgba(255, 249, 238, 0.95);
    --line: rgba(13, 148, 136, 0.25);
    --line-amber: rgba(201, 126, 8, 0.4);
    --text: #0B1626;
    --muted: #4A5A6E;
    --teal-text: #0D857A;
    --amber-text: #A86108;
    --grid: rgba(13, 148, 136, 0.07);
    --node: rgba(13, 148, 136, 0.45);
    --shadow: 0 16px 40px rgba(15, 30, 50, 0.10);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F7FA;
  --bg-2: #EAF0F5;
  --card: rgba(255, 255, 255, 0.92);
  --card-cyber: rgba(255, 249, 238, 0.95);
  --line: rgba(13, 148, 136, 0.25);
  --line-amber: rgba(201, 126, 8, 0.4);
  --text: #0B1626;
  --muted: #4A5A6E;
  --teal-text: #0D857A;
  --amber-text: #A86108;
  --grid: rgba(13, 148, 136, 0.07);
  --node: rgba(13, 148, 136, 0.45);
  --shadow: 0 16px 40px rgba(15, 30, 50, 0.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Inter", system-ui, sans-serif; letter-spacing: -0.02em; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Background: grid + glow + constellation, like the deck */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 85%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 78% 22%, rgba(45, 212, 191, 0.14), transparent 70%),
    radial-gradient(30% 30% at 10% 90%, rgba(245, 165, 36, 0.07), transparent 70%);
}
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.constellation line { stroke: var(--node); stroke-width: 0.6; opacity: 0.35; }
.constellation circle { fill: var(--node); }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-btn .sun { display: block; }
  :root[data-theme="auto"] .theme-btn .moon { display: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--chip-on-accent); box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.nav .btn { padding: 9px 16px; }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-family: "Lato", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal-text); margin: 0 0 18px; }
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.04; margin: 0 0 22px; font-weight: 800; }
.tagline { font-size: clamp(19px, 2.2vw, 24px); font-style: italic; line-height: 1.4; margin: 0 0 18px; }
.tagline b { color: var(--amber-text); }
.lede { color: var(--muted); max-width: 620px; margin: 0 0 30px; }
.lede .t { color: var(--teal-text); font-weight: 700; }
.lede .a { color: var(--amber-text); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.stat strong { font-family: "Inter", sans-serif; font-size: 26px; color: var(--teal-text); font-weight: 800; }
.stat span.l { font-weight: 700; font-size: 15px; }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.shield-art { position: relative; display: grid; place-items: center; }
.shield-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 30px 60px rgba(45, 212, 191, 0.18)); }
.orbit { transform-origin: 210px 210px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit { animation: none; } html { scroll-behavior: auto; } }

.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.badge {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line-amber); background: var(--card);
}
.badges { flex-wrap: nowrap; }
@media (max-width: 520px) { .badges { flex-wrap: wrap; } }
.badge svg { width: 24px; height: 24px; color: var(--amber-text); flex: none; }
.badge b { display: block; font-family: "Inter", sans-serif; font-size: 14px; }
.badge small { color: var(--amber-text); font-size: 12.5px; font-weight: 700; }

/* Sections */
section { padding: 84px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 0; font-weight: 800; }
.sec-aside { text-align: right; }
.sec-aside em { color: var(--amber-text); font-weight: 700; display: block; margin-bottom: 8px; }
.legend { display: inline-flex; gap: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend .li { color: var(--teal-text); } .legend .li i { background: var(--teal); }
.legend .lc { color: var(--amber-text); } .legend .lc i { background: var(--amber); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px;
  box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--teal); }
.card.cyber { background: var(--card-cyber); border-color: var(--line-amber); }
.card.cyber:hover { border-color: var(--amber); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--teal); color: var(--chip-on-accent); }
.card.cyber .ico { background: var(--amber); }
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin: 0; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Approach */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.step .num { font-family: "Inter", sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; color: var(--teal-text); }
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* Frameworks band */
.band {
  border: 1px solid var(--line); border-radius: 18px; padding: 34px; background: var(--card);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; box-shadow: var(--shadow);
}
.band h2 { font-size: clamp(26px, 3.2vw, 36px); }
.band p { color: var(--muted); margin: 12px 0 0; }
.fw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fw div { border: 1px solid var(--line-amber); border-radius: 12px; padding: 18px; text-align: center; }
.fw b { font-family: "Inter", sans-serif; display: block; font-size: 18px; }
.fw small { color: var(--amber-text); font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact p.lead { color: var(--muted); margin: 14px 0 26px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 20px; height: 20px; color: var(--teal-text); flex: none; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, .theme-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { font-weight: 700; font-size: 14px; margin: 0; min-height: 1.2em; }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot .eyebrow { margin: 0; font-size: 12px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  .hero-grid, .band, .contact { grid-template-columns: 1fr; }
  .shield-art svg { max-width: 260px; }
  .cards, .approach { grid-template-columns: 1fr 1fr; }
  .sec-aside { text-align: left; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 56px; }
  section { padding: 64px 0; }
  .stats, .cards, .approach, .fw, .row2 { grid-template-columns: 1fr; }
  .band { padding: 24px; }
  .nav .btn-primary { display: none; }
}
/* The Turnstile widget is at least 300px wide; keep it inside a 360px screen */
.contact > * { min-width: 0; }
@media (max-width: 400px) {
  form { padding: 20px 12px; }
}
