:root {
  --bg: #f3efe8;
  --bg-gradient-end: #ebe4d6;
  --surface: #faf8f5;
  --surface-strong: #f7f2ea;
  --surface-muted: #f0ebe3;
  --surface-code: #f0ebe3;
  --border: #e6ddd0;
  --border-strong: #dccfbe;
  --text-primary: #34281f;
  --text-secondary: #6e5d4f;
  --text-muted: #927d6c;
  --accent: #b45309;
  --accent-soft: #d97706;
  --accent-blue: #b45309;
  --shadow-soft: 0 18px 44px rgba(180, 83, 9, 0.06);
  --shadow-lift: 0 22px 60px rgba(180, 83, 9, 0.1);
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background:
    radial-gradient(circle at top, rgba(180, 83, 9, 0.06), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f5f1ea 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #92400e;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre,
table td code,
table th code {
  font-family: var(--font-mono);
}

code {
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  background: var(--surface-code);
  color: #9a4f15;
  font-size: 0.92em;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 20;
  padding: 18px 0 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  background: rgba(250, 248, 245, 0.9);
  border: 1px solid rgba(230, 221, 208, 0.95);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.08);
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.nav-links a {
  padding: 0.62rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
  background: rgba(180, 83, 9, 0.08);
  transform: translateY(-1px);
}

.hero-animated {
  padding: 124px 0 96px;
  margin: 16px 0 0;
}

.hero-inner,
header .container {
  display: flex;
  justify-content: center;
}

.hero-copy,
header .container {
  width: min(100%, 860px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 11ch;
  margin: 0 auto;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h4 {
  font-size: 1.24rem;
  margin-bottom: 12px;
}

p {
  margin: 0;
}

.lede {
  max-width: 64ch;
  margin: 22px auto 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.2rem;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, #c56d1a 0%, var(--accent) 100%);
  color: #fffaf3;
  box-shadow: 0 14px 28px rgba(180, 83, 9, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fffaf3;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(180, 83, 9, 0.24);
}

.btn-secondary {
  background: rgba(250, 248, 245, 0.88);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.07);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--text-primary);
  background: #fffdf9;
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

main {
  padding-bottom: 72px;
}

.section {
  padding: 38px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header .eyebrow {
  margin-bottom: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 100%;
}

.feature-card p,
.card p,
.card li,
.card td,
.comparison-table td,
.comparison-table th {
  color: var(--text-secondary);
}

.card strong,
.feature-card strong,
table strong {
  color: var(--text-primary);
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.card li + li {
  margin-top: 0.52rem;
}

div[style*="background: #f3f4f6"] {
  background: var(--surface-code) !important;
  border: 1px solid rgba(230, 221, 208, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card[style*="font-family: var(--font-mono)"],
div[style*="white-space: pre"] {
  background: var(--surface-code);
  color: #805b45;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.96rem;
}

.comparison-table thead th {
  background: var(--surface-muted);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.96rem;
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th:first-child {
  border-top-left-radius: 14px;
}

.comparison-table thead th:last-child {
  border-top-right-radius: 14px;
}

.comparison-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(230, 221, 208, 0.9);
  vertical-align: top;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

.footer {
  padding: 18px 0 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: rgba(250, 248, 245, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

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

.footer-links a {
  color: var(--text-secondary);
}

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

.visible {
  opacity: 1;
}

::selection {
  background: rgba(180, 83, 9, 0.18);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(230, 221, 208, 0.35);
}

::-webkit-scrollbar-thumb {
  background: rgba(180, 83, 9, 0.28);
  border: 3px solid rgba(243, 239, 232, 0.9);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav {
    top: 10px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
  }

  .nav-links {
    justify-content: center;
  }

  .hero-animated {
    padding: 96px 0 72px;
  }

  h1 {
    max-width: 100%;
  }

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

  .feature-card,
  .card,
  .footer-inner {
    padding: 24px;
  }

  .comparison-table {
    min-width: 620px;
  }
}
