/* ============================================================
   REDBOOM — landing styles
   Brand: light, energetic, red-first. boom = взрывной рост.
   ============================================================ */

:root {
  /* palette — Uniqlo-style vivid red + clean white */
  --red: #FF0019;
  --red-deep: #D60016;
  --red-soft: #FFE5E8;
  --red-tint: #FFF3F4;
  --ink: #111111;
  --ink-2: #222226;
  --muted: #6B6B73;
  --line: #EAEAEC;
  --white: #FFFFFF;
  --paper: #FAFAFA;

  /* type */
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

::selection { background: var(--red); color: #fff; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* highlight word */
.hl { color: var(--red); position: relative; white-space: nowrap; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease, backdrop-filter .4s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 28px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-word {
  font-family: var(--f-display); font-weight: 800; font-size: 22px;
  letter-spacing: -.02em;
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 4px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex: none;
}
.logo-mark::after {
  content: "R";
  font-family: var(--f-display); font-weight: 800; font-size: 17px;
  color: #fff; line-height: 1; margin-top: -1px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--red); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-body); font-weight: 600; font-size: 16px;
  color: #fff; background: var(--red);
  border: none; border-radius: 999px;
  padding: 15px 26px; cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(255,0,25,.6);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  will-change: transform;
}
.btn:hover { background: var(--red-deep); box-shadow: 0 16px 38px -10px rgba(255,0,25,.75); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 11px 20px; font-size: 14px; box-shadow: 0 8px 22px -8px rgba(255,0,25,.55); }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: clip;
}
.boom-glow {
  position: absolute; z-index: 0; pointer-events: none;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 1100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,0,25,.22) 0%, rgba(255,0,25,.10) 32%, rgba(255,0,25,0) 62%);
  filter: blur(8px);
}
.boom-glow-2 { top: auto; bottom: -40%; opacity: .8; }

.hero-inner { position: relative; z-index: 2; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--red-deep);
  background: var(--red-soft); border: 1px solid rgba(215,0,34,.14);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,0,25,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,0,25,.55); }
  70% { box-shadow: 0 0 0 10px rgba(255,0,25,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,25,0); }
}

.hero-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 6vw, 72px); line-height: 1.04;
  letter-spacing: -.03em; margin-bottom: 26px;
  text-wrap: balance;
}
.hero-title .line { display: block; }

.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted);
  max-width: 620px; margin: 0 auto 38px;
}

