:root {
    --bg: #07051a;
    --bg-elevated: rgba(25, 16, 69, 0.55);
    --border: rgba(197, 206, 218, 0.12);
    --border-strong: rgba(197, 206, 218, 0.22);
    --text: #f3f1ff;
    --text-muted: #a3a6c2;
    --text-dim: #6f7394;
    --peach: #ffa784;
    --coral: #fa886d;
    --honey: #ffcd84;
    --violet: #8b7bff;
    --sky: #5ad1ff;
    --mint: #7cf0c0;
    --radius: 20px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

.container {
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    max-width: 1180px;
}

/* Background */

.bg {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
    inset: 0;
    background-image:
        linear-gradient(rgba(197, 206, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 206, 218, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
}

.bg-glow {
    position: absolute;
    opacity: 0.55;
    filter: blur(120px);
    border-radius: 50%;
}

.bg-glow-a {
    top: -220px;
    left: -120px;
    animation: drift 18s ease-in-out infinite alternate;
    background: radial-gradient(circle, #5b3bff 0%, transparent 70%);
    width: 640px;
    height: 640px;
}

.bg-glow-b {
    top: -120px;
    right: -200px;
    opacity: 0.35;
    animation: drift 22s ease-in-out infinite alternate-reverse;
    background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
    width: 560px;
    height: 560px;
}

@keyframes drift {
    to {
        transform: translate(80px, 60px) scale(1.1);
    }
}

/* Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    background: rgba(7, 5, 26, 0.6);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-display);
}

.brand img {
    filter: drop-shadow(0 0 12px rgba(255, 167, 132, 0.35));
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    color: var(--text-muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
}

/* Buttons */

.btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 8px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow:
        0 8px 32px -8px rgba(250, 136, 109, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach), var(--coral));
    padding: 14px 24px;
    color: #1a0d1f;
    font-weight: 600;
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 40px -8px rgba(250, 136, 109, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    box-shadow: inset 0 0 0 1px var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-ghost:hover {
    box-shadow: inset 0 0 0 1px var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.btn-small {
    padding: 9px 18px;
    font-size: 14px;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
    padding-top: 96px;
    padding-bottom: 72px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(139, 123, 255, 0.08);
    padding: 6px 14px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
}

.pill-dot {
    display: inline-block;
    animation: ping 2s infinite;
    box-shadow: 0 0 0 0 rgba(124, 240, 192, 0.6);
    border-radius: 50%;
    background: var(--mint);
    width: 7px;
    height: 7px;
}

@keyframes ping {
    70% {
        box-shadow: 0 0 0 8px rgba(124, 240, 192, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 240, 192, 0);
    }
}

.hero h1 {
    margin-top: 24px;
    font-weight: 700;
    font-size: clamp(42px, 6vw, 72px);
}

.gradient-text {
    background: linear-gradient(100deg, var(--honey) 0%, var(--peach) 35%, var(--coral) 55%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin-top: 24px;
    max-width: 540px;
    color: var(--text-muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 32px 0 0;
    padding: 0;
    color: var(--text-dim);
    font-size: 14px;
    list-style: none;
}

.hero-meta li::before {
    margin-right: 8px;
    content: '✓';
    color: var(--mint);
}

/* Map card */

.hero-copy,
.hero-visual,
.ai > * {
    min-width: 0;
}

.hero-visual {
    position: relative;
}

.map-card {
    position: relative;
    box-shadow:
        0 40px 120px -40px rgba(91, 59, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(25, 16, 69, 0.85), rgba(11, 7, 39, 0.9));
}

.map-card::before {
    position: absolute;
    opacity: 0.6;
    z-index: -1;
    filter: blur(14px);
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 167, 132, 0.5), transparent 40%, transparent 60%, rgba(139, 123, 255, 0.5));
    content: '';
}

.map-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
}

.map-toolbar .dot {
    border-radius: 50%;
    background: rgba(197, 206, 218, 0.18);
    width: 10px;
    height: 10px;
}

.map-title {
    margin-left: 12px;
    color: var(--text-dim);
    font-size: 12px;
    font-family: var(--font-mono);
}

.map-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--mint);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.map {
    display: block;
    border-radius: 0 0 24px 24px;
    aspect-ratio: 520 / 380;
    width: 100%;
    height: auto;
}

.streets path {
    fill: none;
    stroke: rgba(197, 206, 218, 0.08);
    stroke-width: 10;
    stroke-linecap: round;
}

.streets .faint {
    stroke-width: 4;
}

.route {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    filter: drop-shadow(0 0 6px rgba(255, 167, 132, 0.4));
    animation: draw 2.4s ease forwards;
}

#route2 {
    animation-delay: 0.3s;
}

#route3 {
    animation-delay: 0.6s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.stops circle {
    fill: var(--bg);
    stroke: var(--text-muted);
    stroke-width: 2;
}

.depot circle {
    fill: var(--peach);
}

.depot .depot-pulse {
    fill: rgba(255, 167, 132, 0.18);
    transform-origin: 240px 190px;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    from {
        transform: scale(0.6);
        opacity: 1;
    }
    to {
        transform: scale(1.6);
        opacity: 0;
    }
}

.courier {
    stroke: var(--bg);
    stroke-width: 3;
}

.c1 {
    fill: var(--coral);
}

.c2 {
    fill: var(--sky);
}

.c3 {
    fill: var(--mint);
}

.float {
    display: flex;
    position: absolute;
    flex-direction: column;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(18, 12, 52, 0.75);
    padding: 12px 16px;
    -webkit-backdrop-filter: blur(12px);
    animation: bob 6s ease-in-out infinite;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.float-a {
    bottom: 28px;
    left: -28px;
}

.float-b {
    top: 72px;
    right: -24px;
    animation-delay: -3s;
}

.float-label {
    color: var(--text-dim);
    font-size: 12px;
}

.float-value {
    font-weight: 600;
    font-size: 20px;
    font-family: var(--font-display);
}

.float-a .float-value {
    color: var(--mint);
}

@keyframes bob {
    50% {
        transform: translateY(-8px);
    }
}

/* Logos */

.logos {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 24px;
    color: var(--text-dim);
    font-size: 13px;
}

.logos ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.logos li {
    opacity: 0.7;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 17px;
    font-family: var(--font-display);
}

/* Sections */

.section {
    padding-top: 120px;
}

.section-head {
    margin-bottom: 56px;
    max-width: 640px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--peach);
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section h2 {
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
}

.section-head p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Bento */

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

.card {
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    padding: 32px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(8px);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.card::after {
    position: absolute;
    top: -40%;
    right: -20%;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle, rgba(139, 123, 255, 0.18), transparent 70%);
    width: 60%;
    height: 80%;
    pointer-events: none;
    content: '';
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.card:hover::after {
    opacity: 1;
}

.card-wide {
    grid-column: span 2;
}

.card-icon {
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1px var(--border-strong);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 167, 132, 0.18), rgba(139, 123, 255, 0.18));
    width: 44px;
    height: 44px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--peach);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 21px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

.code {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(7, 5, 26, 0.7);
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 13px;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.code .k {
    color: var(--violet);
}

.code .s {
    color: var(--peach);
}

.code .n {
    color: var(--honey);
}

.code .c {
    color: var(--mint);
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    border-top: 1px solid var(--border-strong);
    padding: 32px;
}

.step::before {
    position: absolute;
    top: -1px;
    left: 0;
    background: linear-gradient(90deg, var(--peach), var(--violet));
    width: 64px;
    height: 2px;
    content: '';
}

.step-num {
    display: block;
    margin-bottom: 20px;
    color: var(--text-dim);
    font-size: 14px;
    font-family: var(--font-mono);
}

.step h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.step p {
    color: var(--text-muted);
}

/* AI */

.ai {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(139, 123, 255, 0.22), transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(255, 167, 132, 0.14), transparent 60%), var(--bg-elevated);
    padding: 56px;
}

.ai-copy p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 17px;
}

.checks {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checks li::before {
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peach), var(--violet));
    width: 20px;
    height: 20px;
    content: '';
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
    box-shadow: 0 0 16px rgba(255, 167, 132, 0.4);
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg {
    border-radius: 18px;
    padding: 14px 18px;
    max-width: 90%;
    font-size: 15px;
}

.msg-user {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: linear-gradient(135deg, var(--peach), var(--coral));
    color: #1a0d1f;
    font-weight: 500;
}

.msg-ai {
    align-self: flex-start;
    border: 1px solid var(--border-strong);
    border-bottom-left-radius: 6px;
    background: rgba(7, 5, 26, 0.7);
    color: var(--text-muted);
}

.msg-ai b {
    color: var(--text);
    font-weight: 600;
}

.msg-tag {
    display: block;
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--violet), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    font-size: 12px;
    font-family: var(--font-mono);
}

