/* ============================================
   SmartGym — Design System v3
   Theatrical Apple-level dark theme
   ============================================ */

/* --- 1. Custom Properties --- */
:root {
  --color-primary: #a5fa01;
  --color-primary-dark: #8ad400;
  --color-primary-subtle: rgba(165, 250, 1, 0.06);
  --color-bg: #000000;
  --color-bg-elevated: #0a0a0a;
  --color-bg-card: #111111;
  --color-bg-card-hover: #1a1a1a;
  --color-text: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #555555;
  --color-border: #1a1a1a;

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container-max: 1200px;
  --container-wide: 1400px;
  --container-cinematic: 1600px;

  --shadow-glow: 0 0 80px rgba(165, 250, 1, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* --- 2. Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.text-large {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

/* --- 4. Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--cinematic {
  max-width: var(--container-cinematic);
}

/* Full-bleed — breaks out of any container */
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* --- 5. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #000;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(165, 250, 1, 0.3);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn--ghost {
  background: none;
  color: var(--color-primary);
  padding: 0;
  font-size: 1.1rem;
  gap: 12px;
}

.btn--ghost:hover {
  gap: 16px;
}

.btn--ghost svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

/* --- 6. Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
}

.reveal-fade.visible {
  opacity: 1;
}

.reveal-scale-up {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.reveal-scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-clip {
  clip-path: inset(8% 8% 8% 8%);
  opacity: 0;
  transition: clip-path 1.2s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}

.reveal-clip.visible {
  clip-path: inset(0% 0% 0% 0%);
  opacity: 1;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.28s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.35s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- 7. Keyframe Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImageReveal {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes awardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 60px; }
}

/* --- 8. Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
  background: transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 40px;
  transition: transform var(--transition-fast);
}

.navbar__logo:hover img {
  transform: scale(1.05);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-medium);
}

.navbar__links a:hover {
  color: var(--color-text);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-primary);
  color: #000 !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.navbar__cta::after {
  display: none !important;
}

.navbar__cta:hover {
  background: var(--color-primary-dark);
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(165, 250, 1, 0.3);
}

/* Mobile nav toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
  transform-origin: center;
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-nav a.btn--primary {
  color: #000;
}

/* =============================================
   9. HERO — Badge + title + CTA + image
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(165, 250, 1, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(165, 250, 1, 0.08);
  border: 1px solid rgba(165, 250, 1, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s var(--ease-out-expo) 0.2s both;
}

.hero__title {
  max-width: 900px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--color-primary), #d4ff70);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero__cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}

.hero__image {
  margin-top: 80px;
  max-width: 900px;
  width: 100%;
  animation: heroImageReveal 1.2s var(--ease-out-expo) 1s both;
  position: relative;
}

.hero__image img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.5s both;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: scrollHint 2s ease-in-out infinite;
}

/* =============================================
   11. CREDENTIAL BAR — Minimal trust signals
   ============================================= */
.credential-bar {
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.credential-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.credential-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.credential-bar__item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.credential-bar__divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   12. APP OF THE YEAR — Cinematic award showcase
   ============================================= */
.app-of-year {
  padding: clamp(120px, 18vw, 240px) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #0a1628 0%, #0d2b6b 30%, #1a4fd4 55%, #2563eb 70%, #1a4fd4 85%, #0d2b6b 100%);
}

.app-of-year__content {
  text-align: center;
}

.app-of-year__award-image {
  width: clamp(220px, 35vw, 380px);
  margin: 0 auto 56px;
}

.app-of-year__award-image img {
  width: 100%;
  height: auto;
}

.app-of-year.visible .app-of-year__award-image {
  animation: awardEntrance 1.2s var(--ease-out-expo) both;
}

.app-of-year__apple {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.app-of-year__heading {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.app-of-year__divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 20px;
}

.app-of-year__year {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.app-of-year__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

/* =============================================
   13. STICKY SHOWCASE — Pinned image + scrolling text
   ============================================= */
.sticky-showcase {
  position: relative;
}

.sticky-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 100vh;
}

.sticky-showcase__media {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
}

.sticky-showcase__media img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
  transition: opacity 0.6s var(--ease-out-expo);
}

.sticky-showcase__image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  transition: opacity 0.6s var(--ease-out-expo);
}

.sticky-showcase__image:not(.active) {
  opacity: 0;
}

.sticky-showcase__image.active {
  opacity: 1;
}

.sticky-showcase__image img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.sticky-showcase__content {
  display: flex;
  flex-direction: column;
}

.sticky-showcase__block {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--color-border);
}

.sticky-showcase__block:last-child {
  border-bottom: none;
}

/* Mirrored layout */
.sticky-showcase--reverse .sticky-showcase__grid {
  direction: rtl;
}

.sticky-showcase--reverse .sticky-showcase__grid > * {
  direction: ltr;
}

/* =============================================
   14. SECTION LABEL / TITLE / TEXT — Shared
   ============================================= */
.section-label {
  display: inline-block;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 24px;
}

.section-text {
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  max-width: 560px;
}

.feature__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 32px;
  font-size: 1.05rem;
  transition: gap var(--transition-fast);
}

