@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #f5f5f5;
  --text-primary: #111111;
  --text-secondary: #555555;
  --accent: #4a90e2;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* WebGL Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* behind text */
  pointer-events: none; /* Let clicks pass through */
}

/* Scroll Container */
.scroll-container {
  position: relative;
  z-index: 2; /* above canvas */
}

.section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}

.about-us {
  height: 60vh;
  align-items: center;
}

.content-wrapper {
  min-width: max-content;
  z-index: 2;
  opacity: 0; /* Hidden initially for GSAP */
  text-align: center;
  
  /* Fixed to the center of the viewport */
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.hero .content-wrapper {
  position: relative;
  top: auto;
  left: auto;
  transform: translateY(20px); /* Initial state for fadeUp */
  text-align: center;
  margin-top: -30vh;
  max-width: 100%;
  animation: fadeUp 1s ease forwards 0.5s;
}

.title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-secondary);
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  font-size: 0.99rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Alignments for fixed positioning */
.align-left, .split-left {
  left: 10vw;
}

.align-right, .split-right {
  right: 10vw;
}

.split-left, .split-right {
  top: 25%;
}

.align-center {
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .title { font-size: 2.7rem; }
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Typography Enhancements */
.eyebrow {
  font-size: 0.765rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.main-headline {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sub-headline {
  font-size: 1.35rem;
  font-weight: 400;
  color: #444444;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.body-text {
  font-size: 0.99rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.impact-statement {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #4a90e2, #9013fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rapid-fire-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rapid-fire-list li {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.rapid-fire-list li::before {
  content: '→';
  color: var(--accent);
  margin-right: 10px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .main-headline { font-size: 2.25rem; }
  .sub-headline { font-size: 1.08rem; }
  .impact-statement { font-size: 1.8rem; }
}

/* Glass Box for Popouts */
.glass-box {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40vw;
  height: 60vh;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
}

/* Glowing Button */
.glowing-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(144, 19, 254, 0.4), 0 0 5px rgba(74, 144, 226, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  pointer-events: auto;
}

.glowing-btn:hover {
  box-shadow: 0 0 25px rgba(144, 19, 254, 0.8), 0 0 10px rgba(74, 144, 226, 0.8);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .glass-box {
    width: 80vw;
    height: 50vh;
  }
}

/* Glassy Window */
.glass-background {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: backdrop-filter 0.5s ease;
}

.carousel-track {
  transition: transform 0.5s ease;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes bounceUp {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.arrow-down {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  animation: bounceDown 2s infinite ease-in-out;
}

.arrow-up {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  animation: bounceUp 2s infinite ease-in-out;
}

/* Release Countdown Page Styles */
.countdown-page {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 100vh; /* Covers the whole screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 80px 20px 40px;
}

.countdown-wrapper {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.countdown-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #111111, #555555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.countdown-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* Timer Grid Layout */
.timer-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  justify-content: center;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.timer-number {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums; /* Monospaced numbers to prevent jumping layout */
  background: linear-gradient(135deg, #111111, #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timer-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.badge-container {
  margin-top: 20px;
}

.app-badges {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.app-badge {
  background: #111111;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-badge:hover {
  transform: translateY(-2px);
  background: #222222;
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-store {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.badge-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-disclosures {
  max-width: 750px;
  width: 100%;
  margin: 50px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclosure-text {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #999999;
  text-align: center;
}

.disclosure-text strong {
  color: #555555;
  font-weight: 600;
}

.footer-bottom {
  width: 100%;
  padding-top: 20px;
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888888;
}

/* --- Live Price Scanner Ticker --- */
.live-ticker-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 12px 0;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: inherit;
  pointer-events: auto;
}

.live-ticker-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a855f7; /* Soft purple */
  background: rgba(168, 85, 247, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-right: 15px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.live-ticker-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

.ticker-item {
  font-size: 0.82rem;
  color: #666666;
  font-weight: 500;
}

.ticker-item span {
  font-weight: 600;
  color: #111111;
}

.ticker-item .highlight {
  color: #22c55e; /* Green deal color */
  font-weight: 600;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Waitlist Email Form --- */
.waitlist-container {
  margin: 35px auto 45px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  pointer-events: auto;
}

.waitlist-title {
  font-size: 0.88rem;
  color: #555555;
  margin-bottom: 12px;
  font-weight: 500;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.waitlist-form:focus-within {
  border-color: #a855f7;
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.12);
}

.waitlist-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: #111111;
  outline: none;
  font-family: inherit;
}

.waitlist-input::placeholder {
  color: #999999;
}

.waitlist-btn {
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.waitlist-btn:hover {
  background: #a855f7; /* Swaps to purple highlight */
  transform: scale(1.02);
}

/* --- App Features Grid --- */
.app-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  width: 100%;
  margin: 45px auto 40px;
  pointer-events: auto;
}

.feature-col {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-col h3 {
  font-size: 0.95rem;
  color: #111111;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-col p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #666666;
}

/* --- Footer Navigation Links --- */
.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  width: 100%;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.footer-link-group h4 {
  font-size: 0.8rem;
  color: #111111;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link-group a {
  font-size: 0.8rem;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-group a:hover {
  color: #a855f7;
}

@media (max-width: 768px) {
  .countdown-title {
    font-size: 2.3rem;
  }
  .timer-number {
    font-size: 3.5rem;
  }
  .timer-segment {
    min-width: 70px;
  }
  .timer-grid {
    gap: 15px;
  }
  .app-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .footer-links-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
  .footer-link-group {
    align-items: center;
    text-align: center;
  }
}

