/* Messy Stories — Binge Hub
   Hand-written, single stylesheet. No frameworks, no web fonts. Mobile-first. */

:root {
  --bg:        #0a0a0c;
  --bg-rail:   #0e0e12;
  --card:      #16161c;
  --card-hi:   #1d1d25;
  --line:      #24242e;
  --text:      #f5f5f7;
  --muted:     #9a9aa6;
  --crimson:   #e10b1c;   /* the ONE hot accent — CTA + duration badges only */
  --crimson-d: #b00813;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --maxw: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(10,10,12,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-avatar { border-radius: 50%; flex: none; }
.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-btn {
  flex: none;
  background: #fff;
  color: #0a0a0c;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  padding: 8px 16px;
  border-radius: 999px;
}
.sub-btn:hover { background: #e6e6ea; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 14vw, 130px) 20px clamp(40px, 8vw, 72px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  inset: -40% 0 auto 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(225,11,28,0.32), rgba(225,11,28,0.06) 55%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.hero-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(2.6rem, 12vw, 6rem);
  text-transform: uppercase;
}
.hero-subs {
  margin: 16px 0 28px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.binge-cta {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(225,11,28,0.40);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.binge-cta:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--crimson-d);
  box-shadow: 0 14px 44px rgba(225,11,28,0.55);
}
.binge-cta:active { transform: translateY(0) scale(0.99); }
.hero-note { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- RAILS ---------- */
.rail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 40px) 0 8px;
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 14px;
}
.rail-head h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  text-transform: uppercase;
}
.see-all {
  flex: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color 0.12s ease;
}
.see-all:hover { color: var(--text); }

.rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;        /* momentum on iOS */
  overscroll-behavior-x: contain;
  padding: 4px 16px 18px;
  scrollbar-width: none;                      /* Firefox */
}
.rail-track::-webkit-scrollbar { display: none; }  /* WebKit */

/* ---------- CARD ---------- */
.card {
  flex: 0 0 auto;
  width: 44vw;
  max-width: 300px;
  scroll-snap-align: start;
  transition: transform 0.14s ease;
}
.card:hover { transform: translateY(-4px); }

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.card:hover .card-thumb {
  border-color: var(--card-hi);
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  background: var(--crimson);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card-title {
  margin: 9px 2px 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- FOOTER ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 40px 20px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 30px;
}
.footer-links a {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.12s ease;
}
.footer-links a:hover { color: var(--crimson); }

.signup { max-width: 380px; margin: 0 auto 28px; }
.signup-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.signup-row { display: flex; gap: 8px; }
.signup-row input {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.92rem;
  font-family: inherit;
}
.signup-row input::placeholder { color: #5c5c66; }
.signup-row button {
  flex: none;
  background: var(--card-hi);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  font-family: inherit;
  padding: 11px 16px;
  cursor: not-allowed;
}
.signup-soon {
  display: inline-block;
  margin-top: 9px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5c5c66;
}
.footer-meta { color: #5c5c66; font-size: 0.8rem; margin: 8px 0 0; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 560px) {
  .card { width: 30vw; }
}
@media (min-width: 900px) {
  .card { width: 240px; }
  .rail-track { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .card, .binge-cta { transition: none; }
}
