:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-strong: #eef1f6;
  --ink: #0f172a;
  --ink-muted: #475569;
  --border: #e2e8f0;
  --brand: #0052cc;
  --brand-hover: #0747a6;
  --brand-soft: #e9f2ff;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 10px;
  --max-w: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.trust-row span::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

/* Interactive Product Mockup */
.app-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.frame-body {
  padding: 18px;
}

.issue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

.code-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.redacted-chip {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.panel-card {
  border: 1px solid #fde68a;
  background: var(--warn-soft);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mini-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.mini-btn:hover {
  background: var(--surface);
}

/* Sections */
section {
  padding: clamp(56px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--border);
}

section.alt {
  background: var(--surface);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-sub {
  margin: 0 0 36px;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 640px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Comparison Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-strong);
  font-weight: 700;
  font-size: 13px;
}

tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: #f0f7ff;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 12px 30px -20px rgba(0, 82, 204, 0.35);
}

.price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 6px;
}

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

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--ink-muted);
}

.feature-list li {
  margin-bottom: 8px;
}

.feature-list li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

/* Legal / Docs pages */
.prose {
  max-width: 780px;
  padding: 56px 0 80px;
}

.prose h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.prose .updated {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose p, .prose li {
  font-size: 15px;
  color: var(--ink-muted);
}

footer {
  padding: 36px 0;
  font-size: 13px;
  color: var(--ink-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