/* form */
.waitlist-form { max-width: 520px; margin: 0 auto; }
.waitlist-form input {
  font-family: var(--f-body); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 15px 22px; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist-form input::placeholder { color: #9a9aa2; }
.waitlist-form input:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.waitlist-form input.invalid { border-color: var(--red-deep); box-shadow: 0 0 0 4px rgba(215,0,34,.12); }

#hero-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#hero-form input { flex: 1; min-width: 240px; }
#hero-form .btn { white-space: nowrap; }
.form-note { flex-basis: 100%; font-size: 13px; color: #9a9aa2; margin-top: 4px; }

/* hero stat */
.hero-stat { margin-top: 64px; }
.hero-stat-row {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-weight: 800; color: var(--ink);
}
.stat-num { font-size: clamp(44px, 7vw, 76px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.stat-pct { font-size: clamp(28px, 4vw, 44px); color: var(--red); align-self: flex-start; margin-top: .25em; }
.stat-arrow { color: var(--red); display: inline-flex; }
.stat-label { font-family: var(--f-body); font-weight: 600; font-size: clamp(16px, 2vw, 22px); color: var(--ink-2); }
.stat-cap { font-size: 15px; color: var(--muted); max-width: 460px; margin: 16px auto 0; }

/* ============ SECTIONS ============ */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-kicker {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.06;
  letter-spacing: -.025em; margin-bottom: 56px; max-width: 16ch;
}

/* ============ PROBLEM ============ */
.problem { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(11,11,13,.18); border-color: var(--red-soft); }
.p-num {
  font-family: var(--f-display); font-weight: 800; font-size: 52px;
  color: var(--red); line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.p-icon {
  font-size: 40px; line-height: 1; margin-bottom: 18px; color: var(--red);
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--red-tint); border-radius: 16px;
}
.p-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 21px; margin-bottom: 12px; letter-spacing: -.01em; }
.p-card p { color: var(--muted); font-size: 15.5px; }
.problem-punch {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(22px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.02em;
  margin-top: 56px; max-width: 22ch;
}
.strike { position: relative; color: var(--muted); }
.strike::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 3px;
  background: var(--red); border-radius: 2px; transform: rotate(-2deg);
}

/* ============ HOW ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-line {
  position: absolute; top: 38px; left: 8%; right: 8%; height: 2px;
  background: var(--line); z-index: 0;
}
.step-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-deep)); }
.step {
  position: relative; z-index: 1;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 36px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(11,11,13,.18); border-color: var(--red-soft); }
.step-badge {
  font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step:nth-child(2) .step-badge { background: var(--red); }
.step:nth-child(3) .step-badge { background: var(--red); }
.step:nth-child(4) .step-badge { background: var(--ink); }
.step-ico { font-size: 36px; margin-bottom: 14px; line-height: 1; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px; }
.step-lead { font-weight: 600; color: var(--ink-2); margin-bottom: 12px; font-size: 16px; }
.step p:not(.step-lead) { color: var(--muted); font-size: 15.5px; }
.step code { font-family: var(--f-mono); font-size: 13px; background: var(--red-tint); color: var(--red-deep); padding: 1px 7px; border-radius: 6px; }

/* ============ WHY ============ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 60px; }
.why-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.why-card::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, var(--red-tint), transparent 70%); opacity: 0; transition: opacity .3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(11,11,13,.18); border-color: var(--red-soft); }
.why-card:hover::before { opacity: 1; }
.why-tag {
  font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--red);
  display: block; margin-bottom: 16px;
}
.why-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: -.02em; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 16px; position: relative; }

/* compare */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.compare-col { padding: 36px 34px; }
.compare-old { background: var(--paper); }
.compare-new { background: var(--red); color: #fff; }
.compare-col h4 {
  font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 22px;
}
.compare-old h4 { color: var(--muted); }
.compare-new h4 { color: #fff; opacity: .8; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compare-col li { position: relative; padding-left: 30px; font-size: 16.5px; }
.compare-old li { color: var(--muted); }
.compare-new li { color: #fff; font-weight: 500; }
.compare-old li::before { content: "✕"; position: absolute; left: 0; color: #c2c2ca; font-weight: 700; }
.compare-new li::before { content: "✓"; position: absolute; left: 0; color: #fff; font-weight: 700; }

/* ============ CHANNELS MARQUEE ============ */
.channels { background: var(--red); color: #fff; padding: 30px 0; overflow: clip; }
.marquee { display: flex; white-space: nowrap; overflow: clip; max-width: 100%; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -.01em; will-change: transform;
}
.marquee-track .sep { font-size: .5em; opacity: .55; }

/* ============ WAITLIST ============ */
.waitlist { text-align: center; position: relative; overflow: clip; background: var(--paper); border-top: 1px solid var(--line); }
.waitlist-inner { position: relative; z-index: 2; }
.waitlist h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 22px;
}
.waitlist-sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 auto 40px; }
.waitlist-form-big { max-width: 640px; }
.waitlist-form-big .form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.waitlist-form-big .form-row input { flex: 1; min-width: 0; }
.waitlist-form-big .btn { width: 100%; }
.waitlist-form-big .form-note { text-align: center; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #fff; padding: 64px 0 56px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer .logo-word { color: #fff; }
.footer-tagline { color: #b9b9c2; font-size: 16px; }
.footer-meta { font-family: var(--f-mono); font-size: 13px; color: #6e6e78; letter-spacing: .04em; }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; z-index: 9000;
  background: var(--ink); color: #fff; padding: 16px 24px; border-radius: 999px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.4);
  transition: transform .5s cubic-bezier(.2,.9,.2,1);
}
.toast.show { transform: translate(-50%, 0); }
.toast-ico {
  width: 26px; height: 26px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.toast-text { font-weight: 500; font-size: 15px; }

/* ============ REVEAL (GSAP-driven, with no-JS fallback) ============ */
.reveal, .reveal-up { will-change: transform, opacity; }
.js .reveal, .js .reveal-up { opacity: 0; }
.js .reveal-up { transform: translateY(28px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .problem-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .compare { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .waitlist-form-big .form-row { flex-direction: column; }
  .hero { padding-top: 120px; }
  .hero-stat-row { flex-wrap: wrap; justify-content: center; }

  /* anti-overflow guards for narrow phones */
  .hero-title, .section-title, .waitlist h2, .problem-punch {
    overflow-wrap: break-word; text-wrap: pretty;
  }
  .hero-title { font-size: clamp(28px, 8.5vw, 44px); }
  .eyebrow { white-space: normal; max-width: 100%; text-align: left; }
  .stat-num { font-size: clamp(40px, 12vw, 56px); }
  .stat-arrow svg { width: 56px; }
}

html { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-up { opacity: 1; transform: none; }
}
