/* Beacon pilot download site — professional dark developer-tool identity.
   Static only: no build step, no external fonts/CDNs/tracking, no
   JavaScript required for any content (the FAQ uses native <details>). */

:root {
  --bg: #0b1020;
  --surface: #121a2e;
  --raised: #1a2340;
  --border: #26314f;
  --border-soft: #1d2748;
  --text: #e7eaf3;
  --muted: #9aa5c0;
  --faint: #6c7796;
  --accent: #f5b041;
  --accent-hover: #ffc766;
  --on-accent: #1a1206;
  --danger: #ef6b6b;
  --success: #5fd39a;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 8px spacing grid */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-10: 5rem;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(3, 3, 8, 0.3);
  --shadow-lift: 0 20px 40px -12px rgba(3, 3, 8, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-2);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-lg);
}

p {
  margin: 0 0 var(--sp-2);
}

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

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(245, 176, 65, 0.35);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  z-index: 50;
  font-weight: 600;
}

.skip-link:focus {
  left: var(--sp-2);
  top: var(--sp-2);
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 32, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.site-header nav a {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: var(--on-accent) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: var(--sp-10) 0 var(--sp-8);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(560px 320px at 18% 10%, rgba(245, 176, 65, 0.16), transparent 60%),
    radial-gradient(420px 280px at 85% 0%, rgba(95, 211, 154, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero .wrap > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--raised);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-2);
}

.hero .lede {
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ---------- Terminal card (product visual) ---------- */

.terminal {
  background: #0d1327;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem var(--sp-2);
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-title {
  margin-left: var(--sp-1);
  color: var(--faint);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--muted);
  overflow-x: auto;
}

.terminal-body code {
  white-space: pre;
  display: block;
}

.terminal-body .prompt {
  color: var(--success);
}

.terminal-body .cmd {
  color: var(--text);
}

.terminal-body .muted {
  color: var(--faint);
}

.terminal-body .path {
  color: var(--accent);
}

.terminal-caption {
  padding: 0.6rem var(--sp-2);
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: var(--text-xs);
}

/* ---------- Sections ---------- */

section {
  padding: var(--sp-8) 0;
}

section + section {
  border-top: 1px solid var(--border-soft);
}

.section-head {
  max-width: 60ch;
  margin: 0 0 var(--sp-5);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Feature grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding: 0 var(--sp-3);
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(var(--sp-3) + 34px + 10px);
  right: calc(var(--sp-3) * -1 + 10px);
  height: 1px;
  background: var(--border);
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ---------- Downloads ---------- */

.verify-box {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  margin: 0 0 var(--sp-4);
}

.verify-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.verify-box h3 svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex: none;
}

.verify-box p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.verify-box p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-card);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex: none;
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  margin: 0;
}

.card dl {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
}

.card dt {
  font-weight: 600;
  color: var(--faint);
}

.card dd {
  margin: 0;
  word-break: break-all;
}

.card .hash {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  display: block;
}

.card-unavailable {
  color: var(--muted);
}

.card .status {
  color: var(--faint);
  font-style: italic;
  margin: 0;
  font-size: var(--text-sm);
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.card pre {
  padding: 0.6rem 0.75rem;
  margin: 0;
}

.card pre code {
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- Code / terminal-styled blocks ---------- */

pre {
  background: #0d1327;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin: 0.75rem 0 0;
}

code, pre code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: pre-wrap;
  word-break: break-word;
}

:not(pre) > code {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.875em;
}

/* ---------- Quick start ---------- */

.quick-start ol {
  list-style: none;
  counter-reset: qs;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.quick-start li {
  counter-increment: qs;
  position: relative;
  padding-left: 2.75rem;
}

.quick-start li::before {
  content: counter(qs);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-start li > strong,
.quick-start li > span.label {
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.faq-list details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 var(--sp-2);
}

.faq-list summary {
  cursor: pointer;
  padding: var(--sp-2) 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: var(--text-lg);
  line-height: 1;
  flex: none;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list .faq-answer {
  color: var(--muted);
  font-size: var(--text-sm);
  padding-bottom: var(--sp-2);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--sp-5) 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--text-sm);
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.site-footer .meta {
  color: var(--faint);
  font-size: var(--text-xs);
  width: 100%;
  margin-top: var(--sp-1);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .step {
    padding: 0 !important;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header nav {
    display: none;
  }

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

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

  .hero {
    padding: var(--sp-6) 0 var(--sp-5);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  section {
    padding: var(--sp-6) 0;
  }
}
