/* ===== Variables ===== */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --accent: #2563eb;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --surface: #f8fafc;
    --border: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --header-h: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

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

i[class^="fa"] {
    display: inline-block;
    width: 1.25em;
    min-height: 1em;
    line-height: 1;
    text-align: center;
    vertical-align: -0.125em;
    font-style: normal;
}

/* ===== Background ===== */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.page-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 12s ease-in-out infinite;
}

.page-bg__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #fed7aa, transparent 70%);
    top: -200px;
    right: -100px;
}

.page-bg__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #bfdbfe, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -6s;
}

.page-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo-img {
    height: 44px;
    width: auto;
    aspect-ratio: 160 / 48;
    transition: transform var(--transition);
}

.header__logo:hover .header__logo-img {
    transform: scale(1.03);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header__link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.925rem;
    color: var(--text);
    border-radius: 10px;
    transition: color var(--transition), background var(--transition);
}

.header__link:hover {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.08);
}

.header__link--cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    margin-left: 0.5rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.header__link--cta:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
     background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.btn--ghost {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
    padding: calc(var(--header-h) + 3rem) 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

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

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

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.hero__stat strong {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    font-variant-numeric: tabular-nums;
    min-width: 2.5em;
    display: inline-block;
}

.hero__stat span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.hero__stat small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.15rem;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Route card visual */
.hero__visual {
    position: relative;
}

.route-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-2deg);
    transition: transform var(--transition);
}

.route-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.route-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.route-card__header i {
    color: var(--primary-light);
}

.route-card__live {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #86efac;
    font-weight: 500;
}

.route-card__live .pulse {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

.route-card__body {
    padding: 2rem 1.5rem;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.route-point__flag {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.route-point strong {
    display: block;
    color: var(--dark);
    font-size: 1rem;
}

.route-point small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.route-line {
    position: relative;
    height: 60px;
    margin: 0.5rem 0 0.5rem 26px;
    width: 2px;
    background: var(--border);
}

.route-line__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    animation: routeProgress 3s ease-in-out infinite;
}

@keyframes routeProgress {
    0% { height: 0; }
    50% { height: 100%; }
    100% { height: 100%; }
}

.route-line__truck {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    animation: truckMove 3s ease-in-out infinite;
}

@keyframes truckMove {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    50% { top: calc(100% - 36px); }
    90% { opacity: 1; }
    100% { top: calc(100% - 36px); opacity: 0; }
}

.route-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.route-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.route-status i {
    color: var(--primary);
}

.route-status em {
    font-style: normal;
    color: var(--dark);
    font-weight: 600;
}

.route-status__badge {
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.12);
    color: var(--primary-dark);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

/* Floating cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    animation: floatCard 4s ease-in-out infinite;
}

.float-card i {
    color: var(--primary);
    font-size: 1rem;
}

.float-card--1 {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.float-card--2 {
    bottom: 30px;
    left: -30px;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section__head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section__label {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section__subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ===== Features ===== */
.features {
    background: var(--surface);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    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 var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform var(--transition);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-card__icon--blue { background: rgba(37, 99, 235, 0.1); color: var(--accent); }
.feature-card__icon--orange { background: rgba(249, 115, 22, 0.1); color: var(--primary); }
.feature-card__icon--green { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.feature-card__icon--red { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.feature-card__arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.feature-card:hover .feature-card__arrow {
    background: var(--primary);
    color: var(--white);
    transform: translateX(3px);
}

/* ===== Steps ===== */
.steps__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.steps__timeline::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.2;
}

.step {
    text-align: center;
    position: relative;
}

.step__num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.step__content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover .step__content {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
}

.step__icon i {
    display: block;
    line-height: 1;
    color: var(--primary);
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.55;
}

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

.cta__inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #c2410c 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: orbFloat 8s ease-in-out infinite;
}

.cta__text {
    position: relative;
    z-index: 1;
}

.cta__text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta__text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.cta__actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer__col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer__col a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    transition: color var(--transition), transform var(--transition);
}

.footer__col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer__bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .steps__timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .header__link--cta {
        margin-left: 0;
    }

    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__visual {
        order: -1;
        min-height: 280px;
    }

    .float-card--1 { right: 0; top: -20px; }
    .float-card--2 { left: 0; }

    .hero__stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero__stat-divider {
        display: none;
    }

    .hero__stat {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .features__grid,
    .steps__timeline {
        grid-template-columns: 1fr;
    }

    .cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta__actions .btn {
        justify-content: center;
        width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__brand p {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .page-bg__orb {
        animation: none;
        filter: none;
        opacity: 0.2;
    }

    .route-line__progress,
    .route-line__truck,
    .float-card,
    .hero__badge,
    .hero__badge-dot,
    .route-card__live .pulse,
    .route-status__badge {
        animation: none;
    }
}
