/* YouTube Mastermind — brand palette, basic system fonts */
:root {
  --red: #E3202B;
  --white: #FFFFFF;
  --black: #000000;
  --blue: #1C6FE8;
  --navy: #0A2A70;
  --deep: #06194A;
  --grey: #2A2A2A;
  --bg: #030B24;
  --mute: #6C83B8;
  --text: #C9D4EE;
  --line: rgba(120, 150, 220, .18);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: Menlo, Consolas, "Courier New", monospace;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
b, strong { color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.mute { color: var(--mute); }
.hl { color: var(--red); }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3, 11, 36, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad);
}
.logo img { height: 34px; width: auto; }
.links { display: flex; gap: 30px; }
.links a {
  font-size: 14px; text-decoration: none; color: var(--mute);
  transition: color .2s;
}
.links a:hover { color: var(--white); }

.status {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.status p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-right { font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; gap: 22px !important; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 0 0 rgba(227, 32, 43, .6);
  animation: pulse 2s infinite;
}
.dot-blue { background: var(--blue); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(227, 32, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 32, 43, 0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px;
  background: var(--red); color: var(--white);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--red);
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: #f2333e; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--white); }
.btn-ghost:hover { background: rgba(28, 111, 232, .14); border-color: var(--blue); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-big { padding: 19px 36px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 130px) var(--pad) clamp(48px, 7vw, 90px);
  background-image: radial-gradient(rgba(120, 150, 220, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 26px;
}
h1 {
  position: relative;
  font-size: clamp(44px, 9.2vw, 132px);
  line-height: .98; letter-spacing: -.045em; font-weight: 700;
  color: var(--white);
  max-width: 12ch;
  text-wrap: balance;
}
.lead {
  position: relative;
  margin-top: 30px; max-width: 34em;
  font-size: clamp(18px, 2vw, 23px); line-height: 1.4; color: var(--mute);
}
.actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.note {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin-top: 30px;
  font-family: var(--mono); font-size: 12px; color: var(--mute);
}

/* decorative play ring */
.ring {
  position: absolute; right: -8vw; top: 50%;
  width: min(62vw, 760px); aspect-ratio: 1; transform: translateY(-50%);
  border: 1px solid rgba(28, 111, 232, .45); border-radius: 50%;
  pointer-events: none;
}
.ring::before {
  content: ""; position: absolute; inset: 13%;
  border: 1px dashed rgba(120, 150, 220, .28); border-radius: 50%;
  animation: spin 60s linear infinite;
}
.ring::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  border-style: solid; border-width: 5.5vw 0 5.5vw 9vw;
  border-color: transparent transparent transparent rgba(227, 32, 43, .9);
  transform: translate(-36%, -50%);
  filter: drop-shadow(0 0 40px rgba(227, 32, 43, .45));
}
.ring span {
  position: absolute; inset: -1px; border-radius: 50%;
  animation: spin 14s linear infinite;
}
.ring span::before {
  content: ""; position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%; background: var(--white);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--deep); }
.ticker-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.ticker span {
  padding: 16px 0; font-family: var(--mono); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--white); white-space: nowrap;
}
.ticker span::after { content: "▶"; color: var(--red); margin: 0 34px; font-size: 10px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 130px) var(--pad); border-bottom: 1px solid var(--line); }
.sec.dots {
  background-image: radial-gradient(rgba(120, 150, 220, .13) 1px, transparent 1px);
  background-size: 26px 26px;
}
.sec-head {
  display: flex; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.sec-head span:first-child::before { content: "● "; color: var(--red); }
h2 {
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 1.02; letter-spacing: -.04em; font-weight: 700; color: var(--white);
  max-width: 16ch; text-wrap: balance;
}
.sec-lead { margin-top: 26px; max-width: 36em; font-size: clamp(17px, 1.7vw, 21px); color: var(--mute); }
h3 { color: var(--white); font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.fine { margin-top: 28px; max-width: 60em; font-size: 12.5px; color: var(--mute); }

/* cards share a look */
.win, .blend article, .traps article, .phase, .gets article, .fit article, .quote, .faq details {
  background: linear-gradient(180deg, rgba(10, 42, 112, .38), rgba(6, 25, 74, .38));
  border: 1px solid var(--line); border-radius: 18px;
}

/* ---------- 01 Video ---------- */
.video {
  position: relative; display: block; margin-top: clamp(28px, 4vw, 52px);
  max-width: 1100px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--deep);
}
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .82; transition: opacity .3s, transform .5s; }
.video:hover img { opacity: 1; transform: scale(1.02); }
.play {
  position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--red);
  box-shadow: 0 0 0 12px rgba(227, 32, 43, .22);
  transition: transform .2s;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff;
}
.video-cap {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(3, 11, 36, .85); color: var(--white);
  font-family: var(--mono); font-size: 12px;
}

