/* Popcorn marketing landing — cinema amber on charcoal (M219) */

:root {
  --bg: #0e0c0a;
  --bg-elevated: #171410;
  --ink: #f6f1e8;
  --ink-muted: #b9aea0;
  --accent: #e6b84d;
  --accent-deep: #c4922e;
  --line: rgba(246, 241, 232, 0.12);
  --chrome: #4285f4;
  --chrome-ink: #ffffff;
  --radius-pill: 999px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(230, 184, 77, 0.16), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(180, 70, 40, 0.12), transparent 50%),
    var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #f0c96a;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: #1a1408;
  border-radius: 0.4rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(14, 12, 10, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a:not(.btn) {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.header-nav a:not(.btn):hover {
  color: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-chrome {
  background: var(--chrome);
  color: var(--chrome-ink);
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.28);
}

.btn-chrome:hover {
  background: #5a95f5;
  color: var(--chrome-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(246, 241, 232, 0.35);
  color: var(--ink);
}

.btn-compact {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.chrome-icon {
  flex-shrink: 0;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.55) 0%, rgba(14, 12, 10, 0.92) 72%, var(--bg) 100%),
    url("media/00-platforms-promo-1280x800.png") center / cover no-repeat;
  opacity: 0.45;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero-inner {
  max-width: 40rem;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--accent);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-lede {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 34rem;
  animation: rise 0.9s var(--ease) 0.14s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s var(--ease) 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lede {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.demo {
  border-top: 1px solid var(--line);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Features + carousel */

.features {
  border-top: 1px solid var(--line);
}

.carousel {
  margin-top: 0.25rem;
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.carousel-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.04);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}

.carousel-btn:hover {
  background: rgba(230, 184, 77, 0.12);
  border-color: rgba(230, 184, 77, 0.45);
}

.carousel-btn:active {
  transform: scale(0.96);
}

.carousel-viewport {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  padding-bottom: 0.25rem;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(220px, 42vh, 420px);
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(246, 241, 232, 0.04), transparent 55%),
    var(--bg-elevated);
}

.carousel-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.45rem;
}

.carousel-slide figcaption {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  text-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s var(--ease);
}

.carousel-dot[aria-selected="true"] {
  background: var(--accent);
  transform: scale(1.25);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Install */

.install {
  border-top: 1px solid var(--line);
  text-align: center;
}

.install-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.install .section-lede {
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
}

.footer-disclaimer {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  max-width: 40rem;
}

@media (max-width: 720px) {
  .header-nav a:not(.btn) {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-atmosphere,
  .brand-mark,
  .hero h1,
  .hero-lede,
  .hero-cta,
  .btn,
  .carousel-viewport {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .carousel-viewport {
    scroll-behavior: auto;
  }
}
