/* Not A Trading Guru: site styles (home, mentorship, playbook, journal and their result pages).
   Brand: near-black, warm gold glow, ivory Archivo, house gold #E2C285 + vivid gold gradient
   #FFF1C8 -> #F2C14E -> #C8862B (the logo's ring). No red anywhere in the UI.
   No inline styles anywhere (the CSP has no 'unsafe-inline'); the font is self-hosted. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* 1. Tokens ------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg: #050304;
  --bg-2: #0b0806;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(226, 194, 133, 0.18);
  --line-strong: rgba(226, 194, 133, 0.42);
  --ivory: #f6f5f2;
  --text: #e9e4da;
  --muted: #b3aa9c;
  --subtle: #8c8377;
  --gold: #e2c285;
  --gold-hi: #f4dca6;
  --gold-deep: #b8873a;
  --on-gold: #140d05;
  --focus: #f4dca6;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 76rem;
  --measure: 40rem;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
/* warm studio light + faint gold chart grid, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70rem 40rem at 78% -10%, rgba(226, 194, 133, 0.13), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(184, 135, 58, 0.08), transparent 60%),
    linear-gradient(180deg, #0a0705 0%, var(--bg) 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 194, 133, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 194, 133, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 75%);
}
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 150ms ease; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }

.container { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1 0 auto; }

/* 3. Top bar ----------------------------------------------------------- */
.topbar { border-bottom: 1px solid rgba(226, 194, 133, 0.1); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; border-radius: 6px; }
.brand__logo { display: block; height: 2.5rem; width: auto; transition: filter 200ms ease; }
.brand:hover .brand__logo { filter: drop-shadow(0 0 10px rgba(242, 193, 78, 0.35)); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; border-radius: 8px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; color: var(--on-gold); }
.nav { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* 4. Hero -------------------------------------------------------------- */
.hero { display: flex; align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero__title {
  margin-top: 1.1rem;
  color: var(--ivory);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(246, 245, 242, 0.12), 0 18px 40px rgba(0, 0, 0, 0.6);
}
.gold {
  background: linear-gradient(180deg, #fff1cf 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(226, 194, 133, 0.28));
}
.hero__lead { margin-top: 1.4rem; max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; }

/* fact chips: only things Ivan actually says */
.facts { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.facts li {
  border: 1px solid var(--line);
  background: rgba(226, 194, 133, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* 5. Form -------------------------------------------------------------- */
.signup {
  margin-top: 2rem;
  max-width: 34rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.signup__label { display: block; margin-bottom: 0.55rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.signup__row { display: grid; gap: 0.7rem; }
.signup__input {
  width: 100%;
  min-width: 0;
  height: 3.4rem;
  padding: 0 1.1rem;
  font: inherit;
  font-size: max(16px, 1.0625rem);
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(226, 194, 133, 0.28);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.signup__input::placeholder { color: var(--subtle); opacity: 1; }
.signup__input:hover { border-color: var(--line-strong); }
.signup__input:focus-visible { outline: 2px solid transparent; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226, 194, 133, 0.18); }
.consent { margin-top: 0.85rem; color: var(--subtle); font-size: 0.78rem; line-height: 1.5; overflow-wrap: anywhere; }
.consent a { color: var(--muted); }
.consent a:hover { color: var(--ivory); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 6. Buttons ----------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0 1.6rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #c9a061 100%);
  border: 1px solid rgba(255, 236, 190, 0.6);
  border-radius: 10px;
  box-shadow: 0 10px 30px -10px rgba(226, 194, 133, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms ease, filter 150ms ease;
}
.button:hover { color: var(--on-gold); filter: brightness(1.06); box-shadow: 0 14px 38px -10px rgba(226, 194, 133, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.button:active { transform: translateY(1px); }
.button--ghost {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  box-shadow: none;
}
.button--ghost:hover { color: var(--ivory); background: rgba(226, 194, 133, 0.08); box-shadow: none; }
.button__meta { font-weight: 600; opacity: 0.7; font-size: 0.86rem; white-space: nowrap; }

/* 7. Visuals ----------------------------------------------------------- */
.visual { position: relative; display: grid; place-items: center; min-height: 18rem; }
.visual::before {
  /* gold light pool under the object */
  content: "";
  position: absolute;
  width: 80%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(226, 194, 133, 0.22), transparent 65%);
  filter: blur(20px);
}
.sheet {
  position: relative;
  border-radius: 6px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(226, 194, 133, 0.25), 0 0 60px rgba(226, 194, 133, 0.12);
}
.stack { position: relative; width: min(100%, 25rem); aspect-ratio: 900 / 1273; }
.stack .sheet { position: absolute; width: 100%; }
.stack .sheet--back { transform: rotate(5deg) translate(9%, 2%); opacity: 0.55; filter: blur(0.5px) brightness(0.7); }
.stack .sheet--front { transform: rotate(-2.5deg); }
.screen {
  position: relative;
  width: min(100%, 30rem);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 194, 133, 0.3);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 60px rgba(226, 194, 133, 0.14);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
}
.screen__bar { display: flex; gap: 6px; padding: 10px 12px; background: #120d09; border-bottom: 1px solid rgba(226, 194, 133, 0.15); }
.screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(226, 194, 133, 0.35); }
.strip {
  position: relative;
  width: min(100%, 30rem);
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 194, 133, 0.22);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateX(-6%);
}
.caption { margin-top: 1.4rem; text-align: center; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--subtle); }

/* 8. Feature rows ------------------------------------------------------ */
.features { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.features__grid { display: grid; gap: 1rem; }
.feature { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature__n { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; }
.feature__t { margin-top: 0.5rem; color: var(--ivory); font-size: 1.1rem; font-weight: 750; letter-spacing: -0.01em; }
.feature__d { margin-top: 0.35rem; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }

/* 9. Result pages (download, thanks, 404) ------------------------------ */
.result { display: flex; align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.result__card {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
}
.result__card::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.result__title { margin-top: 0.9rem; color: var(--ivory); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.result__body { margin-top: 0.9rem; color: var(--muted); }
.result__actions { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; }
.result__actions .button { width: 100%; }
.steps { margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.6rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.6rem; color: var(--muted); font-size: 0.95rem; }
.steps li::before {
  content: counter(s);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(226, 194, 133, 0.14);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}
.divider { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(226, 194, 133, 0.12); color: var(--muted); font-size: 0.95rem; }

/* 10. Privacy ---------------------------------------------------------- */
.prose { padding-block: 3rem 4rem; overflow-wrap: anywhere; }
.prose h1 { color: var(--ivory); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.prose h2 { margin-top: 2.6rem; color: var(--gold); font-size: 1.1rem; font-weight: 750; }
.prose p { margin-top: 0.9rem; color: var(--muted); }
.prose .prose__meta { margin-top: 0.7rem; color: var(--subtle); font-size: 0.9rem; }
.prose .prose__back { margin-top: 2.6rem; }

/* 10b. Home: logo hero -------------------------------------------------- */
.brand-hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem); text-align: center; isolation: isolate; overflow-x: clip; }
.brand-hero::before {
  /* the warm glow behind his logo */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  width: min(62rem, 100%);
  height: 40rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(242, 160, 60, 0.2), rgba(120, 66, 14, 0.1) 55%, transparent 100%);
  pointer-events: none;
}
.brand-hero__in { display: flex; flex-direction: column; align-items: center; }
.brand-hero__logo { width: min(100%, 36rem); line-height: 0; }
.hero-logo { display: block; width: 100%; height: auto; overflow: visible; }
.hero-logo .nt-mark { filter: drop-shadow(0 0 22px rgba(242, 193, 78, 0.28)); }
.hero-logo .nt-word { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.brand-hero__tagline {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ivory);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.brand-hero__sub { margin-top: 0.9rem; max-width: 36rem; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; justify-content: center; }
.cta-row--center { margin-top: 2.2rem; }

/* 10c. Home: sections ----------------------------------------------------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid rgba(226, 194, 133, 0.08); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__title {
  margin-top: 0.9rem;
  color: var(--ivory);
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.muted { color: var(--subtle); font-weight: 600; }

/* gurus vs here */
.versus { display: grid; gap: 0.6rem; }
.versus__row { display: grid; gap: 0.6rem; }
.versus__cell { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.05rem 1.2rem; border-radius: 12px; font-size: 1rem; line-height: 1.5; }
.versus__cell--guru { color: var(--subtle); background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); }
.versus__cell--here { color: var(--text); background: linear-gradient(180deg, rgba(226, 194, 133, 0.09), rgba(226, 194, 133, 0.03)); border: 1px solid var(--line); }
.versus__row--head .versus__cell { padding-block: 0.2rem; background: none; border: 0; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }
.versus__row--head .versus__cell--here { color: var(--gold); }
.versus__row--head .versus__cell--guru { color: var(--subtle); }
/* little marks: a muted "no" ring (the logo's ring, small) and a gold tick */
.no-mark, .yes-mark { flex: none; position: relative; width: 1.15rem; height: 1.15rem; margin-top: 0.18rem; }
.no-mark { border: 2px solid rgba(179, 170, 156, 0.55); border-radius: 50%; }
.no-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 2px; background: rgba(179, 170, 156, 0.55); transform: translate(-50%, -50%) rotate(-28deg); }
.yes-mark { border-radius: 50%; background: linear-gradient(135deg, #fff1c8, #f2c14e 55%, #c8862b); box-shadow: 0 0 14px rgba(242, 193, 78, 0.35); }
.yes-mark::after { content: ""; position: absolute; left: 0.37rem; top: 0.2rem; width: 0.3rem; height: 0.55rem; border: solid var(--on-gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* the five framework pages */
.framework { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.framework__step {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.framework__step::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, #c8862b, #f2c14e 50%, #fff1c8); opacity: 0.85; }
.framework__n { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.24em; }
.framework__t { margin-top: 0.55rem; color: var(--ivory); font-size: 1.02rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; }
.framework__d { margin-top: 0.55rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.pull { margin: clamp(2.2rem, 5vw, 3.4rem) auto 0; max-width: 46rem; text-align: center; }
.pull blockquote { margin: 0; }
.pull p { color: var(--ivory); font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; text-wrap: balance; }
.pull p::before, .pull p::after { color: var(--gold); }
.pull p::before { content: "\201C"; }
.pull p::after { content: "\201D"; }
.pull figcaption { margin-top: 0.9rem; color: var(--subtle); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* free downloads */
.downloads { display: grid; gap: 1rem; }
.download {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.3rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  color: inherit;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}
.download:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 40px rgba(226, 194, 133, 0.08); }
.download__media { border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(226, 194, 133, 0.25); }
.download__media img { width: 100%; }
.download__media--screen { border-radius: 8px; }
.download__meta { color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.download__t { margin-top: 0.4rem; color: var(--ivory); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.download__d { margin-top: 0.4rem; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.download__go { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.8rem; color: var(--gold); font-size: 0.92rem; font-weight: 750; }
.download__go::after { content: ""; width: 0.45rem; height: 0.45rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform 200ms var(--ease); }
.download:hover .download__go::after { transform: translateX(3px) rotate(45deg); }

/* mentorship (home) */
.section--mentor { scroll-margin-top: 1rem; }
.mentor-points { display: grid; gap: 0.8rem; }
.mentor-points .feature__t { font-size: 1.1rem; }

/* 11. Footer ----------------------------------------------------------- */
.site-footer { padding-block: 1.4rem; border-top: 1px solid rgba(226, 194, 133, 0.1); color: var(--subtle); font-size: 0.8rem; line-height: 1.55; overflow-wrap: anywhere; }
.site-footer__in { display: flex; gap: 1.1rem; align-items: flex-start; }
.site-footer__icon { flex: none; width: 2.2rem; height: 2.2rem; margin-top: 0.1rem; }
.site-footer__brand { color: var(--muted); font-weight: 700; margin-bottom: 0.35rem; }
.site-footer p + p { margin-top: 0.3rem; }
.site-footer__legal { margin-top: 0.3rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ivory); }

/* 12. Responsive ------------------------------------------------------- */
@media (max-width: 40em) {
  .topbar__in { flex-direction: column; gap: 0.6rem; padding-block: 0.9rem; }
  .brand__logo { height: 2.1rem; }
  .nav { gap: 1.4rem; justify-content: center; }
  .nav a { font-size: 0.82rem; }
  .screen, .strip { transform: none; }
  .visual { min-height: 0; }
}
@media (min-width: 34em) {
  .signup__row { grid-template-columns: 1fr auto; }
  .result__actions { flex-direction: row; flex-wrap: wrap; }
  .result__actions .button { width: auto; }
}
@media (min-width: 48em) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .versus__row { grid-template-columns: 1fr 1fr; }
  .downloads { grid-template-columns: 1fr 1fr; }
  .download { grid-template-columns: 9rem 1fr; }
  .framework { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 47.99em) {
  .versus__row--head { display: none; }
  .versus__row { margin-top: 0.4rem; }
}
@media (min-width: 60em) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
  .framework { grid-template-columns: repeat(5, 1fr); }
}

/* 13. Motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .visual, .result__card { animation: rise 700ms var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; }
  .hero__copy > :nth-child(5) { animation-delay: 240ms; }
  .visual { animation-delay: 200ms; animation-duration: 1000ms; }

  /* Logo load: words rise, the gold ring draws itself, the candles grow, then the slash cuts
     through the ring. Only the "from" states live in keyframes, so without CSS the logo is complete. */
  .hero-logo .nt-n, .hero-logo .nt-t, .hero-logo .nt-a, .hero-logo .nt-word--bottom,
  .hero-logo .nt-trading__word, .hero-logo .nt-line { transform-box: fill-box; }
  .hero-logo .nt-n { animation: nt-rise 700ms var(--ease) both; }
  .hero-logo .nt-t { animation: nt-rise 700ms var(--ease) 90ms both; }
  .hero-logo .nt-a { animation: nt-rise 700ms var(--ease) 180ms both; }
  .hero-logo .nt-ring { stroke-dasharray: 795; animation: nt-ring 1000ms cubic-bezier(0.65, 0, 0.35, 1) 200ms both; }
  .hero-logo .nt-candle { animation: nt-fade 520ms ease both; } /* opacity only: a transform here left the 3rd candle unpainted in Chrome */
  .hero-logo .nt-candle--1 { animation-delay: 900ms; }
  .hero-logo .nt-candle--2 { animation-delay: 1020ms; }
  .hero-logo .nt-candle--3 { animation-delay: 1140ms; }
  .hero-logo .nt-slash { stroke-dasharray: 241; animation: nt-slash 420ms cubic-bezier(0.7, 0, 0.3, 1) 1500ms both; }
  .hero-logo .nt-line--l { transform-origin: 100% 50%; animation: nt-line 700ms var(--ease) 650ms both; }
  .hero-logo .nt-line--r { transform-origin: 0% 50%; animation: nt-line 700ms var(--ease) 650ms both; }
  .hero-logo .nt-trading__word { animation: nt-fade 700ms ease 750ms both; }
  .hero-logo .nt-word--bottom { animation: nt-rise 800ms var(--ease) 420ms both; }
  .hero-logo .nt-mark { animation: nt-flash 900ms ease 1650ms both; }
  .brand-hero__tagline { animation: rise 700ms var(--ease) 1300ms both; }
  .brand-hero__sub { animation: rise 700ms var(--ease) 1450ms both; }
  .brand-hero .cta-row { animation: rise 700ms var(--ease) 1600ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nt-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes nt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nt-ring { from { stroke-dashoffset: 795; } to { stroke-dashoffset: 0; } }
@keyframes nt-slash { from { stroke-dashoffset: 241; } to { stroke-dashoffset: 0; } }
@keyframes nt-grow { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes nt-line { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes nt-flash {
  0% { filter: drop-shadow(0 0 22px rgba(242, 193, 78, 0.28)); }
  35% { filter: drop-shadow(0 0 34px rgba(255, 220, 140, 0.6)); }
  100% { filter: drop-shadow(0 0 22px rgba(242, 193, 78, 0.28)); }
}
@media (forced-colors: active) {
  .button, .signup__input, .result__card { border: 1px solid CanvasText; }
  .gold { color: CanvasText; background: none; }
}

/* Mentorship spot counter (assets/spots.js) */
.spots { margin-top: 1.4rem; }
.spots[hidden] { display: none; }
.spots__label { color: var(--muted); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.spots__n { color: var(--gold); font-size: 1.25rem; font-weight: 800; margin-right: 0.15rem; }
.spots__pips { display: flex; gap: 0.35rem; margin-top: 0.6rem; }
.spots__pips i { flex: 1 1 0; max-width: 2.2rem; height: 0.42rem; border-radius: 999px; }
.spots__pips .is-open { background: linear-gradient(90deg, #F4DCA6, #E2C285 55%, #B8873A); box-shadow: 0 0 10px rgba(242, 193, 78, 0.35); }
.spots__pips .is-taken { background: rgba(226, 194, 133, 0.14); }

/* Mentorship page: his "Your Mentorship" image as the hero background (fades into the page, no frame) */
.hero--mentor { position: relative; overflow: hidden; isolation: isolate; min-height: min(46rem, 92vh); }
.hero--mentor > .wrap { position: relative; z-index: 1; }
.hero__bg {
  position: absolute; z-index: 0; top: 50%; right: 0; transform: translateY(-50%);
  width: min(60vw, 72rem); aspect-ratio: 1672 / 941;
  background: url("/assets/img/mentorship-ivan.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
@media (max-width: 59.99em) {
  .hero--mentor { flex-direction: column; min-height: 0; padding-top: 0; }
  .hero__bg { position: relative; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 1672 / 941;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .hero--mentor > .wrap { margin-top: -3rem; }
}
