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

:root {
    --brand-900: #2D2F8F;
    --brand-800: #4F58E2;
    --brand-700: #6169E6;
    --brand-500: #7D84EC;
    --brand-300: #AEB3F3;
    --brand-200: #D2D5F9;
    --brand-100: #E8EAFC;
    --brand-50:  #F4F5FE;
    --teal: #17B8B0;
    --sky-start: #DCE0FB;
    --sky-mid:   #E9F7F5;
    --sky-end:   #F6FDFC;
    --text-dark:  #232B4D;
    --text-mid:   #4A5578;
    --text-light: #8890B0;
    --white: #FFFFFF;
    --font: 'Montserrat', system-ui, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 4px 24px rgba(79, 88, 226, 0.12);
    --shadow-lg: 0 8px 40px rgba(79, 88, 226, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-800);
    text-decoration: none;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(150deg, var(--sky-start) 0%, var(--sky-mid) 50%, var(--sky-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 48px 80px;
    gap: 80px;
}

/* Animated clouds */
.clouds { position: absolute; inset: 0; pointer-events: none; }

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.65;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1 { width: 200px; height: 60px; top: 12%; left: -40px; animation: drift 28s linear infinite; }
.cloud-1::before { width: 100px; height: 80px; top: -40px; left: 30px; }
.cloud-1::after  { width: 70px;  height: 60px; top: -30px; left: 90px; }

.cloud-2 { width: 140px; height: 44px; top: 28%; left: 30%; opacity: 0.45; animation: drift 36s linear infinite 4s; }
.cloud-2::before { width: 70px; height: 60px; top: -30px; left: 20px; }
.cloud-2::after  { width: 50px; height: 44px; top: -22px; left: 60px; }

.cloud-3 { width: 180px; height: 50px; top: 8%; right: 10%; opacity: 0.5; animation: drift 32s linear infinite 8s reverse; }
.cloud-3::before { width: 90px; height: 70px; top: -35px; left: 25px; }
.cloud-3::after  { width: 60px; height: 50px; top: -26px; left: 80px; }

.cloud-4 { width: 120px; height: 38px; bottom: 20%; right: 25%; opacity: 0.4; animation: drift 42s linear infinite 12s; }
.cloud-4::before { width: 60px; height: 50px; top: -25px; left: 15px; }
.cloud-4::after  { width: 45px; height: 38px; top: -18px; left: 55px; }

@keyframes drift {
    from { transform: translateX(-120px); }
    to   { transform: translateX(calc(100vw + 120px)); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-content h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-content h1 .accent {
    color: var(--brand-800);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 36px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary {
    background: var(--brand-800);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--white);
    color: var(--brand-800);
    border: 2px solid var(--brand-300);
}

.btn-large { padding: 18px 40px; font-size: 18px; }

.coming-soon {
    font-size: 13px;
    color: var(--text-light);
}

/* ── PHONE MOCKUP ────────────────────────────────── */
.phone-mockup {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}

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

.phone-frame {
    width: 260px;
    height: 520px;
    background: var(--brand-900);
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(45,47,143,0.35), 0 4px 12px rgba(45,47,143,0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #DCE0FB 0%, #F4F5FE 100%);
    border-radius: 28px;
    overflow: hidden;
    padding: 24px 16px 16px;
}

.mock-app { display: flex; flex-direction: column; gap: 10px; }

.mock-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-800);
}

.mock-prompt {
    font-size: 11px;
    color: var(--text-mid);
    margin-bottom: 2px;
}

.mock-input {
    background: white;
    border-radius: 14px;
    padding: 12px;
    font-size: 11px;
    color: var(--text-mid);
    line-height: 1.5;
    min-height: 72px;
    box-shadow: 0 2px 8px rgba(79,88,226,0.08);
}

.mock-btn {
    align-self: flex-end;
    background: var(--brand-800);
    color: white;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mock-entry {
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(79,88,226,0.07);
}

.mock-date { font-size: 10px; color: var(--text-light); }
.mock-text { font-size: 11px; color: var(--text-dark); font-weight: 600; }

.mock-state {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 999px;
}
.mock-state.on  { background: #E4F5E7; color: #1B5E20; }
.mock-state.off { background: #F0F1F5; color: #8890B0; }
.mock-state.dry { background: var(--brand-100); color: var(--brand-800); }

/* ── FEATURES ────────────────────────────────────── */
.features {
    padding: 100px 48px;
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.features h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--brand-50);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--brand-100);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-800);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-mid);
}

/* ── DOWNLOAD ────────────────────────────────────── */
.download {
    background: linear-gradient(135deg, var(--brand-800), var(--brand-900));
    padding: 100px 48px;
    text-align: center;
    color: var(--white);
}

.download h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 16px;
}

.download p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 36px;
}

.download .btn-primary {
    background: var(--white);
    color: var(--brand-800);
}

.apk-note {
    margin-top: 24px;
    font-size: 13px;
    opacity: 0.7;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
    padding: 40px 48px;
    background: var(--brand-900);
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

footer p {
    font-size: 14px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 100px 24px 60px;
        gap: 48px;
    }

    .nav { padding: 20px 24px; }
    .download-buttons { justify-content: center; }

    .phone-mockup {
        width: 220px;
    }
    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .features { padding: 60px 24px; }
    .download  { padding: 60px 24px; }
    footer     { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 36px; }
}
