/* === Variables === */
:root {
    --yellow: #FFD138;
    --yellow-light: #fff8e0;
    --yellow-dark: #e6b800;
    --orange: #FF9F43;
    --orange-light: #fff3e6;
    --teal: #1b8a7a;
    --teal-light: #e0f5f1;
    --pink: #FF6B8A;
    --pink-light: #ffe5ec;
    --purple: #7C5CFC;
    --purple-light: #ede5ff;
    --bg: #f5f0ea;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* === Utilities === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-yellow { color: var(--yellow-dark); }

/* === Nav === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245,240,234,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(245,240,234,0.95); }
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--text-muted); transition: all 0.2s;
    margin-right: 4px;
}
.nav-back:hover { background: var(--yellow-light); color: var(--yellow-dark); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.nav-icon { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.logo-text { color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.85rem; font-weight: 600;
    padding: 8px 20px; border-radius: 999px;
    background: var(--yellow); color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,209,56,0.4); }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 16px 24px;
    }
    .nav-links.open a { padding: 12px 0; font-size: 1rem; }
}

/* === Hero === */
.hero {
    position: relative; padding: 140px 0 80px; overflow: hidden;
    background: linear-gradient(170deg, var(--yellow-light) 0%, var(--bg) 60%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: 0.12; }
.shape-1 { width: 500px; height: 500px; background: var(--yellow); top: -150px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--pink); bottom: -80px; left: -60px; }
.shape-3 { width: 200px; height: 200px; background: var(--orange); top: 40%; left: 30%; }

.hero-content { display: flex; align-items: center; gap: 60px; position: relative; }
.hero-text { flex: 1; }
.hero-badge {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px;
    background: var(--yellow-light); color: var(--yellow-dark); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; margin-bottom: 32px; line-height: 1.65; }
.hero-actions { margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--yellow-dark); }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero visual */
.hero-visual { flex-shrink: 0; }
.hero-app-icon {
    width: 200px; height: 200px; border-radius: 44px;
    box-shadow: 0 16px 48px rgba(255,209,56,0.3), 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
    .hero-actions { display: flex; justify-content: center; }
    .hero-app-icon { width: 140px; height: 140px; border-radius: 32px; }
}
@media (max-width: 560px) {
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px;
    background: var(--yellow-light); color: var(--yellow-dark); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }

/* === Features === */
.features { padding: 96px 0; }
.features-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.feature-card {
    background: var(--card); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem;
}
.feature-icon.yellow { background: var(--yellow-light); }
.feature-icon.pink { background: var(--pink-light); }
.feature-icon.teal { background: var(--teal-light); }
.feature-icon.purple { background: var(--purple-light); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.feature-list {
    list-style: none; padding: 0; margin: 10px 0 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.feature-list li {
    font-size: 0.78rem; font-weight: 500;
    padding: 4px 10px; border-radius: 999px;
    background: var(--bg); color: var(--text-muted);
}

@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* === Screenshots === */
.screenshots { padding: 96px 0; background: var(--yellow-light); }
.screenshots-wrapper {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.screenshots-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 20px; overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
    flex-shrink: 0;
    width: 260px;
    scroll-snap-align: start;
}
.screenshot-item img {
    width: 100%; border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}
.screenshot-item img:hover { transform: scale(1.03); }
.screenshot-caption {
    text-align: center; margin-top: 12px;
    font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
}
.scroll-btn {
    flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.scroll-btn:hover { background: var(--yellow); color: #fff; border-color: var(--yellow); }
@media (max-width: 768px) {
    .scroll-btn { width: 36px; height: 36px; }
    .screenshots-wrapper { gap: 8px; padding: 0 8px; }
}
@media (max-width: 560px) {
    .screenshot-item { width: 180px; }
}

/* === CTA === */
.cta { padding: 80px 0 96px; }
.cta-card {
    text-align: center; padding: 64px 40px; border-radius: 24px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    color: var(--text);
    display: flex; flex-direction: column; align-items: center;
}
.cta-icon {
    width: 88px; height: 88px; border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.cta-card p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 32px; }

/* === Highlights === */
.highlights { padding: 60px 0; }
.highlights-grid {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
    max-width: 800px; margin: 0 auto;
}
.highlight-item {
    display: flex; align-items: center; gap: 8px;
    background: var(--card); padding: 10px 18px; border-radius: 999px;
    box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 500;
}
.highlight-icon { font-size: 1.1rem; }

/* === Our Story === */
.our-story { padding: 96px 0; background: var(--yellow-light); }
.story-content {
    max-width: 680px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 24px;
}
.story-block {
    background: var(--card); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
}
.story-block h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--yellow-dark); }
.story-block p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
.story-block p + p { margin-top: 12px; }
.story-block em { font-style: italic; color: var(--text); }
.story-link { color: var(--yellow-dark); font-weight: 600; transition: opacity 0.2s; }
.story-link:hover { opacity: 0.7; }
.story-apps {
    display: flex; justify-content: center; gap: 32px;
    flex-wrap: wrap; margin-top: 40px;
}
.story-app-link {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 24px 32px; border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    font-weight: 600; font-size: 0.95rem;
    flex: 1 1 0; max-width: 200px;
}
.story-app-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-app-link.active { border-color: var(--yellow-dark); }
.story-app-icon {
    width: 64px; height: 64px; border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.story-app-lang {
    font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
    padding: 2px 10px; border-radius: 999px; background: var(--bg);
}

/* === Footer === */
.footer { padding: 32px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-back { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.footer-back:hover { color: var(--yellow-dark); }

@media (max-width: 560px) {
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* === Animations === */
[data-animate] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible {
    opacity: 1; transform: translateY(0);
}
