/* Pointglass — pointglasslidar.com
 * Version: 1.0
 *
 * Tokens come from brand/BRAND.md. Two rules hold the design together:
 *   1. Cyan is the ONLY accent. It marks the interactive and the measured.
 *   2. The elevation ramp colours DATA and nothing else — never chrome,
 *      never behind text.
 *
 * The page borrows the application's own furniture: a menu-bar-thin header, a
 * status bar pinned to the bottom, and section headers drawn like panel
 * headers. That is the design's one bold move; everything else stays quiet.
 */

:root {
  --page: #0b0d11;
  --panel: #14181f;
  --panel-2: #0f131a;
  --line: #232a34;
  --line-soft: #1a2029;
  --ink: #e6edf5;
  --dim: #8b98a8;
  --dimmer: #5f6b7a;
  --cyan: #29abe2;
  --cyan-dim: #1b7fa8;

  /* Elevation ramp — data only. */
  --r0: #1b64d6;
  --r1: #22d3ee;
  --r2: #22c55e;
  --r3: #9ee03f;
  --r4: #fde047;
  --r5: #fb7c2c;

  --display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;

  --rail: 88px;          /* left gutter the section index sits in */
  --status-h: 30px;
  --max: 1220px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  padding-bottom: var(--status-h);
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #4cc3f5; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "wdth" 85;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin: 0;
}

.lede { font-size: 19px; color: #c3cede; max-width: 62ch; }

.mono { font-family: var(--mono); font-size: 13px; }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 46px;
  padding: 0 18px;
  background: rgba(11, 13, 17, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar__mark { display: flex; align-items: center; gap: 9px; }
.topbar__mark img { width: 22px; height: 22px; }
.topbar__name {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "wdth" 90;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.topbar__name em { font-style: normal; color: var(--cyan); }

.topbar__nav { display: flex; gap: 20px; margin-left: 6px; }
.topbar__nav a {
  font-size: 13.5px;
  color: var(--dim);
  padding: 4px 2px;
}
.topbar__nav a:hover { color: var(--ink); }

.topbar__version {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dimmer);
}

/* ---------- status bar: the signature ---------- */
.statusbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--status-h);
  padding: 0 14px;
  background: #0d1016;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
}

.statusbar__store { color: var(--ink); }
.statusbar__crs { color: var(--cyan-dim); overflow: hidden; text-overflow: ellipsis; }
.statusbar__count { margin-left: auto; color: var(--dim); }
.statusbar__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex: none;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: 0; }

/* Panel header: the app's own collapsible header, used as a section rule. */
.panelhead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.panelhead::before {
  content: "▾";
  color: var(--cyan);
  font-size: 11px;
  transform: translateY(-2px);
}
.panelhead__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.panelhead__meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dimmer);
}

.section__title {
  font-size: clamp(30px, 4.2vw, 46px);
  max-width: 20ch;
  margin-bottom: 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px 0 84px;
  overflow: hidden;
}

/* The cloud is shown as evidence in a frame, not as wallpaper behind the type:
   a washed-out screenshot bleeding under a headline reads as stock texture,
   and this one is the actual product. The only ambient treatment is a cyan
   lift behind the figure. */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    116% 84% at 70% 44%,
    rgba(41, 171, 226, 0.11),
    transparent 62%
  );
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 58px;
  align-items: center;
}

/* Both classes are on the same element, so this must out-specify `.shot img`
   below or the hero figure loses its fixed crop. */
.shot.hero__figure img {
  height: 540px;
  max-height: none;
  width: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Tick rulers — the splash's HUD vocabulary, drawn in CSS. */
.hero__ruler {
  position: absolute;
  top: 18%;
  bottom: 22%;
  width: 1px;
  background: repeating-linear-gradient(
    180deg, var(--line) 0 6px, transparent 6px 16px
  );
}
.hero__ruler--l { left: 34px; }
.hero__ruler--r { right: 34px; }
.hero__ruler::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 11px; height: 11px;
  border: 1px solid var(--line);
  transform: translateY(-50%);
}

.hero__inner { position: relative; width: 100%; }

.hero__title {
  font-size: clamp(34px, 4.4vw, 58px);
  max-width: 16ch;
  margin: 18px 0 20px;
}
.hero__title .cut { color: var(--cyan); }

.hero__lede { margin: 0 0 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  transition: background 0.16s ease, color 0.16s ease;
}
.btn:hover { background: var(--cyan); color: #04222f; }
.btn--ghost { border-color: var(--line); color: var(--dim); }
.btn--ghost:hover { background: transparent; border-color: var(--dim); color: var(--ink); }

/* The hero readout: the same strip the app prints under its viewport. */
.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dimmer);
}
.readout b { color: var(--ink); font-weight: 400; }

