@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:           #080a0d;
  --bg-surface:   #0d1117;
  --bg-raised:    #131920;
  --border:       #1b2530;
  --border-light: #243040;

  /* Blue — primary interactive color (from Bridger icon) */
  --blue:         #0070b8;
  --blue-hi:      #1a90d8;
  --blue-dim:     rgba(0, 112, 184, 0.12);
  --blue-border:  rgba(0, 112, 184, 0.28);

  /* Orange — warm highlight / decorative labels */
  --warm:         #e07b0a;
  --warm-hi:      #f59520;
  --warm-dim:     rgba(224, 123, 10, 0.10);
  --warm-border:  rgba(224, 123, 10, 0.25);

  --text:         #dde2ea;
  --text-sub:     #7a8fa8;
  --text-muted:   #3b4d61;
  --nav-h:        62px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,10,13,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.75rem;
  z-index: 200;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  user-select: none;
}
.nav-logo img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active {
  color: var(--text);
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hi); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.78rem; }

/* ── Page shell ──────────────────────────────────────── */
.page-content { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Hero (index) ────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 2.75rem;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "label image"
    "text  image";
  column-gap: 3rem;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 50%, rgba(0,112,184,0.12) 0%, transparent 60%),
    linear-gradient(175deg, #0d1117 0%, var(--bg) 70%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%);
}

.hero-label-wrap {
  grid-area: label;
  position: relative;
  z-index: 1;
  padding-top: 4rem;
}

.hero-text {
  grid-area: text;
  position: relative;
  z-index: 1;
  text-align: left;
  padding-bottom: 4rem;
}

.hero-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  border: 1px solid var(--warm-border);
  padding: 0.25rem 0.8rem;
  border-radius: 2px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--blue-hi); }

.hero-tagline {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 440px;
  margin: 0 0 2.25rem;
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: flex-start;
}

.hero-img-wrap {
  grid-area: image;
  position: relative;
  z-index: 1;
  margin-top: -3rem;
  margin-bottom: -3rem;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: -2rem; right: -1rem;
  transform: translateY(-50%);
  height: 60%;
  background: radial-gradient(ellipse, rgba(0,112,184,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-img-wrap img {
  position: relative;
  z-index: 1;
  width: 110%;
  border-radius: 8px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.06);
  display: block;
}

/* ── Feature strip ───────────────────────────────────── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  gap: 1px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-cell {
  background: var(--bg-surface);
  padding: 2rem 1.75rem;
  transition: background 0.18s;
}
.feature-cell:hover { background: var(--bg-raised); }
.feature-cell .fc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.6rem;
}
.feature-cell h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.4rem; }
.feature-cell p { font-size: 0.82rem; color: var(--text-sub); line-height: 1.55; }

/* ── Interior page hero ──────────────────────────────── */
.page-hero {
  padding: 4.5rem 2.75rem 3rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(0,112,184,0.07) 0%, transparent 60%),
    var(--bg-surface);
}
.page-hero-inner { max-width: 1080px; margin: 0 auto; }
.page-hero .ph-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.page-hero p { color: var(--text-sub); font-size: 1rem; max-width: 540px; font-weight: 300; }

/* ── Section container ───────────────────────────────── */
.section { padding: 4rem 2.75rem; max-width: 1080px; margin: 0 auto; }
.section + .section { padding-top: 0; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.6rem;
}
.section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.section > p { color: var(--text-sub); max-width: 560px; font-weight: 300; margin-bottom: 2rem; }

.rule { border: none; border-top: 1px solid var(--border); margin: 0 2.75rem; }

/* ── Card grid ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}
.card { background: var(--bg-surface); padding: 2rem; transition: background 0.18s; }
.card:hover { background: var(--bg-raised); }
.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.75rem;
}
.card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--text-sub); line-height: 1.55; margin-bottom: 1.4rem; }
.card-actions { display: flex; gap: 0.75rem; }

/* ── Download list ───────────────────────────────────── */
.dl-group { margin-bottom: 2.5rem; }
.dl-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  transition: border-color 0.18s;
}
.dl-row:hover { border-color: var(--border-light); }
.dl-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  background: var(--warm-dim);
  border: 1px solid var(--warm-border);
  padding: 0.3rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
  min-width: 3.5rem;
  text-align: center;
}
.dl-info { flex: 1; }
.dl-info strong { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.2rem; }
.dl-info span { font-size: 0.8rem; color: var(--text-sub); }
.dl-action { flex-shrink: 0; }

