/* ═══════════════════════════════════════════════════════════
   ROAD TRIAGE — Homepage: "Infrastructure Noir"

   High contrast. Alternating white/dark. Full-bleed imagery.
   Solid cards. Cinematic typography. Engineering authority.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Override Defaults ─────────────────────────────────── */
#hero, #hero ~ .credibility-bar, #hero ~ .section, #hero ~ .cta-section {
    --font-display: 'Outfit', var(--font-sans);
}
#hero h1, #hero ~ * h2, #hero ~ * h3 {
    font-family: 'Outfit', var(--font-sans);
}

/* ═══════════════════════════════════════════════════════════
   HERO — Full-bleed highway, cinematic overlay
   ═══════════════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    background: none;
    position: relative;
    isolation: isolate;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/images/backgrounds/highwayInterchange-1280.jpg') center/cover no-repeat;
    z-index: -2;
}
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5,12,24,0.7) 0%,
        rgba(5,12,24,0.55) 35%,
        rgba(5,12,24,0.75) 70%,
        rgba(5,12,24,0.95) 100%
    );
    z-index: -1;
}
#hero .hero__bg { display: none; }

/* Hero content dramatic entrance */
#hero .hero__content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
}
#hero .hero__badge {
    background: rgba(0,168,255,0.15);
    border: 1px solid rgba(0,168,255,0.4);
    font-weight: 600;
    font-size: 0.9rem;
    animation: fadeSlideUp 0.8s 0.1s both;
}
#hero .hero__title {
    font-family: 'Outfit', var(--font-sans);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: fadeSlideUp 1s 0.2s both;
}
#hero .hero__title em {
    display: block;
    background: linear-gradient(90deg, #00a8ff, #00e5ff, #00a8ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 1s 0.3s both, shimmerText 4s linear infinite;
}
@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
#hero .hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    animation: fadeSlideUp 1s 0.4s both;
}
#hero .hero__actions {
    animation: fadeSlideUp 0.8s 0.6s both;
}
#hero .hero__stats {
    animation: fadeSlideUp 0.8s 0.8s both;
    border-top: 1px solid rgba(255,255,255,0.15);
}
#hero .hero__stat-value {
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(0,168,255,0.5);
}
#hero .hero__stat-label {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

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

/* Hero buttons */
#hero .btn--primary {
    background: #00a8ff;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(0,168,255,0.4), 0 8px 24px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
#hero .btn--primary:hover {
    background: #0090dd;
    box-shadow: 0 0 50px rgba(0,168,255,0.6), 0 12px 32px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}
#hero .btn--secondary {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-weight: 600;
}
#hero .btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   CREDIBILITY BAR — Distinct separator
   ═══════════════════════════════════════════════════════════ */
.credibility-bar {
    background: #060e1a;
    border-top: 1px solid rgba(0,168,255,0.2);
    border-bottom: 1px solid rgba(0,168,255,0.2);
    padding: 20px 0;
}
.credibility-bar__inner {
    opacity: 0.7;
    transition: opacity 0.5s;
}
.credibility-bar:hover .credibility-bar__inner { opacity: 1; }
.credibility-bar__item {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

/* ═══════════════════════════════════════════════════════════
   PROBLEM — WHITE section. Black text. High contrast break.
   ═══════════════════════════════════════════════════════════ */
#problem {
    background: #fff !important;
    color: #0a1628;
    padding: 100px 0;
}
#problem .section__label {
    background: rgba(0,168,255,0.08);
    color: #0077cc;
}
#problem .section__title {
    color: #0a1628;
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}
#problem .section__subtitle {
    color: #1e293b;
    font-size: 1.1rem;
}
#problem .stat-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 36px 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s;
}
#problem .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #00a8ff;
}
#problem .stat-card__value {
    color: #0077cc;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}
#problem .stat-card__label {
    color: #1e293b;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   ASSESSMENTS — DARK. Full-bleed AI background visible.
   ═══════════════════════════════════════════════════════════ */