/* ---------- stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "wdth" 88;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 17px; color: var(--dim); }
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
}

/* ---------- prose + figures ---------- */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.cols--wide { grid-template-columns: minmax(0, 1fr); }

.prose p { color: #b9c5d4; }
.prose p:first-child { margin-top: 0; }

.notes { list-style: none; margin: 26px 0 0; padding: 0; }
.notes li {
  padding: 13px 0 13px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: #b9c5d4;
  position: relative;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 1px;
  background: var(--cyan);
}
.notes b { color: var(--ink); font-weight: 600; }

figure { margin: 0; }

.shot {
  border: 1px solid var(--line);
  background: var(--panel-2);
  overflow: hidden;
}
/* Portrait screenshots are 1,361px tall against a ~560px column, which turns
   the page into a slideshow. Cap the frame and letterbox inside it — contain,
   not cover, because cropping a section view removes the thing being shown. */
.shot img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #0a0d12;
}
.grid3 .shot img { max-height: 260px; object-fit: cover; }

/* Report exhibits are white documents, not screenshots. They get more height --
   a cropped table is only evidence if its rows are actually readable -- and a
   white letterbox, so the page edge does not float on a dark bar. */
.shot--doc img {
  max-height: 820px;
  background: #fff;
}

/* Dialog captures are not photographs. `cover` would crop away the very control
   being shown, so these contain -- and they sit on the panel colour rather than
   near-black, because a dialog letterboxed on black reads as a hole. */
.grid3--ui .shot img {
  max-height: 400px;
  object-fit: contain;
  background: var(--panel-2);
}
.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.stack { display: grid; gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ---------- ramp rule: the only place the data palette touches the page ---- */
.ramp {
  display: flex;
  height: 3px;
  margin: 0 0 44px;
}
.ramp span { flex: 1; }

/* ---------- integrity cards ---------- */
.card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.card h3 {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "wdth" 88;
  font-size: 21px;
  margin: 0 0 10px;
}
.card p { margin: 0; font-size: 14.5px; color: #b0bccb; }
.card__tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 12px;
}

/* ---------- architecture diagram ---------- */
.arch { width: 100%; height: auto; }

/* ---------- alpha callout ---------- */
.alpha {
  border: 1px solid var(--line);
  border-left: 2px solid var(--r4);
  background: var(--panel-2);
  padding: 28px 30px;
}
.alpha h3 {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "wdth" 88;
  font-size: 24px;
  margin: 0 0 12px;
}
.alpha p { color: #b9c5d4; margin: 0 0 12px; }
.alpha p:last-child { margin-bottom: 0; }

/* ---------- requirements table ---------- */
.reqs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.reqs th,
.reqs td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.reqs th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}
.reqs td:first-child { color: var(--ink); width: 34%; }
.reqs td { color: #b0bccb; }

/* ---------- contact form ---------- */
/* Inputs borrow the application's own field treatment: a flat panel well with a
   one-pixel rule, going cyan on focus. Nothing rounded, nothing raised. */
.form { display: grid; gap: 18px; align-content: start; }

.field { display: grid; gap: 7px; }
.field__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.field__input {
  width: 100%;
  padding: 11px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: 15px/1.5 var(--body);
  transition: border-color 0.16s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--cyan);
}
.field__input::placeholder { color: var(--dimmer); }
textarea.field__input { resize: vertical; min-height: 120px; }

/* Off-screen rather than display:none -- the cruder bots skip hidden fields,
   and this one only works if it looks fillable. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form button[type="submit"] { border-radius: 3px; cursor: pointer; background: transparent; }
.form button[disabled] { opacity: 0.55; cursor: default; }

.form__status {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.form__status--ok { color: var(--r2); }
.form__status--bad { color: var(--r5); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 70px;
  color: var(--dim);
  font-size: 14px;
}
.footer__row { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.footer__row img { width: 34px; height: 34px; }
.footer__legal { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dimmer); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero { min-height: 0; padding: 96px 0 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .shot.hero__figure img { height: 300px; }
  .shot img { max-height: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__ruler { display: none; }
}

/* Eight links and a version chip do not share one laptop-width menu bar. The
   chip goes first: it is the decorative half of the pairing and the links are
   the actual navigation. Below 660px the nav goes too (see next block). */
@media (max-width: 1080px) {
  .topbar { gap: 16px; }
  .topbar__nav { gap: 14px; }
  .topbar__nav a { font-size: 13px; }
  .topbar__version { display: none; }
}

@media (max-width: 660px) {
  .wrap { padding: 0 18px; }
  .section { padding: 68px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .topbar__nav { display: none; }
  .statusbar__crs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