/* ── Docs portal ─────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.docs-primary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
}
.docs-primary h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.docs-primary p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.65; margin-bottom: 1.5rem; }
.docs-chapters { list-style: none; margin-bottom: 2rem; }
.docs-chapters li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-sub);
}
.docs-chapters li .ch-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 2rem;
}
.docs-side { display: flex; flex-direction: column; gap: 1rem; }
.docs-side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}
.docs-side-card h3 { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
.docs-side-card p { font-size: 0.8rem; color: var(--text-sub); line-height: 1.55; margin-bottom: 1rem; }

.doc-list { list-style: none; }
.doc-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list a { color: var(--text-sub); text-decoration: none; transition: color 0.18s; }
.doc-list a:hover { color: var(--blue); }
.doc-stub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-info h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; }
.contact-info p { font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 1.5rem; }
.contact-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-detail span { color: var(--text-sub); }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── Buy / Pricing ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}
.pricing-cell { background: var(--bg-surface); padding: 2.25rem 2rem; }
.pricing-cell.featured { background: var(--bg-raised); border-top: 2px solid var(--blue); }
.pricing-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.75rem;
}
.pricing-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price sup { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 400; vertical-align: super; }
.pricing-period { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li {
  font-size: 0.83rem;
  color: var(--text-sub);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: '—';
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-logo img { width: 18px; height: 18px; opacity: 0.35; }
.footer-logo span { color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: var(--text-sub); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-sub);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Animate to X when open */
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Tablet — 900px ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "label"
      "image"
      "text";
    min-height: auto;
    padding: 3rem 2rem 0;
  }
  .hero-label-wrap { padding-top: 0; text-align: center; }
  .hero-text { text-align: center; padding-bottom: 0; }
  .hero-tagline { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-img-wrap {
    margin: 1.5rem -2rem;
    align-self: auto;
  }
  .hero-img-wrap img {
    width: 100%;
    border-radius: 8px;
  }

  .feature-strip { grid-template-columns: repeat(2, 1fr); }

  .docs-layout { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Mobile — 640px ──────────────────────────────────── */
@media (max-width: 640px) {

  /* Nav collapses */
  nav { padding: 0 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,10,13,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
    z-index: 199;
  }
  nav.nav-open .nav-links { display: flex; }

  .nav-links a {
    font-size: 0.875rem;
    padding: 0.65rem 0.75rem;
    border-radius: 3px;
  }

  /* Hero */
  .hero { padding: 2.5rem 1.25rem 0; }
  .hero-img-wrap {
    margin: 1.5rem -1.25rem;
  }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero-label { font-size: 0.65rem; }

  /* Feature strip */
  .feature-strip { grid-template-columns: 1fr; }

  /* Sections */
  .section { padding: 2.5rem 1.25rem; }
  .rule { margin: 0 1.25rem; }

  /* Page hero */
  .page-hero { padding: 3rem 1.25rem 2rem; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }

  /* Docs */
  .docs-primary { padding: 1.5rem; }
  .docs-layout { grid-template-columns: 1fr; }

  /* Downloads — stack badge/info/button vertically on very small */
  .dl-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .dl-action { width: 100%; }
  .dl-action .btn { width: 100%; text-align: center; display: block; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

/* ── Very small — 380px ──────────────────────────────── */
@media (max-width: 380px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .nav-logo { font-size: 1.35rem; }
}
