/* ===== CSS Variables ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-elevated: rgba(30, 30, 30, 0.5);
  /* Premium Classy Monochrome Theme */
  --accent-primary: #ffffff; /* Pure White */
  --accent-secondary: #e0e0e0; /* Light Gray */
  --accent-tertiary: #a0a0a0; /* Mid Gray */
  
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #707070;
  
  --success: #34c759;
  --danger: #ff3b30;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-medium: rgba(255, 255, 255, 0.2); 
  --border-glow: rgba(255, 255, 255, 0.15);
  
  --gradient-hot: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  --gradient-gold: linear-gradient(135deg, #e0e0e0 0%, #808080 100%);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Background Effects */
.bg-glows {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: floatOrb 20s infinite ease-in-out alternate;
}
.glow-orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  top: -20vh;
  left: -20vw;
}
.glow-orb-2 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  bottom: -30vh;
  right: -20vw;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 5%) scale(1.1); }
  100% { transform: translate(5%, -5%) scale(0.9); }
}

/* ===== Typography ===== */
h1, h2, h3, h4 { 
  font-family: var(--font-heading); 
  font-weight: 700; 
  margin: 0; 
  color: var(--text-primary);
}
h1 { 
  font-size: clamp(3rem, 8vw, 5.5rem); 
  line-height: 1.05; 
  letter-spacing: -0.04em; 
  font-weight: 800;
}
h2 { 
  font-size: clamp(2.5rem, 5vw, 3.5rem); 
  line-height: 1.1; 
  letter-spacing: -0.02em;
}
h3 { 
  font-size: 1.75rem; 
  font-weight: 600; 
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: var(--transition-normal); }

.text-gradient {
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ===== Layout ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header ===== */
.site-header {
  padding: 1.5rem 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  background: rgba(5, 5, 8, 0.6);
  transition: var(--transition-normal);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span {
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-normal);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* ===== Hero Section ===== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10rem 0 6rem;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
  font-weight: 400;
}

/* Download Badges */
.hero-visual {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.download-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  transition: var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}
.badge:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}
.badge:hover::before {
  transform: translateX(100%);
}
.badge-icon { width: 32px; height: 32px; color: var(--text-primary); transition: var(--transition-normal); }
.badge:hover .badge-icon { transform: scale(1.1); }
.badge-ios:hover .badge-icon { color: #fff; }
.badge-android:hover .badge-icon { color: var(--success); }

.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Phone Mockup */
.phone-frame-wrapper {
  position: relative;
  perspective: 1000px;
}
.phone-frame {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #1e1e28, #0a0a10);
  border-radius: 48px;
  padding: 12px;
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.8), 
    inset 0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 20px rgba(255,255,255,0.05),
    0 0 40px rgba(255, 255, 255, 0.05);
  position: relative;
  transform: rotateY(-10deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: var(--transition-normal);
  animation: floatPhone 6s infinite ease-in-out alternate;
}
@keyframes floatPhone {
  0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
  100% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); }
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 30px;
  background: #050508;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Carousel arrows (desktop + mobile) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.carousel-arrow.prev { left: -18px; }
.carousel-arrow.next { right: -18px; }
.carousel-arrow svg { width: 24px; height: 24px; }
.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}
/* Phone screens: horizontal carousel controlled by JS (desktop + mobile) */
.screen-scroll-container {
  display: flex;
  flex-direction: row;
  width: 500%;
  transition: transform 0.4s ease;
}
.screen-scroll-container img {
  flex: 0 0 20%;
  width: 20%;
  min-width: 20%;
  height: auto;
  object-fit: cover;
  display: block;
}
/* Shimmer effect over screen */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, transparent 100%);
  pointer-events: none;
}

/* (scrollScreens animation removed – now using JS-driven carousel) */

/* ===== Status Cards (Email/Password) ===== */
.center-content {
  justify-content: center;
  align-items: center;
  padding-top: 80px; /* Accounts for fixed header */
}
.status-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--border-medium);
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
/* Card glow */
.status-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at top right, rgba(112,0,255,0.1), transparent 50%);
  pointer-events: none;
}

