/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --primary-glow: rgba(108, 92, 231, .15);
    --primary-shadow-lg: rgba(108, 92, 231, .35);
    --primary-shadow-md: rgba(108, 92, 231, .25);
    --primary-shadow-sm: rgba(108, 92, 231, .12);
    --primary-shadow-xs: rgba(108, 92, 231, .06);
    --primary-shadow-border: rgba(108, 92, 231, .1);
    --primary-shadow-border-hover: rgba(108, 92, 231, .15);
    --primary-shadow-border-open: rgba(108, 92, 231, .2);
    --primary-shadow-faq: rgba(108, 92, 231, .06);
    --primary-shadow-faq-open: rgba(108, 92, 231, .08);
    --primary-shadow-step: rgba(108, 92, 231, .3);
    --primary-shadow-step-hover: rgba(108, 92, 231, .4);
    --primary-hero-blob: rgba(162, 155, 254, .1);
    --primary-tint-1: #f8f6ff;
    --primary-tint-2: #f3f0ff;
    --primary-tint-3: #ede8ff;
    --primary-section-bg: #f5f3ff;
    --primary-track-bg: #f0edf8;
    --primary-preset-color: #c0bdd0;
    --primary-deep: #4834d4;
    --bg: #FAFAFE;
    --text: #16162a;
    --text-light: #6b7280;
    --card-bg: #fff;
    --radius: 12px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50%      { box-shadow: 0 0 0 16px transparent; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes thumbBounce {
    0%, 100% { left: 60%; }
    30%      { left: 45%; }
    70%      { left: 72%; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ===== NAV ===== */
nav {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 254, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: box-shadow .3s;
}
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
    transition: transform .2s;
}
.logo:hover { transform: scale(1.03); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: color .2s;
    position: relative;
}
.nav-links li:not(:last-child) a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav-links li:not(:last-child) a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all .25s cubic-bezier(.22,1,.36,1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-shadow-lg);
}
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 20px; font-size: 14px; border-radius: 8px; }
.btn-sm::before { display: none; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline::before { display: none; }
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-shadow-md);
}
.btn-white {
    background: #fff;
    color: var(--primary);
}
.btn-white:hover {
    background: var(--primary-tint-2);
    box-shadow: 0 8px 24px rgba(255,255,255,.25);
}

/* ===== HERO ===== */
.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 100px 32px 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}
/* subtle gradient blobs behind hero */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-hero-blob) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    pointer-events: none;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-text {
    flex: 1;
    max-width: 560px;
    position: relative;
    z-index: 1;
    animation: slideInLeft .8s cubic-bezier(.22,1,.36,1) both;
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-tint-2), var(--primary-tint-3));
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-shadow-sm);
}
.hero-text h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -.03em;
}
.hero-text h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.75;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-sub {
    margin-top: 20px !important;
    font-size: 13px !important;
    color: #b0b0b0 !important;
}

/* Speed widget visual */
.hero-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: slideInRight .8s cubic-bezier(.22,1,.36,1) .15s both;
}
.speed-widget {
    width: 310px;
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow:
        0 20px 60px var(--primary-shadow-sm),
        0 1px 3px rgba(0,0,0,.04),
        0 0 0 1px var(--primary-shadow-xs);
    text-align: center;
    animation: float 5s ease-in-out infinite;
    position: relative;
}
/* decorative dot accents */
.speed-widget::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: .1;
    top: -16px;
    right: -16px;
}
.speed-widget::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .08;
    bottom: -8px;
    left: -8px;
}
.speed-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.speed-display {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 22px;
}
.speed-bar { padding: 0 4px; margin-bottom: 22px; }
.speed-track {
    height: 6px;
    background: var(--primary-track-bg);
    border-radius: 3px;
    position: relative;
}
.speed-fill {
    position: absolute;
    left: 0; top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width .6s cubic-bezier(.22,1,.36,1);
}
.speed-thumb {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px var(--primary-shadow-lg);
    animation: pulse 2.5s ease-in-out infinite;
    transition: left .6s cubic-bezier(.22,1,.36,1);
}
.speed-presets {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.speed-presets span {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-preset-color);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.22,1,.36,1);
}
.speed-presets span:hover {
    color: var(--primary);
    background: var(--primary-tint-1);
}
.speed-presets span.active {
    background: linear-gradient(135deg, var(--primary-tint-2), var(--primary-tint-3));
    color: var(--primary);
}