.typing {
    display: inline-flex;
    vertical-align: middle;
    gap: 4px;
    margin-left: 6px;
}

.typing i {
    animation: blink 1.2s infinite;
    border-radius: 50%;
    background: var(--text-dim);
    width: 5px;
    height: 5px;
}

.typing i:nth-child(2) {
    animation-delay: 0.2s;
}

.typing i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    50% {
        opacity: 0.2;
    }
}

/* CTA */

.cta {
    position: relative;
    border: 1px solid var(--border-strong);
    border-radius: 32px;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 167, 132, 0.25), transparent 70%),
        linear-gradient(180deg, rgba(25, 16, 69, 0.9), rgba(11, 7, 39, 0.9));
    padding: 80px 32px;
    overflow: hidden;
    text-align: center;
}

.cta-logo {
    filter: drop-shadow(0 0 24px rgba(255, 167, 132, 0.45));
    margin-bottom: 24px;
}

.cta p {
    margin: 16px auto 32px;
    max-width: 520px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Footer */

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 120px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    padding-bottom: 48px;
    color: var(--text-dim);
    font-size: 14px;
}

.footer .brand {
    color: var(--text-muted);
    font-size: 16px;
}

/* Reveal */

.reveal {
    transform: translateY(24px);
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

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

/* Responsive */

@media (max-width: 960px) {
    .hero,
    .ai {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 56px;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .ai {
        padding: 36px;
    }

    .float-a {
        left: 12px;
    }

    .float-b {
        right: 12px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-inner {
        justify-content: space-between;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: auto;
    }

    .card,
    .step {
        padding: 24px;
    }

    .ai {
        padding: 24px;
    }

    .logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 40px;
    }

    .float {
        display: none;
    }

    .section {
        padding-top: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .route {
        stroke-dashoffset: 0;
    }

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