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

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E8F0FE;
    --accent: #00C853;
    --dark: #0F1B2D;
    --dark-secondary: #1A2942;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #FFFFFF;
    --light-bg: #F7F9FC;
    --border: #E2E8F0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

.nav-links a.btn-nav,
.btn-nav {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
    letter-spacing: 0.3px;
}

.btn-nav:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-phone {
    font-weight: 600 !important;
    color: var(--dark) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
}

/* ===== HERO ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ===== CLAW MACHINE ===== */
.claw-machine {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.claw-glass {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* Track at top */
.claw-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-bottom: 2px solid var(--primary-dark);
    border-radius: 14px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

/* Trolley that slides along the track */
.claw-trolley {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: clawCycle 6s ease-in-out infinite;
}

/* Cable that extends from track to claw */
.claw-cable {
    position: absolute;
    top: 26px;
    width: 5px;
    background: var(--dark);
    border-radius: 2px;
    z-index: 9;
    transform: translateX(-50%);
    animation: cableExtend 6s ease-in-out infinite;
}

/* Claw head (the grabber mechanism) */
.claw-head {
    width: 52px;
    height: 14px;
    background: var(--primary);
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
    animation: clawSpin 6s ease-in-out infinite;
}

/* Claw prongs */
.claw-prong {
    position: absolute;
    bottom: -36px;
    width: 6px;
    height: 38px;
    background: var(--primary);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.claw-prong-left {
    left: 4px;
    transform-origin: top center;
    transform: rotate(22deg);
    animation: prongLeft 6s ease-in-out infinite;
}

.claw-prong-right {
    right: 4px;
    transform-origin: top center;
    transform: rotate(-22deg);
    animation: prongRight 6s ease-in-out infinite;
}

/* Grabbed card (attached to claw) */
.claw-grabbed-card {
    position: absolute;
    bottom: -84px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    opacity: 0;
    animation: grabbedCard 6s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 8px;
}


/* Plan cards in the pile */
.claw-pile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 5;
}

.claw-card {
    position: absolute;
    width: 130px;
    height: 76px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    animation: cardFloat 4s ease-in-out infinite;
    padding: 10px;
}


.claw-card:nth-child(odd) { animation-delay: -1s; }
.claw-card:nth-child(3n) { animation-delay: -2s; }
.claw-card:nth-child(4n) { animation-delay: -0.5s; }

/* Drop zone — hidden */
.claw-drop-zone {
    display: none;
}

/* Machine base */
.claw-base {
    display: none;
}

/* ===== CLAW ANIMATIONS ===== */

/* Main claw cycle: slide → descend deep → grab → ascend → slide to center → display → reset */
@keyframes clawCycle {
    /* Start: hanging below track */
    0% {
        left: 50%;
        top: 8%;
    }
    /* Slide to pick position */
    10% {
        left: 28%;
        top: 8%;
    }
    /* Descend deep into the card pile */
    32% {
        left: 28%;
        top: 72%;
    }
    /* Pause at bottom — prongs closing around card */
    40% {
        left: 28%;
        top: 72%;
    }
    /* Ascend with card */
    58% {
        left: 28%;
        top: 8%;
    }
    /* Slide to center holding card */
    68% {
        left: 50%;
        top: 8%;
    }
    /* Display card at center */
    85% {
        left: 50%;
        top: 8%;
    }
    /* Reset */
    100% {
        left: 50%;
        top: 8%;
    }
}

/* Prong open/close — open wide during descent, close tight to grab, open to release */
@keyframes prongLeft {
    0%, 10% { transform: rotate(22deg); }       /* open at start */
    12%, 32% { transform: rotate(28deg); }       /* spread wider during descent */
    38%, 72% { transform: rotate(2deg); }         /* snap closed — grabbing */
    80%, 100% { transform: rotate(22deg); }       /* open to release */
}

@keyframes prongRight {
    0%, 10% { transform: rotate(-22deg); }
    12%, 32% { transform: rotate(-28deg); }
    38%, 72% { transform: rotate(-2deg); }
    80%, 100% { transform: rotate(-22deg); }
}

/* Grabbed card — appears when prongs close, visible during ascent, drops at center */
@keyframes grabbedCard {
    0%, 36% { opacity: 0; transform: translateX(-50%) scale(0.7); }
    40% { opacity: 1; transform: translateX(-50%) scale(1); }
    78% { opacity: 1; transform: translateX(-50%) scale(1); }
    85% { opacity: 0; transform: translateX(-50%) scale(0.5) translateY(80px); }
    100% { opacity: 0; transform: translateX(-50%) scale(0.7); }
}

/* Cable extending from track to claw — synced with trolley descent */
@keyframes cableExtend {
    0% { left: 50%; height: calc(8% - 26px); }
    10% { left: 28%; height: calc(8% - 26px); }
    32% { left: 28%; height: calc(72% - 26px); }
    40% { left: 28%; height: calc(72% - 26px); }
    58% { left: 28%; height: calc(8% - 26px); }
    68% { left: 50%; height: calc(8% - 26px); }
    85% { left: 50%; height: calc(8% - 26px); }
    100% { left: 50%; height: calc(8% - 26px); }
}

/* Claw head spin during descent — rotational (turntable style) */
@keyframes clawSpin {
    0%, 10% { transform: rotateY(0deg); }
    15% { transform: rotateY(180deg); }
    20% { transform: rotateY(360deg); }
    25% { transform: rotateY(540deg); }
    30% { transform: rotateY(720deg); }
    35%, 100% { transform: rotateY(720deg); }
}

/* Cards gentle floating */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-4px) rotate(var(--r, 0deg)); }
}

