/* ============================================================
   Nate's Founding Members — VSL Landing Page
   Mobile-first. Organized: tokens → reset → layout → header →
   hero/VSL → social-proof → closing → footer → responsive.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #000000;
  --bg-muted: #06140f;          /* muted dark green for the proof band */
  --text: #ffffff;
  --text-dim: #9db3aa;          /* desaturated green-gray */
  --accent: #248b68;            /* wealth green */
  --accent-bright: #2ea67d;     /* hover / glow core */
  --hairline: rgba(36, 139, 104, 0.18);
  --hairline-strong: rgba(36, 139, 104, 0.34);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --container: 1000px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --shadow-glow: 0 0 40px rgba(36, 139, 104, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, p { margin: 0; }

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

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; z-index: 1; }

/* Forced line break that only applies on mobile */
.br-mobile { display: none; }
.footer-break { display: none; }
/* Forced line break that only applies on desktop/laptop (>=769px) */
.br-desktop { display: none; }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons — wealth-green chrome, beveled ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 1.05rem 2.4rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.btn--primary {
  color: #eafff6;
  background: linear-gradient(180deg,
    #3aa77e 0%,
    #1f7f5c 8%,
    #0d5539 36%,
    #083d2a 50%,
    #0a4832 58%,
    #17714f 86%,
    #2f9673 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 5px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(36, 139, 104, 0.22);
}
.btn--primary:hover { filter: brightness(1.12); box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -2px 5px rgba(0, 0, 0, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(36, 139, 104, 0.4); }
.btn--primary:hover .btn__arrow { transform: translateX(3px); }
.btn--primary:active { transform: translateY(1px); }
.btn__arrow { transition: transform 0.2s ease; font-weight: 700; }

.btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ============================================================
   AMBIENT HERO BACKGROUND
   ============================================================ */
.hero-ambient {
  position: absolute;
  inset: 0 0 auto 0;
  height: 140vh;
  min-height: 900px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* faint chart-style grid */
.hero-ambient__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 12%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 12%, #000 30%, transparent 78%);
}
/* wealth-green glow suggesting a rising P&L curve */
.hero-ambient__glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 45%,
    rgba(46, 166, 125, 0.30) 0%,
    rgba(36, 139, 104, 0.16) 34%,
    transparent 66%);
  filter: blur(20px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.9; }
  to   { transform: translateX(-50%) translateY(26px) scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ambient__glow { animation: none; }
}

/* ============================================================
   STICKY APPLY BAR (VSL page) — translucent, slides in on scroll
   ============================================================ */
.apply-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 20, 15, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.apply-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.apply-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.apply-bar__logo { width: clamp(92px, 24vw, 128px); height: auto; }
.apply-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eafff6;
  background: linear-gradient(180deg,
    #3aa77e 0%, #1f7f5c 10%, #0d5539 46%, #0a4832 60%, #2f9673 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 0.6rem 1.1rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: filter 0.2s ease;
}
.apply-bar__cta:hover { filter: brightness(1.1); }
.apply-bar__cta:hover .apply-bar__arrow { transform: translateX(3px); }
.apply-bar__arrow { transition: transform 0.2s ease; }
.apply-bar__cta:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .apply-bar { transition: opacity 0.3s ease; }
}

/* ============================================================
   A. HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(2.25rem, 6vw, 3.25rem) var(--gutter) 0.5rem;
}
.site-header__logo {
  width: clamp(120px, 30vw, 168px);
  height: auto;
}

/* Deter casual right-click "save / open image in new tab" and drag-out on the
   logo (header, footer, sticky bars). Not real protection — the file is still
   reachable via devtools / the direct asset URL — just a friction layer.
   pointer-events:none lets the click fall through to the wrapping link, and
   keeps the browser's image context menu from appearing. */
.site-header__logo,
.site-footer__logo,
.apply-bar__logo {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
          user-select: none;
}

/* ============================================================
   B. HERO + VSL
   ============================================================ */
.hero { padding: 1.5rem 0 clamp(3rem, 8vw, 5.5rem); }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.4vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-top: clamp(0.5rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

/* Green highlight for the opening phrase */
.hl-green { color: var(--accent-bright); }

/* Red underline under "Revenge Trading & Blown accounts" */
.hl-underline {
  text-decoration: underline;
  text-decoration-color: #7c1420;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Signature: "payout readout" — mono, green, faint glow */
.payout {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(46, 166, 125, 0.5);
}

.hero__subhead {
  color: var(--text-dim);
  font-size: clamp(1.125rem, 3vw, 1.4rem);
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

/* VSL frame — aspect-locked */
.hero__video { width: 100%; }
.video-frame {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(180deg, var(--hairline-strong), var(--hairline));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(36, 139, 104, 0.14);
}
.video-frame__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #030907;
}
.video-frame__inner > iframe,
.video-frame__inner > video,
.video-frame__inner > wistia-player,
.video-frame__inner > div:not(.video-placeholder) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Highly-visible placeholder (remove when embed is added) */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, rgba(36,139,104,0.06) 0 14px, transparent 14px 28px),
    radial-gradient(120% 120% at 50% 40%, rgba(36,139,104,0.16), #030907 70%);
  border: 1px dashed var(--hairline-strong);
  border-radius: 10px;
}
.video-placeholder__badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent-bright);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}
.video-placeholder__hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* CTA block */
.hero__cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
}

