/* ============================================================
   Million View System — main.css
   Shared design system: tokens, components, layout
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  --black: #000000;
  --grey: #e1e1e1;
  --blue: #1551ef;
  --white: #ffffff;

  /* derived shades */
  --ink: #0a0a0a;
  --grey-soft: #f4f4f4;
  --grey-line: #d2d2d2;
  --muted: #6b6b6b;
  --blue-dark: #0e3bb0;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

h1 + p, h2 + p, h1 + .lead, h2 + .lead { margin-top: 1rem; }

p { margin-bottom: 1rem; }

.accent { color: var(--blue); }
.lead { font-size: 1.18rem; color: #2a2a2a; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
  display: block;
}

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

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey-soft); }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.center { text-align: center; }
.measure { max-width: 720px; margin-inline: auto; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  padding: 1.15rem 2.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.18s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(21, 81, 239, 0.32);
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--light {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--lg { padding: 1.35rem 3rem; font-size: 1.12rem; }
.btn--block { display: flex; width: 100%; }

/* ---- Header / nav ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
  white-space: nowrap;
}
.brand .dot { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn--primary,
.nav-links a.btn--primary:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--black);
}

/* ---- Hero ------------------------------------------------- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(70px, 11vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(21, 81, 239, 0.42), transparent 68%);
  top: -180px;
  right: -160px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 16ch; margin-bottom: 1.4rem; }
.hero p { color: rgba(255, 255, 255, 0.78); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---- Hero reel visual ------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 2.8rem;
  align-items: center;
}
.hero-grid h1 { max-width: 15ch; }
.hero-copy .lead { max-width: 46ch; }

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}
.hero-cluster { position: relative; width: 296px; }

.hero-reel {
  width: 296px;
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 32% 24%, rgba(21, 81, 239, 0.55), transparent 56%),
    linear-gradient(160deg, #1d1d1d, #050505 72%);
  transform: rotate(-4deg);
  box-shadow: 0 44px 84px rgba(0, 0, 0, 0.62);
  animation: hero-bob 4s ease-in-out infinite;
}
.reel-tex {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}
.reel-play {
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.72);
  display: flex; align-items: center; justify-content: center;
}
.reel-play::after {
  content: ''; border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.reel-rail {
  position: absolute; right: 11px; bottom: 92px; z-index: 2;
  display: flex; flex-direction: column; gap: 15px; align-items: center;
}
.reel-rail .stack { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.reel-rail .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.reel-rail span { color: #fff; font-size: 0.62rem; font-weight: 600; }
.reel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 13px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.reel-handle {
  color: #fff; font-weight: 700; font-size: 0.86rem;
  display: flex; align-items: center; gap: 7px;
}
.reel-handle .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); flex: none;
}

.views-badge {
  position: absolute; top: 22px; left: -50px; z-index: 5;
  background: #fff; color: #0a0a0a; border-radius: 14px;
  padding: 11px 17px 11px 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
  animation: hero-bob 4s ease-in-out infinite 0.4s;
}
.views-badge .pp {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.views-badge .pp::after {
  content: ''; border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.views-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
  transition: transform 0.12s ease;
}
.views-num.tick { transform: scale(1.13); }
.views-label {
  display: block;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

.hero-chip {
  position: absolute; z-index: 6;
  font-weight: 700; font-size: 0.84rem;
  padding: 9px 14px; border-radius: 11px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  opacity: 0;
  animation: hero-pop 5s ease infinite;
}
.hero-chip .d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hero-chip--white { background: #fff; color: #0a0a0a; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.hero-chip--blue { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(21, 81, 239, 0.45); }
.hero-chip.c1 { top: 96px; right: -30px; }
.hero-chip.c2 { bottom: 120px; left: -34px; animation-delay: 2.5s; }

@keyframes hero-bob { 50% { translate: 0 -14px; } }
@keyframes hero-pop {
  0%   { opacity: 0; transform: scale(0.5) translateY(8px); }
  6%   { opacity: 1; transform: scale(1.08) translateY(0); }
  11%  { transform: scale(1); }
  28%  { opacity: 1; transform: scale(1); }
  36%  { opacity: 0; transform: scale(0.92); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reel, .views-badge { animation: none; }
  .hero-chip { animation: none; opacity: 1; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-grid h1, .hero-copy .lead { max-width: 100%; }
  .hero-stage { min-height: 0; }
}
@media (max-width: 420px) {
  .hero-cluster, .hero-reel { width: 252px; }
  .views-badge { left: -22px; }
  .hero-chip.c1 { right: -12px; }
  .hero-chip.c2 { left: -16px; }
}

/* ---- Number / stat strip ---------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 1.8rem 1.2rem;
  text-align: center;
}
.section--dark .stat { background: var(--ink); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue);
  line-height: 1;
}
.stat .label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.section--dark .stat .label { color: rgba(255, 255, 255, 0.6); }

/* ---- Card grids ------------------------------------------- */
.grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--blue);
  line-height: 1;
}
.card h3 { margin: 0.6rem 0 0.5rem; }
.card p { color: var(--muted); margin: 0; }

