/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0f1a2e;
    --navy-mid: #162036;
    --blue: #3b6df0;
    --blue-hover: #2d5ad4;
    --blue-glow: rgba(59, 109, 240, 0.12);
    --blue-subtle: rgba(59, 109, 240, 0.06);
    --slate: #64748b;
    --slate-dark: #334155;
    --light: #f7f9fc;
    --light-warm: #fafbfe;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --white: #ffffff;
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.1);
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 26, 46, 0.04);
    --shadow: 0 2px 8px rgba(15, 26, 46, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 26, 46, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 26, 46, 0.1);
    --shadow-xl: 0 16px 48px rgba(15, 26, 46, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--navy);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.2; font-family: var(--font-display); }
h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.section-sub {
    text-align: center;
    color: var(--slate);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 48px;
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: 68px;
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.03em;
}

.nav-cta {
    background: var(--navy);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: var(--navy-mid);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(59, 109, 240, 0.25);
}

.btn-primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 16px rgba(59, 109, 240, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--slate-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--light);
    border-color: #cbd5e1;
}

.btn-lg {
    padding: 17px 40px;
    font-size: 1.08rem;
    border-radius: 12px;
}

/* === HERO === */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    background: var(--navy);
    overflow: hidden;
}

/* Gradient mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(59, 109, 240, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 6px 18px 6px 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    max-width: 780px;
    margin: 0 auto 24px;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    background: #f0f4ff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-proof {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: 64px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    flex: 1;
    position: relative;
}

.proof-item + .proof-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.proof-item strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.proof-item span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === TRUST BAR === */
.trust-bar {
    padding: 48px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate);
    font-size: 0.92rem;
    font-weight: 500;
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--blue-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

/* === HOW IT WORKS === */
.how-it-works {
    padding: 96px 0;
    background: var(--white);
}

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

.step {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    background: var(--light-warm);
    border: 1px solid var(--border-light);
    transition: all 0.25s;
}

.step:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon svg {
    width: 26px;
    height: 26px;
    color: var(--blue);
}

.step-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.step h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.step p {
    color: var(--slate);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* === INDUSTRIES === */
.industries {
    padding: 96px 0;
    background: var(--light);
}

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

.industry-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
}

.industry-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.industry-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.industry-icon svg {
    width: 24px;
    height: 24px;
}

.industry-icon.trucking { background: #fef3c7; color: #d97706; }
.industry-icon.staffing { background: #dbeafe; color: #2563eb; }
.industry-icon.manufacturing { background: #f3e8ff; color: #7c3aed; }
.industry-icon.construction { background: #fed7aa; color: #ea580c; }
.industry-icon.government { background: #d1fae5; color: #059669; }
.industry-icon.other { background: #e0e7ff; color: #4f46e5; }

.industry-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.industry-card p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === INTAKE FORM === */
.intake {
    padding: 96px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.intake::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59, 109, 240, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.intake h2 {
    color: var(--white);
}

.intake .intake-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.intake-form {
    max-width: 540px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.progress-bar {
    height: 3px;
    background: var(--border-light);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), #34d399);
    border-radius: 2px;
    width: 20%;
    transition: width 0.4s ease;
}

.step-indicator {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 32px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active { display: block; }

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

.form-step label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.form-step label.mt { margin-top: 22px; }

.form-step select,
.form-step input[type="text"],
.form-step input[type="email"],
.form-step input[type="tel"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    color: var(--navy);
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s;
}

.form-step select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-step select:focus,
.form-step input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-glow);
}

.form-step select.invalid,
.form-step input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.btn-submit {
    width: 100%;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

#form-success h3,
#form-error h3 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

#form-success p,
#form-error p {
    text-align: center;
    color: var(--slate);
    line-height: 1.7;
}

/* === FAQ === */
.faq {
    padding: 96px 0;
    background: var(--white);
}

.faq-list {
    max-width: 680px;
    margin: 48px auto 0;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--border);
}

.faq-item[open] {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    letter-spacing: -0.01em;
}

.faq-item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' fill='none' stroke='%233b6df0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 22px 20px;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === FOOTER === */
.footer {
    padding: 56px 0 36px;
    background: var(--light);
    border-top: 1px solid var(--border-light);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-brand .nav-brand {
    justify-content: center;
}

.footer-brand p {
    color: var(--slate);
    font-size: 0.88rem;
}

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

.footer-links a {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--navy); }

.footer-copy {
    color: var(--slate);
    font-size: 0.78rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero { padding: 130px 0 72px; }
    .hero-proof { max-width: 100%; }
    .proof-item { padding: 18px 16px; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .industry-grid { grid-template-columns: 1fr 1fr; }
    .intake-form { padding: 32px 24px; margin: 0 8px; }
    .trust-inner { gap: 24px; }
    h2 { font-size: 1.8rem; }
    .how-it-works, .industries, .faq, .intake { padding: 72px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-proof { flex-direction: column; gap: 0; }
    .proof-item + .proof-item::before {
        top: 0; left: 20%; width: 60%; height: 1px;
    }
    .industry-grid { grid-template-columns: 1fr; }
    .trust-inner { flex-direction: column; gap: 16px; }
    .intake-form { border-radius: 14px; }
}
