/* ═══════════════════════════════════════════════════════
   BEATYESTERDAY — CINEMATIC LANDING PAGE
   "The app is efficiency. The landing page is CINEMA."
   ═══════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #070707;
  color: #F5F5F5;
  font-family: 'Satoshi', 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; color: inherit; cursor: pointer; font: inherit; }
img { max-width: 100%; display: block; }

/* ── Design Tokens ── */
:root {
  --color-bg: #070707;
  --color-surface-1: #111111;
  --color-surface-2: #181818;
  --color-border: #2a2a2a;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #999999;
  --color-text-muted: #555555;
  --color-accent: #E63946;
  --color-accent-dim: rgba(230, 57, 70, 0.12);
  --color-accent-hover: #FF4654;
  --font-display: 'Bebas Neue', 'Anton', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ═══ FILM GRAIN ═══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(7,7,7,0.9) 0%, transparent 100%);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--scrolled {
  background: rgba(7,7,7,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.nav__logo-accent { color: var(--color-accent); }

.nav__cta {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav__cta:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  box-shadow: 0 0 20px rgba(230,57,70,0.15);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 32px;
}

/* Hero video/image background layer */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap video,
.hero__video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-placeholder {
  background: linear-gradient(135deg, #0a0a0a 0%, #111 40%, #0d0d0d 100%);
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,7,7,0.5) 0%, rgba(7,7,7,0.2) 40%, rgba(7,7,7,0.7) 80%, #070707 100%),
    radial-gradient(ellipse at center bottom, rgba(230,57,70,0.08) 0%, transparent 60%);
}

.hero__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 65%);
  border-radius: 50%;
  animation: glowPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(245,245,245,0.06) 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 60%, rgba(245,245,245,0.04) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(230,57,70,0.06) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 15%, rgba(245,245,245,0.05) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 45%, rgba(230,57,70,0.04) 50%, transparent 100%);
  animation: particleDrift 20s linear infinite;
  pointer-events: none;
}

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

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.hero__line {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  line-height: 0.85;
  display: block;
}

.hero__line--1 {
  font-size: clamp(90px, 20vw, 220px);
  color: var(--color-text-primary);
  text-shadow: 0 0 80px rgba(245,245,245,0.06);
}

.hero__line--2 {
  font-size: clamp(90px, 20vw, 220px);
  color: var(--color-accent);
  text-shadow: 0 0 100px rgba(230,57,70,0.3), 0 0 200px rgba(230,57,70,0.1);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 52px;
  background: var(--color-accent);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero__cta:hover {
  transform: scale(1.03);
  background: var(--color-accent-hover);
  box-shadow: 0 8px 40px rgba(230,57,70,0.35);
}

.hero__cta:hover::before { opacity: 1; }
.hero__cta:active { transform: scale(0.97); }

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
}

/* ═══ SECTIONS (SHARED) ═══ */
.section {
  position: relative;
  padding: 140px 32px;
  overflow: hidden;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__inner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.section__body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 32px;
}

/* ═══ MEGA TEXT ═══ */
.mega-text {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.mega-text--muted { color: var(--color-text-muted); }
.mega-text--center { text-align: center; }
.mega-text--accent {
  color: var(--color-accent);
  text-shadow: 0 0 80px rgba(230,57,70,0.2);
}

/* ═══ PROBLEM SECTION ═══ */
.section--problem {
  border-top: 1px solid var(--color-border);
}

.section--problem .section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem__visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.problem__image,
.problem__image-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}

.problem__image-placeholder {
  background: linear-gradient(160deg, #0e0e0e 0%, #1a1a1a 40%, #0f0f0f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--color-border);
}

.problem__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg), transparent 50%);
}

/* Placeholder labels */
.placeholder__label {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.placeholder__desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ═══ PHILOSOPHY SECTION ═══ */
.section--philosophy {
  padding: 180px 32px;
  border-top: 1px solid var(--color-border);
}

.philosophy__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: philosophyGlow 6s ease-in-out infinite;
  pointer-events: none;
}

.section__body--philosophy {
  font-style: italic;
  position: relative;
  z-index: 2;
}

/* ═══ IDENTITY SECTION ═══ */
.section--identity {
  padding: 180px 32px;
  border-top: 1px solid var(--color-border);
}

.identity__list { margin-bottom: 40px; }

.identity__item {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 150px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
}

.identity__item:hover {
  color: var(--color-accent);
  text-shadow: 0 0 60px rgba(230,57,70,0.25);
}

