:root {
  --navy: #111f39;
  --navy-soft: #1b3156;
  --green: #00d77a;
  --paper: #f7f9f5;
  --ink: #10151f;
  --amber: #f5b84b;
  --line: rgba(17, 31, 57, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

.landing-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 6vw, 96px);
  background: var(--navy);
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }
.header-note { color: rgba(255,255,255,.68); font-size: .9rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  min-height: 760px;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 7vw, 110px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 10% 90%, rgba(0,215,122,.2), transparent 28%),
    linear-gradient(125deg, var(--navy) 0%, var(--navy-soft) 64%, #10243b 100%);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 520px;
  aspect-ratio: 1;
  border: 72px solid rgba(0,215,122,.08);
  border-radius: 50%;
  content: "";
}

.glass-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  transform: perspective(700px) rotateX(58deg) scale(1.35) translateY(22%);
  transform-origin: center bottom;
}

.ambient-orb {
  position: absolute;
  z-index: -1;
  width: clamp(240px, 34vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .28;
  pointer-events: none;
  will-change: transform;
}

.orb-one {
  top: 2%;
  right: 23%;
  background: radial-gradient(circle at 35% 35%, rgba(0,215,122,.85), rgba(0,215,122,0) 68%);
  animation: orb-drift-one 11s ease-in-out infinite alternate;
}

.orb-two {
  bottom: -18%;
  left: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(245,184,75,.48), rgba(245,184,75,0) 70%);
  animation: orb-drift-two 14s ease-in-out infinite alternate;
}

.hero-copy, .signup-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 6.4rem); line-height: .96; letter-spacing: -.055em; }
h1 em { color: var(--green); font-style: normal; }
.lede { max-width: 720px; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, 1.8vw, 1.35rem); }

.hero-pain-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 6px;
}

.hero-pain-line strong {
  padding: 8px 12px;
  border-left: 3px solid var(--amber);
  color: white;
  background: rgba(255,255,255,.07);
  font-size: .92rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  animation: pain-chip-in .6s both;
}

.hero-pain-line strong:nth-child(2) { animation-delay: .08s; }
.hero-pain-line strong:nth-child(3) { animation-delay: .16s; }

.benefits { display: grid; gap: 12px; max-width: 690px; margin: 34px 0; padding: 0; list-style: none; }
.benefits li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.07); }
.benefits span { color: var(--green); font-weight: 900; }
.trust-note { max-width: 680px; color: rgba(255,255,255,.55); font-size: .84rem; }

