@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Header */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    box-sizing: border-box;
}

.bg-gradient {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%);
    filter: blur(100px);
    z-index: -1;
}

.bg-gradient-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    filter: blur(80px);
    z-index: -1;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 300;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.nav--scrolled {
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.nav-active {
    color: #fff;
    position: relative;
}

.nav-links a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.6);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Features */
.features {
    padding: 10rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
}

/* CTA */
.cta {
    padding: 10rem 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 6rem;
    text-align: center;
    backdrop-filter: blur(20px);
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* AI Section */
.ai-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

.ai-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.ai-inner h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.ai-inner > p {
    color: var(--gray);
    font-size: 1.15rem;
    margin-bottom: 4rem;
    line-height: 1.8;
}

.ai-examples {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.ai-example {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-chat-bubble {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    font-size: 1rem;
    max-width: 85%;
    line-height: 1.5;
}

.ai-chat-bubble.user {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    align-self: flex-end;
    color: var(--light);
}

.ai-chat-bubble.bot {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    align-self: flex-start;
    color: var(--light);
}

.ai-chat-bubble.bot i {
    color: var(--primary);
    margin-right: 0.4rem;
}

/* AI note */
.ai-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--gray);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    text-align: left;
}

.ai-note i {
    color: var(--primary);
    flex-shrink: 0;
}

/* Maps Section */
.maps-section {
    padding: 10rem 0;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.map-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.map-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.map-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-card p {
    color: var(--gray);
}

/* Warehouse Section */
.warehouse-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04), transparent);
}

.warehouse-intro {
    max-width: 760px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.warehouse-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.warehouse-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.warehouse-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.warehouse-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Business Section */
.business-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.04), transparent);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.business-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.business-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.business-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.business-card p {
    color: var(--gray);
    line-height: 1.7;
}

.business-cta {
    text-align: center;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--gray);
}

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

/* ── Mobile nav overlay (independent from nav stacking context) ── */
.nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 350;
    padding-top: 70px;
}

.nav-mobile-overlay--open {
    display: flex;
}

.nav-mobile-overlay .nav-link-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-mobile-overlay .nav-link-item:hover {
    color: var(--primary);
}

.nav-mobile-overlay .btn-primary {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    margin-top: 0.5rem;
}

.nav-overlay-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Burger button ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 400;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger.burger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.burger--open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.burger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        padding-top: 72px;
        justify-content: flex-start;
        padding-bottom: 3rem;
    }

    .hero-content {
        padding-top: 2.5rem;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        display: none;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid,
    .maps-grid,
    .warehouse-grid,
    .business-grid {
        grid-template-columns: 1fr;
    }

    .ai-inner h2 {
        font-size: 2.2rem;
    }
}