/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #18181b;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.12);
  --code-bg: #0f0f11;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.85; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); opacity: 1; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-link-code {
  font-family: var(--mono) !important;
  color: var(--accent) !important;
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Code Block ───────────────────────────────────────── */
.hero-code {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: left;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }
.code-title {
  margin-left: 8px;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-muted);
}
.hero-code pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #d4d4d8;
}
.hero-code .kw { color: #c084fc; }
.hero-code .fn { color: #60a5fa; }
.hero-code .str { color: #4ade80; }
.hero-code .num { color: #fb923c; }

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 56px;
}

/* ── Steps ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 16px;
}
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Features ─────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Table ────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead { background: var(--surface); }
th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
td code {
  color: var(--accent);
  background: var(--accent-glow);
  font-size: 0.8125rem;
}
tr:last-child td { border-bottom: none; }
.table-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9375rem;
}

/* ── Contracts ────────────────────────────────────────── */
.contracts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contract-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contract-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.env-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.env-badge.prod { color: var(--accent); background: var(--accent-glow); }
.env-badge.staging { color: #eab308; background: rgba(234, 179, 8, 0.1); }
.contract-card ul { list-style: none; }
.contract-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.contract-card li:last-child { border-bottom: none; }
.contract-label { color: var(--text-muted); }
.contract-addr {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
}

/* ── CTA ──────────────────────────────────────────────── */
.cta-section {
  border-top: 1px solid var(--border);
}
.cta {
  text-align: center;
}
.cta h2 { margin-bottom: 12px; }
.cta p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: var(--text-muted); font-size: 0.8125rem; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.btn):not(.nav-link-code) { display: none; }
  .hero { padding: 120px 0 60px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .contracts-grid { grid-template-columns: 1fr; }
  .hero-code pre { font-size: 0.7rem; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
