:root{
  --bg: #0b1220;
  --bg-2: #0e1728;
  --card: #0f1c2e;
  --text: #e8eef9;
  --muted: #b6c2d9;
  --accent: #7cc2ff;
  --accent-2: #82e1b8;
  --border: #203049;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1100px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 20% -10%, #163a63 0%, transparent 60%),
              radial-gradient(800px 500px at 100% -20%, #174d38 0%, transparent 65%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, #0a1320 100%);
  line-height: 1.55;
}
img{ max-width:100%; height:auto; display:block; }
.container{ width:100%; max-width: var(--container); padding: 0 20px; margin: 0 auto; }

.skip-link{
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus{
  left: 16px; top: 16px; width: auto; height:auto; padding:10px 12px;
  background:#fff; color:#000; border-radius: 8px; outline: 3px solid #000;
}

.site-header{
  position: sticky; top:0; z-index:1000;
  backdrop-filter: blur(8px);
  background: rgba(10, 18, 32, 0.6);
  border-bottom: 1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:12px; color: var(--text); text-decoration: none; font-weight:600; letter-spacing:.2px; }
.brand img{ filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

.nav ul{ list-style:none; display:flex; gap:18px; margin:0; padding:0; align-items:center; }
.nav a{ color: var(--text); text-decoration:none; padding:8px 10px; border-radius: 10px; }
.nav a:hover, .nav a:focus{ background: rgba(255,255,255,.06); outline: none; }
.nav a.active{ background: linear-gradient(180deg, rgba(124,194,255,.2), rgba(130,225,184,.18)); border: 1px solid rgba(255,255,255,.14); }

.nav-toggle{ display:none; background:none; border:1px solid var(--border); border-radius:12px; padding:10px; }
.nav-toggle .bar{ display:block; width:22px; height:2px; background:var(--text); margin:4px 0; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius: 12px; text-decoration:none; color:#0a1320; background: linear-gradient(180deg, #89d2ff, #6fc1ff);
  border: none; font-weight: 600; box-shadow: var(--shadow);
}
.btn:hover, .btn:focus{ transform: translateY(-1px); outline: none; }
.btn-small{ padding:8px 12px; box-shadow:none; }
.btn-ghost{ background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover{ background: rgba(255,255,255,.06); }

.hero{ padding: 64px 0 32px; }
.hero .surface{
  border:1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow); padding: 48px; display: grid; gap:24px;
}
.hero h1{ font-size: clamp(32px, 4vw, 52px); margin:0; line-height:1.1; }
.hero p.lead{ font-size: clamp(16px, 2.1vw, 20px); color: var(--muted); margin:0; }
.hero .cta{ display:flex; gap:12px; flex-wrap: wrap; }

.section{ padding: 40px 0; }
.section h2{ font-size: clamp(20px, 3vw, 28px); margin: 0 0 16px; }
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card{
  border:1px solid var(--border); border-radius: 16px;
  background: radial-gradient(800px 400px at -10% -10%, rgba(130,225,184,.06), transparent 50%),
              linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  padding: 18px; box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 8px; font-size: 18px; }
.card p{ margin: 0 0 12px; color: var(--muted); }
.card a.more{ text-decoration:none; color: var(--accent); font-weight:600; }

.grid-links{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile{
  display:block; text-decoration:none; color: var(--text);
  border:1px solid var(--border); border-radius: 14px;
  padding:16px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.tile:hover{ transform: translateY(-1px); }
.tile small{ color: var(--muted); display:block; }

.kicker{ color: var(--accent-2); text-transform: uppercase; font-size: 11px; letter-spacing: .15em; }

.prose{ max-width: 72ch; }
.prose h1{ font-size: clamp(28px, 3.5vw, 40px); margin-top:0; }
.prose h2{ font-size: 22px; margin-top: 26px; }
.prose p{ color: var(--text); }
.prose p.muted{ color: var(--muted); }
.prose ul{ padding-left: 18px; }
.prose blockquote{ margin: 16px 0; padding: 12px 16px; background: rgba(255,255,255,.04); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--muted); }

.meta{ color: var(--muted); font-size: 14px; }

.table{ width:100%; border-collapse: collapse; }
.table th, .table td{ padding:10px 12px; border-bottom: 1px solid var(--border); text-align:left; }
.table th{ color: var(--muted); font-weight:600; }

.site-footer{ border-top:1px solid var(--border); margin-top:48px; background: rgba(255,255,255,.02); }
.footer-inner{ display:flex; justify-content:space-between; gap:20px; padding: 20px 0; }
.footer-links{ display:flex; gap:12px; align-items:center; }
.footer-links a{ color: var(--muted); text-decoration:none; }
.footer-links a:hover{ color: var(--text); }
.footer-copy{ padding: 12px 0 24px; color: var(--muted); font-size: 14px; }

.form{ display:grid; gap:12px; max-width: 640px; }
.input, textarea, select{
  width:100%; padding:12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text);
}
textarea{ min-height: 140px; resize: vertical; }
.input:focus, textarea:focus, select:focus{ outline: 3px solid rgba(124,194,255,.4); border-color: var(--accent); }

.surface{ border:1px solid var(--border); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.02); }
.row{ display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start; }
.cols-2{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.badge{ display:inline-block; padding:4px 10px; border-radius:999px; background: rgba(124,194,255,.15); border: 1px solid rgba(124,194,255,.35); color: var(--accent); font-size:12px; }
.center{ text-align:center; }

@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr 1fr; }
  .grid-links{ grid-template-columns: 1fr 1fr; }
  .cols-2{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .nav-toggle{ display:block; }
  .nav{ position: fixed; inset: 0 0 auto 0; top: 72px; background: rgba(10,18,32,.98); transform: translateY(-120%); transition: transform .24s ease; border-bottom:1px solid var(--border); }
  .nav.open{ transform: translateY(0); }
  .nav ul{ flex-direction:column; align-items:flex-start; padding: 16px; gap: 6px; }
  .header-inner{ height:64px; }
  .hero .surface{ padding: 28px; }
}