/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0d1322;
  --bg-card:       #111827;
  --bg-card-hover: #1a2236;

  --border:        rgba(255, 193, 7, 0.12);
  --border-strong: rgba(255, 193, 7, 0.28);

  --accent:       #FFC107;
  --accent-dark:  #e6ac00;
  --accent-light: #FFD54F;
  --accent-glow:  rgba(255, 193, 7, 0.18);

  --text-primary:   #F5F5F5;
  --text-secondary: #9CA3AF;
  --text-muted:     #6B7280;

  --nav-height:     68px;
  --container-max:  1180px;
  --section-pad:    96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 40px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(255, 193, 7, 0.12);
  --transition:  all 0.3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #FF8F00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-icon { font-size: 1.5rem; }

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #0a0e1a;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-left: 10px;
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0a0e1a 0%, #0d1322 45%, #12101f 75%, #0a0e1a 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  top: -15%; right: -8%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.07) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 500px; height: 500px;
  bottom: -20%; left: -10%;
  background: radial-gradient(circle, rgba(107, 33, 168, 0.07) 0%, transparent 70%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.09);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--accent);
  color: #0a0e1a;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 193, 7, 0.35);
}

.btn-primary i { font-size: 1.3rem; }

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-label small {
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.75;
}

.badge-coming-soon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #EF4444;
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 193, 7, 0.05);
}

/* Hero stats */
.hero-stats { display: flex; align-items: center; gap: 32px; }

.hero-stat { text-align: center; }

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px; height: 42px;
  background: rgba(255,255,255,0.1);
}

/* Hero phone */
.hero-phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone-glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-screenshot {
  height: 528px;
  width: auto;
  display: block;
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 64px rgba(0,0,0,0.5));
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  animation: bounceDown 2.5s ease-in-out infinite;
  z-index: 1;
}

/* =============================================
   PHONE FRAME
   ============================================= */
.phone-frame {
  width: 258px;
  height: 528px;
  border: 2.5px solid rgba(255, 193, 7, 0.22);
  border-radius: 44px;
  background: #0c1120;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(255, 193, 7, 0.07);
  animation: floatPhone 6s ease-in-out infinite;
}

.phone-center-frame {
  width: 278px;
  height: 568px;
  border-color: rgba(255, 193, 7, 0.38);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 32px 80px rgba(0,0,0,0.7),
    0 0 100px rgba(255, 193, 7, 0.14);
}

.phone-notch {
  width: 88px;
  height: 22px;
  background: #050810;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.phone-screen {
  flex: 1;
  overflow: hidden;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-screen-screenshot {
  padding: 0;
}

.phone-screen-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-home-bar {
  width: 88px; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  margin: 8px auto;
  flex-shrink: 0;
}

/* =============================================
   WEATHER SCREEN (phone mockup)
   ============================================= */
.weather-screen {
  background: linear-gradient(160deg, #1a3060 0%, #0f1e40 40%, #1a1040 100%);
}

.weather-screen-rain {
  background: linear-gradient(160deg, #1a2550 0%, #0f1835 40%, #180f35 100%);
}

.ws-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.ws-location i { color: var(--accent); font-size: 0.64rem; }

.ws-weather-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 68px;
  margin: 4px 0;
}

/* CSS sun + cloud icon */
.ws-sun-cloud { position: relative; width: 62px; height: 52px; }

.ws-sun {
  position: absolute;
  top: 0; right: 0;
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255,193,7,0.6);
  animation: rotateSun 20s linear infinite;
}

.ws-cloud {
  position: absolute;
  bottom: 0; left: 0;
  width: 46px; height: 24px;
  background: rgba(210,225,255,0.92);
  border-radius: 24px;
}

.ws-cloud::before {
  content: '';
  position: absolute;
  top: -13px; left: 8px;
  width: 23px; height: 23px;
  background: rgba(210,225,255,0.92);
  border-radius: 50%;
}

.ws-cloud::after {
  content: '';
  position: absolute;
  top: -9px; right: 7px;
  width: 17px; height: 17px;
  background: rgba(210,225,255,0.92);
  border-radius: 50%;
}

/* Rain icon */
.rain-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.rain-cloud {
  width: 46px; height: 22px;
  background: rgba(150,175,220,0.8);
  border-radius: 22px;
  position: relative;
}

.rain-cloud::before {
  content: '';
  position: absolute;
  top: -12px; left: 8px;
  width: 22px; height: 22px;
  background: rgba(150,175,220,0.8);
  border-radius: 50%;
}

.rain-cloud::after {
  content: '';
  position: absolute;
  top: -8px; right: 7px;
  width: 16px; height: 16px;
  background: rgba(150,175,220,0.8);
  border-radius: 50%;
}

.rain-drops { display: flex; gap: 6px; }

.drop {
  width: 3px; height: 12px;
  background: linear-gradient(to bottom, rgba(100,160,255,0.3), rgba(100,160,255,0.9));
  border-radius: 2px;
  animation: rainFall 1.2s ease-in-out infinite;
}

.drop:nth-child(2) { animation-delay: 0.2s; }
.drop:nth-child(3) { animation-delay: 0.4s; }
.drop:nth-child(4) { animation-delay: 0.1s; }
.drop:nth-child(5) { animation-delay: 0.3s; }

.ws-temp {
  font-size: 3.4rem;
  font-weight: 800;
  color: white;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ws-temp-lg { font-size: 3.8rem; }

.ws-condition {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
}

.ws-high-low {
  text-align: center;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.46);
  margin-bottom: 6px;
}

.ws-stats-row {
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px 4px;
}

.ws-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ws-stat i { font-size: 0.7rem; color: var(--accent); }
.ws-stat span { font-size: 0.62rem; font-weight: 600; color: white; }
.ws-stat small { font-size: 0.52rem; color: rgba(255,255,255,0.46); }

.ws-hourly { flex: 1; }

.ws-hourly-title {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.46);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ws-hourly-row {
  display: flex;
  justify-content: space-between;
}

.ws-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 5px;
  border-radius: 10px;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.62);
}

