/* ============================================================
   BridgeWire Marketing Site
   Design tokens: dark navy base, the same three-stop brand
   gradient used throughout the app (blue -> cyan -> green),
   Manrope for display/body, a monospace accent for small
   technical labels (route chips, platform tags).
   ============================================================ */

:root {

    --bg: #0F172A;
    --bg-raised: #0B1220;
    --surface: #1E293B;
    --surface-glass: rgba(30, 41, 59, 0.55);
    --border: #334155;
    --border-soft: rgba(148, 163, 184, 0.16);

    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --text-faint: #64748B;

    --connect: #1C6EE4;
    --route: #00B0FF;
    --deliver: #00E676;

    --gradient-brand: linear-gradient(90deg, #0066FF 0%, #00D2FF 45%, #00E676 100%);

    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    padding: 7px 16px;
    border-radius: 999px;
    backdrop-filter: blur(16px);
}

.route-chip {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border-soft);
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* ---------- Nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    color: var(--text);
}

.site-brand img {
    width: 30px;
    height: 30px;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.site-nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s var(--ease-spring);
}

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

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text);
    font-size: 18px;
    padding: 6px 12px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), background 0.2s ease;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #05121F;
    box-shadow: 0 8px 30px -8px rgba(0, 178, 255, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -8px rgba(0, 178, 255, 0.7);
}

.btn-ghost {
    background: var(--surface-glass);
    color: var(--text);
    border-color: var(--border-soft);
    backdrop-filter: blur(16px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(51, 65, 85, 0.6);
}

/* ---------- Tagline (Connect. Route. Deliver.) ---------- */

.tagline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35em;
    font-weight: 700;
}

.tagline .t-connect { color: var(--connect); }
.tagline .t-route   { color: var(--route); }
.tagline .t-deliver  { color: var(--deliver); }

/* ---------- Ambient wave (signature element) ---------- */

.ambient-wave {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-wave svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1400px;
    max-width: none;
    transform: translate(-50%, -50%);
    opacity: 0.55;
}

.ambient-wave .wave-strand {
    animation: wave-drift 14s ease-in-out infinite;
}

.ambient-wave .wave-strand:nth-of-type(2) {
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes wave-drift {
    0%   { transform: translateX(0) translateY(0); }
    50%  { transform: translateX(-14px) translateY(8px); }
    100% { transform: translateX(0) translateY(0); }
}

/* ---------- Section rhythm ---------- */

section {
    position: relative;
    padding: 96px 0;
}

.section-heading {
    max-width: 620px;
    margin: 0 0 56px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 17px;
    margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 56px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
}

.footer-brand img {
    width: 26px;
    height: 26px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col h4 {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--route);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-faint);
    font-size: 13px;
}

@media (max-width: 780px) {

    .site-nav-links,
    .site-nav-actions .btn-ghost {
        display: none;
    }

    .site-nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid var(--border-soft);
        padding: 16px 28px;
        gap: 16px;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .footer-top {
        flex-direction: column;
    }

}


/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    padding: 96px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge-slot {
    width: 108px;
    height: 108px;
    margin: 0 auto 28px;
    border-radius: 30px;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px -20px rgba(0, 178, 255, 0.35);
}

.hero-badge-slot img {
    width: 62px;
    height: 62px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 22px;
}

.hero h1 .grad {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-platform-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================================================
   Connect / Route / Deliver steps
   ============================================================ */

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

.step-card {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.step-card.connect::before { background: var(--connect); }
.step-card.route::before   { background: var(--route); }
.step-card.deliver::before { background: var(--deliver); }

.step-word {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px;
}

.step-card.connect .step-word { color: var(--connect); }
.step-card.route .step-word   { color: var(--route); }
.step-card.deliver .step-word { color: var(--deliver); }

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

/* ============================================================
   Features
   ============================================================ */

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 178, 255, 0.4);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
    text-align: center;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.cta-band p {
    color: var(--text-muted);
    margin: 0 0 30px;
    font-size: 16px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {

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

}


/* ============================================================
   FAQ page
   ============================================================ */

.faq-header {
    padding: 72px 0 40px;
    text-align: center;
}

.faq-header h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0 14px;
}

.faq-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 96px;
}

.faq-toc {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-toc a {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-toc a:hover {
    background: var(--surface-glass);
    color: var(--text);
}

.faq-toc a.active {
    background: rgba(0, 178, 255, 0.12);
    color: var(--route);
}

.faq-section {
    scroll-margin-top: 96px;
    margin-bottom: 64px;
    padding-bottom: 8px;
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.faq-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.faq-section-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.faq-item {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
}

.faq-item.flash {
    animation: faq-flash 1.6s var(--ease-spring);
}

@keyframes faq-flash {
    0%   { border-color: var(--route); box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.25); }
    100% { border-color: var(--border-soft); box-shadow: none; }
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.faq-question .chevron {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
    color: var(--text-muted);
}

.faq-item.open .faq-question .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-spring);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

@media (max-width: 900px) {

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-toc {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        top: auto;
    }

}

/* ============================================================
   Contact page
   ============================================================ */

.contact-hero {
    padding: 96px 0;
    text-align: center;
}

.contact-card {
    max-width: 480px;
    margin: 40px auto 0;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(16px);
    text-align: center;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #05121F;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
