:root {
  --bg: #09090B;
  --surface: #111114;
  --surface-2: #18181B;
  --border: #27272A;
  --border-hover: #3F3F46;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --accent: #FFFFFF;
  --ok: #22C55E;
  --warn: #F59E0B;
  --err: #EF4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--text);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.pill.ok { color: var(--ok); border-color: #166534; }

/* Buttons */
button {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
button:hover { background: #E4E4E7; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
button.secondary:hover { border-color: var(--border-hover); background: var(--surface-2); }
button.danger {
  background: transparent;
  color: var(--err);
  border: 1px solid #7F1D1D;
  padding: 4px 8px;
  font-size: 11px;
}

/* Layout */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
}
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Hero + Key Card */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 36px 0; }
  .nav-links { display: none; }
}
.hero h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.hero p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 500px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-stats strong { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.key-display {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
input, select, textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 11px;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--border-hover); }
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 500;
}
.status-msg {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* Quickstart */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; }
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.step-card h3 { font-size: 14px; margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--muted); }

.code-box {
  background: var(--surface);
  border: 1px solid var(--border);
}
.code-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 6px 12px;
}
.tab-group { display: flex; gap: 6px; }
.tab-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}
.tab-btn.active {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: #E4E4E7;
}

/* Playground */
.playground-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .playground-grid { grid-template-columns: 1fr; }
}
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.price-card h3 { font-size: 15px; margin-bottom: 4px; }
.price-card .desc { font-size: 13px; color: var(--muted); }
.price-val {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  margin-top: 10px;
}

/* Storage Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 12px;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
}
th { color: var(--muted); font-weight: 500; background: var(--surface-2); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
