/* ============================================================
   QUICKLITRACK — LANDING PAGE STYLES
   Design System · Light/Dark Mode · 8-Point Grid
   ============================================================ */

/* 1. TOKENS ================================================== */

:root {
    --color-bg: #0B0F1A;
    --color-surface: #141824;
    --color-surface-raised: #1C2232;
    --color-border: #242A3A;
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-accent: #00D4AA;
    --color-accent-hover: #00B894;
    --color-text: #F1F5F9;
    --color-text-secondary: #94A3B8;
    --color-text-tertiary: #6B7591; /* WCAG AA ~4.5:1 on #0B0F1A */
    --color-status-active: #22C55E;
    --color-status-due: #F59E0B;
    --color-status-overdue: #EF4444;

    --gradient-brand: linear-gradient(135deg, #00D4AA 0%, #2563EB 100%);
    --gradient-hero-glow: radial-gradient(ellipse at 65% 40%, rgba(0, 212, 170, .15) 0%, rgba(37, 99, 235, .1) 45%, transparent 70%);
    --gradient-cta: linear-gradient(135deg, #0B6B55 0%, #1a3a8f 100%);

    --radius-card: 1rem;
    --radius-btn: 0.75rem;
    --radius-pill: 62.5rem;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .04);
    --shadow-btn: 0 4px 12px rgba(37, 99, 235, .35);
    --shadow-glow: 0 0 56px rgba(0, 212, 170, .25), 0 0 112px rgba(37, 99, 235, .12);

    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.32, 0.72, 0, 1);

    --nav-height: 4rem;
}

[data-theme="light"] {
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-surface-raised: #F1F5F9;
    --color-border: #E2E8F0;
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-accent: #059669;
    --color-accent-hover: #047857;
    --color-text: #0F172A;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748B; /* WCAG AA ~4.6:1 on #FFFFFF */
    --color-status-active: #16A34A;
    --color-status-due: #D97706;
    --color-status-overdue: #DC2626;

    --gradient-hero-glow: radial-gradient(ellipse at 65% 40%, rgba(5, 150, 105, .1) 0%, rgba(37, 99, 235, .07) 45%, transparent 70%);
    --gradient-cta: linear-gradient(135deg, #065F46 0%, #1e40af 100%);

    --shadow-card: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .04);
    --shadow-btn: 0 4px 12px rgba(37, 99, 235, .25);
    --shadow-glow: 0 0 56px rgba(5, 150, 105, .15), 0 0 112px rgba(37, 99, 235, .08);
}

/* 2. RESET & BASE ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 300ms var(--ease-default),
        color 300ms var(--ease-default);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}


ol,
ul {
    list-style: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* 3. SHARED UTILITIES ======================================== */

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.25);
    color: var(--color-accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.375em 0.875em;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-default),
        transform 600ms var(--ease-default);
}

.reveal--delay-1 {
    transition-delay: 100ms;
}

.reveal--delay-2 {
    transition-delay: 200ms;
}

.reveal--delay-3 {
    transition-delay: 300ms;
}

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


/* 4. BUTTONS ================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-btn);
    cursor: pointer;
    border: none;
    transition: all 200ms var(--ease-default);
    white-space: nowrap;
    line-height: 1;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.btn--sm {
    font-size: 0.875rem;
    padding: 0.625em 1.125em;
    min-height: 2.25rem;
}

.btn--lg {
    font-size: 1rem;
    padding: 0.875em 1.75em;
    min-height: 3rem;
}

.btn--primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .45);
}

.btn--primary:active {
    transform: scale(0.98) translateY(0);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    background: var(--color-surface);
    border-color: var(--color-text-secondary);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: #0F172A;
    font-weight: 700;
}

.btn--white:hover {
    background: #F1F5F9;
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}


/* 5. NAV ==================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    border-bottom: 1px solid transparent;
    transition: background-color 300ms var(--ease-default),
        border-color 300ms var(--ease-default),
        backdrop-filter 300ms;
}

.nav--scrolled {
    background: rgba(11, 15, 26, 0.75);
    border-color: var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .nav--scrolled {
    background: rgba(248, 250, 252, 0.8);
}

.nav__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav__logo-icon {
    display: flex;
    align-items: center;
}

.nav__logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav__logo-accent {
    color: var(--color-accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav__link {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 200ms;
}

.nav__link:hover {
    color: var(--color-text);
}

.nav__link--cta {
    color: var(--color-primary);
    font-weight: 600;
}

.nav__link--cta:hover {
    color: var(--color-primary-hover);
}


.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 200ms var(--ease-default);
}

.theme-toggle:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}


/* 6. HERO =================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero-glow);
    pointer-events: none;
}

.hero__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

/* Hero Copy */
.hero__copy {
    animation: fadeInUp 700ms var(--ease-default) both;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.25);
    color: var(--color-accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4em 1em;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.hero__heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero__heading-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 34rem;
    margin-bottom: 2.5rem;
}

.hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__cta-full {
    width: 100%;
    justify-content: center;
}

.nav__login-link {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 200ms;
}

.nav__login-link:hover {
    color: var(--color-text);
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.hero__trust-check {
    color: var(--color-status-active);
    font-weight: 700;
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 700ms 200ms var(--ease-default) both;
}

.hero__mockup-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--shadow-glow);
    border-radius: 50%;
    filter: blur(48px);
    z-index: 0;
    pointer-events: none;
}

.css-mockup {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    height: 600px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.05);
    transform: rotate(3deg) translateY(1rem);
    transition: transform 400ms var(--ease-default), box-shadow 400ms var(--ease-default);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    overflow: hidden;
}

[data-theme="light"] .css-mockup {
    background: #ffffff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.css-mockup:hover {
    transform: rotate(1deg) scale(1.02) translateY(0);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .css-mockup:hover {
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.css-mockup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.css-mockup__greeting p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.125rem;
}

.css-mockup__greeting strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    color: var(--color-text);
}

.css-mockup__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.css-mockup__stats {
    display: flex;
    gap: 0.5rem;
}

.css-mockup__stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 0.625rem;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

[data-theme="light"] .css-mockup__stat {
    background: var(--color-bg);
}

.css-mockup__stat .stat-num {
    font-size: 1.125rem;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text);
}

.stat--green {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat--green .stat-num {
    color: #10B981;
}

.stat--amber {
    border-color: rgba(245, 158, 11, 0.3);
}

.stat--amber .stat-num {
    color: #F59E0B;
}

.stat--red {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat--red .stat-num {
    color: #EF4444;
}

.css-mockup__map {
    flex: 1;
    background: var(--color-bg);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.css-mockup__map-bg {
    position: absolute;
    inset: -20%;
    opacity: 0.15;
    background-image:
        linear-gradient(var(--color-text-secondary) 2px, transparent 2px),
        linear-gradient(90deg, var(--color-text-secondary) 2px, transparent 2px),
        linear-gradient(var(--color-text-secondary) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-text-secondary) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    transform: rotate(15deg) scale(1.2);
    z-index: 0;
}

.css-mockup__pin {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: #10B981;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 2px 2px 10px rgba(16, 185, 129, 0.4);
    z-index: 2;
}

.css-mockup__pin::after {
    content: '';
    position: absolute;
    width: 0.375rem;
    height: 0.375rem;
    background: var(--color-surface);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pinPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }
}

@keyframes pinPulseAmber {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }
}

@keyframes pinPulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 2px 2px 10px rgba(0, 0, 0, 0.2);
    }
}

.pin--green.pulse {
    animation: pinPulse 2s infinite;
}

.pin--green {
    background: #10B981;
}

.pin--amber.pulse {
    animation: pinPulseAmber 2s infinite;
}

.pin--amber {
    background: #F59E0B;
}

.pin--red.pulse {
    animation: pinPulseRed 2s infinite;
}

.pin--red {
    background: #EF4444;
}

.css-mockup__pin.pin--overdue {
    background: #EF4444;
}