/* ---- Guarantee badge -------------------------------------- */
.guarantee {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.6rem 2.8rem;
}
.guarantee .seal {
  font-family: var(--font-display);
  font-size: 1.55rem;
  flex: none;
  width: 132px;
  height: 132px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}
.guarantee-text { flex: 1; }
.guarantee h3 { color: var(--white); margin-bottom: 0.55rem; }
.guarantee p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ---- Video wrapper (16:9) --------------------------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video iframe,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #161616, #000);
  text-align: center;
  padding: 1.5rem;
}
.video-placeholder .play {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder .play::before {
  content: '';
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.video-placeholder small { letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Forms ------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--grey-line);
  border-radius: 8px;
  background: var(--white);
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 81, 239, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: none;
}
.form-status.is-error {
  display: block;
  background: #fdeaea;
  color: #b3261e;
}
.form-status.is-success {
  display: block;
  background: #e7f3ea;
  color: #1c7a33;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- Two-column block ------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ---- Check list ------------------------------------------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.checklist li {
  position: relative;
  padding-left: 2.1rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- CTA band --------------------------------------------- */
.cta-band {
  background: var(--blue);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .btn--light { border-color: var(--white); }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
  font-size: 0.95rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 320px; margin-top: 0.6rem; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-cols h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-cols a { color: rgba(255, 255, 255, 0.7); }
.footer-cols a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Funnel layout (no nav, focused) ---------------------- */
.funnel-body { background: var(--black); }
.funnel-bar {
  text-align: center;
  padding: 0.95rem 1.4rem;
}
.funnel-bar .brand { color: var(--white); }
.funnel-main { padding: 0 0 70px; }
.funnel-card {
  background: var(--white);
  border-radius: 14px;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  box-shadow: var(--shadow);
}
.funnel-narrow { max-width: 620px; }

/* VSL — keep the headline, video and CTA above the fold */
.funnel-card h1 { font-size: clamp(2rem, 3.5vw, 2.85rem); }
.funnel-card .steps { margin-bottom: 0.8rem; }
.video-embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}
@media (min-width: 700px) {
  .funnel-card .video-embed {
    max-width: min(60vh, 680px);
    margin-left: auto;
    margin-right: auto;
  }
}

.steps {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.steps span {
  width: 46px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.steps span.is-active { background: var(--blue); }
.steps span.is-done { background: rgba(255, 255, 255, 0.55); }

/* ---- Legal pages ------------------------------------------ */
.legal { max-width: 800px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.2rem 0 0.8rem; }
.legal p,
.legal li { color: #333; }
.legal ul { padding-left: 1.3rem; }
.page-head {
  background: var(--black);
  color: var(--white);
  padding: clamp(56px, 8vw, 90px) 0;
}
.page-head h1 { color: var(--white); }
.page-head p { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* ---- Utilities -------------------------------------------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--grey-line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--grey-line); }
  .nav-links a { display: block; padding: 1rem 24px; }
  .nav-links .btn { margin: 1rem 24px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .footer-top { flex-direction: column; }
}
