:root {
  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #020617; padding: 11px 20px; font-size: 14px; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); padding: 11px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.35); padding: 11px 18px; font-size: 14px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  padding: 84px 0 68px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.14), transparent 55%);
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin: 0 auto 18px;
}

.grad {
  background: linear-gradient(135deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #070d1e; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 42px;
}

.section-head h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); font-size: 15.5px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.kit-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.kit-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.5);
}

@media (max-width: 820px) {
  .kit-media-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* Free Tool */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-form label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #cbd5e1;
}

.tool-form input,
.tool-form textarea {
  width: 100%;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.tool-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.output-tabs { display: flex; gap: 6px; }
.out-tab {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

.out-tab.active {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
  border-color: var(--accent);
}

.output-btns { display: flex; gap: 6px; }

.code-out {
  flex: 1;
  min-height: 250px;
  max-height: 360px;
  overflow: auto;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.tool-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 13px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.14);
}

.pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.price {
  font-size: 40px;
  font-weight: 800;
  margin: 10px 0 4px;
  line-height: 1;
}

.price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.price-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  flex: 1;
  font-size: 14px;
  color: #cbd5e1;
}

/* Legal pages */
.legal-wrap {
  max-width: 780px;
  margin: 48px auto 72px;
  padding: 0 20px;
}

.legal-wrap h1 { font-size: 32px; margin-bottom: 8px; }
.legal-wrap h2 { font-size: 20px; margin: 28px 0 10px; color: var(--accent); }
.legal-wrap p, .legal-wrap li { color: var(--muted); margin-bottom: 10px; }
.legal-wrap ul { padding-left: 22px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .tool-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .tool-upsell { flex-direction: column; text-align: center; }
}
