/* ===== CSS Variables & Theme ===== */
:root {
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-color: rgba(15, 23, 42, 0.08);
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #22d3ee 100%);
    --gradient-hero: linear-gradient(180deg, #e0f7fa 0%, #ffffff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    --section-padding: 100px;
    --container-max: 1200px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-glass: rgba(30, 41, 59, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --border-color: rgba(148, 163, 184, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-hero: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(145deg, rgba(30,41,59,0.9) 0%, rgba(30,41,59,0.6) 100%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

/* Background Animation */
.background-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; background: var(--gradient-hero); }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 200px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%230ea5e920'/%3E%3C/svg%3E"); background-size: 1200px 100%; animation: wave 15s linear infinite; opacity: 0.6; }
.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: -5s; animation-duration: 20s; opacity: 0.4; bottom: 10px; }
.wave3 { animation-delay: -10s; animation-duration: 25s; opacity: 0.2; bottom: 20px; }
@keyframes wave { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.bubbles { position: absolute; width: 100%; height: 100%; }
.bubble { position: absolute; bottom: -100px; background: var(--primary-400); border-radius: 50%; opacity: 0.15; animation: rise 15s infinite; }
.bubble:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-duration: 12s; }
.bubble:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-duration: 15s; animation-delay: 1s; }
.bubble:nth-child(3) { left: 35%; width: 60px; height: 60px; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 50%; width: 30px; height: 30px; animation-duration: 14s; animation-delay: 3s; }
.bubble:nth-child(5) { left: 65%; width: 25px; height: 25px; animation-duration: 16s; animation-delay: 4s; }
.bubble:nth-child(6) { left: 75%; width: 45px; height: 45px; animation-duration: 13s; animation-delay: 5s; }
.bubble:nth-child(7) { left: 85%; width: 35px; height: 35px; animation-duration: 17s; animation-delay: 6s; }
.bubble:nth-child(8) { left: 5%; width: 50px; height: 50px; animation-duration: 19s; animation-delay: 7s; }
.bubble:nth-child(9) { left: 45%; width: 15px; height: 15px; animation-duration: 11s; animation-delay: 8s; }
.bubble:nth-child(10) { left: 90%; width: 55px; height: 55px; animation-duration: 20s; animation-delay: 9s; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0.15; } 50% { opacity: 0.1; } 100% { transform: translateY(-120vh) scale(0.5); opacity: 0; } }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 24px; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); transition: var(--transition-normal); }
.nav-container { max-width: var(--container-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--text-primary); }
.logo-icon { font-size: 1.8rem; animation: dropletBounce 2s ease-in-out infinite; }
@keyframes dropletBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.logo-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-badge { background: var(--gradient-primary); color: white; font-size: 0.65rem; padding: 2px 8px; border-radius: var(--radius-full); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: var(--transition-fast); position: relative; }
.nav-links a:hover { color: var(--primary-500); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-primary); border-radius: var(--radius-full); transition: var(--transition-normal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--gradient-primary) !important; color: white !important; padding: 10px 24px !important; border-radius: var(--radius-full) !important; font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3); }
.theme-toggle { background: var(--bg-tertiary); border: none; width: 44px; height: 44px; border-radius: var(--radius-full); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition-normal); position: relative; overflow: hidden; }
.theme-toggle:hover { background: var(--primary-100); transform: rotate(15deg); }
.sun-icon, .moon-icon { position: absolute; transition: var(--transition-normal); }
.sun-icon { opacity: 1; transform: translateY(0); }
.moon-icon { opacity: 0; transform: translateY(20px); }
[data-theme="dark"] .sun-icon { opacity: 0; transform: translateY(-20px); }
[data-theme="dark"] .moon-icon { opacity: 1; transform: translateY(0); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: var(--radius-full); transition: var(--transition-normal); }
.mobile-menu { display: none; position: fixed; top: 76px; left: 0; right: 0; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--border-color); z-index: 999; }
.mobile-menu.active { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid var(--border-color); }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 24px 80px; max-width: var(--container-max); margin: 0 auto; gap: 60px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-glass); backdrop-filter: blur(10px); padding: 8px 20px; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 500; color: var(--primary-600); border: 1px solid var(--border-color); margin-bottom: 24px; animation: fadeInDown 0.6s ease; }
.pulse { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.hero-title { font-family: 'Outfit', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; animation: fadeInUp 0.6s ease 0.1s backwards; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: var(--text-secondary); font-weight: 600; }
.hero-description { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; animation: fadeInUp 0.6s ease 0.2s backwards; }
.hero-stats { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; animation: fadeInUp 0.6s ease 0.3s backwards; }
.stat { text-align: center; }
.stat-number { display: block; font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--primary-500); }
.stat-label { font-size: 0.85rem; color: var(--text-tertiary); }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.4s backwards; }

/* Store Buttons */
.store-button { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--text-primary); color: var(--bg-primary); text-decoration: none; border-radius: var(--radius-lg); transition: var(--transition-normal); border: 2px solid transparent; }
.store-button:hover { transform: translateY(-4px); box-shadow: 0 20px 40px var(--shadow-color); }
.store-button.apple { background: #000; color: #fff; }
.store-button.google { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-color); }
[data-theme="dark"] .store-button.google { background: var(--bg-tertiary); }
.store-icon { width: 28px; height: 28px; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.store-subtitle { font-size: 0.7rem; opacity: 0.8; }
.store-title { font-size: 1.1rem; font-weight: 600; }
.store-button.large { padding: 18px 32px; }
.store-button.large .store-icon { width: 32px; height: 32px; }
.store-button.large .store-title { font-size: 1.25rem; }
