/* ============================================================
   OSpilot — design system
   Dark navy · white · restrained blue accents
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-soft: #0d1524;
  --surface: #111a2c;
  --surface-2: #16223a;
  --border: #1e2c45;
  --text: #e6edf7;
  --text-muted: #93a4bf;
  --text-dim: #71809a;
  --accent: #2f6fd6;
  --accent-hover: #3a7ce0;
  --accent-bright: #6cb2ff;
  --accent-soft: #12263f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--white); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: var(--white); font-size: 15px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 9px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--white); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 60%;
  background: radial-gradient(60% 70% at 50% 0%, rgba(47, 111, 214, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 600; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #2a3d5f; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 1.2rem;
}

/* ---------- steps ---------- */
.step { display: flex; gap: 18px; }
.step .num {
  flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent-bright); display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: 4px; }

/* ---------- software ---------- */
.software-card { display: flex; flex-direction: column; }
.software-card .tag {
  align-self: flex-start; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-bright); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px; font-weight: 600;
}
.software-card p { flex: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #12263f 0%, #0d1524 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 520px; margin: 0 auto 26px; }

/* ---------- form ---------- */
.form-card { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: 0.98rem; font-family: inherit; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 5px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; display: none; }
.form-status.success { display: block; background: #12281c; border: 1px solid #1f4a30; color: #6fe08a; }
.form-status.error { display: block; background: #2a1418; border: 1px solid #4a2027; color: #ff8f87; }

/* honeypot — visually hidden but present in DOM */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: var(--text-muted); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--white); text-decoration: none; }
.site-footer .tagline { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.82rem;
}
.footer-bottom a { color: var(--text-muted); }
.disclosure-note { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.badge-list li {
  font-size: 0.85rem; color: var(--text-muted); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; background: var(--surface);
}
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--text-muted); padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; border-top: 1px solid var(--bg-soft); }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .cta-band { padding: 34px 22px; }
}
