:root {
  --bg: #f3efe8;
  --surface: #fffdf9;
  --surface-muted: #efe9df;
  --surface-dark: #12171d;
  --text: #1b232c;
  --text-soft: #5e6872;
  --border: rgba(27, 35, 44, 0.08);
  --shadow: 0 22px 70px rgba(17, 24, 33, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, #f4efe7 0%, #fbfaf6 52%, #f2ede5 100%);
  font-family: "Segoe UI Variable Display", "Candara", "Trebuchet MS", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, 100%);
  margin: 0 auto;
}

.section {
  padding: 6.5rem 0;
}

.surface-light {
  background: transparent;
}

.surface-muted {
  background: rgba(255, 251, 244, 0.78);
}

.surface-dark {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #141a20 0%, #0d1116 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--page-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.accent-text {
  color: var(--page-accent);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-description {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.section-heading-left .section-description {
  margin-left: 0;
}

.section-heading-dark h2,
.section-heading-dark .section-description {
  color: #fff;
}

.section-heading-dark .section-description {
  color: rgba(255, 255, 255, 0.72);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--page-accent);
  color: #fff;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--page-accent) 32%, transparent);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.button-dark {
  background: #12171d;
  color: #fff;
}

.button-outline {
  border-color: rgba(18, 23, 29, 0.14);
  color: var(--text);
}

.button-block {
  width: 100%;
}

.hero-shell {
  position: relative;
  min-height: calc(100svh - 5.25rem);
  color: #fff;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: calc(100svh - 5.25rem);
  padding: 4rem 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-title {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
}

.hero-lead {
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-badge {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 700px;
}

.stat-card {
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.stat-card strong {
  display: block;
  color: var(--page-accent);
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .section {
    padding: 5rem 0;
  }

  .hero-grid {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, 1180px);
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
