/* taiku observer — landing page
   Instrument-panel aesthetic: all-mono type, zinc-black, hairline rules,
   an amber playhead over four signal lanes. No webfonts, no framework. */

:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --panel: #111114;
  --line: #232329;
  --line-soft: #1a1a1f;
  --text: #e8e8ec;
  --muted: #8b8b96;
  --faint: #5b5b66;
  --amber: #ffb454;
  --amber-dim: #c98a3a;
  --rec: #ff5147;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* faint ruled-paper grid, like a strip-chart */
  background-image: repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 79px,
      rgba(255, 255, 255, 0.015) 80px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.012) 79px,
      rgba(255, 255, 255, 0.012) 80px
    );
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover,
a:focus-visible {
  border-bottom-color: var(--amber);
}
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

em {
  font-style: normal;
  color: var(--amber);
}

code {
  font-family: var(--mono);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.92em;
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border-bottom: none;
  letter-spacing: 0.04em;
}
.brand:hover {
  border-bottom: none;
}
.brand-name {
  font-weight: 700;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 0 rgba(255, 81, 71, 0.5);
  animation: rec-pulse 2.4s ease-out infinite;
  flex: none;
}
.rec-dot-sm {
  display: inline-block;
  width: 7px;
  height: 7px;
  vertical-align: baseline;
  margin-right: 2px;
}

@keyframes rec-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 81, 71, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 81, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 81, 71, 0);
  }
}

.topnav {
  display: flex;
  gap: 22px;
}
.topnav a {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--amber);
}

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

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(
    1100px 480px at 50% -120px,
    rgba(255, 180, 84, 0.07),
    transparent 70%
  );
}

.kicker {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.35);
  padding: 4px 10px;
}
.kicker-ver {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 620px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
/* display:flex would otherwise defeat the hidden attribute (the JS swaps the
   desktop download row for the mobile hand-off row via [hidden]). */
.cta-row[hidden] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--amber);
  border-bottom-width: 1px;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* The mobile hand-off CTA is a <button>, not an <a>. */
button.btn {
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: #18120a;
}
.btn-primary:hover {
  background: #ffc678;
  border-color: #ffc678;
  transform: translateY(-1px);
}
.btn-arrow {
  font-size: 16px;
  line-height: 1;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--faint);
}

.cta-fine {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.03em;
  min-height: 1.2em;
}

/* ---- the CSS timeline figure ---- */

.timeline {
  position: relative;
  margin-top: 56px;
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg-2), var(--bg));
  padding: 0 0 14px;
  overflow: hidden;
}

.tl-ruler {
  height: 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
  background: repeating-linear-gradient(
        to right,
        var(--line) 0,
        var(--line) 1px,
        transparent 1px,
        transparent 56px
      )
      bottom / 100% 8px no-repeat,
    repeating-linear-gradient(
        to right,
        var(--line-soft) 0,
        var(--line-soft) 1px,
        transparent 1px,
        transparent 14px
      )
      bottom / 100% 4px no-repeat;
}

.tl-lane {
  display: flex;
  align-items: center;
  gap: 0;
  height: 30px;
}

.tl-label {
  flex: none;
  width: 92px;
  padding-left: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.tl-track {
  position: relative;
  flex: 1;
  height: 12px;
  border-left: 1px solid var(--line-soft);
}

.tl-track i {
  position: absolute;
  top: 2px;
  height: 8px;
  min-width: 3px;
  background: var(--amber-dim);
  opacity: 0.85;
}
.tl-screen i {
  background: linear-gradient(
    to right,
    rgba(255, 180, 84, 0.28),
    rgba(255, 180, 84, 0.45),
    rgba(255, 180, 84, 0.28)
  );
}

.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12%;
  width: 1px;
  background: var(--rec);
  box-shadow: 0 0 8px rgba(255, 81, 71, 0.7);
  animation: scan 14s linear infinite alternate;
}
.tl-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--rec);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@keyframes scan {
  from {
    left: 10.2%;
  }
  to {
    left: 97%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-playhead {
    animation: none;
    left: 62%;
  }
  .rec-dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

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

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line-soft);
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sec-no {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.2em;
  vertical-align: 0.35em;
  margin-right: 12px;
}
.sec-no::after {
  content: " /";
  color: var(--faint);
}

.sec-sub {
  max-width: 640px;
  margin: 0 0 40px;
  color: var(--muted);
}

.fineprint {
  margin: 26px 0 0;
  font-size: 12.5px;
  color: var(--faint);
  max-width: 640px;
}

/* ---- record cards ---- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  background: var(--bg-2);
  padding: 22px 20px 24px;
}
/* corner tick, instrument-style */
.card::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--amber-dim);
  border-right: 1px solid var(--amber-dim);
  opacity: 0.6;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- screenshots ---- */

.shots {
  display: grid;
  gap: 36px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.shot figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 2px 0;
  font-size: 13px;
  color: var(--muted);
}
.shot figcaption strong {
  color: var(--text);
}

.shot-no {
  flex: none;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.35);
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
}

/* ---- downloads table ---- */

.dl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.dl-table th,
.dl-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.dl-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  background: var(--bg-2);
  font-weight: 700;
}

.dl-table tbody th {
  font-weight: 700;
  color: var(--text);
}

.dl-table tbody tr:last-child th,
.dl-table tbody tr:last-child td {
  border-bottom: none;
}

.dl-table tbody tr:hover {
  background: rgba(255, 180, 84, 0.03);
}

.dim {
  color: var(--faint);
  font-weight: 400;
}

/* ---- quickstart ---- */

.qs {
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.qs-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.qs-tabs [role="tab"] {
  appearance: none;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
}
.qs-tabs [role="tab"]:hover {
  color: var(--text);
}
.qs-tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}
.qs-tabs [role="tab"][aria-selected="true"] {
  color: var(--amber);
  background: rgba(255, 180, 84, 0.06);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.qs-panel pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.8;
}
.qs-panel code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}
.qs-panel .c {
  color: var(--faint);
}

/* ---------------- footer ---------------- */

.footer {
  padding: 34px 0 44px;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer-in p {
  margin: 0;
}
.footer-in nav {
  display: flex;
  gap: 20px;
}

/* ---------------- small screens ---------------- */

@media (max-width: 640px) {
  .topnav {
    display: none;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .section {
    padding: 52px 0;
  }
  .tl-label {
    width: 70px;
    padding-left: 10px;
  }
}
