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

:root {
  --bg: #f8f5f0;
  --bg-tint: #f0eadf;
  --surface: #ffffff;
  --border: #e7ded0;
  --border-strong: #cbbfa9;
  --text: #1c160f;
  --muted: #6b6152;
  --muted-soft: #9a8f7d;
  --accent: #7c2d12;
  --accent-hover: #5f2110;
  --accent-soft: rgba(124, 45, 18, 0.06);
  --highlight: #b45309;
  --highlight-hover: #92400e;
  --highlight-soft: rgba(180, 83, 9, 0.1);
  --green: #2d6a4f;
  --red: #9a2424;
  --code-bg: #1c160f;
  --code-text: #e0d6c3;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Georgia", serif;
  --mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; border: 1px solid transparent; letter-spacing: -0.05px; font-family: var(--font); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-primary { background: var(--highlight); color: #ffffff; font-weight: 500; }
.btn-primary:hover { background: var(--highlight-hover); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--highlight); color: var(--highlight); background: var(--highlight-soft); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

header { background: var(--bg) !important; border-bottom: 1px solid var(--border); }
header::after { display: none !important; }
footer::before { display: none !important; }
header .container { height: 72px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.5px; color: var(--text) !important; gap: 12px !important; line-height: 1; }
.logo img { width: 38px; height: 38px; border-radius: 4px; }
nav a:not(.btn) { color: var(--muted) !important; font-size: 14px; }
nav a:not(.btn):hover { color: var(--text) !important; background: transparent !important; }

.hero { padding: 88px 0 56px; text-align: left; position: relative; border-bottom: 1px solid var(--border); }
.hero .container { max-width: 920px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--highlight); font-size: 12px; font-weight: 600; padding: 0; border-radius: 0; margin-bottom: 28px; letter-spacing: 0.6px; text-transform: uppercase; }
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -1px; line-height: 1.1; margin-bottom: 22px; max-width: 780px; color: var(--text); }
.hero .subtitle { font-size: 18px; color: var(--muted); max-width: 660px; margin: 0 0 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; font-size: 13px; color: var(--muted-soft); letter-spacing: 0.1px; }

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.2; margin-bottom: 12px; color: var(--text); position: relative; }
section > .container > h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--highlight); margin-bottom: 18px; border-radius: 2px; }
.section-sub { color: var(--muted); margin-bottom: 44px; font-size: 16px; max-width: 620px; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.feature { background: var(--surface); padding: 28px 26px; transition: background 0.18s; }
.feature:hover { background: var(--bg-tint); }
.feature-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--highlight); background: var(--highlight-soft); border-radius: 4px; margin-bottom: 18px; font-family: var(--mono); }
.feature h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; color: var(--text); }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feature p a { color: var(--accent); text-decoration: none; font-weight: 500; }
.feature p a:hover { text-decoration: underline; }
.feature code { font-family: var(--mono); font-size: 12px; background: var(--bg-tint); padding: 1px 6px; border-radius: 3px; color: var(--text); border: 1px solid var(--border); }

.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.usecase { padding: 0 0 0 20px; border-left: 2px solid var(--border-strong); background: transparent; transition: border-left-color 0.18s; }
.usecase:hover { border-left-color: var(--highlight); }
.usecase h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); letter-spacing: -0.2px; }
.usecase p { font-size: 15px; color: var(--muted); line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.step { background: var(--surface); padding: 28px 26px; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--highlight); margin-bottom: 12px; }
.step h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.state-card { background: var(--surface); padding: 20px 22px; text-decoration: none; display: block; transition: background 0.15s; }
.state-card:hover { background: var(--bg-tint); }
.state-card .st-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.state-card .st-meta { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.state-card .st-fmt { display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--highlight); background: var(--highlight-soft); padding: 3px 9px; border-radius: 3px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
table.data-table th { background: var(--bg-tint); text-align: left; padding: 11px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); }
table.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.table-scroll { overflow-x: auto; border-radius: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 660px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pricing-card.highlight { background: var(--surface); border-color: var(--highlight); position: relative; }
.pricing-card.highlight::before { content: "Most popular"; position: absolute; top: -10px; left: 28px; background: var(--highlight); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.plan-name { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.plan-price { font-family: var(--serif); font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: var(--text); }
.plan-period { font-size: 16px; font-weight: 400; color: var(--muted); font-family: var(--font); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-features li { font-size: 14px; color: var(--text); padding-left: 22px; position: relative; }
.plan-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--highlight); font-size: 13px; font-weight: 700; }
.pricing-card .btn { text-align: center; margin-top: 8px; }

.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose h2::before { display: none; }
.prose p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.prose ul { color: var(--muted); margin: 0 0 16px 20px; line-height: 1.7; }
.prose a { color: var(--accent); }

.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 6px; font-family: var(--font); font-size: 15px; background: var(--surface); color: var(--text); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: fit-content; }

footer { padding: 56px 0 40px; margin-top: 0 !important; background: var(--bg-tint); border-top: 1px solid var(--border); }
footer .container.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; align-items: flex-start; text-align: left; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand-col { gap: 10px; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: -0.3px; color: var(--text) !important; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; max-width: 260px; }
.footer-cta { display: inline-block; font-size: 13px; color: var(--highlight); text-decoration: none; font-weight: 600; margin-top: 4px; padding: 6px 0; letter-spacing: 0.1px; }
.footer-cta:hover { text-decoration: underline; }
.footer-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text); font-weight: 700; margin-bottom: 4px; font-family: var(--font); }
.footer-col a { color: var(--muted) !important; text-decoration: none; font-size: 13px; font-weight: 500; padding: 2px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text) !important; background: transparent !important; }
@media (max-width: 800px) { footer .container.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { footer .container.footer-grid { grid-template-columns: 1fr; gap: 24px; } }

@media (max-width: 900px) { section { padding: 64px 0; } .hero { padding: 72px 0 48px; } h2 { font-size: 28px; letter-spacing: -0.5px; } }
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  section { padding: 48px 0; }
  header .container { height: 60px; }
  .logo { font-size: 20px !important; gap: 10px !important; letter-spacing: -0.4px !important; }
  .logo img { width: 32px !important; height: 32px !important; }
  nav.nav-open { background: var(--surface) !important; border-top: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important; padding: 10px 14px 14px !important; top: 48px !important; }
  nav.nav-open a:not(.btn) { color: var(--text) !important; padding: 10px 14px !important; border-radius: 4px; font-size: 15px; }
  nav.nav-open .btn { width: 100%; padding: 10px 14px; margin-top: 6px; text-align: center; }
  nav .btn-outline { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero-badge { font-size: 11px; margin-bottom: 18px; letter-spacing: 0.5px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 16px; }
  .hero .subtitle { font-size: 15px; margin-bottom: 28px; line-height: 1.55; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; padding: 12px 20px; }
  h2 { font-size: 24px; letter-spacing: -0.3px; line-height: 1.2; }
  .section-sub { font-size: 14px; margin-bottom: 28px; line-height: 1.55; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature, .step { padding: 22px 20px; }
  .usecase-grid { grid-template-columns: 1fr; gap: 22px; }
  .usecase { padding-left: 16px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; max-width: 100%; }
  .pricing-card { padding: 26px 22px; }
  .plan-price { font-size: 36px; }
  footer { padding: 40px 0 32px; }
  .footer-tagline { max-width: 100%; }
}
