:root {
  --jade: #2f7d62;
  --deep-jade: #145a46;
  --light-jade: #a8d8c0;
  --gold: #f3b34c;
  --cream: #f7f3ea;
  --ink: #17221f;
  --graphite: #5e6862;
  --white: #fffaf0;
  --shadow: 0 24px 70px rgba(20, 90, 70, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.74);
  box-shadow: 0 14px 40px rgba(23, 34, 31, 0.12);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.nav,
.hero-actions,
.metric-row,
.rhythm-grid,
.cta-panel,
.funnel {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  color: var(--deep-jade);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-jade), var(--jade));
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 900;
}

.nav {
  gap: 18px;
  color: rgba(23, 34, 31, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.top-cta,
.button {
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav a:hover {
  color: var(--deep-jade);
}

.top-cta,
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.top-cta::after,
.button::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -45%;
  width: 36%;
  height: 240%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.1) 28%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.1) 72%, transparent 100%);
  transform: rotate(18deg) translateX(-150%);
  animation: button-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.top-cta::after {
  animation-delay: 0.4s;
}

.top-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--deep-jade);
}

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

@keyframes button-shine {
  0%,
  38% {
    transform: rotate(18deg) translateX(-160%);
  }

  56%,
  100% {
    transform: rotate(18deg) translateX(440%);
  }
}

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px max(48px, calc((100vw - 1180px) / 2)) 64px;
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
}

.scene-left::before {
  background-position: center;
}

.scene-right::before {
  background-position: center;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.scene-left::after {
  background: linear-gradient(90deg, rgba(247, 243, 234, 0.74) 0%, rgba(247, 243, 234, 0.5) 42%, rgba(247, 243, 234, 0.04) 68%);
}

.scene-right::after {
  background: linear-gradient(90deg, rgba(247, 243, 234, 0.02) 0%, rgba(247, 243, 234, 0.18) 36%, rgba(247, 243, 234, 0.76) 66%, rgba(247, 243, 234, 0.88) 100%);
}

.hero {
  min-height: 104vh;
}

.scene-content {
  width: min(580px, 46vw);
  padding-top: 18px;
}

.scene-right .scene-content {
  justify-self: end;
  width: min(650px, 47vw);
}

.narrow {
  width: min(560px, 44vw);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--deep-jade);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  font-size: clamp(54px, 5.2vw, 84px);
}

h2 {
  font-size: clamp(44px, 4.4vw, 70px);
}

.lead {
  margin: 24px 0 0;
  color: rgba(23, 34, 31, 0.78);
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.58;
}

.hero-actions {
  gap: 18px;
  margin-top: 34px;
}

.button-primary {
  min-height: 58px;
  padding: 0 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-jade), var(--jade));
  box-shadow: 0 16px 34px rgba(20, 90, 70, 0.24);
}

.trust {
  max-width: 230px;
  color: rgba(23, 34, 31, 0.7);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.metric-row {
  gap: 12px;
  margin-top: 34px;
}

.metric-row div,
.funnel article,
.rhythm-grid div,
.note-panel,
.cta-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-row div {
  min-width: 126px;
  padding: 14px 16px;
  border-radius: 22px;
}

.metric-row strong,
.funnel strong,
.rhythm-grid strong {
  display: block;
  color: var(--deep-jade);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 900;
  line-height: 1;
}

.metric-row strong {
  font-size: 32px;
}

.metric-row span,
.rhythm-grid span,
.funnel span {
  display: block;
  margin-top: 6px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.math-scene .lead {
  max-width: 620px;
}

.funnel {
  align-items: stretch;
  gap: 12px;
  margin-top: 30px;
}

.funnel article {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
}

.funnel strong {
  margin-top: 12px;
  font-size: 48px;
}

.funnel p {
  margin: 12px 0 0;
  color: rgba(23, 34, 31, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
}

.note-panel {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  color: rgba(23, 34, 31, 0.76);
  font-weight: 700;
  line-height: 1.5;
}

.note-panel b {
  color: var(--deep-jade);
}

.rhythm-grid {
  align-items: stretch;
  gap: 12px;
  margin-top: 30px;
}

.rhythm-grid div {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
}

.rhythm-grid strong {
  font-size: 28px;
}

.cta-panel {
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 16px;
  border-radius: 30px;
}

.cta-panel p {
  margin: 0;
  color: rgba(23, 34, 31, 0.68);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

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

  .scene,
  .hero {
    min-height: auto;
    padding: 110px 24px 56px;
  }

  .scene-content,
  .scene-right .scene-content,
  .narrow {
    width: min(620px, 100%);
  }

  .scene::before {
    opacity: 0.28;
  }

  .scene-left::after,
  .scene-right::after {
    background: linear-gradient(90deg, rgba(247, 243, 234, 0.92), rgba(247, 243, 234, 0.7));
  }

  .funnel,
  .rhythm-grid,
  .hero-actions,
  .metric-row,
  .cta-panel {
    flex-wrap: wrap;
  }
}
