/* ==================== DESIGN SYSTEM ==================== */
:root {
    --primary: #006064;
    --primary-light: #4dd0e1;
    --primary-dark: #004d40;
    --accent: #ff9800;
    --accent-hover: #f57c00;
    --purple: #7c4dff;
    --green: #00c853;
    --blue: #0288d1;
    --pink: #e91e8c;
    --bg: #f0f9ff;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-muted: #5c7080;
    --shadow: 0 4px 20px rgba(0,96,100,0.10);
    --shadow-lg: 0 10px 40px rgba(0,96,100,0.18);
    --radius: 20px;
    --radius-btn: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Comic Neue', cursive, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
p { color: var(--text-muted); font-size: 1.05rem; }
.highlight { color: var(--accent); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-btn);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.primary-btn {
    background: linear-gradient(135deg, var(--accent), #ff5722);
    color: white;
    box-shadow: 0 5px 20px rgba(255,152,0,0.35);
}
.primary-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(255,152,0,0.45); }
.ghost-btn { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.ghost-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(255,152,0,0.35); }
    50% { box-shadow: 0 5px 30px rgba(255,152,0,0.6), 0 0 0 8px rgba(255,152,0,0.1); }
}
.pulse { animation: pulse 2.5s ease-in-out infinite; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 5%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: var(--transition);
}
.navbar.scrolled { padding: 0.6rem 5%; }
.logo {
    font-family: 'Comic Neue', cursive;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}
.logo-k { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Language Switcher */
.language-switcher { display: flex; background: #f0f0f0; border-radius: 50px; padding: 4px; }
.language-switcher button {
    background: transparent; border: none; padding: 5px 10px;
    border-radius: 50px; font-size: 1.1rem;
    cursor: pointer; transition: var(--transition);
}
.language-switcher button.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.bar { display: block; width: 24px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--transition); }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: space-between;
    padding: 110px 5% 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e0f7fa 0%, #fff8f0 60%, #fce4ec 100%);
}

/* Bubbles */
.hero-bg-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    animation: floatBubble linear infinite;
}
.b1 { width: 300px; height: 300px; background: var(--primary-light); top: -80px; right: 10%; animation-duration: 14s; }
.b2 { width: 180px; height: 180px; background: var(--accent); bottom: 10%; left: 5%; animation-duration: 18s; animation-delay: -4s; }
.b3 { width: 120px; height: 120px; background: var(--purple); top: 40%; left: 20%; animation-duration: 12s; animation-delay: -8s; }
.b4 { width: 220px; height: 220px; background: var(--green); bottom: -60px; right: 30%; animation-duration: 20s; animation-delay: -2s; }

@keyframes floatBubble {
    0% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30px) translateX(15px); }
    66% { transform: translateY(15px) translateX(-10px); }
    100% { transform: translateY(0) translateX(0); }
}