.status-icon {
  width: 88px; height: 88px;
  margin: 0 auto 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
  position: relative;
}
.feature-card:hover .feature-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}
.status-icon.info {
  background: rgba(255, 214, 10, 0.1);
  color: var(--accent-primary);
  border-color: rgba(255, 214, 10, 0.2);
  box-shadow: 0 0 30px rgba(255, 214, 10, 0.1);
}
.status-icon svg { width: 44px; height: 44px; position: relative; z-index: 2; }
.status-icon::after {
  content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
  border-radius: 50%; border: 2px solid currentColor; opacity: 0.2;
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

.status-card h1 { margin-bottom: 1rem; font-size: 2.25rem; }
.status-card p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ===== Forms ===== */
.status-form { text-align: left; position: relative; z-index: 2; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
  display: block; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--text-secondary); 
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.form-group input {
  width: 100%; padding: 1.1rem 1.2rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary); 
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition-normal);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.form-group input::placeholder { color: var(--text-tertiary); }
.form-group input:focus { 
  outline: none; 
  border-color: var(--accent-primary);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), inset 0 2px 4px rgba(0,0,0,0.5);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  color: #000000; 
  font-weight: 700; 
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border: none; 
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}
.btn-primary.full-width { width: 100%; }
.btn-primary::before {
  content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
  background: #e0e0e0;
  opacity: 0; transition: var(--transition-normal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(1px); }

/* Password reset page: message and success state */
.pwd-message { margin-bottom: 1rem; font-size: 0.95rem; min-height: 1.4em; }
.pwd-message-error { color: var(--danger); }
.pwd-message-success { color: var(--success); }
.pwd-success { position: relative; z-index: 2; text-align: center; }
.pwd-success .pwd-success-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--success); }
.pwd-success .pwd-success-desc { color: var(--text-secondary); margin: 0 0 1.5rem; font-size: 1.05rem; }
.pwd-success .btn-primary { margin-top: 0.5rem; text-decoration: none; }

/* ===== Content Pages (Terms/Privacy) ===== */
.page-header { 
  padding: 10rem 0 4rem; 
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.page-header .subtitle { color: var(--text-secondary); margin-top: 1rem; font-size: 1.25rem; }
.content-section { 
  padding: 5rem 0; 
  max-width: 800px;
  margin: 0 auto;
}
.content-section h2 { margin: 3rem 0 1.5rem; font-size: 2rem; color: var(--text-primary); }
.content-section h3 { margin: 2rem 0 1rem; color: var(--text-primary); }
.content-section p, .content-section ul { 
  color: var(--text-secondary); 
  margin-bottom: 1.5rem; 
  font-size: 1.1rem; 
  line-height: 1.8;
}
.content-section ul { padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; }
.content-section a { color: var(--accent-primary); text-decoration: underline; text-decoration-color: rgba(0,240,255,0.3); text-underline-offset: 4px; }
.content-section a:hover { text-decoration-color: var(--accent-primary); }

/* ===== Footer ===== */
.site-footer { 
  padding: 3rem 0; 
  border-top: 1px solid var(--border-light); 
  margin-top: auto; 
  background: rgba(5, 5, 8, 0.8);
  position: relative;
  z-index: 10;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: var(--text-tertiary); font-size: 0.9rem; }
.site-footer .nav-links a { color: var(--text-tertiary); }
.site-footer .nav-links a:hover { color: var(--text-secondary); }

/* ===== Cookie / Analytics Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1.25rem 1rem;
  background: rgba(5, 5, 8, 0.96);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.7);
}
.cookie-banner__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner .btn-primary {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.03);
}


/* ===== Animations ===== */
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-in-delay-1 { animation-delay: 0.2s; }
.animate-in-delay-2 { animation-delay: 0.4s; }

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

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

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .hero { padding-top: 12rem; padding-bottom: 6rem; }
  .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .hero-visual { flex-direction: column; gap: 3rem; justify-content: center; }
  .desktop-only { display: none; }
  .mobile-only { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 2rem;}
  .phone-frame { transform: none; animation: none; }
  /* Pull arrows slightly inside on small screens */
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: 2.5rem; padding: 1.25rem 1rem; }
  .site-header { position: absolute; background: transparent; border: none; backdrop-filter: none; }
  .site-header .logo { margin-bottom: 0; }
  .nav-links { gap: 1.5rem; }
  .hero { padding: 11rem 0 4rem; }
  .status-card { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); }
  .site-footer .container { flex-direction: column; gap: 1.5rem; text-align: center; }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
