:root{
  --bg:#050912;
  --bg-mid:#0a1426;
  --surface:rgba(16,28,52,.92);
  --surface-2:rgba(22,38,68,.94);
  --text:#eef2ff;
  --muted:#94a8d4;
  --border:rgba(198,210,255,.14);
  --primary:#6d96ff;
  --primary-2:#4f7eea;
  --primary-soft:rgba(109,150,255,.22);
  --max:1140px;
  --radius:20px;
  --shadow:0 4px 28px rgba(0,0,0,.4);
  --shadow-hover:0 18px 48px rgba(0,0,0,.5);
  --glow:0 0 0 1px rgba(109,150,255,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -25%,rgba(109,150,255,.18),transparent 52%),
    radial-gradient(ellipse 45% 35% at 100% 20%,rgba(79,126,234,.12),transparent),
    radial-gradient(ellipse 50% 40% at 0% 70%,rgba(33,61,120,.22),transparent),
    linear-gradient(165deg,var(--bg-mid) 0%,var(--bg) 42%,#03050c 100%);
  line-height:1.65;
}
a{text-decoration:none;color:inherit}
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(5,9,18,.78);
  backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid var(--border);
  box-shadow:0 10px 40px rgba(0,0,0,.25);
}
.site-header-inner{
  position:relative;
  max-width:var(--max);
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.02em;
  transition:opacity .2s ease;
}
.brand:hover{opacity:.92}
.brand-logo{
  width:36px;
  height:36px;
  border-radius:11px;
  object-fit:cover;
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--glow);
}
.menu-toggle{
  display:none;
  border:1px solid var(--border);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.menu-toggle:hover{
  border-color:rgba(198,210,255,.28);
  box-shadow:var(--shadow);
}
.menu-toggle:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}
.menu-toggle-icon{
  display:block;
  width:20px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  box-shadow:0 7px 0 var(--text),0 -7px 0 var(--text);
}
.nav{display:flex;gap:6px;flex-wrap:wrap}
.nav a{
  color:var(--muted);
  padding:9px 14px;
  border-radius:11px;
  font-weight:600;
  transition:color .18s ease,background .18s ease,box-shadow .18s ease;
}
.nav a:hover{
  color:var(--text);
  background:rgba(109,150,255,.1);
}
.nav a.active{
  color:var(--text);
  background:var(--primary-soft);
  box-shadow:inset 0 0 0 1px rgba(109,150,255,.25);
}
.nav a:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
main{max-width:var(--max);margin:0 auto;padding:0 20px 48px}
.section{padding:40px 0}
.section h1,.section h2,.section h3{line-height:1.22;letter-spacing:-.02em}
.tag{
  display:inline-flex;
  padding:5px 12px;
  border-radius:999px;
  background:var(--primary-soft);
  color:#c8d9ff;
  font-size:.76rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.btn:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:linear-gradient(180deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 8px 28px rgba(79,126,234,.35);
}
.btn-primary:hover{
  box-shadow:0 12px 36px rgba(79,126,234,.45);
  filter:brightness(1.05);
}
.btn-ghost{
  border-color:var(--border);
  color:var(--text);
  background:rgba(16,28,52,.35);
}
.btn-ghost:hover{
  background:rgba(109,150,255,.12);
  border-color:rgba(198,210,255,.28);
}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{
  background:linear-gradient(155deg,var(--surface),var(--surface-2));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(198,210,255,.22);
}
.card h2,.card h3{margin:0 0 10px}
.card p{margin:0;color:var(--muted)}
.site-footer{border-top:1px solid var(--border);background:rgba(5,9,18,.45)}
.site-footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 20px 32px;
  color:var(--muted);
  font-size:.95rem;
}
@keyframes fade-in{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:reduce){
  .card{transition:none}
  .card:hover{transform:none;box-shadow:var(--shadow)}
  .btn{transition:none}
  .btn:active{transform:none}
  @keyframes fade-in{
    from{opacity:1;transform:none}
    to{opacity:1;transform:none}
  }
}
@media (max-width:920px){
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .menu-toggle{display:inline-flex}
  .nav{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    min-width:220px;
    max-width:min(320px,calc(100vw - 40px));
    flex-direction:column;
    border:1px solid var(--border);
    border-radius:16px;
    background:linear-gradient(180deg,var(--surface),var(--surface-2));
    padding:10px;
    gap:4px;
    display:none;
    box-shadow:var(--shadow-hover);
  }
  .nav.open{display:flex}
  .nav a{padding:12px 14px}
  .grid-2,.grid-3{grid-template-columns:1fr}
}
