:root {
    --swift-orange: #ff6b00;
    --swift-orange-dark: #d85a00;
    --swift-ink: #0d1c2d;
    --swift-blue: #233143;
    --swift-line: rgba(13, 28, 45, 0.12);
    --swift-shadow: 0 18px 46px rgba(35, 49, 67, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(248, 249, 255, 0.96), rgba(238, 244, 255, 0.8)),
        radial-gradient(circle at 20% 0%, rgba(255, 107, 0, 0.08), transparent 30%);
}

a,
button {
    touch-action: manipulation;
}

a[href="#"] {
    cursor: default;
}

button,
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

button::after,
.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

button:hover::after,
.btn-primary:hover::after,
.btn-secondary:hover::after {
    transform: translateX(120%);
}

img {
    filter: saturate(1.04) contrast(1.02);
}

header,
nav.bg-surface {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(248, 249, 255, 0.9) !important;
}

nav a,
header nav a {
    position: relative;
}

nav a::before,
header nav a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 999px;
    background: var(--swift-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

nav a:hover::before,
header nav a:hover::before,
nav a.is-active::before,
header nav a.is-active::before {
    transform: scaleX(1);
}

.material-symbols-outlined {
    vertical-align: -0.18em;
}

.home-hero {
    isolation: isolate;
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms ease, transform 6800ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

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

.hero-slide__meta {
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    top: 27%;
    z-index: 3;
    display: grid;
    gap: 8px;
    min-width: 250px;
    max-width: 320px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    background: rgba(13, 28, 45, 0.72);
    color: #fff;
    box-shadow: 0 24px 60px rgba(13, 28, 45, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease 260ms, transform 500ms ease 260ms;
}

.hero-slide.is-active .hero-slide__meta {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide__meta span {
    color: #ffdbcc;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide__meta strong {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 22px;
    line-height: 1.12;
}

.hero-slider__grain {
    z-index: 2;
    opacity: 0.2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(13, 28, 45, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 28, 45, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent 48%, #000 100%);
}

.hero-controls {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(13, 28, 45, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--swift-blue);
    background: rgba(255, 255, 255, 0.8);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-arrow:hover {
    color: #fff;
    background: var(--swift-orange);
    transform: translateY(-1px);
}

.hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(35, 49, 67, 0.28);
    transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.is-active {
    width: 30px;
    background: var(--swift-orange);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

.lift-card {
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.lift-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--swift-shadow);
    border-color: rgba(255, 107, 0, 0.38) !important;
}

.kinetic-strip {
    overflow: hidden;
    border-block: 1px solid rgba(255, 107, 0, 0.18);
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.1), rgba(35, 49, 67, 0.06));
}

.kinetic-strip__track {
    display: flex;
    width: max-content;
    gap: 32px;
    padding: 14px 0;
    animation: swift-marquee 24s linear infinite;
}

.kinetic-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--swift-blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.route-board {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 191, 176, 0.8);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 244, 255, 0.92)),
        repeating-linear-gradient(90deg, transparent 0 44px, rgba(13, 28, 45, 0.04) 45px 46px);
}

.route-board::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px dashed rgba(160, 65, 0, 0.28);
    border-radius: 16px;
    pointer-events: none;
}

.route-line {
    position: relative;
    height: 3px;
    margin: 34px 0;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.18), var(--swift-orange), rgba(255, 107, 0, 0.18));
    border-radius: 999px;
}

.route-line::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--swift-orange);
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.14);
    transform: translate(-50%, -50%);
    animation: route-pulse 4.6s ease-in-out infinite;
}

.metric-stack {
    display: grid;
    gap: 16px;
}

.metric-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--swift-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
}

.metric-pill strong {
    color: var(--swift-orange-dark);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.ops-strip {
    background: #0d1c2d;
    color: #e9f1ff;
    position: relative;
    overflow: hidden;
}

.ops-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.ops-strip > * {
    position: relative;
    z-index: 1;
}

.timeline-grid {
    display: grid;
    gap: 18px;
}

.timeline-step {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(226, 191, 176, 0.85);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.timeline-step::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #ffdbcc;
    color: #7a3000;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
}

.pulse-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--swift-orange);
    box-shadow: 0 0 0 rgba(255, 107, 0, 0.5);
    animation: soft-ping 1.8s infinite;
}

@keyframes swift-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes route-pulse {
    0% { left: 0%; }
    48% { left: 100%; }
    52% { left: 100%; }
    100% { left: 0%; }
}

@keyframes soft-ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-slide {
        transform: none;
    }
}

@media (max-width: 768px) {
    .home-hero {
        height: 760px;
        align-items: flex-start;
        padding-top: 92px;
    }

    .hero-slide__meta {
        display: none;
    }

    .hero-controls {
        bottom: 96px;
        left: 16px;
        right: auto;
    }

    header,
    nav.bg-surface {
        position: sticky;
    }

    .metric-pill {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-board::before {
        inset: 14px;
    }
}
