/* Binary Confidence — DE site
 * Brand: Guidelines v3 — LIGHT MODE
 * Colors: White bg, Midnight Blue #00142D text, Cyan Blue #00CCFF accent
 * Fonts: Montserrat (title), Saira (body), Space Mono (decorative)
 */

:root {
  --bg-primary: #FFFFFF;
  --bg-elevated: #F6F8FB;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F4F8;
  --text-primary: #00142D;
  --text-strong: #00142D;
  --text-muted: #5a6478;
  --accent: #00CCFF;
  --accent-dim: #00a3cc;
  --accent-ink: #006789;     /* darker cyan for text-on-white legibility */
  --depth-violet: #710193;
  --depth-indigo: #420064;
  --depth-royal: #0900BC;
  --depth-navy: #0100B1;
  --border: rgba(0, 20, 45, 0.10);
  --border-strong: rgba(0, 20, 45, 0.22);
  --shadow: 0 4px 18px rgba(0, 20, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 20, 45, 0.12);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Saira', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; width: 100%; }
main { flex: 1 0 auto; padding: 64px 0 96px; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 24px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 56px 0 20px; padding-bottom: 12px; position: relative; }
h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 2px;
  background: var(--accent);
}
h3 { font-size: 1.35rem; margin: 32px 0 14px; color: var(--text-strong); }
h4 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--accent-ink); font-weight: 600; }
p { margin-bottom: 16px; max-width: 65ch; }
strong { color: var(--text-strong); font-weight: 600; }
em { color: var(--accent-ink); font-style: normal; font-family: 'Space Mono', monospace; font-size: 0.92em; }
a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
a:hover { border-bottom-color: var(--accent-ink); }

/* Decorative label (Space Mono lowercase + underscore) */
.label {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-ink);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: inline-block;
}
.label::after { content: "_"; }

/* ===== Header / Nav ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong);
  border-bottom: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo:hover { border-bottom: none; }
.logo-mark { height: 40px; width: auto; flex-shrink: 0; display: block; }
.logo-primary { height: 36px; width: auto; flex-shrink: 0; display: block; }

nav.primary { display: flex; gap: 4px; flex-wrap: wrap; }
nav.primary a {
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 0.92rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-radius: 4px;
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
}
nav.primary a:hover { background: rgba(0, 204, 255, 0.10); color: var(--accent-ink); }
nav.primary a.active { color: var(--accent-ink); background: rgba(0, 204, 255, 0.10); }

.nav-cta {
  display: inline-block;
  padding: 9px 18px;
  background: var(--text-strong);
  color: #FFFFFF !important;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: none !important;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-ink); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-elevated); padding: 12px 24px 20px; border-bottom: 1px solid var(--border); }
  nav.primary.open { display: flex; }
  .nav-cta { display: none; }
  nav.primary.open .nav-cta { display: inline-block; margin-top: 8px; }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at top right, rgba(0, 204, 255, 0.10), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(9, 0, 188, 0.05), transparent 55%),
    var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 20, 45, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 20, 45, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 900px; }
.hero .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 720px;
  color: var(--text-primary);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  border-bottom: none;
  text-align: center;
}
.btn-primary { background: var(--text-strong); color: #FFFFFF !important; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 103, 137, 0.25); }
.btn-ghost { background: transparent; color: var(--text-strong) !important; border: 1px solid var(--text-strong); }
.btn-ghost:hover { background: var(--text-strong); color: #FFFFFF !important; }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-primary); font-size: 0.96rem; }
.card .label { color: var(--accent-ink); }
.card-link { display: inline-block; margin-top: auto; padding-top: 12px; color: var(--accent-ink); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem; border-bottom: none; }
.card-link::after { content: " →"; transition: margin-left 0.15s; display: inline-block; }
.card-link:hover::after { margin-left: 4px; }

/* Stream stripe accent on top of card */
.card.stream-wl { border-top: 3px solid var(--accent); }
.card.stream-l2 { border-top: 3px solid var(--depth-royal); }
.card.stream-end { border-top: 3px solid var(--depth-violet); }

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.92rem;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  background: var(--bg-subtle);
  color: var(--text-strong);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(0, 204, 255, 0.05); }

/* ===== Lists ===== */
ul, ol { margin: 0 0 20px 22px; }
li { margin-bottom: 8px; max-width: 65ch; }
ul.bare { list-style: none; margin-left: 0; }
ul.bare li { position: relative; padding-left: 20px; }
ul.bare li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

/* ===== Callouts ===== */
.callout {
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 204, 255, 0.08);
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text-strong); }

/* ===== Stat row ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin: 32px 0 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-strong);
  display: block;
  line-height: 1;
}
.stat .lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-top: 8px;
  display: block;
}

/* ===== Footer ===== */
footer.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-shrink: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
footer h5 {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
footer h5::after { content: "_"; }
footer ul { list-style: none; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: var(--text-muted); border-bottom: none; transition: color 0.15s; }
footer a:hover { color: var(--accent-ink); }
.copy-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Section helpers ===== */
section { margin-bottom: 16px; }
.section-tight { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-ink); }
.lead { font-size: 1.1rem; color: var(--text-strong); max-width: 720px; }

/* Two-column body (brand code-style alignment) */
.split-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 48px;
  margin: 32px 0;
  align-items: start;
}
.split-row .col-title h2 { margin-top: 0; }
@media (max-width: 760px) { .split-row { grid-template-columns: 1fr; gap: 16px; } }

/* Form */
form { max-width: 640px; }
.form-row { margin-bottom: 18px; }
label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: 'Saira', sans-serif;
  font-size: 1rem;
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.18); }
textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* DE pricing highlight */
.price-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 204, 255, 0.12);
  border: 1px solid var(--accent);
  border-radius: 99px;
  color: var(--accent-ink);
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  margin-right: 6px;
}

/* CTA banner */
.cta-banner {
  margin: 56px 0;
  padding: 40px 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 204, 255, 0.10), rgba(9, 0, 188, 0.06));
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-banner h2 { margin-top: 0; }
.cta-banner h2::after { left: 50%; transform: translateX(-50%); }
.cta-banner p { margin-left: auto; margin-right: auto; }

/* Visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