#assessments {
    background:
        linear-gradient(180deg, rgba(6,14,26,0.88) 0%, rgba(6,14,26,0.92) 100%),
        url('/static/images/backgrounds/AI-head001.jpg') center/cover no-repeat;
    padding: 120px 0;
}
#assessments .section__title {
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}
#assessments .section__subtitle {
    color: rgba(255,255,255,0.85);
}
/* SOLID cards — not transparent */
.assessment-card {
    background: #0f1f38 !important;
    border: 1px solid rgba(0,168,255,0.12) !important;
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.assessment-card::before {
    height: 4px !important;
    border-radius: 0 0 4px 4px;
}
.assessment-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,168,255,0.3) !important;
    background: #132847 !important;
}
.assessment-card:hover::before { opacity: 1; }
.assessment-card__icon {
    transition: all 0.4s !important;
}
.assessment-card:hover .assessment-card__icon {
    background: #00a8ff !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 0 24px rgba(0,168,255,0.4);
}
.assessment-card__title {
    font-family: 'Outfit', var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
}
.assessment-card__desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    line-height: 1.6;
}
.assessment-card__count {
    color: #00d4ff;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE DIFFERENTIATOR — WHITE. Clean break.
   ═══════════════════════════════════════════════════════════ */
#mobile {
    background: #fff !important;
    color: #0a1628 !important;
    padding: 120px 0;
}
#mobile .section__label {
    background: rgba(0,168,255,0.08);
    color: #0077cc;
}
#mobile .section__title {
    color: #0a1628 !important;
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}
#mobile .section__title em {
    color: #00a8ff;
    font-style: normal;
}
#mobile .differentiator__highlight {
    color: #0077cc !important;
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: none;
}
#mobile .section__subtitle {
    color: #1e293b !important;
}
#mobile .differentiator__list li {
    color: #1e293b !important;
    font-weight: 500;
}
#mobile .differentiator__check {
    background: rgba(0,200,83,0.1);
}
#mobile .differentiator__check svg { color: #00a854; }
/* VS badge removed — phone and SSI are complementary, not competing */
/* Images get a shadow on white */
#mobile img {
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════
   PIPELINE — DARK. Dramatic. Background VISIBLE.
   ═══════════════════════════════════════════════════════════ */