/* Drop zone glow pulse */
@keyframes dropGlow {
    0%, 60% {
        background: rgba(0, 102, 255, 0.08);
        border-color: rgba(0, 102, 255, 0.25);
    }
    72%, 80% {
        background: rgba(0, 102, 255, 0.15);
        border-color: rgba(0, 102, 255, 0.5);
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.15);
    }
    90%, 100% {
        background: rgba(0, 102, 255, 0.08);
        border-color: rgba(0, 102, 255, 0.25);
    }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    padding: 48px 0;
    background: var(--dark);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.proof-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
}

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

.step-card {
    text-align: center;
    padding: 40px 32px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== PLANS ===== */
.plans {
    padding: 100px 0;
    background: var(--light-bg);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

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

.plan-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.plan-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== QUOTE FORM ===== */
.quote-section {
    padding: 100px 0;
    background: var(--white);
}

.quote-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.quote-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.quote-info p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.quote-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.quote-benefits li {
    font-size: 16px;
    padding: 8px 0;
    color: var(--text);
}

.quote-phone p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.quote-form-container {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quote-form {
    padding: 36px;
}

.quote-form h3 {
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 8px;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-light);
    font-size: 16px;
}

.success-phone {
    margin-top: 24px;
}

.success-phone a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== WHY US ===== */
.why-us {
    padding: 100px 0;
    background: var(--light-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== STATES ===== */
.states-section {
    padding: 80px 0;
    background: var(--white);
}

.states-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.state-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 80px 0;
    background: var(--primary);
    text-align: center;
}

.final-cta h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
}

.final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 60px 0 32px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
    max-width: 800px;
    margin: 0 auto 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 44px;
    }

    .hero-container {
        gap: 40px;
    }

    .claw-machine {
        max-width: 340px;
    }

    .steps-grid {
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .claw-machine {
        max-width: 320px;
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section-title {
        font-size: 30px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-card {
        padding: 24px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .quote-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quote-info h2 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .claw-machine {
        max-width: 280px;
    }

    .proof-number {
        font-size: 24px;
    }

    .quote-form {
        padding: 24px;
    }

    .container {
        padding: 0 16px;
    }
}
