/* =================================================================
   XactShip Marketing — public/css/marketing.css
   ================================================================= */

:root {
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #3b82f6;
    --brand-subtle: #eff6ff;
    --brand-glow: rgba(37, 99, 235, 0.08);
    --radius: 8px;
    --max-w: 1120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------------------------------
   NAV
   ----------------------------------------------------------------- */
.nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 1.5rem; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: 0.875rem; font-weight: 500;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
    background: var(--white) !important;
    color: var(--gray-900) !important;
    padding: 0.45rem 1.15rem; border-radius: var(--radius);
    font-weight: 600 !important; font-size: 0.85rem !important;
    transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.9; }
.nav-toggle {
    display: none; background: none; border: none;
    color: var(--white); cursor: pointer; padding: 0.25rem;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* -----------------------------------------------------------------
   HERO
   ----------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 600px;
    display: flex; align-items: center;
    padding: 8rem 1.5rem 5rem;
    overflow: hidden;
    background: var(--gray-900);
}
.hero-map {
    position: absolute; inset: 0;
    background: url('../images/hero-map.svg') center / cover no-repeat;
}
.hero-map::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 30% 50%, transparent, var(--gray-900) 80%),
        linear-gradient(to bottom, rgba(17,24,39,0.3) 0%, var(--gray-900) 100%);
}
.hero-inner {
    max-width: var(--max-w); margin: 0 auto;
    position: relative; z-index: 1;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800; line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.03em;
    max-width: 700px;
    margin-bottom: 1.25rem;
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -----------------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.75rem 1.75rem; border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.15s;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
    background: transparent; color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline {
    background: var(--white); color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-50); }

/* -----------------------------------------------------------------
   CARRIER BAR
   ----------------------------------------------------------------- */
.carrier-bar {
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.carrier-bar-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.carrier-bar-label {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gray-400); margin-bottom: 1.25rem;
}
.carrier-list {
    display: flex; justify-content: center;
    align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.carrier-name { font-size: 0.95rem; font-weight: 600; color: var(--gray-400); }

/* -----------------------------------------------------------------
   SECTIONS
   ----------------------------------------------------------------- */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { max-width: 600px; margin-bottom: 3rem; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-eyebrow {
    font-size: 0.8rem; font-weight: 600;
    color: var(--brand); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700; color: var(--gray-900);
    letter-spacing: -0.02em; line-height: 1.2;
    margin-bottom: 0.75rem;
}
.section-desc { font-size: 1rem; color: var(--gray-500); line-height: 1.7; }

/* -----------------------------------------------------------------
   FEATURES
   ----------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.2s;
}
.feature-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--brand-subtle);
    color: var(--brand);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 {
    font-size: 1rem; font-weight: 600;
    color: var(--gray-900); margin-bottom: 0.4rem;
}
.feature-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

/* -----------------------------------------------------------------
   HOW IT WORKS
   ----------------------------------------------------------------- */
.bg-gray { background: var(--gray-50); }
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}
.step { counter-increment: step; }
.step-num {
    font-size: 0.8rem; font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.step-num::before {
    content: counter(step);
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-subtle);
    border-radius: 50%;
    font-size: 0.8rem; font-weight: 700; color: var(--brand);
}
.step h3 {
    font-size: 1rem; font-weight: 600;
    color: var(--gray-900); margin-bottom: 0.35rem;
}
.step p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* -----------------------------------------------------------------
   ARCHITECTURE
   ----------------------------------------------------------------- */
.arch-box {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    padding: 3rem 2rem;
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
}
.arch-row {
    display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.arch-tag {
    font-size: 0.8rem; font-weight: 500;
    padding: 0.45rem 1rem; border-radius: 6px;
    border: 1px solid var(--gray-200);
    background: var(--white); color: var(--gray-700);
    white-space: nowrap;
}
.arch-tag.hub {
    background: var(--brand); color: var(--white);
    border-color: var(--brand); font-weight: 600;
    padding: 0.55rem 1.5rem; font-size: 0.85rem;
}
.arch-arrow { color: var(--gray-300); display: flex; justify-content: center; }
.arch-arrow svg { width: 16px; height: 16px; }

/* -----------------------------------------------------------------
   CTA
   ----------------------------------------------------------------- */
.cta {
    text-align: center; padding: 5rem 1.5rem;
    background: var(--gray-900);
}
.cta .section-eyebrow { color: rgba(255,255,255,0.45); }
.cta .section-title { color: var(--white); }
.cta .section-desc { color: rgba(255,255,255,0.5); }
.cta .btn-primary { background: var(--brand); color: var(--white); }
.cta .btn-primary:hover { background: var(--brand-light); }

/* -----------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------- */
footer { padding: 2rem 1.5rem; border-top: 1px solid var(--gray-200); }
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { height: 20px; width: auto; opacity: 0.4; }
.footer-right { display: flex; align-items: center; gap: 2rem; }
.footer-right a {
    font-size: 0.8rem; color: var(--gray-400);
    text-decoration: none; transition: color 0.15s;
}
.footer-right a:hover { color: var(--gray-600); }
.footer-copy { font-size: 0.8rem; color: var(--gray-400); }

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--gray-900);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.75rem 1.5rem 1rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.6rem 0; }
    .nav-toggle { display: block; }
    .hero { padding: 7rem 1.25rem 3.5rem; min-height: auto; }
    .hero h1 { font-size: 2.25rem; }
    section { padding: 3.5rem 1.25rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .carrier-list { gap: 1.5rem; }
    .arch-box { padding: 2rem 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-right { flex-direction: column; gap: 0.75rem; }
}
