/* ==========================================================================
   Buko Technologies
   One self-contained stylesheet. The page uses no Bootstrap or template CSS.

   The look is an instrument panel: deep navy, a faint measurement grid
   behind the hero, signal blue for actions. The one bold element is the
   example firmware report in the hero.

   Palette
     navy     #0E1A2B  page background
     panel    #13233A  the report and raised areas
     rule     #24395A  dividers and borders
     text     #E6EDF7  body text
     muted    #93A4BC  secondary text
     signal   #6EA8FF  buttons, links, focus
     held     #4FD1A1  green accents
     escaped  #FF6B5E  a confirmed bug

   Type
     Archivo        headlines (extra-wide cut, width 125) and body text
     IBM Plex Mono  the report, dates and other machine output
   ========================================================================== */

:root {
  --navy: #0e1a2b;
  --navy-deep: #0a1422;
  --panel: #13233a;
  --rule: #24395a;
  --text: #e6edf7;
  --muted: #93a4bc;
  --signal: #6ea8ff;
  --signal-hover: #94bfff;
  --held: #4fd1a1;
  --escaped: #ff6b5e;
  --escaped-wash: rgba(255, 107, 94, 0.1);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 62ch;
  --page: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
}

p { margin: 0 0 1em; }

a {
  color: var(--text);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { color: var(--signal-hover); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--navy);
}

.site-header .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

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

.brand-name {
  font-weight: 800;
  font-size: 22px;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.01em;
}

.brand-by {
  font-size: 14px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

/* ---------- buttons and fields ---------- */

.button {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--signal);
  color: var(--navy-deep);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover { background: var(--signal-hover); color: var(--navy-deep); }

.button-small { padding: 10px 15px; font-size: 15px; }

.field {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--navy-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 14px;
}

.field::placeholder { color: var(--muted); opacity: 0.7; }
.field:focus { border-color: var(--signal); outline: none; }

/* spam trap: hidden from people */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 80px 0 112px;
}

/* a faint measurement grid behind the hero, fading out toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(110, 168, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 168, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 6.2vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: #c4d0e0;
  max-width: 34ch;
}

.hero-form {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  max-width: 440px;
}

.hero-form .field { flex: 1; min-width: 0; }

.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- the report: the one bold element ---------- */

.report { margin: 0; }

.sheet {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: 0 0 0 6px rgba(110, 168, 255, 0.05);
}

.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
}

.sheet-head p { margin: 0; }

.sheet-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  font-variation-settings: "wdth" 125;
}

