/* =====================================================
   EcoFreight - Homepage Components (hero, services, lanes)
   ===================================================== */

/* Hero */
.hero {
    position: relative;
    background: var(--navy-900);
    color: #fff;
    overflow: hidden;
    padding: 156px 0 72px;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 197, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 197, 255, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 30%, transparent 75%);
    z-index: -1;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}

.hero-glow--sky {
    width: 560px;
    height: 560px;
    top: -180px;
    left: -140px;
    background: rgba(14, 165, 233, 0.2);
}

.hero-glow--green {
    width: 420px;
    height: 420px;
    bottom: -220px;
    left: 34%;
    background: rgba(34, 197, 94, 0.11);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}

.hero-content { max-width: 600px; }

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 15px 7px 11px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-400);
    flex: none;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(74, 222, 128, 0.6);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 4.6vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.hero-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

/* Quick track */
.hero-track {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 18px 20px 20px;
    max-width: 500px;
    margin-bottom: 34px;
}

.hero-track-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.hero-track-label i { color: var(--green-400); }

.hero-track-form { display: flex; gap: 10px; }

.hero-track-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.9375rem;
    color: var(--navy-900);
    transition: box-shadow 0.25s ease;
}

.hero-track-form input::placeholder { color: var(--gray-400); }

.hero-track-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 30px;
    justify-content: start;
}

.hero-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 16px;
}

.hero-stat:first-child { border-left: none; padding-left: 0; }

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 7px;
    line-height: 1.4;
}

/* Hero visual */
.hero-visual {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(200deg, rgba(7, 25, 43, 0.1) 0%, rgba(7, 25, 43, 0.5) 100%),
        radial-gradient(120% 90% at 80% 10%, transparent 40%, rgba(7, 25, 43, 0.5) 100%);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.route-path {
    fill: none;
    stroke: rgba(125, 211, 252, 0.85);
    stroke-width: 2;
    stroke-dasharray: 7 9;
    stroke-linecap: round;
    animation: route-flow 18s linear infinite;
}

@keyframes route-flow {
    to { stroke-dashoffset: -320; }
}

.hero-route-plane {
    position: absolute;
    z-index: 3;
    top: 24%;
    right: 9%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.875rem;
}

/* Floating cards */
.hero-float {
    position: absolute;
    z-index: 4;
    background: rgba(255, 255, 255, 0.97);
    color: var(--navy-900);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
    animation: float-y 7s ease-in-out infinite;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.hero-float--status {
    left: 20px;
    bottom: 36px;
    width: 300px;
    padding: 18px;
}

.float-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.float-status-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.float-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-800);
    background: var(--primary-100);
    padding: 3px 9px;
    border-radius: 50px;
}

.float-status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-600);
    animation: pulse-opacity 1.6s ease-in-out infinite;
}

@keyframes pulse-opacity {
    50% { opacity: 0.25; }
}

.float-route {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.float-route-city {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
}

.float-route-line {
    flex: 1;
    position: relative;
    height: 2px;
    background: var(--gray-200);
    border-radius: 2px;
}

.float-route-line::after {
    content: '';
    position: absolute;
    inset: 0 32% 0 0;
    background: linear-gradient(90deg, var(--primary-500), var(--green-500));
    border-radius: 2px;
}

.float-route-line i {
    position: absolute;
    right: 26%;
    top: 50%;
    transform: translate(50%, -50%);
    font-size: 0.6rem;
    color: var(--primary-700);
    background: #fff;
    padding: 2px;
}

.float-progress {
    height: 5px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 9px;
}

.float-progress span {
    display: block;
    width: 74%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-500), var(--green-500));
}

.float-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--gray-500);
}

.float-meta strong { color: var(--navy-900); font-weight: 600; }

.hero-float--rating {
    top: 24px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    animation-delay: -2.5s;
}

.float-rating-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
}

.float-rating-value {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.1;
}

.float-rating-label {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

/* Trust strip */
.trust-strip {
    border-bottom: 1px solid var(--gray-100);
    padding: 24px 0;
    background: #fff;
}

.trust-strip .container {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.trust-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    flex: none;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.trust-logo i { font-size: 0.8125rem; opacity: 0.8; }
.trust-logo:hover { color: var(--gray-600); }

/* Services */
.services { background: var(--gray-50); }

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

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 28px 26px 26px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--green-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover::before { opacity: 1; }

.service-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, var(--primary-50), var(--primary-100));
    border: 1px solid var(--primary-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--primary-700);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out);
}

.service-card:hover .service-icon {
    background: linear-gradient(150deg, var(--primary-600), var(--primary-700));
    border-color: var(--primary-600);
    color: #fff;
    transform: scale(1.04);
}

.service-index {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-300);
    letter-spacing: 0.08em;
}

.service-card h3 { font-size: 1.1875rem; margin-bottom: 10px; }

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-points {
    display: grid;
    gap: 7px;
    margin-bottom: 22px;
}

.service-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.service-points i { color: var(--green-500); font-size: 0.6875rem; }

.service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-700);
}

.service-link i { transition: transform 0.25s var(--ease-out); }
.service-card:hover .service-link i { transform: translateX(4px); }

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--gray-300) 45%, transparent 45%);
    background-size: 14px 2px;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 8px;
}

.step-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    box-shadow: 0 8px 20px -12px rgba(8, 25, 43, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-700);
    position: relative;
    transition: var(--transition);
}

.step-badge span {
    position: absolute;
    top: -7px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--green-400);
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.process-step:hover .step-badge {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #fff;
    transform: translateY(-4px);
}

.process-step h3 { font-size: 1.0625rem; margin-bottom: 8px; }

.process-step p {
    font-size: 0.875rem;
    color: var(--gray-500);
    max-width: 220px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Trade lanes (dark) */
.lanes {
    background: var(--navy-900);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lanes::before {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.09);
    top: -300px;
    right: -200px;
    box-shadow:
        0 0 0 90px rgba(125, 211, 252, 0.04),
        0 0 0 180px rgba(125, 211, 252, 0.03),
        0 0 0 270px rgba(125, 211, 252, 0.02);
    pointer-events: none;
}

.lanes-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lanes h2 { color: #fff; }

.lanes-intro p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 460px;
}

.lane-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.lane-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.lane-chip i { color: var(--green-400); font-size: 0.75rem; }

.lanes-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 26px 26px 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.lanes-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 6px;
}

.lanes-card-head h3 { font-size: 1rem; color: #fff; }

.lanes-card-head span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.lane-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lane-row:last-of-type { border-bottom: none; }

.lane-route {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.lane-mode {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(125, 211, 252, 0.12);
    color: var(--primary-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    flex: none;
}

.lane-time {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green-400);
    white-space: nowrap;
}

.lanes-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.lanes-note i { color: var(--primary-300); }