.signup-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(247,249,245,.82));
  box-shadow: 0 32px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(135%);
}
.card-kicker { margin-bottom: 8px; color: #08784f; font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.signup-card h2 { margin-bottom: 12px; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; }
.signup-card > p { color: #536070; }
form { display: grid; gap: 8px; margin: 26px 0 14px; }
label { margin-top: 6px; color: var(--navy); font-size: .9rem; font-weight: 800; }
label > span { color: #718096; font-weight: 500; }
input, select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #c8d0d8; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus { border-color: #079b63; outline: 3px solid rgba(0,215,122,.18); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 12px 0; font-weight: 500; line-height: 1.35; }
.consent input { width: 19px; min-height: 19px; margin: 1px 0 0; accent-color: #08784f; }
button { position: relative; min-height: 54px; overflow: hidden; padding: 13px 18px; border: 0; border-radius: 10px; color: var(--navy); background: var(--green); box-shadow: 0 12px 30px rgba(0,215,122,.2); font: inherit; font-weight: 900; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
button::after { position: absolute; inset: 0; content: ""; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.48) 48%, transparent 66%); transform: translateX(-120%); transition: transform .55s ease; }
button:hover { background: #24e895; box-shadow: 0 18px 36px rgba(0,215,122,.3); transform: translateY(-2px); }
button:hover::after { transform: translateX(120%); }
button:active { transform: scale(.97); transition-duration: .08s; }
button:disabled { cursor: wait; opacity: .65; transform: none; }
.signup-card small { display: block; color: #6b7280; font-size: .75rem; }

.referral-panel { margin-top: 20px; padding: 18px; border: 1px solid rgba(0, 215, 122, .32); border-radius: 16px; background: rgba(0, 215, 122, .08); }
.referral-panel[hidden] { display: none; }
.referral-panel p { margin: 8px 0; color: #536070; }
.referral-panel input { width: 100%; margin: 6px 0 10px; padding: 11px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.referral-panel button { width: 100%; }
.guide-links { display: grid; gap: 12px; padding: 0; list-style: none; }
.guide-links a { color: var(--navy); font-weight: 800; text-decoration-color: var(--green); text-underline-offset: 4px; }
.form-status { min-height: 1.4em; margin: 4px 0 0; color: #a22727; font-size: .88rem; font-weight: 700; }
.form-status.success { color: #08784f; }

.proof-strip { display: grid; gap: 18px; padding: 32px clamp(20px, 7vw, 110px); background: var(--green); color: var(--navy); }
.proof-strip p { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.proof-strip div { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-strip span { padding: 8px 12px; border: 1px solid rgba(17,31,57,.28); border-radius: 999px; font-weight: 800; }

.pain-sell {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 7vw, 110px);
  color: white;
  background: #0c182d;
}

.pain-sell-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .5fr);
  gap: 24px clamp(40px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.pain-sell-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.pain-sell-heading h2 { margin: 0; font-size: clamp(2.5rem, 5.7vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.pain-sell-heading > p:last-child { margin: 0; color: rgba(255,255,255,.65); font-size: 1.08rem; }

.pain-sell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pain-sell-grid article {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 60px rgba(0,0,0,.14);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.pain-sell-grid article:hover { border-color: rgba(0,215,122,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 28px 70px rgba(0,0,0,.24); }

.pain-sell-grid article:nth-child(2) { border-top-color: var(--amber); }
.pain-sell-grid article:nth-child(3) { border-top-color: var(--green); }
.pain-number { color: var(--green); font-size: 2rem; font-weight: 900; }
.pain-label { margin: 26px 0 10px; color: var(--amber); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pain-sell-grid h3 { margin: 0 0 18px; font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.08; letter-spacing: -.035em; }
.pain-sell-grid article > p:not(.pain-label) { color: rgba(255,255,255,.62); }
.pain-sell-grid article > strong { margin-top: auto; padding-top: 26px; color: var(--green); }

.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); padding: clamp(70px, 9vw, 120px) clamp(20px, 7vw, 110px); }
.story h2 { max-width: 600px; color: var(--navy); font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.story ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.story li { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.story strong { color: var(--navy); font-size: 1.35rem; }
.story span { color: #586373; }
footer p { margin: 0; color: rgba(255,255,255,.65); }

.interactive-glass {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .18s ease-out;
  will-change: transform;
}

.interactive-glass::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.2), transparent 62%);
  transition: opacity .25s ease;
}

.interactive-glass:hover::before { opacity: 1; }
.interactive-glass > * { position: relative; z-index: 1; }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .72s cubic-bezier(.22,1,.36,1);
}

.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }
.motion-ready .pain-sell-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.motion-ready .pain-sell-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }

@keyframes pain-chip-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orb-drift-one {
  from { transform: translate3d(-4%, -2%, 0) scale(.94); }
  to { transform: translate3d(8%, 7%, 0) scale(1.08); }
}

@keyframes orb-drift-two {
  from { transform: translate3d(-3%, 4%, 0) scale(1); }
  to { transform: translate3d(12%, -7%, 0) scale(.9); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .signup-card { max-width: 640px; }
  .pain-sell-heading { grid-template-columns: 1fr; }
  .pain-sell-grid { grid-template-columns: 1fr; }
  .pain-sell-grid article { min-height: 0; }
  .story { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-note { display: none; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero { padding-inline: 18px; }
  .signup-card { padding: 22px 18px; border-radius: 20px; }
  .story li { grid-template-columns: 1fr; gap: 4px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  .interactive-glass { transform: none !important; }
}