/* ---------- 02 Numbers ---------- */
.nums { margin-top: clamp(32px, 5vw, 64px); }
.nums li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: clamp(14px, 2vw, 26px) 0; border-top: 1px solid var(--line);
}
.nums strong {
  font-size: clamp(56px, 12vw, 168px); line-height: .95; letter-spacing: -.05em; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nums li:nth-child(even) strong { color: var(--mute); }
.nums span { font-size: 15px; color: var(--text); }
.nums i, .blend i, .gets i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--blue); margin-right: 12px; }

/* ---------- 03 About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(32px, 5vw, 64px); align-items: center; }
.portrait { border-radius: 22px; border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.about-name { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.about-text p + p { margin-top: 16px; }
.about-text { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; }
.text-link { display: inline-block; margin-top: 26px; color: var(--white); font-weight: 700; text-decoration-color: var(--red); text-underline-offset: 5px; }

/* ---------- 04 Results ---------- */
.wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 64px); }
.win { padding: 24px; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 20px; margin-bottom: 18px;
}
.win:nth-child(even) .avatar { background: var(--red); }
.win-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.win-result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--white); font-size: 18px; line-height: 1.3; }
.quote { margin-top: 14px; padding: clamp(24px, 4vw, 48px); }
.stars { color: var(--red); letter-spacing: 4px; font-size: 18px; }
.quote blockquote { margin-top: 14px; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.02em; color: var(--white); max-width: 30em; }
.quote figcaption { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* ---------- 05 Shift ---------- */
.blend, .gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.blend article, .gets article { padding: 26px; }
.blend h3, .gets h3 { margin: 40px 0 10px; }
.blend p, .gets p, .traps p, .phase > p { color: var(--mute); }
.equals { margin-top: 14px; padding: clamp(24px, 4vw, 44px); border-radius: 18px; background: var(--blue); color: var(--white); font-size: clamp(26px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.equals span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; opacity: .85; }

/* ---------- 06 Problem ---------- */
.more { margin-top: 30px; font-size: clamp(30px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; color: var(--white); }
.more li:nth-child(2) { opacity: .8; } .more li:nth-child(3) { opacity: .6; } .more li:nth-child(4) { opacity: .42; }
.more .strike { color: var(--red); text-decoration: line-through; text-decoration-thickness: .06em; }
.traps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.traps article { padding: 26px; }
.traps h3 { margin-bottom: 10px; }

/* ---------- 07 Roadmap ---------- */
.level {
  position: sticky; top: 112px; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(28px, 4vw, 48px); padding: 12px 18px; border-radius: 999px;
  background: rgba(3, 11, 36, .92); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
}
.level-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(120, 150, 220, .18); overflow: hidden; }
.level-bar b { display: block; height: 100%; width: 0; background: var(--red); border-radius: 6px; transition: width .5s ease; }
.level-num b { color: var(--white); }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.phase { padding: 26px; display: flex; flex-direction: column; transition: border-color .4s, opacity .6s, transform .6s; }
.phase.on { border-color: var(--blue); }
.phase-n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.phase h3 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.03em; margin: 12px 0 14px; }
.phase ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.phase ul li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.gate { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text); }

/* ---------- 08 What you get ---------- */
.cta-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 18px;
  border: 1px solid var(--line); background: var(--deep);
}
.cta-row p { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; color: var(--white); }

/* ---------- 09 Fit ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.fit article { padding: clamp(24px, 3vw, 36px); }
.fit li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); color: var(--text); }
.fit h3 { margin-bottom: 18px; }
.fit li::before { position: absolute; left: 0; top: 12px; font-weight: 700; }
.fit-yes li::before { content: "✓"; color: var(--blue); }
.fit-no li::before { content: "✕"; color: var(--red); }
.fit-no { background: rgba(42, 42, 42, .35) !important; }

/* ---------- 10 FAQ ---------- */
.faq { margin-top: clamp(32px, 5vw, 56px); max-width: 900px; display: grid; gap: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; position: relative;
  color: var(--white); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 28px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 24px; max-width: 44em; color: var(--text); }

/* ---------- Final CTA ---------- */
.final {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(90px, 14vw, 200px) var(--pad);
  background: radial-gradient(ellipse at 50% 120%, rgba(28, 111, 232, .35), transparent 62%);
}
.final > * { position: relative; }
.final h2 { margin-inline: auto; max-width: 13ch; }
.final .lead { margin-inline: auto; }
.final .btn { margin-top: 36px; }
.final .note { justify-content: center; }
.ring-center { position: absolute !important; right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(120vw, 1000px); opacity: .5; }
.ring-center::after { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 44px var(--pad) 56px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer nav a { color: var(--mute); text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.footer .fine { margin-top: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease, border-color .4s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .links { display: none; }
  .status-right { display: none !important; }
  .ring { opacity: .35; width: 110vw; right: -45vw; }
  .about, .blend, .gets, .traps, .fit { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .blend h3, .gets h3 { margin-top: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo img { height: 26px; }
  .phases, .wins { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .status { font-size: 12px; }
  .cta-row .btn { width: 100%; }
  .level { top: 100px; }
  .play { width: 68px; height: 68px; }
  .video-cap { font-size: 10.5px; left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
