:root {
  --bg: #0a0c10;
  --surface: #131720;
  --surface-2: #1a1f2a;
  --text: #e8ecf2;
  --muted: #8b94a3;
  --accent: #6ee7b7;
  --accent-strong: #34d399;
  --accent-soft: rgba(110, 231, 183, 0.12);
  --border: #232a37;
  --radius: 12px;
  --code-bg: #0f131b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(110, 231, 183, 0.08), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(91, 141, 239, 0.06), transparent 45%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-strong); }
code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font: 0.9em ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--accent);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}
.site-header nav { display: flex; gap: 20px; align-items: center; }
.site-header nav a { color: var(--muted); font-size: 14px; }
.site-header nav a:hover { color: var(--text); }
.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #062018; }
.btn.primary:hover { background: var(--accent-strong); color: #052015; }
.btn.ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

.hero {
  text-align: center;
  padding: 110px 0 60px;
}
.hero h1 {
  font-size: clamp(36px, 6.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 0%, #b3bdcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta { color: var(--muted); font-size: 13px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 48px 0 80px;
}
.features article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.features article:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.features article .ico {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 14px;
}
.features article h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.01em; }
.features article p { margin: 0; color: var(--muted); font-size: 14.5px; }

.how {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.how h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #062018;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps li strong { display: block; font-size: 17px; margin-bottom: 6px; }
.steps li p { margin: 0; color: var(--muted); font-size: 14.5px; }

.waitlist {
  text-align: center;
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}
.waitlist h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.waitlist .lede {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.wait-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.wait-form input[type="email"] {
  flex: 1 1 260px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.wait-form input[type="email"]:focus { border-color: var(--accent); }
.wait-meta { color: var(--muted); font-size: 13px; }

/* viewer */
.viewer-head { padding: 60px 0 32px; text-align: center; }
.viewer-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -0.02em; }
.viewer-head .lede { color: var(--muted); max-width: 600px; margin: 0 auto; }

.viewer-drop {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 32px;
  transition: border-color 0.15s, background 0.15s;
}
.viewer-drop.drag-over { border-color: var(--accent); background: var(--surface-2); }
.viewer-drop p { margin: 14px 0 0; }
.viewer-drop p.muted { color: var(--muted); }
.viewer-drop p.small { font-size: 13px; }

.viewer-panels { padding-bottom: 80px; }
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.panel { min-height: 200px; }
.panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.panel th, .panel td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.panel th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.panel tr:hover td { background: var(--surface-2); }
.panel .empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  font-size: 14px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.pass { background: var(--accent-soft); color: var(--accent); }
.tag.fail { background: rgba(239, 110, 110, 0.12); color: #ef6e6e; }
.tag.error { background: rgba(239, 169, 110, 0.12); color: #efa96e; }
.tag.skipped { background: rgba(140, 140, 140, 0.12); color: #999; }
.tag.draft, .tag.pending { background: rgba(140, 140, 140, 0.12); color: #aab; }
.tag.active { background: var(--accent-soft); color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 48px 32px 28px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .cols {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer .cols > div { display: flex; flex-direction: column; gap: 6px; }
.site-footer .cols strong { color: var(--text); margin-bottom: 6px; font-size: 14px; }
.site-footer .cols a { color: var(--muted); }
.site-footer .cols a:hover { color: var(--text); }
.site-footer small {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .site-header nav { gap: 12px; }
  .site-header nav a:not(.btn) { font-size: 13px; }
  main { padding: 0 20px; }
  .hero { padding: 64px 0 40px; }
}
