/* CommitDraft prelaunch landing page. Brand tokens from the CommitDraft Style Guide v1.0 (May 2025). */
:root {
  --bg: #011123;            /* near-black navy, matches the approved dark lockup's background */
  --panel: #0b1f3a;         /* Navy, primary brand color */
  --panel-2: #0f2648;
  --line: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: #a8b3c4;         /* supporting text on dark, ~9:1 on --bg */
  --blue: #1479ff;          /* Electric Blue, accent */
  --blue-hover: #3c8fff;
  --blue-soft: rgba(20, 121, 255, 0.14);
  --red: #d62828;           /* Baseball Red, alerts only */
  --green: #1e9e5a;
  --radius: 16px;
  --radius-btn: 10px;
  --max: 1120px;
  --gutter: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: var(--radius-btn);
  font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 17, 35, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.brand-mark { display: none; height: 44px; border-radius: 10px; }
.nav { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.lead { margin-top: 18px; font-size: 19px; color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 44px 0 72px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(20, 121, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #03162d 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.hero-copy { min-width: 0; }
.hero-preview { margin: 0; min-width: 0; padding-top: 76px; } /* frame starts level with the second headline line */
.hero-preview .frame { border-radius: 14px; overflow: hidden; background: #0b1f3a; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(20, 121, 255, 0.12); }
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #132a4d; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.hero-preview img { width: 100%; height: auto; display: block; }
.hero-preview figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.015em; line-height: 1.02;
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { max-width: 640px; font-size: clamp(17px, 1.6vw, 19px); margin-top: 26px; }
.hero .lead-2 { margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-rule { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.hero-rule::before, .hero-rule::after { content: ""; height: 2px; width: 36px; background: var(--blue); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--radius-btn);
  font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-secondary:hover { border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.card .num {
  display: inline-block; width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 14px;
  line-height: 36px; text-align: center; margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card { transition: border-color .15s, background .15s; }
.card:hover { border-color: rgba(20, 121, 255, 0.45); background: rgba(255, 255, 255, 0.05); }
.audience { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience .card { background: rgba(255, 255, 255, 0.04); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact-alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.contact-alt a { font-weight: 600; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.field .opt { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-btn); padding: 12px 14px; min-height: 48px;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: #000; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field .err { display: none; margin-top: 6px; font-size: 14px; color: #ff8a8a; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-btn); font-size: 15px; }
.status.ok { display: block; background: rgba(30, 158, 90, 0.16); border: 1px solid rgba(30, 158, 90, 0.5); }
.status.fail { display: block; background: rgba(214, 40, 40, 0.14); border: 1px solid rgba(214, 40, 40, 0.5); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand img { height: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-preview { max-width: 720px; padding-top: 0; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact .wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .grid-4, .grid-3, .row-2 { grid-template-columns: 1fr; }
  .site-header .wrap { min-height: 60px; }
  .brand img { height: 36px; }
  .nav a { padding: 8px 8px; font-size: 12px; }
  .form-card { padding: 24px 18px; }
  .cta-row .btn { width: 100%; }
  .hero-rule { font-size: 11px; letter-spacing: 0.1em; gap: 10px; margin-top: 40px; }
  .hero-rule::before, .hero-rule::after { width: 22px; }
}
@media (max-width: 520px) {
  .brand-lockup { display: none; }
  .brand-mark { display: block; }
}
@media (max-width: 380px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; font-size: 11px; letter-spacing: 0.03em; }
}
