:root {
  --bg: #0b1622;
  --bg2: #0f1f30;
  --ink: #e8eef5;
  --muted: #8fa3b8;
  --primary: #1A5F8A;
  --accent: #2CA8E0;
  --line: rgba(255,255,255,0.09);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(44,168,224,0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(26,95,138,0.30), transparent 60%),
    var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
/* subtle PCB-trace pattern */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%232CA8E0' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M0 60h70l20 20h60'/%3E%3Cpath d='M240 150h-60l-20-20h-50'/%3E%3Cpath d='M120 0v50l20 20v50'/%3E%3Cpath d='M60 240v-60l-20-20v-40'/%3E%3Ccircle cx='70' cy='60' r='3'/%3E%3Ccircle cx='150' cy='80' r='3'/%3E%3Ccircle cx='180' cy='150' r='3'/%3E%3Ccircle cx='60' cy='180' r='3'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
header, main, footer { position: relative; z-index: 1; }

header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; width: 100%; margin: 0 auto; padding: 28px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .01em;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(44,168,224,.28);
}
.brand .mark svg { width: 20px; height: 20px; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 22px;
  transition: color .15s;
}
nav a:hover, nav a[aria-current] { color: var(--ink); }

main { flex: 1; max-width: 1040px; width: 100%; margin: 0 auto; padding: 0 24px; }

.hero { padding: 9vh 0 7vh; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  padding: 6px 12px; border: 1px solid rgba(44,168,224,.35); border-radius: 999px;
  background: rgba(44,168,224,.08); margin-bottom: 26px;
}
h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
h1 .grad {
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding-bottom: 8vh; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  backdrop-filter: blur(6px);
}
.card h2 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card p { font-size: 16px; }
.card a.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.card a.link:hover { text-decoration: underline; }
.card .big { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.card.feature { border-color: rgba(44,168,224,.35); background: linear-gradient(160deg, rgba(26,95,138,.35), rgba(255,255,255,.02)); }
.btn {
  display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 10px;
  background: var(--accent); color: #04121d; font-weight: 700; font-size: 14px; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(44,168,224,.35); }

/* legal page */
.legal { max-width: 680px; padding: 4vh 0 8vh; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 6px; }
.legal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.legal h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 30px 0 8px;
}
.legal p, .legal address { font-style: normal; font-size: 16px; color: #cfd9e4; margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 34px 0 0; }
.legal .upd { font-size: 12px; color: var(--muted); margin-top: 22px; }
.loading { color: var(--muted); font-size: 15px; }
.back { display: inline-block; margin-bottom: 26px; font-size: 13px; color: var(--accent); text-decoration: none; }
.back:hover { text-decoration: underline; }

footer {
  max-width: 1040px; width: 100%; margin: 0 auto; padding: 26px 24px 34px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
@media (max-width: 560px) { nav a { margin-left: 14px; } .hero { padding-top: 5vh; } }

/* logo */
.brand { gap: 14px; }
.logo-icon { height: 30px; width: auto; flex-shrink: 0; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark b {
  font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: .01em; color: #fff;
}
.wordmark small { font-size: 9.5px; font-style: italic; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
@media (max-width: 560px) { .wordmark small { display: none; } .wordmark b { font-size: 19px; } }

/* hero logo */
h1.hero-logo { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); margin-bottom: 26px; }
.hero-icon { height: clamp(52px, 9vw, 96px); width: auto; flex-shrink: 0; }
.hero-word { display: flex; flex-direction: column; line-height: 1; }
.hero-word b { font-size: clamp(38px, 8vw, 76px); font-weight: 800; font-style: italic; letter-spacing: .01em; color: #fff; }
.hero-word small { font-size: clamp(11px, 2.1vw, 20px); font-style: italic; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: .55em; }
