:root {
  --page-bg: #f2eee6;
  --surface: #fffaf3;
  --surface-soft: #f8f2e9;
  --text: #182329;
  --muted: #66736f;
  --border: #d8cfbf;
  --accent: #1d6b68;
  --accent-dark: #15514f;
  --accent-soft: #dcebe7;
  --hero-surface: #f6efe4;
  --hero-grid-line: rgba(143, 125, 106, 0.12);
  --hero-glow-soft: rgba(244, 227, 205, 0.88);
  --hero-glow-ember: rgba(201, 109, 58, 0.14);
  --number: #e7d9c9;
  --dark-bg: #1f1b18;
  --dark-surface: #2b2622;
  --dark-border: #3b342f;
  --dark-text: #f4ede4;
  --dark-muted: #b8aa9d;
  --dark-accent: #d96a25;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-sm: 0 1px 2px rgba(24, 35, 41, 0.04);
  --max-width: min(1120px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--text);
  font-family: "League Spartan", sans-serif;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: var(--max-width);
  margin: 0 auto 56px;
}

.site-header {
  position: relative;
  isolation: isolate;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - 1120px) / 2)) 18px;
  background:
    radial-gradient(circle at 52% -28%, var(--hero-glow-soft), transparent 36%),
    radial-gradient(circle at 74% -22%, var(--hero-glow-ember), transparent 24%),
    var(--hero-surface);
  overflow: hidden;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to right,
      var(--hero-grid-line) 0 1px,
      transparent 1px 52px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--hero-grid-line) 0 1px,
      transparent 1px 52px
    );
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
  flex: 0 0 auto;
}

.brand-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  color: #ffffff;
}

.nav-cta {
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--text);
}

main {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.panel {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  isolation: isolate;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  display: grid;
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: 72px max(24px, calc((100vw - 1180px) / 2)) 56px;
  background:
    radial-gradient(circle at 52% 18%, var(--hero-glow-soft), transparent 26%),
    radial-gradient(circle at 74% 20%, var(--hero-glow-ember), transparent 18%),
    var(--hero-surface);
  text-align: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  background:
    repeating-linear-gradient(
      to right,
      var(--hero-grid-line) 0 1px,
      transparent 1px 52px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--hero-grid-line) 0 1px,
      transparent 1px 52px
    );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.78) 42%,
    rgba(0, 0, 0, 0.26) 74%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.78) 42%,
    rgba(0, 0, 0, 0.26) 74%,
    transparent 100%
  );
}

.hero-copy h1,
.section-heading h2,
.story-copy h2,
.beta-copy h2 {
  margin: 0;
  letter-spacing: -0.04em;
  font-family: "League Spartan", sans-serif;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(1.72rem, 6.2vw, 5rem);
  line-height: 0.92;
  font-weight: 800;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy > p:not(.eyebrow),
.story-copy p,
.feature-story-copy p,
.fine-print {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 32ch;
  margin-top: 34px;
  font-size: clamp(1.08rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: #58635f;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.button-primary {
  padding: 14px 20px;
}

.hero .button-primary {
  min-height: 60px;
  padding: 18px 30px;
  border-radius: 16px;
  font-size: 1.02rem;
}

.button-primary:disabled,
.button-primary[disabled] {
  cursor: wait;
  opacity: 0.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.beta-copy h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 0.94;
  font-weight: 800;
}

.feature-story-copy h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-family: "League Spartan", sans-serif;
}

.feature-story {
  display: grid;
  gap: 0;
  margin-top: 12px;
  padding-bottom: 28px;
}

.feature-story-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: center;
  padding: 30px 0;
}

.feature-story-row + .feature-story-row {
  border-top: 1px solid var(--border);
}

.feature-story-row-reverse .feature-story-visual {
  order: 2;
}

.feature-story-row-reverse .feature-story-copy {
  order: 1;
}

.feature-story-copy h3 {
  max-width: 16ch;
  font-weight: 800;
}

.feature-story-copy p {
  max-width: 52ch;
  margin-top: 12px;
}

.feature-story-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.feature-story-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent);
}

.feature-story-visual {
  position: relative;
  min-height: 220px;
}

.feature-story-media {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-soft);
  box-shadow: 0 18px 34px rgba(24, 35, 41, 0.1);
}

.feature-story-video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.topic-map-preview {
  min-height: 0;
}

.topic-map-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(24, 35, 41, 0.1);
}

.growth-collage {
  min-height: 420px;
}

.growth-collage-cluster {
  position: relative;
  min-height: 420px;
  padding: 16px 12px 14px;
}

.growth-collage-card {
  position: absolute;
  margin: 0;
  width: 42%;
  max-width: 260px;
}