.pin-label {
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .pin-label {
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
}

.css-mockup__route {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.css-mockup__cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.css-mockup__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

[data-theme="light"] .css-mockup__card {
    background: var(--color-bg);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.card-title {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.8125rem;
}

.card-badge {
    font-size: 0.5625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    font-weight: 800;
}

.badge--green {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.badge--red {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.card-bottom {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
}

.css-mockup__fab {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
    z-index: 10;
}

/* 7. SOCIAL PROOF BAR ======================================= */

.proof-bar {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1.5rem 0;
}

.proof-bar__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.proof-bar__avatars {
    display: flex;
    align-items: center;
}

.proof-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    margin-right: -0.625rem;
    flex-shrink: 0;
}

.proof-avatar:first-child {
    margin-right: -0.625rem;
}

.proof-bar__text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    padding-left: 0.75rem;
}

.proof-bar__text strong {
    color: var(--color-text);
}

.proof-bar__divider {
    width: 1px;
    height: 1.5rem;
    background: var(--color-border);
    flex-shrink: 0;
}

.proof-bar__stat {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.proof-bar__stat-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-accent);
}


/* 8. FEATURES =============================================== */

.features {
    padding: 6rem 0;
}

.features__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.features__header {
    text-align: center;
    margin-bottom: 4rem;
}

.features__heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.features__sub {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 36rem;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: transform 250ms var(--ease-default),
        box-shadow 250ms var(--ease-default),
        border-color 250ms;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
    border-color: rgba(0, 212, 170, 0.3);
}

.feature-card__icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.feature-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-card__body {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}


/* 9. HOW IT WORKS =========================================== */

.how-it-works {
    padding: 6rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.how-it-works__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.how-it-works__header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-it-works__heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
}

.step--reverse {
    direction: rtl;
}

.step--reverse>* {
    direction: ltr;
}

.step__number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--color-border);
    line-height: 1;
    min-width: 5rem;
    text-align: center;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
}

.step__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.step__body {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Step visual: card */
.step__card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step__card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.step__card-label {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.step__card-value {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 600;
    text-align: right;
}

/* Step visual: fake map */
.step__map {
    position: relative;
    height: 10rem;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.step__map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    opacity: 0.4;
}

.step__map-pin {
    position: absolute;
    font-size: 1.5rem;
    transform: translateX(-50%);
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.step__map-pin--active {
    filter: drop-shadow(0 2px 8px rgba(34, 197, 94, .6));
}

.step__map-pin--due {
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, .6));
}

.step__map-pin--overdue {
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, .6));
}

/* Step visual: status stack */
.step__status-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step__status-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: border-color 200ms;
}

.step__status-item--active {
    border-left: 3px solid var(--color-status-active);
}

.step__status-item--due {
    border-left: 3px solid var(--color-status-due);
}

.step__status-item--overdue {
    border-left: 3px solid var(--color-status-overdue);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25em 0.625em;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.status-pill--active {
    background: rgba(34, 197, 94, .12);
    color: var(--color-status-active);
}

.status-pill--due {
    background: rgba(245, 158, 11, .12);
    color: var(--color-status-due);
}

.status-pill--overdue {
    background: rgba(239, 68, 68, .12);
    color: var(--color-status-overdue);
}


/* 10. FINAL CTA BLOCK ======================================= */

.cta-block {
    padding: 6rem 0;
    background: var(--gradient-cta);
    position: relative;
    overflow: hidden;
}

.cta-block__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-block__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40rem;
    height: 20rem;
    background: radial-gradient(ellipse, rgba(0, 212, 170, .2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-block__heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-block__sub {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.cta-block__note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, .55);
}


/* 11. FOOTER ================================================ */

.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
}

.footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer__logo {
    margin-bottom: 0.5rem;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: 0.25rem;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color 200ms;
}

.footer__link:hover {
    color: var(--color-text);
}

.footer__bottom {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copy,
.footer__credit {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

.footer__credit-link {
    color: var(--color-accent);
    font-weight: 600;
    transition: color 200ms;
}

.footer__credit-link:hover {
    color: var(--color-accent-hover);
}


/* 12. ANIMATIONS ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 13. RESPONSIVE / MOBILE =================================== */

@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__cta {
        display: none;
    }

    .nav__actions {
        margin-left: auto;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .hero__copy {
        align-items: center;
    }

    .hero__cta-group {
        justify-content: center;
    }

    .css-mockup {
        height: 500px;
        transform: rotate(0deg) translateY(0);
        margin: 0 auto;
    }

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

    .step {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step__number {
        display: none;
        /* Hide huge numbers on mobile to save space */
    }

    .step--reverse {
        direction: ltr;
        /* Reset reverse flow for mobile stacking */
    }

    .step--reverse>* {
        direction: ltr;
    }
}

@media (max-width: 600px) {
    .features__grid {
        grid-template-columns: 1fr;
    }

    .css-mockup {
        height: 440px;
        padding: 1rem;
        gap: 1rem;
    }

    .css-mockup__cards {
        display: none;
        /* Hide cards on tiny screens to save space */
    }

    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer__links {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .social-proof {
        padding: 3rem 0;
    }

    .section-header {
        text-align: left;
    }

    .cta-block {
        padding: 4rem 0;
    }
}