:root {
  --bg: #f7f4ed;
  --ink: #141414;
  --muted: #5a564f;
  --accent: #ff5f2e;
  --accent-dark: #c93c1c;
  --surface: #ffffff;
  --surface-alt: #f0ebe1;
  --stroke: rgba(20, 20, 20, 0.12);
  --shadow: 0 20px 60px rgba(20, 20, 20, 0.18);
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff9f1, var(--bg));
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 237, 0.85);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 95, 46, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 95, 46, 0.35);
}

.btn.ghost {
  border-color: var(--stroke);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn.subtle {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  padding: 10px 12px;
}

.btn.subtle:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
}

.hero {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 12px 0 16px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--stroke);
  padding-top: 20px;
}

.meta-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
}

.hero-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface-alt);
  font-weight: 600;
}

.score {
  font-size: 1.8rem;
  color: var(--accent-dark);
}

.card-body {
  padding: 22px;
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: #f1d8ce;
  margin-bottom: 12px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--accent), #ffb06c);
  border-radius: 999px;
}

.score-label {
  font-weight: 600;
  margin: 0 0 16px;
}

.card-list {
  padding-left: 18px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
}

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

.section-title {
  max-width: 620px;
  margin-bottom: 36px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 12px 0 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--stroke);
}

.feature h3 {
  margin: 0 0 8px;
}

.callout {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.bullets {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.pricing {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 80%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.price-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card .btn {
  margin-top: auto;
}

.price-card .price {
  font-weight: 600;
  color: var(--accent-dark);
}

.price-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 40px rgba(255, 95, 46, 0.2);
}

.cta {
  padding-top: 40px;
  padding-bottom: 90px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
}

.cta-card h2 {
  margin: 8px 0 0;
  font-family: "Fraunces", serif;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 50px 0 60px;
  border-top: 1px solid var(--stroke);
  background: #fffaf4;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  color: var(--muted);
}

.footer-note {
  margin: 12px 0 8px;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social {
  display: flex;
  align-items: flex-start;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.social-link:hover {
  color: var(--accent-dark);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