.growth-collage-card-top {
  top: 0;
  left: 50%;
  width: 45%;
  max-width: 286px;
  transform: translateX(-50%);
  z-index: 3;
}

.growth-collage-card-left {
  top: 112px;
  left: 0;
  z-index: 2;
}

.growth-collage-card-right {
  top: 112px;
  right: 0;
  z-index: 2;
}

.growth-collage-card-center {
  top: 132px;
  left: 50%;
  width: 52%;
  max-width: 340px;
  transform: translateX(-50%);
  z-index: 4;
}

.growth-collage-card-center .growth-collage-image {
  aspect-ratio: 1.02 / 1;
}

.growth-collage-card-top .growth-collage-image,
.growth-collage-card-left .growth-collage-image,
.growth-collage-card-right .growth-collage-image {
  aspect-ratio: 1.18 / 0.84;
}

.growth-collage-card-top .growth-collage-image {
  box-shadow: 0 16px 28px rgba(24, 35, 41, 0.08);
}

.growth-collage-card-left .growth-collage-image,
.growth-collage-card-right .growth-collage-image {
  box-shadow: 0 18px 30px rgba(24, 35, 41, 0.1);
}

.growth-collage-card-center .growth-collage-image {
  box-shadow: 0 22px 38px rgba(24, 35, 41, 0.12);
}

.growth-collage-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
}

.growth-collage-image {
  box-shadow: 0 18px 34px rgba(24, 35, 41, 0.1);
}

.growth-collage-main,
.growth-collage-card {
  min-height: 0;
}

.growth-collage-image {
  aspect-ratio: 1.18 / 0.84;
}

.feature-story-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 18px;
}

.feature-story-cta .button-primary {
  min-width: 228px;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.founder-showcase {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 52px max(24px, calc((100vw - 1120px) / 2)) 48px;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  background: var(--dark-bg);
  color: var(--dark-text);
}

.story-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 0.95;
  font-weight: 800;
}

.story-copy p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--dark-muted);
}

.founder-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
  background: #120f0d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.founder-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.beta {
  position: relative;
  padding-bottom: 112px;
  text-align: center;
}

.beta-copy h2 {
  max-width: 24ch;
  margin: 0 auto;
}

.beta-intro {
  margin: 16px auto 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.beta-form {
  width: min(460px, 100%);
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  text-align: left;
}

.beta-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.form-status,
.fine-print {
  margin-top: 12px;
  font-size: 0.94rem;
}

.form-status {
  min-height: 1.3em;
}

.form-status.is-success {
  color: var(--accent-dark);
}

.form-status.is-error {
  color: #9c3f2c;
}

.beta-form .button-primary {
  width: 100%;
  margin-top: 16px;
}

.signup-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(320px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(29, 107, 104, 0.22);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 14px 36px rgba(24, 35, 41, 0.12);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.signup-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fine-print {
  font-size: 0.84rem;
}

.button-primary:focus-visible,
.nav-toggle:focus-visible,
.beta-form input:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .hero,
  .story {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 28px 44px;
    min-height: calc(100vh - 190px);
  }

  .hero-copy h1,
  .beta-copy h2,
  .story-copy h2 {
    max-width: none;
  }

  .feature-story-row {
    grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1fr);
    gap: 20px 28px;
  }

}

@media (max-width: 720px) {
  :root {
    --max-width: min(100vw - 24px, 100%);
  }

  .hero-copy h1 {
    font-size: clamp(1.2rem, 6vw, 2.7rem);
    line-height: 0.95;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 12px 16px 20px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .panel {
    padding: 24px;
  }

  .hero {
    gap: 20px;
    min-height: calc(100svh - 170px);
    padding: 44px 20px 28px;
  }

  .feature-story-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-story-cta {
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .feature-story-cta .button-primary {
    width: 100%;
    min-width: 0;
  }

  .feature-story-row-reverse .feature-story-visual,
  .feature-story-row-reverse .feature-story-copy {
    order: initial;
  }

  .feature-story-visual {
    min-height: 164px;
  }

  .topic-map-image {
    border-radius: 18px;
  }

  .growth-collage {
    min-height: 0;
  }

  .growth-collage-cluster {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-height: 0;
    padding: 0;
  }

  .growth-collage-card,
  .growth-collage-card-top,
  .growth-collage-card-left,
  .growth-collage-card-center,
  .growth-collage-card-right {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
  }

  .growth-collage-card-center {
    grid-column: span 2;
  }

  .growth-collage-image {
    border-radius: 18px;
  }

  .founder-showcase {
    padding: 36px 16px 32px;
  }

  .signup-toast {
    bottom: 16px;
    width: calc(100% - 24px);
  }

}