.ws-hour-active {
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.28);
  color: white;
}

/* =============================================
   FORECAST SCREEN
   ============================================= */
.forecast-screen {
  background: linear-gradient(160deg, #1a3060 0%, #0f1e40 100%);
  gap: 0;
}

.fs-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 6px 0 10px;
}

.fs-days {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.fs-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.76);
}

.fs-today {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.22);
  color: white;
}

.fs-range { display: flex; gap: 8px; align-items: center; }
.fs-range em { font-style: normal; font-weight: 700; color: white; }
.fs-range span { color: rgba(255,255,255,0.38); }

.fs-sun-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.55);
}

.fs-sun-info i { color: var(--accent); }

/* =============================================
   AQI SCREEN
   ============================================= */
.aqi-screen {
  background: linear-gradient(160deg, #0f1e3d 0%, #0a1628 100%);
  gap: 8px;
}

.aqi-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.aqi-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 3px solid #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  margin: 0 auto;
}

.aqi-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #4CAF50;
  line-height: 1;
}

.aqi-label { font-size: 0.5rem; color: #4CAF50; font-weight: 600; }

.aqi-bar-container { padding: 0 2px; }

.aqi-bar {
  height: 6px;
  background: linear-gradient(to right, #4CAF50, #FFC107, #F44336);
  border-radius: 3px;
  position: relative;
  margin-bottom: 4px;
}

.aqi-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.aqi-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.44rem;
  color: rgba(255,255,255,0.38);
}

.uv-section {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 10px;
}

.uv-header {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.uv-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }

.uv-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.uv-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #4CAF50, #FFC107);
  border-radius: 3px;
}

.uv-val { font-size: 0.64rem; font-weight: 700; color: var(--accent); }
.uv-risk { font-size: 0.48rem; color: rgba(255,255,255,0.46); }

.map-preview-section {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 10px;
  flex: 1;
}

.map-preview-header {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-preview-box {
  height: 58px;
  background: #1a3050;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}

.map-roads { position: absolute; inset: 0; }

.map-road {
  position: absolute;
  background: rgba(255,255,255,0.1);
}

.map-road-h {
  height: 2px; left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.map-road-v {
  width: 2px; top: 0; bottom: 0;
  left: 45%;
}

.map-pin { position: relative; font-size: 1.1rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-icon {
  width: 50px; height: 50px;
  background: rgba(255, 193, 7, 0.09);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
  color: var(--accent);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(255, 193, 7, 0.14);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.14);
}

.feature-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; }

.feature-card p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }

/* =============================================
   PREVIEW SECTION
   ============================================= */
.preview {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.preview::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse, rgba(255, 193, 7, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.preview-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  padding-bottom: 40px;
}

.preview-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.preview-phone-left {
  transform: translateY(40px) rotate(-4deg);
  transition-delay: 0.15s;
}

.preview-phone-left.revealed {
  opacity: 1;
  transform: translateY(0) rotate(-3deg);
}

.preview-phone-center {
  transform: translateY(60px);
  transition-delay: 0s;
}

.preview-phone-center.revealed {
  opacity: 1;
  transform: translateY(-10px);
}

.preview-phone-right {
  transform: translateY(40px) rotate(4deg);
  transition-delay: 0.3s;
}

.preview-phone-right.revealed {
  opacity: 1;
  transform: translateY(0) rotate(3deg);
}

.preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-screenshot {
  height: 490px;
  width: auto;
  display: block;
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.5));
}

