
:root {
  --bg: #0b1020;
  --panel: #10172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #0ea5e9;
  --brand-2: #22c55e;
  --card: #0f172a;
  --border: #253053;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 80% -10%, rgba(14,165,233,0.12), transparent 40%),
              radial-gradient(1000px 600px at 10% -20%, rgba(34,197,94,0.12), transparent 40%),
              var(--bg);
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin-inline: auto; }
.header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--panel), transparent 10%);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 28px; height: 28px; }
.nav-links a {
  text-decoration: none; color: var(--muted); padding: .5rem .75rem; border-radius: 8px; transition: all .18s ease;
}
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--text); background: color-mix(in oklab, var(--brand) 10%, transparent); }

.cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; border: 0; padding: .65rem .95rem; border-radius: 10px; font-weight: 700; cursor: pointer; }
.theme-toggle { background: transparent; border: 1px solid var(--border); padding: .55rem .75rem; color: var(--text); border-radius: 10px; cursor: pointer; }

.hero { padding: 5rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3rem); line-height: 1.15; margin: 0 0 .75rem; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.25rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.badge { padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: .85rem; }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(12, 1fr); }
.card { grid-column: span 12; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card .meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.meta .chip { background: color-mix(in oklab, var(--brand) 15%, transparent); color: var(--text); padding: .25rem .5rem; border-radius: 6px; font-size: .8rem; border: 1px solid var(--border); }

.section { padding: 2.5rem 0; }
.section h2 { font-size: 1.8rem; margin: 0 0 1rem; }
.list { display: grid; gap: 1rem; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 800px) { .kv { grid-template-columns: 1fr; } }

.footer { padding: 2rem 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

blockquote.note {
  margin: 1rem 0; padding: 1rem; border-left: 4px solid var(--brand); background: color-mix(in oklab, var(--brand) 8%, transparent);
  border-radius: 6px;
}

.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-outline { background: transparent; border: 1px solid var(--border); padding: .6rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.btn-outline:hover { border-color: var(--brand); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.small { font-size: .9rem; color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

a.plain { text-decoration: none; color: inherit; }
a.plain:hover { color: var(--brand); }

figure.timeline { margin: 0; padding: 0; }
.timeline ul { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-left: 1.25rem; margin: .6rem 0; }
.timeline li::before { content: ""; position: absolute; left: .3rem; top: .55rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }

form { display: grid; gap: .75rem; max-width: 640px; }
input, textarea { width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); }
input:focus, textarea:focus { outline: 2px solid color-mix(in oklab, var(--brand) 40%, transparent); border-color: var(--brand); }
label { font-weight: 600; }

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

kbd { background: var(--panel); border: 1px solid var(--border); padding: .15rem .35rem; border-radius: 6px; }

.hide { display: none; }
