:root {
    --bg: #FDFBF7;
    --text: #1A1A1A;
    --text-sub: #5C5C5C;
    --text-muted: #9E9E9E;
    --white: #FFFFFF;
    --dark: #151515;

    --coral-light: #FFCCBC;
    --coral-dark: #D84315;
    --mint-light: #C8E6C9;
    --mint-dark: #2E7D32;
    --sky-light: #B3E5FC;
    --sky-dark: #0277BD;
    --amber-light: #FFE0B2;
    --amber-dark: #E65100;
    --grey: #78909C;

    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --dur: 0.7s;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Quicksand', 'Noto Sans SC', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
p { color: var(--text-sub); }
a { text-decoration: none; color: inherit; }

/* === Layout === */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.active { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(253,251,247,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 30px; height: 30px; border-radius: 8px; }
.logo-text { font-weight: 700; font-size: 1.15rem; font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--coral-dark); }
.nav-btn {
    background: var(--text);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 99px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.10); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    cursor: pointer;
}
.btn-primary {
    background: var(--text);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.18); }
.btn-ghost { color: var(--text-sub); font-weight: 600; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-icon { width: 18px; height: 18px; }

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: var(--coral-light); top: -80px; right: -60px; }
.orb-2 { width: 480px; height: 480px; background: var(--mint-light); bottom: -160px; left: -80px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: var(--sky-light); top: 45%; left: 40%; animation-delay: -12s; }
.orb-4 { width: 200px; height: 200px; background: var(--amber-light); top: 20%; left: 10%; animation-delay: -3s; }
@keyframes drift {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(25px,-40px) scale(1.08); }
    100% { transform: translate(-15px,20px) scale(0.95); }
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-tagline {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(0,0,0,0.04);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}
.hero-title { font-size: 3.4rem; margin-bottom: 20px; }
.text-gradient {
    background: linear-gradient(135deg, var(--coral-dark), var(--amber-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { font-size: 1.05rem; margin-bottom: 36px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* === Phone Frame === */
.phone-frame {
    width: 290px;
    height: 600px;
    background: var(--white);
    border-radius: 36px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.18);
    border: 6px solid #E8E4DE;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    transform: rotate(-4deg) translateY(10px);
    transition: transform var(--dur) var(--ease);
}
.phone-frame:hover { transform: rotate(0) translateY(0); }
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #E0DCD6;
    border-radius: 3px;
    z-index: 2;
}
.phone-screen {
    padding: 36px 18px 18px;
    height: 100%;
    background: var(--bg);
    position: relative;
}
.phone-screen-img {
    padding: 0 !important;
    overflow: hidden;
    background: transparent;
}
.phone-frame:has(.phone-screen-img) .phone-notch { display: none; }
.screen-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.phone-sm { width: 220px; height: 450px; border-radius: 28px; border-width: 5px; transform: none; }
.phone-sm:hover { transform: translateY(-6px); }
.phone-sm .phone-notch { width: 60px; height: 5px; top: 8px; }
.phone-sm .phone-screen { padding: 30px 12px 12px; }
.phone-sm .phone-screen-img { padding: 0 !important; }

/* === Section Header === */
.section-header { text-align: center; margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 14px; }
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--coral-dark);
    margin-bottom: 10px;
}
.section-label.light { color: var(--coral-light); }
.section-desc { font-size: 0.95rem; }

/* === Color Timeline === */
.color-timeline { display: flex; flex-direction: column; gap: 28px; }
.color-item {
    display: flex;
    align-items: stretch;
    gap: 24px;
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s var(--ease);
}
.color-item:hover { transform: translateX(6px); }
.color-bar {
    width: 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.color-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.color-info p { font-size: 0.88rem; }

/* === Dark Section === */
.section-dark {
    background: var(--dark);
    color: var(--white);
    max-width: 100%;
    border-radius: 0;
}
.section-dark p, .section-dark span { color: #9E9E9E; }

/* === Gesture Section === */
.gesture-center {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.gesture-center .gesture-text { text-align: left; }
.gesture-center h2 { text-align: center; }
.gesture-center .section-label { display: block; text-align: center; }
.gesture-center .gesture-intro { text-align: center; max-width: 540px; margin: 0 auto 36px; }
.gesture-intro { font-size: 1rem; margin-bottom: 36px; }
.gesture-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.gesture-list li { display: flex; gap: 14px; align-items: flex-start; }
.gesture-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.gesture-icon.right-swipe { color: var(--mint-light); }
.gesture-icon.left-swipe { color: var(--text-muted); }
.gesture-icon.long-press { color: var(--sky-light); }
.gesture-list strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 2px; }
.gesture-list span { font-size: 0.85rem; }



/* === Feature Grid === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.feature-emoji { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.88rem; }

/* === Screens Section === */
.section-screens { max-width: 100%; background: linear-gradient(180deg, var(--bg) 0%, #F5F0EA 100%); }
.screen-scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 0 5% 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    flex-wrap: wrap;
}
.screen-item {
    flex-shrink: 0;
    text-align: center;
    scroll-snap-align: center;
}
.screen-label { display: block; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--text-sub); }

/* === Download === */
.download-wrap {
    position: relative;
    text-align: center;
    background: var(--white);
    padding: 72px 36px;
    border-radius: 32px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.04);
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}
.download-bg-orb {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--coral-light) 0%, transparent 70%);
    top: -200px; right: -200px;
    opacity: 0.3;
}
.download-wrap h2 { font-size: 2rem; margin-bottom: 12px; position: relative; }
.download-wrap > p { font-size: 1rem; margin-bottom: 40px; position: relative; }
.download-card {
    background: var(--bg);
    padding: 28px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}
.download-info { display: flex; align-items: center; gap: 16px; }
.download-icon { width: 56px; height: 56px; border-radius: 14px; }
.download-info h3 { font-size: 1.1rem; margin-bottom: 2px; }
.download-info span { font-size: 0.8rem; color: var(--text-muted); }

/* === Footer === */
footer {
    padding: 36px 5%;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.footer-logo { font-weight: 700; font-style: italic; font-size: 1rem; display: block; margin-bottom: 6px; }
footer p { font-size: 0.82rem; color: var(--text-muted); }
.copyright { margin-top: 8px; font-size: 0.72rem !important; color: var(--text-muted); opacity: 0.7; }

/* === Responsive === */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-phone { order: 2; }
    .phone-frame { transform: none; margin-top: 30px; }
    .gesture-center { padding: 0 5%; }
    .nav-links a:not(.nav-btn) { display: none; }
    .download-card { justify-content: center; flex-direction: column; text-align: center; }
    .screen-scroll { justify-content: flex-start; flex-wrap: nowrap; }
}
