:root{
  --bg: #0b0f19;
  --bg2:#0f172a;
  --card:#111a2e;
  --text:#e6eaf2;
  --muted:#a8b3cf;
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --primary:#6ea8fe;
  --primary2:#8bd4ff;
  --focus: rgba(110,168,254,.45);

  --radius: 18px;
  --container: 1100px;
  --gap: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

[data-theme="light"]{
  --bg:#f6f7fb;
  --bg2:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border: rgba(17,24,39,.12);
  --shadow: 0 18px 60px rgba(17,24,39,.10);
  --primary:#2563eb;
  --primary2:#0ea5e9;
  --focus: rgba(37,99,235,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(110,168,254,.25), transparent 55%),
              radial-gradient(1000px 700px at 110% 10%, rgba(139,212,255,.20), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
}

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:var(--card); color:var(--text);
  padding:10px 12px; border-radius:10px;
  border:1px solid var(--border);
}
.skip-link:focus{left:10px; outline:2px solid var(--focus)}

.site-header{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 24, .55);
  border-bottom:1px solid var(--border);
}
[data-theme="light"] .site-header{ background: rgba(246,247,251,.75); }

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:700}
.brand-mark{
  width:14px; height:14px; border-radius:6px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 25px rgba(110,168,254,.25);
}
.nav{display:flex; gap:16px; flex-wrap:wrap}
.nav a{color:var(--muted); text-decoration:none; font-weight:600}
.nav a:hover{color:var(--text)}
.header-actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:700;
  color:var(--text);
  background: transparent;
  cursor:pointer;
}
.btn:focus{outline:2px solid var(--focus); outline-offset:2px}
.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #0b0f19;
}
[data-theme="light"] .btn-primary{ color:#ffffff; }
.btn-secondary{ background: rgba(255,255,255,.06); }
[data-theme="light"] .btn-secondary{ background: rgba(17,24,39,.04); }
.btn-ghost{ background: transparent; }
.btn:hover{transform: translateY(-1px)}
.btn:active{transform:none}

.hero{padding:54px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--gap);
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
}

.kicker{
  margin:0 0 10px;
  display:inline-block;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  font-size:12px;
}
h1{margin:0 0 12px; font-size:42px; line-height:1.1}
@media (max-width: 520px){ h1{font-size:34px} }

.lead{margin:0 0 18px; color:var(--muted); font-size:16px; line-height:1.6}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 12px}
.meta-row{list-style:none; padding:0; margin:12px 0 0; display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-weight:600}
.dot{display:inline-block; width:7px; height:7px; border-radius:99px; background: var(--primary); margin-right:8px}

.hero-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding:18px;
  box-shadow: var(--shadow);
}
[data-theme="light"] .hero-card{ background: rgba(255,255,255,.85); }

.stat{padding:10px 0; border-bottom:1px solid var(--border)}
.stat:last-of-type{border-bottom:none}
.stat-label{color:var(--muted); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.07em}
.stat-value{font-weight:800; font-size:16px; margin-top:6px}

.hero-links{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.link{color:var(--text); text-decoration:none; font-weight:800}
.link:hover{text-decoration:underline}

.section{padding:42px 0}
.section.alt{
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.03), transparent);
}
[data-theme="light"] .section.alt{
  background: linear-gradient(180deg, transparent, rgba(17,24,39,.03), transparent);
}

.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px}
h2{margin:0; font-size:26px}
.muted{color:var(--muted); line-height:1.6; margin:0}

.toolbar{
  display:flex; gap:12px; flex-wrap:wrap;
  align-items:center;
  margin:18px 0 18px;
}
.search{flex:1; min-width:220px}
.search input{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:650;
}
[data-theme="light"] .search input{ background: rgba(17,24,39,.03); }
.search input:focus{ outline:2px solid var(--focus); outline-offset:2px }

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:750;
  cursor:pointer;
  user-select:none;
}
[data-theme="light"] .chip{ background: rgba(17,24,39,.03); }
.chip[aria-pressed="true"]{
  color: var(--text);
  border-color: rgba(110,168,254,.55);
  box-shadow: 0 0 0 3px rgba(110,168,254,.15);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 640px){ .grid{grid-template-columns: 1fr} }

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding:16px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
[data-theme="light"] .card{ background: rgba(255,255,255,.92); }
.card:hover{ transform: translateY(-2px); border-color: rgba(110,168,254,.35); }

.card-title{font-weight:900; font-size:16px; margin:0 0 8px}
.card-desc{color:var(--muted); margin:0 0 12px; line-height:1.55}
.card-tags{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px}
.tag{
  font-size:12px;
  font-weight:800;
  color: var(--muted);
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding:6px 8px;
  border-radius:999px;
}
[data-theme="light"] .tag{ background: rgba(17,24,39,.02); }

.card-links{display:flex; gap:10px; flex-wrap:wrap}
.card-links a{
  font-weight:850;
  text-decoration:none;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.card-links a:hover{ border-bottom-color: var(--text); }

.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items:start;
}
@media (max-width: 900px){ .about-grid{grid-template-columns:1fr} }

.pill-row{display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 18px}
.pill{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius:999px;
  padding:8px 10px;
  font-weight:850;
  color: var(--muted);
}
[data-theme="light"] .pill{ background: rgba(17,24,39,.03); }

.about-card{padding:18px}
.checklist{margin:10px 0 0; padding:0; list-style:none; color:var(--muted); font-weight:650}
.checklist li{padding-left:22px; position:relative; margin:10px 0}
.checklist li::before{
  content:"";
  position:absolute; left:0; top:8px;
  width:10px; height:10px; border-radius:3px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}
.mt{margin-top:18px}

.contact-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--gap);
}
@media (max-width: 900px){ .contact-grid{grid-template-columns:1fr} }

.contact-cards{display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top:16px}
@media (max-width: 900px){ .contact-cards{grid-template-columns:1fr} }

.link-card{text-decoration:none; color:inherit}
.card-sub{color:var(--muted); margin-top:6px; font-weight:650}
.contact-note{padding:18px}

.site-footer{
  border-top:1px solid var(--border);
  padding:18px 0;
}
.footer-inner{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}
