:root {
  --ink: #0b0c0e;
  --ink-soft: #15171a;
  --panel: #1b1d20;
  --cream: #f3efe7;
  --muted: #aca9a2;
  --amber: #f5a623;
  --amber-bright: #ffbd4a;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1180px;
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, min-height .3s ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(11, 12, 14, .88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand { width: 174px; justify-self: start; }
.brand img { width: 100%; height: auto; }

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding: 12px 15px;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 6px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-nav a:hover, .site-nav a.active { color: white; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .site-nav a:focus-visible, .action-card:focus-visible, .text-link:focus-visible, .back-to-top:focus-visible {
  outline: 3px solid var(--amber-bright);
  outline-offset: 4px;
}

.button-small { min-height: 42px; padding: 0 18px; font-size: .82rem; }
.header-cta { justify-self: end; border-color: var(--line); background: rgba(255,255,255,.06); }
.header-cta:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-art, .hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  background: url("assets/danflix-hero.webp") center / cover no-repeat;
  transform: scale(1.035);
  will-change: transform;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,5,7,.98) 0%, rgba(4,5,7,.88) 35%, rgba(4,5,7,.28) 70%, rgba(4,5,7,.45) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -18vw;
  bottom: -45vw;
  z-index: -1;
  width: 80vw;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 166, 35, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(245,166,35,.025), 0 0 0 14vw rgba(245,166,35,.018);
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 100px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--amber-bright);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 24px;
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

h1 { max-width: 820px; font-size: clamp(3.4rem, 7.3vw, 7.2rem); }
h2 { font-size: clamp(2.6rem, 5vw, 5.4rem); }

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255,255,255,.68);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-primary { background: var(--amber); color: var(--ink); }
.button-primary:hover { background: var(--amber-bright); }
.button-ghost { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.11); }

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.scroll-cue {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 38px;
  display: flex;
  gap: 12px;
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span:last-child { animation: bounce 1.8s infinite; }

.section {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 160px) 0;
}

.section-heading { max-width: 770px; margin-bottom: 50px; }
.section-heading > p:last-child, .discover-copy > p:last-child, .request-copy > p { color: var(--muted); font-size: 1.08rem; }

.action-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-soft);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background .3s ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% 20%;
  height: 80%;
  background: radial-gradient(circle, rgba(245,166,35,.18), transparent 68%);
  opacity: 0;
  transition: opacity .3s ease;
}

.action-card:hover { transform: translateY(-8px); border-color: rgba(245,166,35,.55); background: #1d1f22; }
.action-card:hover::before { opacity: 1; }
.action-card-featured { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.action-card-featured:hover { background: var(--amber-bright); }
.action-card-featured::before { display: none; }

.card-number { color: currentColor; font-size: .72rem; font-weight: 900; letter-spacing: .16em; opacity: .55; }
.card-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: auto 0 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.2rem;
  opacity: .75;
}

.card-copy { display: flex; flex-direction: column; gap: 5px; }
.card-copy strong { font-size: 1.25rem; }
.card-copy small { color: currentColor; font-size: .9rem; opacity: .62; }
.card-arrow { position: absolute; right: 28px; bottom: 28px; font-size: 1.2rem; transition: transform .2s ease; }
.action-card:hover .card-arrow { transform: translate(3px, -3px); }

.discover-section { width: 100%; max-width: none; padding-inline: clamp(20px, 4vw, 64px); }
.discover-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 8vw, 110px);
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 90px);
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 8% 5%, rgba(245,166,35,.13), transparent 35%),
    #111315;
}

.discover-copy { align-self: center; }
.discover-copy h2 { font-size: clamp(2.6rem, 4.6vw, 5rem); }
.stat-links { display: grid; gap: 12px; }
.stat-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.stat-links a:hover { transform: translateX(5px); border-color: rgba(245,166,35,.5); background: rgba(255,255,255,.065); }
.stat-kicker { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stat-links strong { grid-row: 2; font-size: 1.5rem; }
.stat-links a > span:last-child { grid-column: 2; grid-row: 1 / 3; color: var(--amber); font-size: 1.3rem; }

.request-section {
  display: grid;
  min-height: 640px;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.request-copy { position: relative; z-index: 1; max-width: 800px; }
.request-copy p { max-width: 540px; margin-inline: auto; }
.request-orbit {
  position: absolute;
  width: min(72vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgba(245,166,35,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(245,166,35,.02), 0 0 0 160px rgba(245,166,35,.015);
}

.request-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 24px var(--amber);
  transform: translateX(-50%);
  animation: orbit 12s linear infinite;
  transform-origin: 5px calc(min(36vw, 390px) + 5px);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--amber);
  color: var(--amber-bright);
  font-weight: 800;
  text-decoration: none;
}

.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.support-section {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: clamp(70px, 8vw, 110px) max(20px, calc((100vw - var(--max)) / 2));
  background: var(--amber);
  color: var(--ink);
}

.support-section .section-heading { max-width: 700px; margin: 0; }
.support-section .eyebrow, .support-section .section-heading > p:last-child { color: rgba(11,12,14,.66); }
.support-section h2 { margin-bottom: 20px; }
.support-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 10px; }
.button-light { background: var(--ink); color: white; }
.button-light:hover { background: #292b2f; }
.button-outline-light { border-color: rgba(11,12,14,.35); color: var(--ink); }
.button-outline-light:hover { border-color: var(--ink); background: rgba(255,255,255,.22); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 30px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.footer-brand { color: var(--amber); font-weight: 950; letter-spacing: .08em; text-decoration: none; }
.site-footer p { margin: 0; color: var(--muted); font-size: .82rem; }
.back-to-top { justify-self: end; border: 0; background: transparent; color: var(--cream); cursor: pointer; font-weight: 800; }
.back-to-top span { display: inline-block; margin-left: 8px; color: var(--amber); transition: transform .2s ease; }
.back-to-top:hover span { transform: translateY(-3px); }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes orbit { to { transform: translateX(-50%) rotate(360deg); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .js .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(11,12,14,.65);
    cursor: pointer;
  }
  .js .menu-toggle > span:not(.sr-only) { display: block; width: 18px; height: 2px; background: white; transition: transform .25s ease, opacity .2s ease; }
  .js .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .js .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 100px 32px 50px;
    background: rgba(11,12,14,.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .site-nav a { padding: 12px 0; font-size: clamp(2rem, 10vw, 4rem); letter-spacing: -.04em; }
  .js .site-nav a::after { display: none; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 250px; }
  .discover-panel { grid-template-columns: 1fr; }
  .support-section { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .brand { width: 145px; }
  .hero-content { padding-top: 120px; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,5,7,.94), rgba(4,5,7,.56)), linear-gradient(0deg, var(--ink), transparent 45%); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .discover-section { padding-inline: 12px; }
  .discover-panel { padding: 38px 24px; border-radius: 28px; }
  .support-actions, .support-actions .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