#pipeline {
    background:
        linear-gradient(180deg, rgba(6,14,26,0.85), rgba(6,14,26,0.9)),
        url('/static/images/backgrounds/artificial-intelligence-1920.jpg') center/cover no-repeat !important;
    padding: 120px 0;
    border-top: 3px solid #00a8ff;
}
#pipeline .section__subtitle {
    color: rgba(255,255,255,0.85);
}
.pipeline__title {
    font-family: 'Outfit', var(--font-sans) !important;
    color: #fff !important;
    font-weight: 700;
}
.pipeline__desc {
    color: rgba(255,255,255,0.8) !important;
}
.pipeline__stage--visible .pipeline__node {
    background: #00a8ff !important;
    box-shadow: 0 0 20px rgba(0,168,255,0.6), 0 0 40px rgba(0,168,255,0.3) !important;
}
.pipeline__icon {
    background: #0f1f38 !important;
    border: 1px solid rgba(0,168,255,0.2);
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON — WHITE. Table pops on clean background.
   ═══════════════════════════════════════════════════════════ */
#comparison {
    background: #f8fafc !important;
    color: #0a1628 !important;
    padding: 100px 0;
}
#comparison .section__label {
    background: rgba(0,168,255,0.08);
    color: #0077cc;
}
#comparison .section__title {
    color: #0a1628 !important;
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}
#comparison .section__subtitle {
    color: #1e293b !important;
}
/* Table on light bg */
.comparison-table {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
}
.comparison-table th {
    background: #0a1628;
    color: #fff;
    font-weight: 700;
    padding: 18px 20px;
    border-bottom: none;
}
.comparison-table th.comparison-table__highlight {
    background: #0077cc;
}
.comparison-table th.comparison-table__highlight::before {
    background: #00a8ff;
    top: -14px;
}
.comparison-table td {
    color: #1e293b !important;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}
.comparison-table td:first-child {
    color: #0a1628 !important;
    font-weight: 700;
}
.comparison-table td.comparison-table__highlight {
    background: rgba(0,119,204,0.04);
}
.comparison-table tr:hover td {
    background: rgba(0,168,255,0.03);
}
.comparison-table .check { color: #00a854; font-weight: 700; text-shadow: none; }
.comparison-table .cross { color: #dc2626; }
.comparison-table .partial { color: #d97706; }

/* ═══════════════════════════════════════════════════════════
   ROI CALCULATOR — DARK. Full-bleed road image.
   ═══════════════════════════════════════════════════════════ */
#roi {
    background:
        linear-gradient(180deg, rgba(6,14,26,0.92), rgba(6,14,26,0.88)),
        url('/static/images/backgrounds/connectedCar001wd-1.jpg') center/cover no-repeat !important;
    padding: 120px 0;
}
#roi .section__subtitle {
    color: rgba(255,255,255,0.85);
}
/* SOLID inputs panel */
.roi-calc__inputs {
    background: #0f1f38 !important;
    border: 1px solid rgba(0,168,255,0.15) !important;
    border-radius: 16px;
}
.roi-calc__results {
    background: #0f1f38 !important;
    border: 1px solid rgba(0,168,255,0.15) !important;
    border-radius: 16px;
}
.roi-calc__label {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   CASE STUDY — WHITE. Testimonial breathes.
   ═══════════════════════════════════════════════════════════ */
#casestudy {
    background: #fff !important;
    color: #0a1628 !important;
    padding: 100px 0;
}
#casestudy .section__label {
    background: rgba(0,168,255,0.08);
    color: #0077cc;
}
#casestudy .section__title {
    color: #0a1628 !important;
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}
.testimonial__quote {
    color: #0a1628 !important;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem) !important;
    font-weight: 400;
    line-height: 1.8 !important;
    text-shadow: none !important;
}
.testimonial__quote::before {
    color: #00a8ff !important;
    opacity: 0.3;
    font-size: 5rem;
}
.testimonial__name {
    color: #0a1628 !important;
    font-weight: 700;
}
.testimonial__role {
    color: #475569 !important;
}
.testimonial__avatar {
    background: linear-gradient(135deg, #0077cc, #00a8ff) !important;
    box-shadow: 0 8px 24px rgba(0,119,204,0.3) !important;
    animation: none !important;
}
.testimonial__badge {
    background: rgba(0,168,255,0.08) !important;
    border: 1px solid rgba(0,168,255,0.2) !important;
    color: #0077cc !important;
}
#casestudy .section__subtitle {
    color: #1e293b !important;
}
#casestudy .glow-line {
    background: linear-gradient(90deg, transparent, #00a8ff, transparent);
    opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════
   HELM SHOWCASE — DARK. Product screenshots pop.
   ═══════════════════════════════════════════════════════════ */
#helm {
    background: #060e1a !important;
    padding: 120px 0;
    border-top: 3px solid #00a8ff;
}
#helm::before { display: none; }
#helm .section__subtitle {
    color: rgba(255,255,255,0.85);
}
#helm img {
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════
   TWO TIERS — WHITE. Cards side by side. Clean.
   ═══════════════════════════════════════════════════════════ */
