/* styles.css */
:root{
  --bg: #0b0f14;
  --panel: #101823;
  --text: #e9eef6;
  --muted: #b7c0cc;
  --line: rgba(255,255,255,0.08);
  --accent: #86e1b0;
  --accent2: #7fb6ff;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --radius: 16px;
  --max: 980px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(127,182,255,0.18), transparent 55%),
              radial-gradient(900px 600px at 85% 20%, rgba(134,225,176,0.16), transparent 55%),
              var(--bg);
  line-height:1.55;
}

a{ color: var(--accent2); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px;
  width:auto;height:auto;
  padding:10px 12px;
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.site-header{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,0.75);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(127,182,255,0.28), rgba(134,225,176,0.22));
  border: 1px solid var(--line);
}
.brand-title{ font-weight: 700; letter-spacing: 0.2px; }
.brand-subtitle{ color: var(--muted); font-size: 0.9rem; }

.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  justify-content:flex-end;
}
.nav-link{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-link:hover{
  border-color: var(--line);
  color: var(--text);
  text-decoration:none;
}
.nav-link.active{
  color: var(--text);
  border-color: rgba(134,225,176,0.22);
  background: rgba(134,225,176,0.08);
}

.hero{
  padding: 34px 0 18px;
}
h1{
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}
h2{
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}
.section{
  padding: 18px 0;
}

.lede{
  color: var(--muted);
  max-width: 75ch;
  font-size: 1.06rem;
}

.callouts{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card{
  background: rgba(16,24,35,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card p{ color: var(--muted); margin: 8px 0 0; }

.note{
  background: rgba(127,182,255,0.08);
  border: 1px solid rgba(127,182,255,0.18);
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 80ch;
}

.refs{
  margin: 0;
  padding-left: 1.25rem;
}
.refs li{
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,24,35,0.55);
}
.refs p{ margin: 6px 0; color: var(--muted); }
.refs p strong{ color: var(--text); }

.downloads{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 10px;
}
.btn{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(134,225,176,0.10);
  border: 1px solid rgba(134,225,176,0.22);
  color: var(--text);
}
.btn:hover{
  background: rgba(134,225,176,0.16);
  text-decoration:none;
}

.figure{
  margin: 12px 0 0;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(16,24,35,0.55);
}
.figure img{
  width: 100%;
  height: auto;
  display:block;
}
.figure figcaption{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.site-footer{
  margin: 26px 0 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong{ color: var(--text); }
.fineprint{ font-size: 0.92rem; color: var(--muted); }

.mono{ font-family: var(--mono); }

@media (max-width: 860px){
  .callouts{ grid-template-columns: 1fr; }
  .site-header .container{ flex-direction: column; align-items: flex-start; }
  .nav{ justify-content:flex-start; }
}