.sheet-meta {
  font-size: 13px;
  color: var(--muted);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.checks li {
  display: grid;
  grid-template-columns: 9ch minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 11px 20px;
  font-size: 14px;
}

.checks li + li { border-top: 1px solid rgba(36, 57, 90, 0.7); }

.checks li.is-confirmed {
  background: var(--escaped-wash);
  box-shadow: inset 3px 0 0 var(--escaped);
}

.c-wall { color: var(--muted); }
.c-test { min-width: 0; }
.c-test code { color: var(--signal); }

.c-result {
  justify-self: end;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.c-result.ruled { color: var(--muted); }

.c-result.confirmed {
  color: var(--navy-deep);
  background: var(--escaped);
  border-color: var(--escaped);
}

.sheet-total {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  font-size: 14px;
}

.sheet-total span:first-child { color: var(--escaped); }
.sheet-total .muted { color: var(--muted); }

.report figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* one orchestrated moment: results stamp on in order at page load */
.report.is-running .c-result,
.report.is-running .sheet-total {
  opacity: 0;
  animation: stamp 0.22s ease-out forwards;
}

@keyframes stamp {
  from { opacity: 0; transform: scale(1.3); }
  to   { opacity: 1; transform: scale(1); }
}

.report.is-running .sheet-total { animation-name: appear; }

@keyframes appear {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .report.is-running .c-result,
  .report.is-running .sheet-total {
    opacity: 1;
    animation: none;
  }
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.section-intro {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: var(--measure);
}

/* escapes published in 2026: a dated list, oldest first */

.escapes {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  max-width: 900px;
}

.escapes li {
  display: grid;
  grid-template-columns: 10ch minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.escapes li:first-child { border-top: 1px solid var(--rule); }

.escapes time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}

.escapes h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.escapes .who {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.escapes p { margin: 0; max-width: var(--measure); }

.section-close {
  margin-top: 40px;
  max-width: var(--measure);
  font-size: 20px;
  font-weight: 600;
}

/* the four walls: a two-column list, not a card grid */

.walls {
  margin: 44px 0 0;
  max-width: 900px;
}

.walls div {
  display: grid;
  grid-template-columns: 16ch minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.walls div:first-child { border-top: 1px solid var(--rule); }

.walls dt {
  font-weight: 800;
  font-size: 18px;
  font-variation-settings: "wdth" 125;
  color: var(--signal);
}

.walls dd { margin: 0; max-width: var(--measure); }

/* how it works: a real sequence, so it is numbered */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--signal);
  padding-top: 22px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--signal);
}

.steps h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

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

/* who it's for */

.audience {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: var(--measure);
}

.audience li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 18px;
}

.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

/* waitlist: the deeper band at the end */

.waitlist {
  background: var(--navy-deep);
}

.waitlist .page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.waitlist-form {
  display: grid;
  gap: 12px;
}

.waitlist-form label {
  font-size: 14px;
  font-weight: 600;
  color: #c4d0e0;
  margin-bottom: -4px;
}

.waitlist .field { background: var(--navy); }

.waitlist-form .button { justify-self: start; margin-top: 8px; }

/* footer */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--rule);
  padding: 36px 0 44px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer .page {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #c4d0e0; text-decoration-color: var(--rule); }
.site-footer a:hover { color: var(--text); text-decoration-color: var(--signal); }

.footer-brand {
  font-weight: 700;
  color: var(--text);
  font-variation-settings: "wdth" 125;
}

/* ---------- smaller screens ---------- */

@media (max-width: 900px) {
  .hero-body,
  .waitlist .page { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-nav a:not(.button) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .page { padding: 0 20px; }
  .hero { padding: 40px 0 64px; }
  .hero::before { background-size: 32px 32px; }
  .hero-body { margin-top: 28px; }
  .lede { font-size: 18px; }
  .section { padding: 64px 0; }
  .brand-by { display: none; }
  .hero-form { flex-direction: column; }
  .hero-form .button { width: 100%; }
  .escapes li,
  .walls div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sheet-head { padding: 12px 16px; }
  .sheet-meta { display: none; }
  /* stack each check: wall and result on top, the test underneath */
  .checks li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "wall result" "test test";
    gap: 4px 12px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .c-wall { grid-area: wall; }
  .c-result { grid-area: result; }
  .c-test { grid-area: test; }
  .sheet-total { padding: 12px 16px 14px; }
}

/* ---------- how we handle your firmware ---------- */

.promises {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  max-width: 1000px;
}

.promises li {
  padding: 22px 0 22px 30px;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--muted);
}

/* a small check mark drawn with borders */
.promises li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 28px;
  width: 6px;
  height: 11px;
  border: solid var(--held);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.promises strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- our team ---------- */

.person {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 36px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  max-width: 860px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rule);
  background: var(--panel);
}

.person h3 {
  font-size: 24px;
  font-weight: 800;
}

.person .role {
  margin: 2px 0 18px;
  color: var(--signal);
  font-weight: 600;
}

.person-body > p { max-width: var(--measure); font-size: 17px; }

.person blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--signal);
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.5;
  color: #c4d0e0;
}

.person .creds {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .person { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .avatar { width: 88px; height: 88px; }
}

@media (max-width: 760px) {
  .promises { grid-template-columns: minmax(0, 1fr); }
}
