:root {
    --sky: #c9eeff;
    --yellow: #ffe44d;
    --yellow-dk: #f5c800;
    --mint: #b8f0c8;
    --coral: #ff7f7f;
    --coral-dk: #ff5555;
    --pink: #ffb3c6;
    --lavender: #d6c9ff;
    --white: #ffffff;
    --text: #2d2d2d;
    --text-soft: #666;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.09);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.13);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --font-body: 'Nunito', sans-serif;
}

*, ::after, ::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--sky);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(175deg, #c2eeff 0%, #daf5ff 45%, #f0fcff 80%, #fffde8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 20px 90px;
    overflow: hidden;
    text-align: center;
}

.hero__clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    background: #fff;
    opacity: 0.65;
    filter: blur(1.5px);
    border-radius: 99px;
}

.cloud::after, .cloud::before {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.cloud--1 {
    width: 84px;
    height: 26px;
    top: 8%;
    left: -8px;
    animation: floatCloud 12s ease-in-out infinite;
}

.cloud--1::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud--1::after {
    width: 30px;
    height: 30px;
    top: -14px;
    left: 36px;
}

.cloud--2 {
    width: 68px;
    height: 20px;
    top: 20%;
    right: -4px;
    animation: floatCloud 16s ease-in-out 2s infinite reverse;
}

.cloud--2::before {
    width: 34px;
    height: 34px;
    top: -17px;
    left: 8px;
}

.cloud--2::after {
    width: 24px;
    height: 24px;
    top: -11px;
    left: 28px;
}

.cloud--3 {
    width: 100px;
    height: 28px;
    top: 36%;
    left: 6%;
    animation: floatCloud 19s ease-in-out 4s infinite;
}

.cloud--3::before {
    width: 46px;
    height: 46px;
    top: -24px;
    left: 14px;
}

.cloud--3::after {
    width: 34px;
    height: 34px;
    top: -16px;
    left: 48px;
}

@keyframes floatCloud {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    animation: fadeInDown 0.6s ease;
}

.hero__tagline {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-weight: 800;
    color: #2a607a;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    padding: 10px 22px;
    border-radius: 99px;
    box-shadow: var(--shadow-sm);
}

.hero__badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 99px;
    letter-spacing: 0.04em;
}

.badge--free {
    background: var(--mint);
    color: #1a7a3a;
}

.badge--mobile {
    background: var(--lavender);
    color: #4a2d8a;
}

.hero__visual {
    position: relative;
    z-index: 1;
    width: min(380px, 94vw);
    margin-top: 28px;
    animation: visualPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero__visual-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.85);
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--mint), var(--sky));
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

@keyframes visualPop {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(18px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(56% 100% at 50% 100%);
}

/* FEATURES SECTION */
.features {
    background: var(--white);
    padding: 56px 20px 64px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-dk);
    background: var(--pink);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.section-label i {
    font-size: 0.88rem;
    line-height: 1;
}

.section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.15;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 500px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 14px 22px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-card__icon i {
    font-size: 1.5rem;
    line-height: 1;
}

.feature-card__title {
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 7px;
    line-height: 1.2;
}

.feature-card__desc {
    font-size: clamp(0.7rem, 2.4vw, 0.78rem);
    color: var(--text-soft);
    line-height: 1.55;
}

/* DOWNLOAD SECTION */
.download {
    position: relative;
    background: linear-gradient(160deg, #ffe8a3 0%, #ffd04a 55%, #ffb347 100%);
    padding: 70px 20px 90px;
    overflow: hidden;
    text-align: center;
}

.download__bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: bubbleFloat 6s ease-in-out infinite;
}

.download__bubble--1 {
    width: 150px;
    height: 150px;
    background: var(--coral);
    top: -36px;
    left: -36px;
    animation-delay: 0s;
}

.download__bubble--2 {
    width: 100px;
    height: 100px;
    background: var(--mint);
    bottom: 36px;
    right: -18px;
    animation-delay: 1.5s;
}

.download__bubble--3 {
    width: 68px;
    height: 68px;
    background: var(--lavender);
    top: 48%;
    right: 18px;
    animation-delay: 3s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-16px) scale(1.05);
    }
}

.download__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.download__title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
}

.download__sub {
    font-size: clamp(0.88rem, 3.2vw, 1rem);
    font-weight: 600;
    color: #5a4a00;
    max-width: 290px;
    line-height: 1.55;
}

.store-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
    min-width: 150px;
    text-decoration: none;
    font-family: var(--font-body);
}

.store-btn:hover {
    transform: scale(1.06) translateY(-2px);
}

.store-btn:active {
    transform: scale(0.95);
}

.store-btn--apple {
    background: #000;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.store-btn--google {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.store-btn__logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-btn__text small {
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.78;
    letter-spacing: 0.02em;
}

.store-btn__text strong {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* FOOTER */
.footer {
    background: #1e2a3a;
    color: rgba(255, 255, 255, 0.55);
    padding: 26px 20px;
    text-align: center;
}

.footer__copy {
    font-size: 0.7rem;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 40, 70, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 480px;
    width: 90%;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 6px solid rgba(255, 228, 77, 0.3);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 30px;
    min-height: 24px;
}

.progress-bar-wrap {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--coral));
    border-radius: 99px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

/* VERIFICATION MODAL */
.verify-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(20, 40, 70, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-overlay.active {
    display: flex;
}

.verify-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.verify-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.verify-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.verify-desc {
    font-size: 1rem;
    color: var(--text-soft);
    margin-bottom: 30px;
}

.timer-box {
    background: linear-gradient(135deg, var(--coral), var(--coral-dk));
    color: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: var(--shadow-md);
}

.timer-box i {
    font-size: 2rem;
}

.verify-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.verify-notice i {
    font-size: 1.5rem;
    color: #ff9800;
    flex-shrink: 0;
}

.verify-notice p {
    font-size: 0.9rem;
    color: var(--text);
}

.verify-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    border-radius: 99px;
    padding: 20px 40px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 0 #1b5e20, 0 10px 24px rgba(76, 175, 80, 0.35);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
}

.verify-btn i {
    font-size: 1.5rem;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #1b5e20, 0 12px 28px rgba(76, 175, 80, 0.4);
}

.verify-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1b5e20, 0 4px 12px rgba(76, 175, 80, 0.3);
}

.verify-note {
    font-size: 0.8rem;
    color: var(--text-soft);
    opacity: 0.8;
}

/* TIMEOUT MODAL */
.timeout-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(20, 40, 70, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.timeout-overlay.active {
    display: flex;
}

.timeout-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.timeout-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--coral), var(--coral-dk));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(255, 127, 127, 0.4);
}

.timeout-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.timeout-desc {
    font-size: 1rem;
    color: var(--text-soft);
    margin-bottom: 30px;
}

.restart-btn {
    background: linear-gradient(135deg, var(--yellow), #ffc200);
    border: none;
    border-radius: 99px;
    padding: 18px 36px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 0 var(--yellow-dk), 0 8px 20px rgba(255, 193, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.restart-btn i {
    font-size: 1.4rem;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--yellow-dk), 0 12px 24px rgba(255, 193, 0, 0.5);
}

.restart-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--yellow-dk), 0 4px 12px rgba(255, 193, 0, 0.3);
}

/* Responsive */
@media (min-width: 640px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 620px;
    }
}

@media (max-width: 480px) {
    .loading-box, .verify-modal, .timeout-modal {
        padding: 30px 24px;
    }
}