:root{
  color-scheme: light dark;
  --bg:#0b0f19;
  --fg:#e6e8ee;
  --muted:#a7adbd;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --accent:#7aa2ff;
  --accent2:#8cffdc;
  --danger:#ff6b6b;
  --ok:#6dff9b;
  --warn:#ffd86d;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 14px;
  --ring: 0 0 0 4px rgba(122,162,255,.14);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(122,162,255,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(140,255,220,.12), transparent 55%),
    var(--bg);
  color: var(--fg);
}

main{ max-width: 980px; margin: 42px auto; padding: 0 16px 56px; }

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

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

h1{ font-size: 24px; margin: 0 0 12px; letter-spacing:.2px; }
h2{ font-size: 16px; margin: 20px 0 10px; color: var(--accent); }
p.lead{ font-size: 16px; color: var(--muted); margin-top: 6px; }
p,li,label{ color: var(--fg); }
.muted{ color: var(--muted); }

.gradient{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtle{
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
}

.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
}
.nav a{
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  text-decoration:none;
}
.nav a:hover{ text-decoration:none; border-color: rgba(255,255,255,.25); }

.row{ display:grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px){ .row{ grid-template-columns: 1fr; } }

input, textarea, select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--fg);
  outline: none;
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(122,162,255,.55);
  box-shadow: var(--ring);
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items:center;
}

button, .btn, .actions a{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(122,162,255,.18);
  color: var(--fg);
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}
button:hover, .btn:hover, .actions a:hover{
  border-color: rgba(255,255,255,.25);
  text-decoration:none;
  transform: translateY(-1px);
}
button:disabled{
  opacity: .55;
  cursor:not-allowed;
}
button.secondary, .btn.secondary, .actions a.secondary{
  background: rgba(255,255,255,.08);
}
button.danger, .btn.danger{ background: rgba(255,107,107,.16); border-color: rgba(255,107,107,.22); }

.btn:active, button:active{ transform: translateY(0); }

.tag{
  display:inline-flex;
  align-items:center;
  padding:2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  white-space:nowrap;
}
.tag.ok{ color: var(--ok); border-color: rgba(109,255,155,.35); background: rgba(109,255,155,.08); }
.tag.fail{ color: var(--danger); border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.tag.unk{ color: var(--warn); border-color: rgba(255,216,109,.35); background: rgba(255,216,109,.08); }

.table-wrap{
  width:100%;
  overflow:auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th{
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255,255,255,.04);
}
tr:last-child td{ border-bottom: 0; }

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  word-break: break-word;
}

pre{
  margin:0;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px){ .hero{ grid-template-columns: 1fr; } }
.panel{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.grid{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }
@media (max-width: 900px){
  .col-6, .col-4, .col-8{ grid-column: span 12; }
}

.feature{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.feature:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.feature .k{ font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.feature .v{ margin-top: 6px; font-weight: 650; }
.feature .d{ margin-top: 8px; color: var(--muted); }

.divider{ height:1px; background: rgba(255,255,255,.10); margin: 18px 0; }

.timeline{
  display:grid;
  gap:10px;
}
.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.step .n{
  width:28px; height:28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(122,162,255,.14);
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
}

details.faq{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,.14);
}
details.faq + details.faq{ margin-top: 10px; }
details.faq summary{
  cursor:pointer;
  font-weight: 650;
  list-style: none;
}
details.faq summary::-webkit-details-marker{ display:none; }
details.faq p{ margin: 10px 0 0; color: var(--muted); }

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity: 1; transform:none; }
}

.spark{
  position: relative;
  overflow: hidden;
}
.spark::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(122,162,255,.28), transparent 60%);
  filter: blur(0px);
  transform: rotate(18deg);
  pointer-events:none;
}
.spark::after{
  content:"";
  position:absolute;
  inset:auto auto -140px -140px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 65% 65%, rgba(140,255,220,.18), transparent 62%);
  transform: rotate(-12deg);
  pointer-events:none;
}
