:root {
    --teal: #18A77B;
    --teal-dark: #0F7A5C;
    --teal-light: #E8F8F2;
    --teal-glow: rgba(24,167,123,0.35);
    --ink: #0F172A;
    --ink-muted: #64748B;
    --surface: #FFFFFF;
    --canvas: #FAFCFB;
    --border: #E2E8F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3 { line-height: 1.25; }

/* ============ REVEAL-ON-LOAD ANIMATION ============ */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--d, 0s);
}

/* ============ NAV ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}
.brand-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--teal-glow);
    transition: transform 0.3s;
}
.nav-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

/* ============ LANGUAGE DROPDOWN ============ */
.lang-dropdown { position: relative; }
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: background 0.2s;
}
.lang-trigger:hover { background: #d7f2e6; }
.chevron { transition: transform 0.25s; font-size: 11px; }
.lang-dropdown.open .chevron { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.12);
    padding: 6px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.lang-menu button {
    background: transparent;
    border: none;
    text-align: start;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.15s;
}
.lang-menu button:hover { background: var(--teal-light); }
.lang-menu button.active { background: var(--teal); color: white; }

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 110px 24px 70px;
    overflow: hidden;
    text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(24,167,123,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24,167,123,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
    animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--teal); top: -140px; left: -100px; }
.blob-2 { width: 340px; height: 340px; background: #86EFC0; bottom: -100px; right: -60px; animation-delay: -4s; }
.blob-3 { width: 260px; height: 260px; background: var(--teal-dark); top: 35%; left: 55%; animation-delay: -9s; opacity: 0.2; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(35px, -35px) scale(1.1) rotate(8deg); }
    66% { transform: translate(-25px, 25px) scale(0.92) rotate(-6deg); }
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 30px;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
    70% { box-shadow: 0 0 0 8px rgba(24,167,123,0); }
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 22px;
}
.gradient-text {
    background: linear-gradient(100deg, var(--ink) 30%, var(--teal-dark) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 17.5px;
    color: var(--ink-muted);
    max-width: 540px;
    margin: 0 auto 38px;
}

.hero-note {
    margin-top: 20px;
    font-size: 12.5px;
    color: #B45309;
    background: #FEF3C7;
    display: inline-block;
    padding: 9px 18px;
    border-radius: 10px;
    max-width: 480px;
    animation: revealUp 0.6s ease forwards;
}

/* ============ HERO STATS ============ */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num, .stat-plus {
    font-size: 30px;
    font-weight: 900;
    color: var(--teal-dark);
}
.stat-label {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 600;
    margin-top: 2px;
}
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ============ SCROLL INDICATOR ============ */
.scroll-indicator {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 56px;
}
.scroll-indicator span {
    width: 26px; height: 42px;
    border: 2px solid var(--border);
    border-radius: 16px;
    position: relative;
    display: block;
}
.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    background: var(--teal);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { opacity: 1; top: 8px; }
    70% { opacity: 0; top: 20px; }
    100% { opacity: 0; top: 8px; }
}

/* ============ DOWNLOAD BUTTONS ============ */
.download-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    box-shadow: 0 6px 18px var(--teal-glow);
}
.download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
}
.download-btn:hover::before { left: 130%; }
.download-btn:hover { transform: translateY(-4px) scale(1.02); }
.btn-icon { font-size: 18px; }

.download-btn--googlePlay, .download-btn--directDownload { background: var(--teal); color: white; }
.download-btn--appStore { background: var(--ink); color: white; box-shadow: 0 6px 18px rgba(15,23,42,0.3); }

/* ============ SECTION SHARED ============ */
.section-head { text-align: center; max-width: 560px; margin: 0 auto 52px; }
.eyebrow {
    display: inline-block;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 14px;
}
.section-head h2 { font-size: 32px; font-weight: 800; }

/* ============ SERVICES ============ */
.services { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px 26px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.1);
    border-color: var(--teal);
}
.service-icon-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.service-card:hover .service-icon-wrap {
    transform: rotate(-8deg) scale(1.1);
    background: var(--teal);
}
.service-icon { font-size: 34px; transition: transform 0.4s; }
.service-card:hover .service-icon { transform: scale(1.15); }
.service-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--ink-muted); }

/* ============ HOW IT WORKS ============ */
.how-it-works {
    padding: 100px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.steps {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.step-line {
    position: absolute;
    top: 28px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--teal) 0 8px, transparent 8px 16px);
    opacity: 0.4;
    z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-number {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px var(--teal-glow);
    transition: transform 0.3s;
}
.step:hover .step-number { transform: scale(1.12) rotate(-6deg); }
.step h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-muted); }

/* ============ FINAL CTA ============ */
.final-cta {
    position: relative;
    padding: 110px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    overflow: hidden;
}
.cta-blob {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -250px; right: -150px;
    animation: float 16s ease-in-out infinite;
}
.final-cta h2 { position: relative; font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.final-cta p { position: relative; font-size: 16px; opacity: 0.9; margin-bottom: 38px; }
.final-cta .download-buttons { position: relative; }
.final-cta .download-btn--googlePlay,
.final-cta .download-btn--directDownload { background: white; color: var(--teal-dark); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.final-cta .download-btn--appStore { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.4); }

/* ============ FOOTER ============ */
.footer { padding: 44px 24px; background: var(--ink); color: rgba(255,255,255,0.7); }
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: white; font-weight: 700; }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 44px; }
    .step-line { display: none; }
}

@media (max-width: 600px) {
    .hero { padding: 80px 20px 50px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 18px; }
    .stat-num, .stat-plus { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .download-buttons { flex-direction: column; align-items: stretch; }
    .download-btn { justify-content: center; }
    .section-head h2 { font-size: 25px; }
    .final-cta h2 { font-size: 25px; }
    .lang-menu { inset-inline-end: -8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}