.preview-phone-center .preview-screenshot {
  height: 530px;
}

.preview-phone-left .preview-screenshot  { animation: floatPhoneLeft 7s ease-in-out infinite; }
.preview-phone-center .preview-screenshot { animation: floatPhone 5s ease-in-out infinite; }
.preview-phone-right .preview-screenshot  { animation: floatPhoneRight 8s ease-in-out infinite; }

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-container.revealed {
  opacity: 1;
  transform: translateY(0);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.video-placeholder-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 193, 7, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(100, 100, 200, 0.07) 0%, transparent 55%);
}

.video-play-btn {
  width: 76px; height: 76px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0a0e1a;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(255, 193, 7, 0.28);
  animation: pulse 3s ease-in-out infinite;
}

.video-placeholder-text {
  text-align: center;
  position: relative;
  z-index: 1;
}

.video-placeholder-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.video-placeholder-text p  { font-size: 0.9rem; color: var(--text-muted); }

.video-weather-strip {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 18px;
  font-size: 1.6rem;
  opacity: 0.3;
  z-index: 1;
}

/* YouTube embed (used when video is ready) */
.video-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-embed-wrapper.revealed { opacity: 1; transform: translateY(0); }

.video-embed-wrapper iframe { width: 100%; height: 100%; display: block; }

/* =============================================
   DOWNLOAD CTA
   ============================================= */
.download-cta {
  padding: var(--section-pad) 0;
  background: linear-gradient(155deg, #0d1322 0%, #121020 100%);
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.download-content {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.download-content.revealed { opacity: 1; transform: translateY(0); }

.download-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.download-content > p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.download-buttons { display: flex; justify-content: center; margin-bottom: 28px; }

.download-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-note i { color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #060a14;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-powered {
  font-size: 0.8rem !important;
  margin-top: 12px !important;
}

.footer-powered a { color: var(--accent); }
.footer-powered a:hover { text-decoration: underline; }

.footer-links { display: flex; gap: 56px; justify-content: flex-end; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-page { background: var(--bg-secondary); }

.legal-hero {
  padding: calc(var(--nav-height) + 60px) 0 50px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.legal-hero p  { font-size: 0.92rem; color: var(--text-muted); }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 40px 0 14px;
}

.legal-content h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; }

.legal-content p  { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }

.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}

.legal-toc h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }

.legal-toc ol { padding-left: 18px; }

.legal-toc li { margin-bottom: 5px; }

.legal-toc a { font-size: 0.9rem; color: var(--text-secondary); }
.legal-toc a:hover { color: var(--accent); }

/* =============================================
   SCROLL REVEAL
   ============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes floatPhoneLeft {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes floatPhoneRight {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}

@keyframes rotateSun {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rainFall {
  0%   { transform: translateY(-2px); opacity: 0.4; }
  50%  { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0.4; }
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
  50%       { box-shadow: 0 0 0 14px rgba(255, 193, 7, 0); }
}

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  :root { --section-pad: 70px; }

  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }

  .nav-link { width: 100%; padding: 12px 16px; }
  .btn-nav-cta { width: 100%; justify-content: center; margin: 8px 0 0; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 36px;
    padding-bottom: 100px;
    gap: 40px;
  }

  .hero-description { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone-wrapper { order: -1; }

  .hero-screenshot {
    height: 420px;
  }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Preview */
  .preview-phones {
    flex-direction: column;
    align-items: center;
    gap: 52px;
  }

  .preview-phone-left { transform: translateY(40px); }
  .preview-phone-right { transform: translateY(40px); }

  .preview-phone-left.revealed,
  .preview-phone-right.revealed { transform: translateY(0); }

  .preview-phone-left .preview-screenshot,
  .preview-phone-right .preview-screenshot { animation: floatPhone 6s ease-in-out infinite; }

  .preview-screenshot { height: 420px; }
  .preview-phone-center .preview-screenshot { height: 420px; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-title { font-size: 2.3rem; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; width: 100%; max-width: 320px; margin: 0 auto; }
  .preview-phones { gap: 36px; }
}
