: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; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 0 48px;
  text-align: center;
}
.stat .num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat .lbl {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.preview {
  padding: 24px 0 64px;
}
.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.preview-chrome .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.preview-chrome .dot.r { background: #ef6e6e; }
.preview-chrome .dot.y { background: #efa96e; }
.preview-chrome .dot.g { background: #6ee7b7; }
.preview-url {
  margin-left: 8px;
  font: 12.5px ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.preview-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.preview-tabs .ptab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.preview-tabs .ptab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  position: relative;
}
.preview-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.preview-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.preview-table td:nth-child(1) { color: var(--text); font-family: ui-monospace, monospace; font-size: 12.5px; }
.preview-table td:nth-child(2) { font-family: ui-monospace, monospace; font-size: 12px; }
.preview-table td:nth-child(4) { font-family: ui-monospace, monospace; font-size: 12px; }
.preview-table tr:last-child td { border-bottom: 0; }
.ptag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.ptag.art { background: rgba(91, 141, 239, 0.15); color: #8aa8e8; }
.ptag.dec { background: rgba(239, 169, 110, 0.15); color: #efa96e; }
.ptag.run { background: var(--accent-soft); color: var(--accent); }
.ptag.msg { background: rgba(180, 130, 230, 0.15); color: #b482e6; }
.preview-fade-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: linear-gradient(180deg, transparent, var(--surface) 60%);
  margin-top: -40px;
  position: relative;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}

.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; }

.compare {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.compare h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.compare .lede {
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cmp thead th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  white-space: nowrap;
}
.cmp thead th.us {
  color: var(--accent);
}
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody td {
  color: var(--muted);
}
.cmp tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}
.cmp td.us {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}
.cmp-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0 0;
}

.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; }

.install {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.install h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.install .lede {
  color: var(--muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.install-step {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: calc(var(--radius) - 2px);
}
.install-step + .install-step {
  border-top: 1px solid var(--border);
}
.install-step .step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #062018;
  font-weight: 700;
  margin-top: 2px;
}
.install-step .step-body { flex: 1; min-width: 0; }
.install-step h3 { margin: 0 0 10px; font-size: 16px; }
.install-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.install-step pre {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  font: 13.5px ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.55;
}
.install-step pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}
.install-meta {
  text-align: center;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.install-meta .dot-sep { margin: 0 8px; opacity: 0.4; }

.faq {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.faq h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--accent); }
.faq details summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}
.faq details[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.oss-cta {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.oss-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.oss-card .oss-text { flex: 1; min-width: 240px; }
.oss-card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.oss-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.oss-card .btn { flex: 0 0 auto; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 96px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .muted { color: var(--muted); font-size: 14px; margin-top: 0; }
.legal-cta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}

.pricing {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.pricing h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pricing .lede {
  color: var(--muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.price-card .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #062018;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.price-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px;
}
.price-card .price .amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-card .price .period {
  color: var(--muted);
  font-size: 14px;
}
.price-card .price-tag {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card ul li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14.5px;
  color: var(--text);
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--accent);
  font-weight: 700;
}
.price-card ul li strong { color: var(--text); }
.price-card .btn { width: 100%; text-align: center; }
.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 28px auto 0;
  max-width: 720px;
}

.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; }
}
