/* ============================================================
   CSP Connect — Landing Page Styles
   Brand: Navy #1B3A6D · Orange #F86338 (from CSP Connect logo)
   Fonts: Merriweather (headings) · Inter (body)
   ============================================================ */

:root {
    --navy: #1B3A6D;
    --navy-dark: #152D54;
    --navy-deep: #0D1B2A;
    --navy-light: #E8EEF5;
    --gold: #F86338;       /* CSP Connect logo orange */
    --gold-dark: #E24E22;  /* darker orange for hover */
    --cream: #FFF0EA;      /* soft orange tint */
    --ink: #1C2432;
    --text: #33404F;
    --muted: #6B7787;
    --line: #E6EAF0;
    --bg: #FFFFFF;
    --bg-alt: #F6F8FB;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(21, 45, 84, 0.06);
    --shadow-md: 0 12px 40px rgba(21, 45, 84, 0.12);
    --shadow-lg: 0 30px 60px rgba(13, 27, 42, 0.25);
    --max: 1140px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: 'Merriweather', Georgia, serif; color: var(--ink); line-height: 1.2; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 15px; border-radius: 50px;
    padding: 12px 26px; cursor: pointer; transition: all 0.2s ease;
    border: 2px solid transparent; white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(248,99,56,0.35); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(27,58,109,0.25); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy-light); }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 4px; font-family: 'Merriweather', serif; font-weight: 900; font-size: 22px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark { color: var(--navy); background: var(--navy-light); padding: 2px 8px; border-radius: 6px; }
.brand-name { color: var(--gold-dark); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { font-size: 14px; padding: 10px 20px; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(248,99,56,0.10), transparent 60%),
        linear-gradient(180deg, #FBFCFE 0%, #F1F5FA 100%);
    padding: 80px 0 90px;
    border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold-dark); background: var(--cream); padding: 6px 14px; border-radius: 50px; margin-bottom: 22px;
}
.hero h1 { font-size: 52px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 20px; }
.lede { font-size: 20px; color: var(--text); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--muted); font-style: italic; }

/* Hero phone visual */
.hero-visual { display: flex; justify-content: center; }
.phone {
    width: 320px; background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.phone-topbar { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 20px 20px 16px; }
.phone-topbar-title { font-family: 'Merriweather', serif; font-weight: 700; font-size: 18px; }
.phone-topbar-sub { font-size: 12px; opacity: 0.8; }
.phone-body { padding: 16px; background: #F5F7FA; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.mini-stat { background: #fff; border-radius: 12px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow-sm); }
.ms-value { display: block; font-weight: 800; font-size: 20px; color: var(--navy); font-family: 'Inter', sans-serif; }
.ms-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.mini-card-accent { background: linear-gradient(135deg, #FFF6F2, #FCE4DA); border: 1px solid #F5CDBE; }
.mini-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pill { background: var(--navy-light); color: var(--navy); padding: 2px 9px; border-radius: 10px; font-size: 11px; }
.mini-row { font-size: 11.5px; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.mini-row:first-of-type { border-top: none; }
.mini-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.mini-row .ok { margin-left: auto; color: #2E7D32; font-weight: 600; }
.mini-row .warn { margin-left: auto; color: #E65100; font-weight: 600; }
.mini-row-lite { font-size: 11.5px; color: var(--text); padding: 5px 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-deep); color: #E7EDF5; padding: 26px 0; }
.trust-inner { text-align: center; }
.trust p { font-size: 16px; max-width: 860px; margin: 0 auto; opacity: 0.92; }
.trust strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.section-head h2 { font-size: 38px; font-weight: 700; }
.section-sub { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section-head.light .kicker { color: var(--gold); }
.section-head.light h2 { color: #fff; }

/* ---------- Problem grid ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.problem-item {
    background: #fff; border: 1px solid var(--line); border-left: 3px solid #E5735F;
    border-radius: var(--radius-sm); padding: 18px 20px; font-size: 15.5px; font-weight: 500; color: var(--ink);
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm);
}
.problem-item .x { color: #E5735F; font-weight: 700; }

/* ---------- 3-card grids ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.a-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 28px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.a-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.a-icon { font-size: 40px; margin-bottom: 16px; }
.a-card h3 { font-size: 22px; margin-bottom: 10px; }
.a-card p { color: var(--text); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step { flex: 1; min-width: 190px; max-width: 230px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; background: var(--gold); color: #fff; border-radius: 50%; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; }
.step-icon { font-size: 34px; margin: 8px 0 14px; }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step-arrow { display: flex; align-items: center; color: var(--gold); font-size: 26px; font-weight: 700; }

/* ---------- Navy section ---------- */
.section-navy { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.w-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 32px 28px; }
.w-icon { font-size: 36px; margin-bottom: 14px; }
.w-card h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.w-card p { color: rgba(255,255,255,0.82); font-size: 15.5px; }

/* ---------- Video ---------- */
.video-frame { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(800px 400px at 50% 0%, rgba(248,99,56,0.16), transparent 60%), var(--navy-deep); color: #fff; padding: 80px 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: 38px; margin-bottom: 16px; }
.cta-inner p { max-width: 620px; margin: 0 auto 30px; font-size: 18px; color: rgba(255,255,255,0.85); }
.cta-email { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,0.7); }
.cta-email a { color: var(--gold); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #0A1420; color: rgba(255,255,255,0.7); padding: 54px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.1); color: #fff; }
.footer-brand p { font-size: 14px; margin-bottom: 6px; }
.footer-parent { color: rgba(255,255,255,0.55); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---------- Pilot Request Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(13, 27, 42, 0.55); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 460px;
    padding: 38px 34px 32px; position: relative; box-shadow: var(--shadow-lg);
    max-height: 92vh; overflow-y: auto; animation: popIn 0.25s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 14px; right: 16px; background: none; border: none;
    font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }
.modal .kicker { margin-bottom: 10px; }
.modal h2 { font-size: 26px; margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 46px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.req { color: #E5735F; }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; }
.field-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.field-check label { font-weight: 500; font-size: 14px; color: var(--text); }
.btn-block { width: 100%; }
.form-error { color: #C0392B; font-size: 14px; margin-top: 12px; text-align: center; display: none; }
.form-error.show { display: block; }

.modal-success { text-align: center; padding: 20px 0 6px; }
.success-check {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
    background: #E8F5E9; color: #2E7D32; font-size: 34px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.modal-success h2 { font-size: 26px; margin-bottom: 10px; }
.modal-success p { color: var(--text); margin-bottom: 22px; }
.modal-success a { color: var(--gold-dark); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { order: -1; }
    .hero h1 { font-size: 40px; }
    .cards-3 { grid-template-columns: 1fr; }
    .problem-grid { grid-template-columns: 1fr 1fr; }
    .step-arrow { display: none; }
    .steps { gap: 20px; }
    .step { max-width: none; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero { padding: 56px 0 64px; }
    .hero h1 { font-size: 32px; }
    .lede { font-size: 17px; }
    .section { padding: 60px 0; }
    .section-head h2, .cta-inner h2 { font-size: 28px; }
    .problem-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}
