:root {
  --green: #34c759;
  --green-deep: #0f5a32;
  --green-dark: #071d12;
  --green-black: #041009;
  --mint: #bff4ce;
  --mint-light: #eaf8ef;
  --off-white: #f8f9fa;
  --white: #ffffff;
  --ink: #1c1c1e;
  --muted: #69726d;
  --border: rgba(28, 28, 30, 0.1);
  --page-pad: clamp(24px, 6vw, 96px);
  --content: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--green-dark);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  min-height: 920px;
  height: 100svh;
  max-height: 1080px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 14, 8, 0.98) 0%, rgba(4, 22, 12, 0.91) 29%, rgba(4, 20, 11, 0.22) 63%, rgba(4, 17, 9, 0.1) 100%),
    linear-gradient(0deg, rgba(4, 16, 9, 0.8) 0%, transparent 30%),
    url("assets/foreshape-hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(7, 29, 18, 0.72));
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(100%, var(--content));
  transform: translateX(-50%);
  padding: 30px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon,
.closing-icon {
  display: block;
  object-fit: cover;
  border-radius: 24%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.brand-icon {
  width: 44px;
  height: 44px;
}

.download-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: var(--white);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  background: #f3fff6;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.download-button:active {
  transform: translateY(0) scale(0.98);
}

.download-button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.download-button--compact {
  min-height: 50px;
  padding: 0 21px;
  gap: 9px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.download-button--compact .apple-mark {
  width: 19px;
  height: 19px;
}

.hero-content {
  width: min(100%, var(--content));
  height: 100%;
  margin: 0 auto;
  padding: 190px var(--page-pad) 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--mint);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow--green {
  color: var(--green-deep);
}

.hero h1,
.manifesto h2,
.lightness h2,
.community h2,
.closing h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(72px, 8.1vw, 132px);
  text-wrap: balance;
}

.hero-lead {
  max-width: 560px;
  margin: 36px 0 38px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.download-button--hero {
  min-width: 202px;
  min-height: 66px;
  padding: 9px 24px;
  gap: 13px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.apple-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  flex: 0 0 auto;
}

.apple-mark svg {
  width: 100%;
  height: 100%;
}

.download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.download-copy small {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.download-copy strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-glow--one {
  top: -18%;
  right: 10%;
  width: 480px;
  height: 480px;
  background: rgba(52, 199, 89, 0.16);
}

.hero-glow--two {
  bottom: -20%;
  left: 15%;
  width: 430px;
  height: 430px;
  background: rgba(52, 199, 89, 0.1);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 88%;
  right: -4%;
  bottom: -3%;
  opacity: 0.38;
  pointer-events: none;
}

.hero-orbit path {
  stroke: rgba(191, 244, 206, 0.65);
  stroke-width: 1.25;
}

.hero-orbit path + path {
  opacity: 0.45;
}

.hero-caption {
  position: absolute;
  right: var(--page-pad);
  bottom: 44px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(52, 199, 89, 0.14);
  animation: pulse 2.6s ease-out infinite;
}

.section-pad {
  padding: clamp(110px, 12vw, 190px) var(--page-pad);
}

.manifesto {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(52, 199, 89, 0.13), transparent 34%),
    linear-gradient(180deg, var(--mint-light) 0%, #f7fcf9 38%, var(--white) 100%);
}

.manifesto-intro {
  max-width: 1080px;
  margin: 0 auto clamp(90px, 10vw, 150px);
  text-align: center;
}

.manifesto h2,
.lightness h2 {
  font-size: clamp(54px, 7vw, 108px);
}

.manifesto h2 span,
.lightness h2 span {
  color: var(--green);
}

.manifesto-copy {
  max-width: 690px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.65;
}

.momentum-field {
  position: relative;
  width: min(100%, 1320px);
  height: clamp(530px, 48vw, 660px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(52, 199, 89, 0.16);
  border-radius: clamp(28px, 4vw, 58px);
  background:
    radial-gradient(circle at 76% 26%, rgba(52, 199, 89, 0.2), transparent 28%),
    linear-gradient(135deg, #071d12 0%, #0a2b1a 52%, #0d3a22 100%);
  box-shadow: 0 50px 120px rgba(15, 90, 50, 0.18);
}

.field-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, #000 20%, #000);
}

.field-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
}

.field-aura--one {
  width: 360px;
  height: 360px;
  right: 2%;
  top: -25%;
  background: rgba(52, 199, 89, 0.15);
}

.field-aura--two {
  width: 280px;
  height: 280px;
  left: 12%;
  bottom: -30%;
  background: rgba(191, 244, 206, 0.1);
}

.momentum-curve {
  position: absolute;
  left: 1.5%;
  bottom: 4%;
  width: 96%;
}

.momentum-curve .curve-line {
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.momentum-field.is-visible .curve-line {
  stroke-dashoffset: 0;
}

.momentum-curve .curve-shadow {
  stroke: rgba(52, 199, 89, 0.11);
  stroke-width: 34;
  stroke-linecap: round;
}

.momentum-curve circle {
  fill: var(--mint);
  stroke: rgba(52, 199, 89, 0.28);
  stroke-width: 12;
}

.signal {
  position: absolute;
  z-index: 2;
  min-width: 132px;
  padding: 13px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(15px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.signal span,
.signal strong {
  display: block;
}

.signal span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.signal--one {
  left: 13%;
  bottom: 27%;
}

.signal--two {
  left: 44%;
  top: 39%;
}

.signal--three {
  right: 5%;
  top: 13%;
}

.field-statement {
  position: absolute;
  top: 10%;
  left: 7%;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(21px, 2.1vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.field-statement strong {
  color: var(--white);
  font-weight: 600;
}

.word-stream {
  padding: 28px 0;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
}

.word-stream-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: stream 26s linear infinite;
}

.word-stream i {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: var(--green-dark);
  opacity: 0.48;
}

.lightness {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 82%, rgba(52, 199, 89, 0.13), transparent 34%),
    var(--white);
}

.lightness-layout {
  position: relative;
  z-index: 3;
  width: min(100%, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.55fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
}

.lightness-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.65;
}

.lightness-orb {
  position: absolute;
  right: -180px;
  top: 70px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(52, 199, 89, 0.19);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 72px rgba(234, 248, 239, 0.62),
    inset 0 0 0 74px rgba(52, 199, 89, 0.08);
}

.motion-ribbons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  overflow: hidden;
}

.ribbon {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 260px;
  border-radius: 50%;
  transform: rotate(-7deg);
}

.ribbon--one {
  bottom: -182px;
  border: 2px solid rgba(52, 199, 89, 0.43);
}

.ribbon--two {
  bottom: -132px;
  border: 1px solid rgba(15, 90, 50, 0.22);
}

.ribbon--three {
  bottom: -82px;
  border: 1px solid rgba(52, 199, 89, 0.12);
}

.community {
  position: relative;
  min-height: 820px;
  height: 86svh;
  overflow: hidden;
  color: var(--white);
  background: var(--green-dark);
}

.community > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.community.is-visible > img {
  transform: scale(1);
}

.community-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 9, 0.92) 0%, rgba(4, 16, 9, 0.55) 37%, rgba(4, 16, 9, 0.04) 70%),
    linear-gradient(0deg, rgba(4, 16, 9, 0.55), transparent 45%);
}

.community-copy {
  position: absolute;
  z-index: 2;
  left: max(var(--page-pad), calc((100% - var(--content)) / 2 + var(--page-pad)));
  top: 50%;
  max-width: 760px;
  transform: translateY(-50%);
}

.community h2 {
  font-size: clamp(58px, 6.8vw, 108px);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.community-line {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 3%;
  pointer-events: none;
}

.community-line svg {
  width: 100%;
}

.community-line path {
  stroke: rgba(191, 244, 206, 0.6);
  stroke-width: 2;
}

.closing {
  position: relative;
  min-height: 820px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 110%, rgba(52, 199, 89, 0.22), transparent 39%),
    linear-gradient(145deg, #071d12, #0b2b1b 57%, #071d12);
}

.closing-content {
  position: relative;
  z-index: 3;
}

.closing-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 42px;
}

.closing h2 {
  margin-bottom: 50px;
  font-size: clamp(64px, 8vw, 124px);
}

.closing .download-button {
  margin: 0 auto;
}

.closing-orbit {
  position: absolute;
  border: 1px solid rgba(191, 244, 206, 0.11);
  border-radius: 50%;
}

.closing-orbit--one {
  width: 720px;
  height: 720px;
}

.closing-orbit--two {
  width: 1050px;
  height: 1050px;
}

.site-footer {
  min-height: 94px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  background: var(--green-black);
  font-size: 12px;
  letter-spacing: 0.035em;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 800ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.36);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(52, 199, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}

@keyframes stream {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 840px;
    max-height: none;
    background:
      linear-gradient(0deg, rgba(3, 14, 8, 0.98) 0%, rgba(3, 14, 8, 0.8) 49%, rgba(3, 14, 8, 0.18) 78%),
      url("assets/foreshape-hero.jpg") 68% center / cover no-repeat;
  }

  .hero-content {
    padding-top: 360px;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(66px, 16vw, 106px);
  }

  .hero-lead {
    margin: 26px 0 30px;
  }

  .hero-caption {
    display: none;
  }

  .manifesto-intro {
    text-align: left;
  }

  .manifesto-copy {
    margin-left: 0;
  }

  .lightness-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lightness-note {
    max-width: 580px;
  }

  .community {
    min-height: 760px;
  }

  .community > img {
    object-position: 60% center;
  }

  .community-overlay {
    background:
      linear-gradient(0deg, rgba(4, 16, 9, 0.9) 0%, rgba(4, 16, 9, 0.55) 55%, rgba(4, 16, 9, 0.05) 100%);
  }

  .community-copy {
    top: auto;
    right: var(--page-pad);
    bottom: 14%;
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 20px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .download-button--compact {
    min-height: 44px;
    padding: 0 16px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 330px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(62px, 18vw, 82px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .section-pad {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .manifesto h2,
  .lightness h2 {
    font-size: clamp(48px, 13.2vw, 68px);
  }

  .manifesto-copy {
    font-size: 17px;
  }

  .momentum-field {
    height: 580px;
  }

  .momentum-curve {
    left: -22%;
    bottom: 6%;
    width: 145%;
  }

  .field-grid {
    background-size: 42px 42px;
  }

  .signal {
    min-width: 112px;
    padding: 11px 13px;
  }

  .signal strong {
    font-size: 15px;
  }

  .signal--one {
    left: 5%;
    bottom: 22%;
  }

  .signal--two {
    left: 42%;
    top: 50%;
  }

  .signal--three {
    right: 5%;
    top: 25%;
  }

  .field-statement {
    top: 8%;
    left: 7%;
  }

  .word-stream {
    padding: 21px 0;
  }

  .lightness {
    min-height: 700px;
  }

  .lightness-orb {
    width: 420px;
    height: 420px;
    right: -230px;
    top: 240px;
  }

  .community {
    min-height: 700px;
    height: 82svh;
  }

  .community > img {
    object-position: 59% center;
  }

  .community h2 {
    font-size: clamp(52px, 14vw, 72px);
  }

  .closing {
    min-height: 720px;
  }

  .closing h2 {
    font-size: clamp(58px, 15.5vw, 80px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

  .momentum-curve .curve-line {
    stroke-dashoffset: 0;
  }
}