.feature__link:hover {
  gap: 14px;
  color: var(--color-primary-dark);
}

.feature__link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.feature__link:hover svg {
  transform: translateX(4px);
}

/* =============================================
   15. FULL-VIEWPORT SECTION — Centered text + image
   ============================================= */
.viewport-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 40px);
  position: relative;
  overflow: hidden;
}

.viewport-section__content {
  max-width: 800px;
}

.viewport-section__image {
  max-width: 600px;
  margin: 0 auto clamp(16px, 2vw, 24px);
}

.viewport-section__image--large {
  max-width: 800px;
}

.viewport-section__image img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

/* Subtle glow behind image */
.viewport-section__image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(165, 250, 1, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* =============================================
   16. STATS — Giant numbers
   ============================================= */
.stats {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  text-align: center;
}

.stats__number {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats__label {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   17. TESTIMONIALS — 3 review cards
   ============================================= */
.testimonials {
  padding: clamp(100px, 14vw, 200px) 0;
  position: relative;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: #FFD700;
}

.testimonial-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =============================================
   18. FEATURE GRID — Side-by-side
   ============================================= */
.feature-section {
  padding: clamp(100px, 14vw, 200px) 0;
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.feature-grid--reverse {
  direction: rtl;
}

.feature-grid--reverse > * {
  direction: ltr;
}

.feature-grid__image {
  position: relative;
}

.feature-grid__image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* =============================================
   19. PLATFORMS — Full-bleed showcase
   ============================================= */
.platforms {
  padding: clamp(100px, 14vw, 200px) 0;
  text-align: center;
}

.platforms__image {
  max-width: var(--container-cinematic);
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: 0 clamp(20px, 4vw, 40px);
}

.platforms__image img {
  width: 100%;
}

/* =============================================
   20. CTA SECTION
   ============================================= */
.cta-section {
  padding: clamp(120px, 16vw, 200px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(165, 250, 1, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section__title {
  margin-bottom: 20px;
}

.cta-section__text {
  max-width: 500px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
}

/* =============================================
   21. FOOTER
   ============================================= */
.footer {
  padding: clamp(60px, 8vw, 100px) 0 40px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: 48px;
}

.footer__logo img {
  height: 36px;
  margin-bottom: 16px;
}

.footer__brand-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =============================================
   22. WATCH PAGE — Hero
   ============================================= */
.watch-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.watch-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(165, 250, 1, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.watch-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.watch-hero__image {
  max-width: 500px;
  width: 100%;
  margin-bottom: 48px;
  animation: heroImageReveal 1.2s var(--ease-out-expo) 0.2s both;
}

.watch-hero__image img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.watch-hero__text {
  max-width: 640px;
}

/* =============================================
   23. FEATURE CARDS — Grid with image + text
   ============================================= */
.feature-cards {
  padding: clamp(100px, 14vw, 200px) 0;
}

.feature-cards__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.feature-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.feature-card:hover {
  border-color: rgba(165, 250, 1, 0.12);
  transform: translateY(-4px);
}

.feature-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card__image img {
  transform: scale(1.05);
}

.feature-card__content {
  padding: clamp(20px, 3vw, 28px);
}

.feature-card__content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 8px;
}

.feature-card__content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================
   24. FEATURES PAGE — Text-only hero
   ============================================= */
.features-hero {
  padding: clamp(180px, 24vw, 300px) 0 clamp(80px, 10vw, 120px);
  text-align: center;
}

.features-hero__content {
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================
   25. CINEMATIC FEATURE — Centered layout
   ============================================= */
.cinematic-feature {
  padding: clamp(100px, 14vw, 200px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cinematic-feature__header {
  max-width: 700px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}

.cinematic-feature__image {
  max-width: var(--container-wide);
  margin: 0 auto clamp(48px, 6vw, 72px);
  padding: 0 clamp(20px, 5vw, 40px);
}

.cinematic-feature__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.cinematic-feature__body {
  max-width: 640px;
  margin: 0 auto;
}

.cinematic-feature__body p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* =============================================
   26. RESPONSIVE
   ============================================= */
@media (max-width: 1280px) {
  .sticky-showcase__grid {
    grid-template-columns: 1fr;
  }

  .sticky-showcase__media {
    display: none;
  }

  /* On mobile, each block gets its image injected inline via JS */
  .sticky-showcase__block-image {
    display: block;
    max-width: 500px;
    margin: 0 auto clamp(24px, 4vw, 40px);
  }

  .sticky-showcase__block-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
  }

  .sticky-showcase__block {
    text-align: center;
    min-height: auto;
    padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 40px);
  }

  .sticky-showcase--reverse .sticky-showcase__grid {
    direction: ltr;
  }
}

/* Hide block-image on desktop (injected by JS for mobile) */
@media (min-width: 1281px) {
  .sticky-showcase__block-image {
    display: none;
  }
}

@media (max-width: 1024px) {
  .feature-grid,
  .feature-grid--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-grid--reverse {
    direction: ltr;
  }

  .feature-grid__image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .feature-cards__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* iOS status bar cover — fixed black bar for Safari toolbar tinting */
.status-bar-cover {
  display: none;
}

@media (max-width: 768px) {
  /* Safari 26 reads background-color from fixed elements near viewport edges
     for toolbar tinting. This element ensures Safari detects black. */
  .status-bar-cover {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #000000;
    z-index: 10001;
    pointer-events: none;
  }

  .navbar {
    background: #000 !important;
    transition: padding var(--transition-medium);
  }

  /* Disable grain overlay on mobile to prevent interfering with Safari's
     toolbar tinting detection (it reads fixed elements at z-index order) */
  .grain::after {
    display: none;
  }

  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 100px 0 0;
    min-height: auto;
  }

  .hero__image {
    margin-top: 40px;
    max-width: 100%;
  }

  .hero__scroll-hint {
    display: none;
  }

  .credential-bar__divider {
    display: none;
  }

  .credential-bar__inner {
    flex-direction: column;
    gap: 12px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .watch-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .watch-hero__image {
    max-width: 320px;
  }

  .viewport-section {
    min-height: auto;
    padding: clamp(80px, 12vw, 120px) clamp(20px, 5vw, 40px);
  }

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

  .section-label,
  .section-title {
    text-align: center;
  }

  .feature__link {
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn--large {
    width: 100%;
    justify-content: center;
  }
}

/* --- 27. Utilities --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Subtle grain texture overlay */
.grain::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  z-index: 9999;
}
