:root {
  --bg-page: #f6f3ee;
  --bg-card: #fdfbf7;
  --bg-tint: #efe9de;
  --bg-badge: #f0e4d6;
  --ink: #1c1a16;
  --ink-body: #544f46;
  --ink-muted: #5c574d;
  --ink-soft: #6b6459;
  --mono-muted: #8b8579;
  --border: #e7e0d3;
  --border-strong: #d8d1c4;
  --border-tint: #e2dacb;
  --border-tint-rule: #e5dfd3;
  --accent: #c0703a;
  --accent-hover: #a85f30;
  --accent-ink: #8a5a2f;

  --panel-bg: #211e19;
  --panel-border: #2e2a23;
  --panel-border-2: #34302a;
  --panel-fg: #c9c2b3;
  --panel-dim: #a49d8e;
  --syntax-key: #e0a55e;
  --syntax-string: #a6b58c;
  --syntax-number: #7ea8c9;
  --syntax-comment: #6f6a5e;
  --syntax-get: #8fae7e;
  --dot-color: #4a453c;

  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #e9c9a9; }

a { color: inherit; }

@keyframes profinBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- layout helpers ---------- */

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 52px 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}

.eyebrow-dark { color: var(--syntax-key); }

h2 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 14px 0 18px;
}

.body-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0 0 16px;
}
.body-text:last-of-type { margin-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 9px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 13px 20px;
}
.btn-outline:hover { background: var(--bg-badge); }

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

/* ---------- nav ---------- */

.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 32px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark-sm { width: 24px; height: 24px; border-radius: 6px; }

.logo-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.logo-dot-sm { width: 8px; height: 8px; }

.logo-word {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-links a.pill,
.nav-mobile a.pill {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-links a.pill:hover,
.nav-mobile a.pill:hover { background: var(--bg-badge); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 32px 22px;
}
.nav-mobile a { text-decoration: none; color: var(--ink-muted); font-size: 15px; font-weight: 500; }
.nav-mobile a.pill { align-self: flex-start; }
.nav-mobile.open { display: flex; }

/* ---------- hero ---------- */

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 32px 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--bg-badge);
  border: 1px solid #e6d5c1;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-copy h1 {
  font-size: clamp(32px, 4vw + 12px, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-body);
  margin: 0 0 32px;
  max-width: 460px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: #ece6db;
  padding: 1px 6px;
  border-radius: 4px;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.fine-print {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mono-muted);
  margin: 0;
}

/* ---------- code panel ---------- */

.code-panel {
  background: var(--panel-bg);
  border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(40, 30, 15, 0.45);
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--panel-border);
}
.code-titlebar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dot-color); }
.filename {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mono-muted);
}

.code-request {
  padding: 8px 18px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--syntax-comment);
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
  overflow-x: auto;
}
.code-request .verb { color: var(--syntax-get); }
.code-request .path { color: var(--panel-fg); }
.code-request .accent-text { color: var(--accent); }

.code-body {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--panel-fg);
  overflow-x: auto;
}
.code-body .key { color: var(--syntax-key); }
.code-body .str { color: var(--syntax-string); }
.code-body .num { color: var(--syntax-number); }
.code-body .punct { color: var(--syntax-comment); }
.code-body .cursor {
  color: var(--panel-fg);
  animation: profinBlink 1.1s steps(1) infinite;
}

/* ---------- trust strip ---------- */

.trust-strip-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}

.trust-strip {
  border-top: 1px solid var(--border-tint-rule);
  border-bottom: 1px solid var(--border-tint-rule);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mono-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-forms {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #7a746a;
}

/* ---------- problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.diagram-card {
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
}
.diagram-card.raw {
  background: var(--bg-tint);
  border: 1px solid var(--border-tint);
  color: var(--ink-soft);
}
.diagram-card.clean {
  background: var(--panel-bg);
  color: var(--panel-fg);
}

.diagram-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a59a86;
  margin-bottom: 8px;
}
.diagram-card.clean .diagram-label { color: var(--mono-muted); }

.arrow-up { color: var(--accent); }
.bad-tag { color: #b04a3a; }

.diagram-arrow {
  text-align: center;
  padding: 0 10px;
  color: var(--accent);
  font-size: 22px;
  font-family: var(--font-mono);
}

.clean-value { color: var(--syntax-number); padding-left: 12px; }
.comment { color: var(--syntax-comment); }
.comment:first-of-type { margin-top: 6px; }

/* ---------- features ---------- */

.features-heading { margin: 14px 0 40px; max-width: 560px; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.icon-chip {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 15px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- coverage ---------- */

.coverage-block {
  background: var(--panel-bg);
  border-radius: 18px;
  padding: 48px 44px;
  color: var(--bg-tint);
}

.coverage-heading {
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 14px 0 8px;
  color: var(--bg-page);
}

.coverage-sub {
  font-size: 16px;
  color: var(--panel-dim);
  margin: 0 0 34px;
  max-width: 520px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.coverage-card {
  border: 1px solid var(--panel-border-2);
  border-radius: 11px;
  padding: 20px 16px;
  transition: border-color 0.15s ease;
}
.coverage-card:hover { border-color: #464036; }

.coverage-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mono-muted);
  margin-bottom: 12px;
}

.coverage-title { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.coverage-desc { font-size: 13px; color: var(--panel-dim); line-height: 1.45; }

/* ---------- pricing ---------- */

.pricing { padding-bottom: 60px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-size: 15.5px;
  color: #3a362f;
}
.check-list .check {
  color: var(--accent);
  font-family: var(--font-mono);
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
}

.price-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mono-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.price-amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.price-period { font-size: 16px; color: var(--mono-muted); }

.price-support {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0 0 22px;
  line-height: 1.5;
}

.price-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mono-muted);
  line-height: 1.55;
  margin: 14px 0 0;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--border-tint);
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 260px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a59a86;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col { display: flex; flex-direction: column; }
.footer-col a {
  color: #3a362f;
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 32px 40px;
  border-top: 1px solid var(--border-tint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mono-muted);
}
.footer-bottom a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mono-muted);
  text-decoration: underline;
}
.footer-bottom a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 840px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner,
  .problem-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .diagram { grid-template-columns: 1fr; }
  .diagram-arrow { transform: rotate(90deg); padding: 10px 0; }

  .coverage-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .coverage-block { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; }
}
