/* ============================================================
   Velox — Landing Page
   ============================================================ */

:root {
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --surface: #F4F4F5;
    --surface-2: #E4E4E7;
    
    --text: #18181B;
    --text-2: #3F3F46;
    --text-3: #71717A;
    --text-4: #A1A1AA;
    
    --accent: #071D49;
    --accent-light: #0A70DC;
    --accent-dark: #051334;
    --accent-bg: rgba(7, 29, 73, 0.06);
    
    --gradient: linear-gradient(135deg, #071D49 0%, #0A70DC 50%, #00DEB2 100%);
    
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-accent: 0 8px 24px rgba(255, 107, 74, 0.25);
    
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; flex-shrink: 0; }
input { font-family: inherit; }

/* ============================================================
   Background Shapes
   ============================================================ */

.shapes {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(100px);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 107, 74, 0.15);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 143, 107, 0.12);
    bottom: 10%;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 176, 136, 0.1);
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   Header
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
}

.nav-link:hover {
    color: var(--text);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    border-radius: var(--r-full);
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    color: var(--text-2);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--surface);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-bg);
    border: 1px solid rgba(255, 107, 74, 0.2);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-dark);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-3);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 40px;
    background: var(--bg-card);
    border: 1px solid var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-4);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--surface-2);
}

/* ============================================================
   Section Headers
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-bg);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--text);
}

.section-desc {
    font-size: 16px;
    color: var(--text-3);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   Features
   ============================================================ */

.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--surface);
    border-radius: var(--r-lg);
    transition: all 0.25s var(--ease);
}

.feature-card:hover {
    border-color: var(--surface-2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-large {
    grid-column: span 2;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-bg);
    border-radius: var(--r-md);
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
}

/* ============================================================
   How It Works
   ============================================================ */

.how {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--surface);
    border-radius: var(--r-lg);
    transition: all 0.25s var(--ease);
}

.step:hover {
    border-color: rgba(255, 107, 74, 0.3);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 70px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step-desc {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.65;
}

/* ============================================================
   Waitlist
   ============================================================ */

.waitlist {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.waitlist-card {
    padding: 56px 48px;
    background: var(--gradient);
    border-radius: var(--r-xl);
    text-align: center;
    box-shadow: var(--shadow-lg), 0 20px 60px rgba(255, 107, 74, 0.2);
}

.waitlist-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: white;
    margin-bottom: 12px;
}

.waitlist-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.waitlist-form {
    max-width: 420px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: white;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-md);
}

.form-input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-4);
}

.input-group .btn {
    padding: 12px 24px;
    border-radius: var(--r-full);
}

.input-group .btn-primary {
    background: var(--text);
    color: white;
}

.input-group .btn-primary:hover {
    background: var(--text-2);
    box-shadow: var(--shadow-md);
}

.btn-text {
    transition: opacity 0.2s;
}

.btn-loader {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.7s linear infinite;
}

.btn.loading .btn-text { opacity: 0; }
.btn.loading .btn-loader { opacity: 1; }
.btn.loading { pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.form-note.success {
    color: white;
    font-weight: 500;
}

.form-note.error {
    color: #FFE4E0;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--surface);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 48px;
}

.footer-brand {
    max-width: 260px;
}

.footer-tagline {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-3);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid var(--surface);
    font-size: 13px;
    color: var(--text-4);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-4);
    transition: color 0.2s var(--ease);
}

.social-links a:hover {
    color: var(--accent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large {
        grid-column: span 2;
    }
    
    .footer-links {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 48px 20px 80px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: span 1;
    }
    
    .step {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-num {
        font-size: 36px;
        width: auto;
    }
    
    .waitlist-card {
        padding: 40px 24px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: var(--r-md);
        padding: 8px;
    }
    
    .input-group .btn {
        width: 100%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 48px;
        padding: 48px 24px 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ============================================================
   Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .shape {
        display: none;
    }
}