/* ===== SECTION SHARED ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 52px;
}
.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}
.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* ===== FEATURES ===== */
.features {
    max-width: 1120px;
    margin: 0 auto;
    padding: 100px 32px;
    position: relative;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 36px 28px;
    border: 1px solid rgba(0,0,0,.04);
    transition: all .35s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--primary-shadow-border), 0 2px 8px rgba(0,0,0,.04);
    border-color: var(--primary-shadow-border);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform .3s;
    box-shadow: 0 4px 12px var(--primary-shadow-md);
}
.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-3deg);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.how {
    max-width: 1120px;
    margin: 0 auto;
    padding: 100px 32px;
    background: linear-gradient(180deg, transparent, var(--primary-section-bg) 30%, var(--primary-section-bg) 70%, transparent);
    border-radius: 40px;
}
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 0 20px;
}
.step-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px var(--primary-shadow-step);
    transition: transform .3s, box-shadow .3s;
}
.step:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 8px 28px var(--primary-shadow-step-hover);
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.step-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    margin-top: 28px;
    flex-shrink: 0;
    border-radius: 1px;
    opacity: .4;
}

/* ===== FAQ ===== */
.faq {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 32px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,.04);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.22,1,.36,1);
}
.faq-item:hover {
    border-color: var(--primary-shadow-border-hover);
    box-shadow: 0 4px 16px var(--primary-shadow-faq);
}
.faq-item[open] {
    border-color: var(--primary-shadow-border-open);
    box-shadow: 0 4px 20px var(--primary-shadow-faq-open);
}
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--primary);
    font-weight: 400;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-tint-1);
    flex-shrink: 0;
    transition: transform .3s, background .3s;
}
.faq-item[open] summary::after {
    content: "\2212";
    transform: rotate(180deg);
    background: var(--primary-tint-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    animation: fadeUp .3s cubic-bezier(.22,1,.36,1);
}

/* ===== CTA ===== */
.cta {
    max-width: 1120px;
    margin: 0 auto 100px;
    padding: 72px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-deep) 100%);
    border-radius: 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* decorative circles */
.cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    top: -100px;
    right: -60px;
}
.cta::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    bottom: -60px;
    left: -40px;
}
.cta h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
}
.cta p {
    font-size: 18px;
    opacity: .85;
    margin-bottom: 32px;
    position: relative;
}
.cta .btn {
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid rgba(0,0,0,.04);
    background: #fff;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 32px 36px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand p {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-links h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 14px;
}
.footer-links a {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
    transition: color .2s, transform .2s;
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #b0b0b0;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 32px 80px;
    animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
}
.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}
.legal-page .updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
}
.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
}
.legal-page p, .legal-page li {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-page ul {
    padding-left: 24px;
    margin-bottom: 12px;
}
.legal-page a { color: var(--primary); }

/* ===== CONTACT PAGE ===== */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 32px 80px;
    text-align: center;
    animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
}
.contact-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-page > p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,.04);
    border-radius: 20px;
    padding: 44px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
}
.contact-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.contact-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px 32px;
        border-bottom: 1px solid #eee;
        gap: 16px;
    }
    .nav-links.open { display: flex; }
    .mobile-menu { display: flex; }

    .hero {
        flex-direction: column;
        padding: 50px 24px 40px;
        gap: 40px;
        text-align: center;
    }
    .hero-text { animation-name: fadeUp; }
    .hero-visual { animation-name: fadeUp; animation-delay: .2s; }
    .hero-text h1 { font-size: 36px; }
    .hero-buttons { justify-content: center; }
    .speed-widget { width: 270px; margin: 0 auto; }

    .features { padding: 70px 24px; }
    .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .how { padding: 70px 24px; border-radius: 24px; }
    .steps { flex-direction: column; align-items: center; gap: 24px; }
    .step-line { width: 2px; height: 30px; }

    .faq { padding: 70px 24px; }

    .cta {
        margin-left: 16px;
        margin-right: 16px;
        padding: 52px 24px;
        border-radius: 20px;
    }
    .cta h2 { font-size: 28px; }

    .footer-top { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-inner { padding: 32px 24px 24px; }

    .section-header h2 { font-size: 30px; }
}
