:root {
  --bg: #07090f;
  --surface: #0e131f;
  --surface-2: #141b2d;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --ok: #10b981;
  --err: #f43f5e;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 50% -80px, rgba(99, 102, 241, 0.22), transparent 65%),
    radial-gradient(600px 320px at 85% 15%, rgba(34, 211, 238, 0.10), transparent 65%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
header.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); background: rgba(7, 9, 15, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand-badge {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: #1b243b; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.hero { padding: 72px 0 48px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 12px; color: #c7d2fe; font-weight: 600; margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 820px; }
.gradient-text { background: linear-gradient(135deg, #fff 35%, #a5b4fc 75%, #67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 820px; margin: 40px auto 0;
}
.metric {
  background: rgba(14, 19, 31, 0.85); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
}
.metric strong { display: block; font-size: 20px; color: #fff; }
.metric span { font-size: 12px; color: var(--muted); }
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.025em; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.playground { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: stretch; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tab-group { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.tab {
  background: transparent; border: none; color: var(--muted); padding: 6px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.tab.active { background: var(--surface-2); color: #fff; }
textarea, input[type="text"], input[type="email"], select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px; font-family: var(--mono); font-size: 13px; outline: none;
}
textarea { min-height: 290px; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); }
.controls { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.preview-box {
  background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 10px;
  min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.preview-box iframe { width: 100%; height: 390px; border: none; background: #fff; }
.preview-box img { max-width: 100%; max-height: 390px; object-fit: contain; display: block; }
.status-line { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 20px; }
.status-line.ok { color: var(--ok); }
.status-line.err { color: var(--err); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.price-card.featured { border-color: rgba(99, 102, 241, 0.7); box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 16px 40px rgba(99, 102, 241, 0.16); }
.price-tag { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; }
.price-tag span { font-size: 15px; font-weight: 500; color: var(--muted); }
.feat-list { list-style: none; padding: 0; margin: 18px 0 24px; color: var(--muted); font-size: 14px; }
.feat-list li { padding: 6px 0; display: flex; gap: 8px; }
.feat-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
pre.code {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; color: #e2e8f0; margin: 0;
}
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 40px; color: var(--muted); font-size: 13px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.legal-doc { max-width: 780px; margin: 40px auto; }
.legal-doc h1 { font-size: 32px; text-align: left; }
.legal-doc h2 { font-size: 20px; margin-top: 28px; color: #fff; }
.legal-doc p, .legal-doc li { color: #cbd5e1; font-size: 15px; }
@media (max-width: 860px) {
  .playground, .grid-3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .nav-links a.hide-sm { display: none; }
}
