:root {
  --bg: #0b0c0e;
  --panel: #131417;
  --panel-2: #17181c;
  --border: #232529;
  --text: #eceef1;
  --muted: #8b8f96;
  --muted-2: #57595e;
  --accent: #cda06a;
  --accent-soft: rgba(205,160,106,0.12);
  --ok: #6fcf97;
  --warn: #e0b465;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

::selection { background: var(--accent); color: #12130f; }
a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,12,14,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px; font-weight: 600; padding: 9px 18px;
  border-radius: 8px; background: var(--text); color: #0b0c0e;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 120px 32px 80px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(205,160,106,0.25);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.15; letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--muted); font-size: 16px; line-height: 1.7;
  max-width: 520px; margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-actions.center { margin-bottom: 0; }

.btn {
  font-size: 14px; font-weight: 600; padding: 13px 26px; border-radius: 9px;
  transition: all 0.2s; display: inline-flex; align-items: center;
}
.btn-primary { background: var(--accent); color: #14140f; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted-2); background: var(--panel); }

/* code preview */
.code-preview {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.code-preview-bar {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
}
.code-preview pre {
  padding: 18px 20px; font-family: var(--font-mono); font-size: 13px;
  overflow-x: auto; line-height: 1.6;
}
.c-kw { color: #7ea6ff; }
.c-fn { color: var(--accent); }
.c-str { color: var(--ok); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 48px;
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: var(--font-display); font-size: 22px; }
.hero-stats span { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- supported strip ---------- */
.supported {
  padding: 32px; text-align: center; border-bottom: 1px solid var(--border);
}
.supported p { font-size: 12px; color: var(--muted-2); letter-spacing: 0.5px; margin-bottom: 16px; }
.supported-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.supported-row span { font-family: var(--font-display); font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 100px 32px; }
.section.alt { background: var(--panel-2); max-width: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 560px; margin-bottom: 52px; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.script-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s;
}
.script-card:hover { border-color: var(--muted-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.card-top h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.status-pill {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  white-space: nowrap;
}
.status-pill.ok { color: var(--ok); background: rgba(111,207,151,0.12); }
.status-pill.warn { color: var(--warn); background: rgba(224,180,101,0.12); }

.script-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; min-height: 42px; }

.card-code {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #0e0f11; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 10px 9px 12px;
}
.card-code code {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  overflow-x: auto; white-space: nowrap; flex: 1;
}
.copy-btn {
  font-size: 11px; font-weight: 600; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.copy-btn:hover { background: var(--accent); color: #14140f; border-color: var(--accent); }

@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--panel-2); padding: 28px 24px; }
.step span { font-family: var(--font-display); font-size: 13px; color: var(--accent); font-weight: 700; }
.step h4 { font-size: 15px; font-weight: 600; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* status */
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.status-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-card h5 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.status-card p { color: var(--muted); font-size: 12px; }

@media (max-width: 860px) { .status-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .status-grid { grid-template-columns: 1fr; } }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.faq-list details {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--accent); font-size: 18px; font-weight: 400; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 14px; }

/* cta */
.cta-section { padding: 40px 32px 120px; }
.cta-box {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 56px 40px;
}
.cta-box h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.5px; margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin-bottom: 30px; font-size: 15px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 32px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-inner p { color: var(--muted-2); font-size: 12.5px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #0b0c0e; font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
