:root {
  --bg-color: #0b0c10;
  --bg-gradient: radial-gradient(circle at top right, #1f2833 0%, #0b0c10 100%);
  --text-main: #f8f9fa;
  --text-muted: #a3a8b2;
  --accent: #4ade80;
  --accent-hover: #22c55e;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(11, 12, 16, 0.7);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spacing-base: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --border-radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
}



body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition);
}

a:hover {
  color: var(--accent-hover);
  opacity: 0.8;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0; /* Edge-to-edge on mobile */
  }
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Header Navigation Removal - Simplified Branding is handled by Hero */

/* Cinematic Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}



/* Removal of legacy hero positioning - handled by standardized section-backdrop/foreground */





/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  z-index: 100;
  animation: fadeIn 2s ease-in;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite ease-in-out;
}

.arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin: -4px 0;
  animation: scrollArrows 2s infinite ease-in-out;
}

.arrows span:nth-child(2) { animation-delay: 0.2s; }

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 20px); opacity: 0; }
}

@keyframes scrollArrows {
  0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  animation: slideUp 1.2s ease-out;
  padding: 2rem;
  border-radius: var(--border-radius);
}


@media (max-width: 768px) {
  .hero-content {
    padding: 0 2rem; /* Safety padding */
  }
}


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

.hero h1 {
  font-size: clamp(2.5rem, 12vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff 30%, #a3a8b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}


.hero p.hook {
  font-size: 1.4rem;
  color: var(--text-main);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  opacity: 0.9;
}

/* Store Buttons Context */
.store-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.store-btn-wrapper {
  position: relative;
  height: clamp(50px, 12vw, 65px); /* Responsive button height */
  display: flex;
  justify-content: center;
  transition: var(--transition);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}



.store-btn-wrapper:hover {
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(0 15px 40px rgba(74, 222, 128, 0.3));
}

.store-btn-wrapper img {
  height: 100%;
  width: auto;
  display: block;
}

/* Transparent Overlay for App Store (Right Side) */
.app-store-link {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

.google-play-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  cursor: default;
  z-index: 5;
}

/* Cinematic Backdrop Sections */
.story-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}



/* Base Blurred Backdrop */
.section-backdrop {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(100px) brightness(0.2); 
  opacity: 0.8;
  transform: scale(1.1);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-section.active .section-backdrop,
.hero.active .section-backdrop {
  transform: scale(1.05); /* Subtle scale-in shutter effect */
}



/* Sharp Foreground Layer (Scaling Fix) */
.section-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* Blend edges to avoid harsh lines when 'contained' */
  mask-image: radial-gradient(circle, black 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 65%, transparent 100%);
}

@media (orientation: landscape) {
  .section-foreground {
    top: 5%;
    height: 90%; /* Avoid crowding header/footer areas in landscape */
  }
}




/* Narrative Strip Popup System */
.narrative-card {
  position: absolute;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 3rem;
  width: 100%;
  max-width: 550px;
  text-align: left;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Base transforms for entrance animations */
.narrative-card.left { transform: translateX(-100%); }
.narrative-card.right { transform: translateX(100%); }

.story-section.active .narrative-card {
  opacity: 1;
  transform: translate(0, 0) !important; /* Forces reset of all position transforms */
}

/* Corner Alignment System - Restricted to Bottom Third for cleaner visuals */
.narrative-card.bottom-left { bottom: 8%; left: 0; text-align: left; }
.narrative-card.bottom-right { bottom: 8%; right: 0; text-align: right; }

/* Legacy Fallback Removal - Top placements no longer supported as requested */


/* Mid Alignment Fallback */
.narrative-card.v-center.left { top: 50%; transform: translate(-100%, -50%); }
.narrative-card.v-center.right { top: 50%; transform: translate(100%, -50%); }
.story-section.active .narrative-card.v-center { transform: translate(0, -50%) !important; }


/* Portrait overrides for diversity & mobile slimming */
@media (max-width: 768px) {
  .narrative-card {
    max-width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }



  
  .narrative-card.left, .narrative-card.right {
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .narrative-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
  }

  .narrative-card p {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .narrative-card.top { top: 8%; }
  .narrative-card.bottom { bottom: 8%; }
}



.narrative-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.narrative-card p {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-main);
  opacity: 1;
}


/* Cinematic Video Clip */
.video-break {
  background: var(--bg-color);
  padding: 2rem 0;
  text-align: center;
}


.video-clip-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

.video-clip-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

@media (max-width: 768px) {
  .video-clip-wrapper {
    max-width: 100%;
    border-radius: 0;
    border: none;
  }
  .video-clip-wrapper video {
    aspect-ratio: 9 / 16;
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (orientation: landscape) {
  .video-break {
    padding: 0; /* Full height in landscape */
    margin: 0;
  }

  .video-clip-wrapper {
    max-width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
  }
  .video-clip-wrapper video {
    height: 100%;
    width: 100%;
    object-fit: contain; /* Full fill without crop */
    background: #000;
  }
}



/* Sections & Common */
section {
  padding: 0; /* Managed by story-section */
}

/* Scroll to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--bg-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

/* Footer Improvements */
footer {
  padding: 8rem 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 1rem;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
  scroll-snap-align: end;
}


.footer-links {
  margin-top: 2rem;
}

.footer-links a {
  margin: 0 1.5rem;
  font-weight: 500;
  opacity: 0.6;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--text-main);
}

/* Support Overrides */
.support-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 2rem;
  margin: 0;
}

.privacy-body {
  padding-top: 10rem;
}

.privacy-card {
  max-width: 850px;
  margin: 0 auto 4rem;
}

.privacy-card h2 {
  text-align: left;
  font-size: 1.6rem;
  margin: 3rem 0 1.2rem;
  border: none;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 3.2rem; }
  .hero p.hook { font-size: 1.1rem; }
  .nav-links { display: none; }
  #back-to-top { bottom: 1.5rem; right: 1.5rem; width: 45px; height: 45px; }
  .narrative-card { padding: 2rem 1.5rem; }
}
