:root {
  --bg: #f5efe4;
  --bg-strong: #e6dcc8;
  --text: #1c1b1a;
  --muted: #5b5349;
  --accent: #d85f2b;
  --accent-dark: #8f3818;
  --surface: rgba(255, 252, 245, 0.72);
  --border: rgba(28, 27, 26, 0.12);
  --shadow: 0 24px 80px rgba(83, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 95, 43, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(82, 128, 93, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #efe3d1 100%);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  backdrop-filter: blur(18px);
}

.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.hero {
  padding: 56px 0 40px;
}

.eyebrow,
.section-heading span,
.panel-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-top: 16px;
}

.hero-copy,
.hero-panel,
.platform-grid article,
.tier-card,
.signup-form {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-copy {
  padding: 36px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #ac431f 100%);
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.48);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-stats dd {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-panel {
  padding: 24px;
}

.stage-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.stage-card:first-of-type {
  border-top: none;
}

.stage-card span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(216, 95, 43, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
}

.stage-card p,
.platform-grid p,
.tier-card p,
.form-note {
  color: var(--muted);
}

.platform,
.tiers,
.signup {
  padding-top: 54px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.platform-grid,
.tier-grid {
  display: grid;
  gap: 18px;
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-grid article,
.tier-card {
  padding: 22px;
}

.tier-card.highlighted {
  background: linear-gradient(180deg, rgba(216, 95, 43, 0.12), rgba(255, 252, 245, 0.82));
  border-color: rgba(216, 95, 43, 0.3);
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.signup-form label:last-of-type,
.signup-form button,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

textarea {
  resize: vertical;
}

@media (max-width: 980px) {
  .hero-grid,
  .platform-grid,
  .tier-grid,
  .signup-form {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-copy,
  .hero-panel,
  .platform-grid article,
  .tier-card,
  .signup-form {
    border-radius: 22px;
  }
}
