/* ============ tokens ============ */
:root {
  --purple: #4E5AA5;
  --purple-accent: #465190;
  --purple-soft: #ECEDF5;
  --purple-softer: #E3E5F2;
  --ink: #1c1d22;
  --heading: #4D4D4D;
  --muted: #b9bac4;
  --muted-text: #6b6c76;
  --bg: #f6f6f9;
  --radius: 16px;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-puff: "DynaPuff", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.puff { font-family: var(--font-puff); font-weight: 500; }
.muted { color: var(--muted); }

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s ease;
}

.nav.scrolled { box-shadow: 0 1px 24px rgba(78, 90, 165, .12); }

.nav-inner {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
}

.nav-logo img { width: clamp(120px, 14vw, 160px); height: auto; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  padding: .85rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-puff);
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, background-color .25s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(78, 90, 165, .35);
}
.btn-primary:hover { background: var(--purple-accent); box-shadow: 0 10px 26px rgba(78, 90, 165, .42); }

.btn-ghost {
  background: #fff;
  color: var(--purple);
  border-color: var(--purple-softer);
}
.btn-ghost:hover { border-color: var(--purple); }

.btn-note {
  font-family: var(--font-body);
  font-size: .68rem;
  font-style: italic;
  opacity: .8;
}

.btn-small { padding: .55rem 1.1rem; font-size: .85rem; border-radius: 10px; }

/* ============ hero ============ */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.18;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -.02em;
  margin: 0 0 1.2rem;
}

.hero h1 .hl { color: var(--purple); }
.hero h1 em { font-weight: 500; }

.hero-sub {
  max-width: 42ch;
  color: #4C4C4C;
  font-size: .95rem;
  margin: 0 0 1.8rem;
}

.muted-note {
  display: block;
  color: var(--muted);
  font-style: italic;
  font-size: .85rem;
  margin-top: .35rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: stretch; }

.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(78, 90, 165, .22); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ how it works ============ */
.how { padding-block: clamp(2.5rem, 7vw, 5.5rem); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.how-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(70, 81, 144, .25);
  aspect-ratio: 10 / 11;
}

.how-media img { width: 100%; height: 100%; object-fit: cover; }

.how-media-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
}

.how-media-text .puff {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 4px 24px rgba(40, 47, 90, .55);
}

.puff-small {
  font-family: var(--font-puff);
  font-size: .95rem;
  margin: 1rem 0 0;
  text-shadow: 0 2px 12px rgba(40, 47, 90, .55);
}

.kicker {
  color: var(--purple);
  font-size: 1.15rem;
  margin: 0 0 .5rem;
}

.how-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -.01em;
  margin: 0 0 1.8rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--purple-soft);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(78, 90, 165, .15);
}

.step-num {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-puff);
  font-size: .95rem;
  margin-top: .15rem;
}

.step h3 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 500; color: var(--heading); }
.step p { margin: 0; font-size: .88rem; color: var(--muted-text); }

/* ============ founder + iceberg ============ */
.founder { padding-block: clamp(2.5rem, 7vw, 5.5rem); }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.founder-copy { text-align: center; }

.founder-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 .3rem;
}

.muted-heading {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0 0 1.8rem;
}

.video-placeholder {
  width: min(320px, 80%);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: var(--purple-softer);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.video-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 44px rgba(78, 90, 165, .22);
}

.play-button {
  width: 0;
  height: 0;
  border-left: 34px solid var(--purple);
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  margin-left: 8px;
  transition: transform .3s ease;
}

.video-placeholder:hover .play-button { transform: scale(1.12); }

.hint {
  color: var(--muted);
  font-style: italic;
  font-size: .85rem;
  max-width: 34ch;
  margin: 1.4rem auto 0;
}

.iceberg {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(70, 81, 144, .22);
}

.iceberg img { width: 100%; height: auto; }

.iceberg-title {
  position: absolute;
  top: 6%;
  left: 6%;
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(40, 47, 90, .6);
}

.iceberg-roles {
  position: absolute;
  right: 6%;
  bottom: 8%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: .35em;
  text-shadow: 0 3px 14px rgba(40, 47, 90, .65);
}

/* roles cascade in once the section is revealed */
.iceberg-roles li {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible .iceberg-roles li { opacity: 1; transform: none; }
.reveal.visible .iceberg-roles li:nth-child(1) { transition-delay: .15s; }
.reveal.visible .iceberg-roles li:nth-child(2) { transition-delay: .3s; }
.reveal.visible .iceberg-roles li:nth-child(3) { transition-delay: .45s; }
.reveal.visible .iceberg-roles li:nth-child(4) { transition-delay: .6s; }
.reveal.visible .iceberg-roles li:nth-child(5) { transition-delay: .75s; }

/* ============ final cta ============ */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: -2;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(70, 81, 144, .78);
  z-index: -1;
}

.cta-title {
  position: relative;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  color: var(--purple);
  margin: 0 0 1.2rem;
  line-height: 1.1;
}

/* white outline behind the purple fill */
.outline-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #fff;
  -webkit-text-stroke: .18em #fff;
}

.cta-sub {
  color: #fff;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.cta-form {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin-inline: auto;
}

.cta-form input {
  flex: 1 1 280px;
  padding: .95rem 1.4rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, .92);
  font-family: var(--font-puff);
  font-size: .95rem;
  color: var(--purple);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.cta-form input::placeholder { color: var(--purple); opacity: .65; }
.cta-form input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }

.cta-form .btn-primary { box-shadow: 0 6px 18px rgba(28, 32, 60, .35); }

.cta-note {
  color: #fff;
  font-size: .8rem;
  font-style: italic;
  margin: 1.1rem 0 0;
  opacity: .9;
}

.cta-success {
  color: #fff;
  font-family: var(--font-puff);
  font-size: 1.3rem;
  margin: 0;
}

/* ============ footer ============ */
.footer { background: var(--bg); padding-block: 2rem; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p { color: var(--muted-text); font-size: .85rem; margin: 0; }

/* ============ scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* parallax images move via JS transform */
[data-parallax] { will-change: transform; }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .hero-grid,
  .how-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .hero-media { order: -1; }

  .how-media { aspect-ratio: 4 / 3; }

  .founder-copy { order: 1; }

  .cta-form .btn-primary { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .container, .nav-inner { width: calc(100% - 2rem); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .iceberg-roles li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn, .step, .video-placeholder { transition: none; }
}