.identity__item--small {
  font-size: clamp(24px, 4vw, 56px);
  color: var(--color-text-secondary);
  margin-top: 24px;
  line-height: 1.05;
}

.identity__item--small:hover {
  color: var(--color-text-primary);
  text-shadow: none;
}

.identity__ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(230,57,70,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245,245,245,0.02) 0%, transparent 50%);
  pointer-events: none;
  animation: ambientShift 12s ease-in-out infinite alternate;
}

/* ═══ PRODUCT SECTION ═══ */
.section--product {
  border-top: 1px solid var(--color-border);
}

.section--product .section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product__features {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.product__feature { display: flex; flex-direction: column; }

.product__feature-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--color-accent);
  line-height: 1;
}

.product__feature-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.product__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Inline PR mockup (no image needed) */
.product__mockup-placeholder {
  position: relative;
  z-index: 2;
  width: 280px;
  border-radius: 32px;
  padding: 60px 24px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.mockup__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.mockup__badge {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  padding: 6px 16px;
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 999px;
  background: var(--color-accent-dim);
}

.mockup__exercise {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-top: 16px;
}

.mockup__number {
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 1;
  color: var(--color-text-primary);
  text-shadow: 0 0 60px rgba(230,57,70,0.3);
  margin: 8px 0;
}

.mockup__delta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #4CAF50;
  letter-spacing: 0.06em;
}

.product__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

/* ═══ CULTURE SECTION ═══ */
.section--culture {
  border-top: 1px solid var(--color-border);
  padding-bottom: 80px;
}

.culture__grid {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 0 32px;
}

.culture__item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

.culture__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.culture__item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.culture__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0e0e0e 0%, #1a1a1a 50%, #0f0f0f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--color-border);
  min-height: 180px;
}

.culture__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,0.6), transparent 50%);
  pointer-events: none;
}

/* ═══ CTA SECTION ═══ */
.section--cta {
  padding: 220px 32px;
  position: relative;
  border-top: 1px solid var(--color-border);
}

.cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(230,57,70,0.07) 0%, transparent 55%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 200px);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin-bottom: 28px;
  z-index: 2;
  position: relative;
  text-shadow: 0 0 100px rgba(230,57,70,0.1);
}

.cta__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  z-index: 2;
  position: relative;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 56px;
  background: var(--color-accent);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.3s ease;
  z-index: 2;
  position: relative;
}

.cta__button:hover {
  transform: scale(1.03);
  background: var(--color-accent-hover);
  box-shadow: 0 12px 50px rgba(230,57,70,0.4);
}

.cta__button:active { transform: scale(0.97); }

.cta__note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 20px;
  z-index: 2;
  position: relative;
}

/* ═══ FOOTER ═══ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ═══ SCROLL REVEAL ═══ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal]:nth-child(2) { transition-delay: 0.12s; }
[data-reveal]:nth-child(3) { transition-delay: 0.24s; }
[data-reveal]:nth-child(4) { transition-delay: 0.36s; }
[data-reveal]:nth-child(5) { transition-delay: 0.48s; }
[data-reveal]:nth-child(6) { transition-delay: 0.60s; }

/* ═══ KEYFRAMES ═══ */
@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); transform-origin: top; }
}

@keyframes philosophyGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes particleDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

@keyframes ambientShift {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav__logo { font-size: 18px; }
  .nav__cta { font-size: 12px; padding: 8px 16px; }

  .section { padding: 100px 20px; }

  .section--problem .section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .problem__visual { aspect-ratio: 16/10; }

  .section--product .section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product__visual { order: -1; }
  .product__features { gap: 24px; }

  .section--philosophy { padding: 120px 20px; }
  .section--identity { padding: 120px 20px; }
  .section--cta { padding: 140px 20px; }

  .hero__cta { padding: 14px 36px; font-size: 18px; }
  .cta__button { padding: 16px 36px; font-size: 18px; }

  .culture__grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
  }

  .culture__item--tall { grid-row: span 1; aspect-ratio: 1; }
  .culture__item--wide { grid-column: span 2; }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 0 16px; }
  .section { padding: 80px 16px; }

  .product__features { flex-direction: column; gap: 20px; }

  .identity__item--small { font-size: clamp(18px, 5vw, 32px); }

  .culture__grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .culture__item--tall { grid-row: span 1; }
  .culture__item--wide { grid-column: span 1; aspect-ratio: 16/9; }

  .product__mockup-placeholder { width: 240px; padding: 48px 20px; }
  .mockup__number { font-size: 80px; }
}