.hero-content { flex: 1; max-width: 580px; position: relative; z-index: 1; }
.hero-badge {
    display: inline-block;
    background: rgba(0,96,100,0.1);
    color: var(--primary);
    padding: 6px 16px; border-radius: 50px;
    font-weight: 800; font-size: 0.9rem;
    margin-bottom: 1.2rem;
}
.hero-content h1 { margin-bottom: 1rem; color: var(--text); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; }
.stat-divider { width: 1px; height: 40px; background: #ccc; }

/* Phone Mockup */
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; }
.phone-mockup {
    max-width: 320px; width: 100%;
    border-radius: 36px;
    background: var(--card-bg);
    padding: 8px;
    box-shadow: 0 25px 60px rgba(0,96,100,0.22), 0 5px 15px rgba(0,0,0,0.08);
    animation: floatPhone 6s ease-in-out infinite;
}
.phone-mockup img { width: 100%; border-radius: 28px; display: block; }

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ==================== FEATURES ==================== */
.features { padding: 90px 5%; background: white; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header.light .section-title { color: white; }
.section-header.light p { color: rgba(255,255,255,0.85); }
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900; font-size: 0.8rem; letter-spacing: 3px;
    margin-bottom: 0.5rem;
}
.section-title { color: var(--text); margin-bottom: 1rem; }
.section-desc { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
    max-width: 1100px; margin: 0 auto;
}
.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    transition: var(--transition);
    border: 2px solid transparent;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    background: white;
}
.feature-icon-wrap {
    width: 70px; height: 70px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
}
.feature-icon-wrap.teal { background: #e0f7fa; }
.feature-icon-wrap.orange { background: #fff3e0; }
.feature-icon-wrap.purple { background: #ede7f6; }
.feature-icon-wrap.green { background: #e8f5e9; }
.feature-icon-wrap.blue { background: #e1f5fe; }
.feature-icon-wrap.pink { background: #fce4ec; }
.feature-icon { width: 48px; height: 48px; object-fit: contain; }
.emoji-icon { font-size: 2.2rem; }
.feature-card h3 { color: var(--text); font-size: 1.2rem; }

/* ==================== SCREENSHOTS ==================== */
.screenshots {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    overflow: hidden;
}
.screenshots .section-header { padding: 0 5%; }
.screenshots .section-title { color: white; }
.screenshots .section-tag {
    -webkit-text-fill-color: var(--accent);
    color: var(--accent);
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    display: flex; align-items: center;
    padding: 2rem 0;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1rem 5%;
    cursor: grab;
}
.carousel-track.dragging { cursor: grabbing; }
.carousel-slide {
    flex: 0 0 auto;
    width: clamp(280px, 40vw, 480px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    transform: scale(0.95);
}
.carousel-slide.active { transform: scale(1); }
.carousel-slide img { width: 100%; display: block; }

.carousel-btn {
    position: absolute;
    z-index: 10;
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px; height: 48px;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    color: var(--primary);
}
.carousel-btn:hover { transform: scale(1.1); background: var(--accent); color: white; }
.carousel-btn.prev { left: 2%; }
.carousel-btn.next { right: 2%; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 0 5% 1rem; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--accent); transform: scale(1.4); width: 22px; border-radius: 4px; }

/* ==================== DOWNLOAD ==================== */
.download { padding: 80px 5%; background: white; }
.download-card {
    max-width: 900px; margin: 0 auto;
    background: linear-gradient(135deg, #e0f7fa, #fff8f0);
    border-radius: 30px;
    padding: 3.5rem;
    display: flex; align-items: center; gap: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(0,96,100,0.1);
    position: relative;
    overflow: hidden;
}
.download-content { flex: 2; }
.download-content h2 { color: var(--text); margin-bottom: 0.8rem; }
.store-buttons { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.store-btn {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    background: var(--text);
    color: white;
    padding: 12px 22px;
    border-radius: 14px;
    transition: var(--transition);
    min-width: 180px;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.store-btn.apple { background: #1c1c1e; }
.store-btn.google { background: #1a73e8; }
.store-logo { width: 24px; height: 24px; flex-shrink: 0; }
.store-text small { font-size: 0.7rem; display: block; opacity: 0.85; }
.store-text strong { font-size: 1.05rem; }

/* Floating Emojis */
.download-illustration { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; font-size: 4rem; min-height: 120px; }
.emoji-float {
    position: absolute;
    animation: floatEmoji 3s ease-in-out infinite;
}
@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(10deg); }
}
.emoji-float:nth-child(1) { animation-delay: 0s; top: 10%; left: 20%; }
.emoji-float:nth-child(2) { animation-delay: 0.8s; top: 50%; right: 10%; }
.emoji-float:nth-child(3) { animation-delay: 1.6s; bottom: 10%; left: 40%; }

/* ==================== FOOTER ==================== */
.footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 3rem 5%; text-align: center; }
.footer-content { max-width: 700px; margin: 0 auto; }
.footer-logo { font-family: 'Comic Neue', cursive; font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.footer p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 1.2rem 0; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem !important; margin-top: 1rem; }

/* ==================== FADE IN ANIMATION ==================== */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 3rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { width: 100%; }
    .phone-mockup { max-width: 260px; }
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0;
        background: white;
        padding: 1.5rem 5%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        gap: 1.2rem;
    }
    .download-card { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
    .download-illustration { min-height: 80px; }
    .carousel-btn { display: none; }
}

@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .store-buttons { flex-direction: column; }
    .store-btn { min-width: 100%; justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
}
