:root {
  /* Colors */
  --bg-dark: #0C0A1F;
  --bg-light: #F2F2F7;
  --text-main: #FFFFFF;
  --text-soft: #B4B0D6;
  --brand-indigo: #5B52E0;
  --brand-purple: #8B4FE0;
  --coral: #FF7A6B;
  --mint: #2BC5B4;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.25);
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Aurora Background */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-dark);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--brand-indigo); animation-delay: 0s; }
.blob-2 { top: 20%; right: -10%; width: 40vw; height: 40vw; background: var(--brand-purple); animation-delay: -5s; }
.blob-3 { bottom: -20%; left: 20%; width: 60vw; height: 60vw; background: var(--coral); opacity: 0.4; animation-delay: -10s; }
.blob-4 { bottom: 10%; right: 10%; width: 45vw; height: 45vw; background: var(--mint); opacity: 0.3; animation-delay: -15s; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.05); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 16px 40px var(--glass-shadow);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

/* Logo entrance animation */
.logo-icon path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawPath 2s ease-in-out forwards 0.5s, floatLogo 4s ease-in-out infinite alternate 2.5s;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatLogo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  padding-top: 40px;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFF, #B4B0D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--text-soft);
  margin-bottom: 40px;
  font-weight: 400;
}

.app-store-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-purple));
  color: #FFF;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(91, 82, 224, 0.4);
}
.app-store-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(91, 82, 224, 0.6);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 320px;
  height: 696px; /* 320 / (1085/2360) = 696 */
  background: linear-gradient(135deg, #6c6c70 0%, #2a2a2e 50%, #4c4c50 100%);
  border-radius: 44px;
  padding: 8px; /* bezel */
  box-shadow: 
      inset 0 0 4px rgba(255,255,255,0.4), 
      inset 0 0 0 1px #1a1a1c, 
      0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  /* Scroll-driven parallax will be applied to this */
}

/* Dynamic Island Mockup */
.dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* Scroll-Driven Entry Effects */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .hero-title, .hero-subtitle, .app-store-btn {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Parallax wrapper */
  .parallax-wrapper {
    view-timeline-name: --parallax-tl;
  }
  
  .phone-mockup {
    animation: parallax linear both;
    animation-timeline: --parallax-tl;
    animation-range: entry 0% exit 100%;
  }

  @keyframes parallax {
    0% { transform: translateY(100px) rotateX(10deg); }
    50% { transform: translateY(0px) rotateX(0deg); }
    100% { transform: translateY(-100px) rotateX(-5deg); }
  }

  .feature-row {
    animation: featureReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }

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

/* Features Section */
.features {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 80px 0;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFF, #B4B0D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-text p {
  font-size: 20px;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.6;
}

.feature-image {
  flex-shrink: 0;
}


/* Privacy Policy Content */
.content-section {
  padding: 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h1 {
  font-family: var(--font-display);
  font-size: 48px;
  margin-bottom: 24px;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 40px 0 16px;
  color: var(--brand-purple);
}

.content-section p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 18px;
}

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-soft);
  border-top: 1px solid var(--glass-border);
}