/* Trust note under the hero CTA */
.hero__note {
  max-width: 40ch;
  margin: 1.1rem auto 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}
.hero__note-icon {
  width: 15px;
  height: 15px;
  vertical-align: -0.2em;
  margin-right: 0.35em;
  color: var(--accent-bright);
}
.hero__note-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   C. SOCIAL PROOF
   ============================================================ */
.proof {
  background: var(--bg);
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}
.proof__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.4vw, 2.35rem);
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* Green-bordered container holding the result boxes, on black */
.proof__panel {
  border: 1px solid var(--hairline-strong);
  border-radius: 22px;
  padding: clamp(1.1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(36, 139, 104, 0.07), rgba(36, 139, 104, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 60px rgba(36, 139, 104, 0.12);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* mobile: 2 cols of payout tiles */
  gap: clamp(0.6rem, 2.5vw, 1.1rem);
}
.proof-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: linear-gradient(180deg, #0b0b0b, #050505);
  padding: 0.4rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.proof-card:hover {
  border-color: var(--hairline-strong);
  box-shadow: 0 0 30px rgba(36, 139, 104, 0.16);
  transform: translateY(-2px);
}
.proof-card__media {
  position: relative;
  aspect-ratio: 10 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #040d09;
  display: grid;
  place-items: center;
}
.proof-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.proof-card__placeholder {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  padding: 0 1rem;
}
.proof-card__text {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.85rem;
}

/* ============================================================
   D. FINAL CTA PANEL — metallic headline + copy + button
   ============================================================ */
.final {
  background: var(--bg);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.cta-panel {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 52%, #000 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* White headline (the "be a part of the team…" line) — Montserrat, matching the inspiration */
.cta-panel__title {
  font-family: "Montserrat", var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 22ch;
  color: var(--text);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  text-wrap: balance;
}
.cta-panel__copy {
  max-width: 48ch;
  margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.cta-panel__copy p { font-size: clamp(1rem, 2.6vw, 1.125rem); line-height: 1.6; }

/* ============================================================
   E. FOOTER — premium
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(36, 139, 104, 0.1);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.25rem);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 1.5rem);
}
.site-footer__logo { width: clamp(80px, 20vw, 100px); height: auto; opacity: 0.7; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.1rem;
}
.site-footer__links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(157, 179, 170, 0.62);
  transition: color 0.2s ease;
}
.site-footer__links a:hover { color: rgba(255, 255, 255, 0.9); }
.site-footer__links a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-footer__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(157, 179, 170, 0.35);
}
.site-footer__disclaimer {
  max-width: 62ch;
  margin: 0.35rem auto 0;
  font-size: 0.68rem;
  line-height: 1.7;
  color: rgba(157, 179, 170, 0.5);
  text-align: center;
}

@media (max-width: 560px) {
  .site-footer__sep { display: none; }
  .site-footer__links { gap: 0.55rem 1rem; }
  .footer-break { display: block; flex-basis: 100%; width: 100%; height: 0; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Mobile (< 480px) */
@media (max-width: 480px) {
  /* Final-panel CTA stays full-width inside its panel */
  .final .btn--primary { width: 100%; }

  /* Hero CTA shrinks to align with the first line of the note below it */
  .hero__cta {
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
  .hero__cta .btn--primary { width: auto; padding-inline: 1.6rem; }

  .br-mobile { display: inline; }
}

/* Tablet / phablet: 481–768px → 2-col proof grid */
@media (min-width: 481px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Laptop: 769–1024px → 3-col proof grid */
@media (min-width: 769px) {
  .proof__grid { grid-template-columns: repeat(3, 1fr); }
  .br-desktop { display: inline; }
}

/* Desktop: > 1024px — container already caps width */
@media (min-width: 1025px) {
  .hero { padding-top: 2rem; }
}

/* ---------- Featured full proof image (payout-amounts table), shared VSL + pre-call ---------- */
.proof-card--featured {
  grid-column: 1 / -1;
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 0.3rem;
}
.proof-card--featured:hover { transform: none; box-shadow: none; }
.proof-card__media--full {
  aspect-ratio: auto;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
}
.proof-card__media--full img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
