/* Landing page — index only */

.landing main {
  position: relative;
  z-index: 1;
}

/* Hero */

.landing .hero {
  padding: clamp(32px, 6vw, 64px) var(--page-pad) clamp(48px, 8vw, 80px);
}

.landing .hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.landing .hero-media {
  display: flex;
  justify-content: center;
}

.landing .media-block {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.landing .video-shell {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.7);
}

.landing .video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 886 / 1920;
  object-fit: cover;
  vertical-align: middle;
}

.landing .preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(12, 10, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.landing .preview-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e85d4c;
  box-shadow: 0 0 6px rgba(232, 93, 76, 0.6);
  animation: preview-pulse 2s ease-in-out infinite;
}

.landing .preview-caption {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing .hero-content {
  max-width: 480px;
}

.landing .kicker {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.landing .hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.landing .subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
}

.landing .attribution {
  margin: -16px 0 28px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.85;
}

.landing .attribution a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.landing .attribution a:hover {
  color: var(--accent);
}

.landing .hero-actions {
  margin-bottom: 24px;
}

/* App Store button */

.landing .store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.landing .store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing .store-btn small {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0;
}

.landing .store-btn:hover {
  text-decoration: none;
  background: #1e1a17;
  border-color: rgba(212, 168, 42, 0.3);
  transform: translateY(-1px);
}

.landing .store-btn--wide {
  padding: 13px 28px 13px 22px;
}

.landing .store-btn--wide span {
  font-size: 1.15rem;
}

.landing .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing .badges li {
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* Highlights */

.landing .highlights {
  padding: clamp(48px, 8vw, 80px) var(--page-pad);
  border-top: 1px solid var(--line);
}

.landing .highlights-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.landing .section-head {
  max-width: 520px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.landing .section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing .section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.landing .highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.landing .highlight {
  padding: clamp(24px, 4vw, 32px);
  background: var(--surface);
}

.landing .highlight h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing .highlight p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Closing CTA */

.landing .closing {
  padding: clamp(56px, 10vw, 96px) var(--page-pad);
  padding-bottom: max(clamp(56px, 10vw, 96px), env(safe-area-inset-bottom));
}

.landing .closing-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.landing .closing h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing .closing > .closing-inner > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.landing .closing-help {
  margin: 20px 0 0 !important;
  font-size: 0.875rem !important;
}

.landing .closing-help a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing .closing-help a:hover {
  color: var(--accent);
}

/* Scroll reveal */

.landing .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.landing .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes preview-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 768px) {
  .landing .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .landing .hero-media {
    order: 1;
  }

  .landing .hero-content {
    display: contents;
    max-width: none;
  }

  .landing .preview-caption {
    display: none;
  }

  .landing .hero-actions {
    order: 2;
    display: flex;
    justify-content: center;
    margin: -20px 0 0;
  }

  .landing .hero-copy {
    order: 3;
    text-align: center;
  }

  .landing .badges {
    order: 4;
    justify-content: center;
  }

  .landing .video-shell {
    max-width: min(260px, 72vw);
  }

  .landing .section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .landing .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .landing .store-btn {
    padding: 10px 16px 10px 14px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing .store-btn:hover {
    transform: none;
  }

  .landing .preview-badge::before {
    animation: none;
  }
}