:root {
    --primary: #0A1F44;
    --electric: #1E90FF;
    --neon: #00F5A0;
    --pure: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--pure);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--electric);
    border-radius: 4px;
}

/* Hero Background Effect */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--electric);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--neon);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--electric), var(--neon));
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 144, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 144, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Animated Lines */
.speed-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    animation: speedLine 3s linear infinite;
    opacity: 0;
}

@keyframes speedLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Navigation */
.nav-blur {
    backdrop-filter: blur(20px);
    background: rgba(10, 31, 68, 0.8);
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--pure);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--electric), #0066cc);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon), var(--electric));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(30, 144, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--pure);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--neon);
    background: rgba(0, 245, 160, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 640px) {

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a2a4a, #0d1f3c);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #061020);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

/* App UI Simulation */
.app-map {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 31, 68, 0.9), rgba(6, 16, 32, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231E90FF' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.map-route {
    position: absolute;
    top: 30%;
    left: 10%;
    right: 10%;
    height: 200px;
}

.route-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawRoute 3s ease forwards infinite;
}

@keyframes drawRoute {
    0% {
        stroke-dashoffset: 1000;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1000;
    }
}

.app-card {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: rgba(10, 31, 68, 0.95);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(145deg, rgba(26, 42, 74, 0.5), rgba(10, 31, 68, 0.8));
    border: 1px solid rgba(30, 144, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.3);
    box-shadow: 0 20px 60px rgba(0, 245, 160, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(0, 245, 160, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Stats Counter */
.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--electric), var(--neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Styles */
.form-container {
    background: linear-gradient(145deg, rgba(26, 42, 74, 0.6), rgba(10, 31, 68, 0.9));
    border: 1px solid rgba(30, 144, 255, 0.15);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .form-container {
        padding: 32px 24px;
        border-radius: 24px;
    }
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.05) 0%, transparent 50%);
    animation: formGlow 10s linear infinite;
}

@keyframes formGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-input {
    width: 100%;
    background: rgba(10, 31, 68, 0.8);
    border: 2px solid rgba(30, 144, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300F5A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    cursor: pointer;
}

/* App Store Buttons */
.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 31, 68, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.store-btn:hover {
    border-color: var(--electric);
    background: rgba(30, 144, 255, 0.1);
    transform: scale(1.02);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 68, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(145deg, #1a2a4a, #0d1f3c);
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--neon);
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0d1f3c, #061020);
    z-index: 100;
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
}

.mobile-menu.active {
    right: 0;
}

.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: none;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    .feature-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }

    .font-display.text-4xl {
        font-size: 2.5rem;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Success Animation */
.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon), var(--electric));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Tabs */
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(30, 144, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--electric);
    color: var(--pure);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--electric), #0066cc);
    border-color: var(--electric);
    color: white;
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.3);
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}