#tiers {
    background: #fff !important;
    color: #0a1628 !important;
    padding: 120px 0;
}
#tiers .section__label {
    background: rgba(0,168,255,0.08);
    color: #0077cc;
}
#tiers .section__title {
    color: #0a1628 !important;
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}
#tiers .section__subtitle {
    color: #1e293b !important;
}
/* SOLID tier cards */
#tiers .card--glass {
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transition: all 0.4s;
}
#tiers .card--glass:hover {
    border-color: #00a8ff !important;
    box-shadow: 0 16px 48px rgba(0,168,255,0.12) !important;
    transform: translateY(-6px) !important;
}
#tiers .card--glass h3 {
    color: #0a1628 !important;
}
#tiers .card--glass p {
    color: #334155 !important;
}
#tiers .card--glass li {
    color: #1e293b !important;
}
#tiers .card--glass li span {
    font-weight: 700;
}
#tiers .card--glass div[style*="border-top"] {
    border-top-color: #e2e8f0 !important;
}
#tiers .card--glass div[style*="font-size:0.78rem"] {
    color: #475569 !important;
}
#tiers .card--glass div[style*="font-size:0.7rem"] {
    color: #0077cc !important;
}
/* SSI partnership box stays dark */
#tiers > .container > .reveal:nth-last-child(-n+2) .card--glass {
    background: #0a1628 !important;
    border-color: rgba(0,168,255,0.2) !important;
}
#tiers > .container > .reveal:nth-last-child(-n+2) .card--glass p {
    color: rgba(255,255,255,0.85) !important;
}
/* Federal context note */
#tiers > .container > .reveal:last-child p {
    color: #64748b !important;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO — DARK. Simple.
   ═══════════════════════════════════════════════════════════ */
#video {
    background: #060e1a !important;
    padding: 100px 0;
}
#video .section__subtitle {
    color: rgba(255,255,255,0.85);
}
.video-placeholder {
    border: 2px solid rgba(0,168,255,0.2) !important;
    background: linear-gradient(135deg, #0f1f38, #0a1628) !important;
}
.video-placeholder:hover {
    border-color: #00a8ff !important;
}

/* ═══════════════════════════════════════════════════════════
   CTA — Full-bleed road. Dramatic. Unmistakable.
   ═══════════════════════════════════════════════════════════ */
.cta-section {
    background:
        linear-gradient(135deg, rgba(0,77,204,0.85), rgba(0,168,255,0.8)),
        url('/static/images/backgrounds/connectedCar001wd-1.jpg') center/cover no-repeat !important;
    padding: 120px 24px;
    border-top: 3px solid #00d4ff;
}
.cta-section__title {
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.cta-section__subtitle {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.15rem;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Section labels */
.section__label {
    font-family: 'Outfit', var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

/* Section titles */
.section__title {
    font-family: 'Outfit', var(--font-sans);
    font-weight: 800;
}

/* Stronger reveals */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger with scale */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.reveal-stagger--visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0.05s !important; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.12s !important; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.19s !important; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.26s !important; }

/* Buttons */
.btn--primary {
    font-family: 'Outfit', var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Pipeline line glow */
.pipeline__line {
    background: linear-gradient(180deg, #00a8ff, #00d4ff, #00a854) !important;
    opacity: 0.15 !important;
    width: 3px !important;
}
.pipeline__line-progress {
    width: 3px !important;
    box-shadow: 0 0 15px #00a8ff, 0 0 30px rgba(0,168,255,0.3) !important;
}

/* Counters */
.counter {
    font-family: 'Outfit', var(--font-mono);
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    #tiers .card--glass + .card--glass { margin-top: 0; }
}
@media (max-width: 768px) {
    #hero .hero__title { font-size: 2.5rem; }
    #pipeline { border-top-width: 2px; }
    #helm { border-top-width: 2px; }
    .cta-section { border-top-width: 2px; }
    #problem, #assessments, #mobile, #pipeline,
    #comparison, #roi, #casestudy, #helm, #tiers, #video {
        padding: 80px 0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #hero .hero__badge,
    #hero .hero__title,
    #hero .hero__title em,
    #hero .hero__subtitle,
    #hero .hero__actions,
    #hero .hero__stats {
        animation: none !important;
        opacity: 1;
    }
}
