/* DataBye landing — osv.dev spirit: dense, institutional */
:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --bg-soft: #182236;
  --line: #2a3650;
  --line-soft: #1e2a40;
  --text: #e8eef7;
  --muted: #9aa8c0;
  --dim: #6f7f99;
  --accent: #7dd3c0;
  --accent-2: #f0c674;
  --warn: #e8a598;
  --link: #9ec5ff;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 920px;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img { width: 28px; height: 28px; }

.brand span.mark {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 2.4rem 0 1.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 1.25rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elev);
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  background: var(--accent);
  color: #0b1220;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover { filter: brightness(1.05); color: #0b1220; }

.note-en {
  font-size: 0.82rem;
  color: var(--dim);
  max-width: 44rem;
}

/* Sections */
section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-soft);
}

h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.45rem;
  color: var(--text);
}

p { margin: 0 0 0.85rem; color: var(--muted); }
p strong { color: var(--text); font-weight: 600; }

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

li { margin: 0.3rem 0; }
li strong { color: var(--text); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.05rem;
}

.card h3 { margin-top: 0; }

.card p:last-child,
.card ul:last-child,
.card ol:last-child { margin-bottom: 0; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
}

.callout.warn { border-left-color: var(--warn); }
.callout.gold { border-left-color: var(--accent-2); }

.callout p { margin: 0; color: var(--text); font-size: 0.95rem; }

/* Roster */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0 0;
}

.roster-item {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
}

.roster-item .name {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.roster-item .meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

/* Code */
pre, code {
  font-family: var(--mono);
  font-size: 0.8rem;
}

pre {
  background: #070c16;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  color: #d5e0f0;
  line-height: 1.45;
  margin: 0.6rem 0 1rem;
}

code {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 0.08rem 0.32rem;
  color: #c9d7ec;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.75rem 0.85rem 0.75rem 3rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 8px;
  margin: 0.5rem 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.8rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong { display: block; margin-bottom: 0.2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.75rem 0 1rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
}

td { color: var(--muted); }
td code { font-size: 0.75rem; }

.footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--dim);
  font-size: 0.82rem;
}

.footer a { color: var(--muted); }

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


/* Wizard simulation (1.3.0) */
.wizard-sim {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.2rem;
}
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.wizard-steps li {
  font-size: 0.78rem;
  color: var(--dim);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.wizard-steps li.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.wizard-panel label {
  display: block;
  margin: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.wizard-panel input[type="text"],
.wizard-panel textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.wizard-panel .check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.wizard-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.mail-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.75rem 0;
  background: var(--bg);
}
.mail-card header { margin-bottom: 0.5rem; }
.pill.warn { background: #3a2a1a; color: var(--accent-2); }
.filelike input { margin-top: 0.35rem; }
