/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — the public-facing page. Deliberately its own visual language:
   monochrome, technical, telemetry-flavored — distinct from the internal
   app's light dashboard theme (tokens.css). Two type families only: the
   licensed grotesque already hosted for the app (headlines, body) and the
   system monospace stack (labels, buttons, data readouts, nav) — no webfont
   CDN, nothing this page depends on that isn't already sitting on disk.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Helvetica Now Text";
  src: url("/static/fonts/HelveticaNowText-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Text";
  src: url("/static/fonts/HelveticaNowText-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Text";
  src: url("/static/fonts/HelveticaNowText-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}

:root {
  --lp-black:   #0a0a0a;
  --lp-black-2: #141414;
  --lp-white:   #ffffff;
  --lp-ink:     #0f0f0f;
  --lp-ink-2:   #4a4a4f;
  --lp-ink-3:   #8a8a90;
  --lp-paper-2: #f4f4f5;
  --lp-line:    rgba(0, 0, 0, .13);
  --lp-line-2:  rgba(0, 0, 0, .22);
  --lp-hair-on-dark:  rgba(255, 255, 255, .14);
  --lp-hair-on-dark-2: rgba(255, 255, 255, .28);
  --lp-dim-on-dark:   rgba(255, 255, 255, .58);
  --lp-faint-on-dark: rgba(255, 255, 255, .34);

  --lp-ok:    #34d399;
  --lp-warn:  #f5b942;
  --lp-live:  #ef4444;
  --lp-info:  #7dd3fc;

  --lp-display: "Helvetica Now Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lp-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --lp-container: 1360px;
  --lp-pad: clamp(20px, 4vw, 64px);
}

.lp * { box-sizing: border-box; }

.lp {
  font-family: var(--lp-display);
  color: var(--lp-ink);
  background: var(--lp-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.lp a { text-decoration: none; }
.lp img, .lp svg { max-width: 100%; display: block; }
.lp ::selection { background: var(--lp-ink); color: var(--lp-white); }

.lp-mono {
  font-family: var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.lp-wrap { max-width: var(--lp-container); margin: 0 auto; padding-left: var(--lp-pad); padding-right: var(--lp-pad); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.lp-btn {
  font-family: var(--lp-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.lp-btn-solid-dark   { background: var(--lp-black); color: var(--lp-white); border-color: var(--lp-black); }
.lp-btn-solid-dark:hover   { opacity: .82; }
.lp-btn-solid-light  { background: var(--lp-white); color: var(--lp-black); border-color: var(--lp-white); }
.lp-btn-solid-light:hover  { opacity: .82; }
.lp-btn-outline-dark  { color: var(--lp-black); border-color: var(--lp-line-2); }
.lp-btn-outline-dark:hover  { background: var(--lp-black); color: var(--lp-white); }
.lp-btn-outline-light { color: var(--lp-white); border-color: var(--lp-hair-on-dark-2); }
.lp-btn-outline-light:hover { background: var(--lp-white); color: var(--lp-black); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--lp-black);
  border-bottom: 1px solid var(--lp-hair-on-dark);
}
.lp-nav-row {
  display: flex; align-items: center; gap: 36px;
  height: 64px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--lp-white); font-size: 1rem; letter-spacing: .04em; margin-right: auto; }
.lp-brand svg { width: 20px; height: 20px; }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links a {
  font-family: var(--lp-mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--lp-dim-on-dark);
}
.lp-nav-links a:hover { color: var(--lp-white); }
.lp-nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) {
  .lp-nav-links { display: none; }
}
@media (max-width: 620px) {
  .lp-btn { padding: 11px 14px; font-size: .68rem; }
}
@media (max-width: 440px) {
  .lp-nav-cta .lp-btn-outline-light { display: none; }
}

/* ── Grain texture (dark hero backgrounds) ──────────────────────────── */
.lp-grain {
  position: relative;
  background: radial-gradient(ellipse 120% 90% at 30% -10%, #2b2b2e 0%, #111113 46%, #050505 100%);
}
.lp-grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* graph-paper grid, for light or dark sections */
.lp-grid-bg {
  background-image:
    linear-gradient(var(--lp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.lp-grid-bg-dark {
  background-image:
    linear-gradient(var(--lp-hair-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-hair-on-dark) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.lp-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.lp-hero-copy {
  padding: clamp(48px, 7vw, 96px) var(--lp-pad);
  display: flex; flex-direction: column; justify-content: center;
}
.lp-h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: .98;
  margin: 0 0 26px;
  /* Let the measure decide the breaks. A hard <br> here orphaned "more" onto
     its own line the moment the clamp shrank the type. */
  max-width: 15ch;
  text-wrap: balance;
}
.lp-lede {
  font-size: 1.08rem; color: var(--lp-ink-2); max-width: 46ch; margin: 0 0 34px;
}
.lp-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.lp-hero-panel {
  position: relative; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  color: var(--lp-white);
}
.lp-tele-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px;
  background: var(--lp-hair-on-dark);
  border: 1px solid var(--lp-hair-on-dark);
}
.lp-tele-tile {
  background: var(--lp-black); padding: 16px 18px;
}
.lp-tele-tile.warn { background: rgba(245, 185, 66, .14); }
.lp-tele-label { font-family: var(--lp-mono); font-size: .64rem; letter-spacing: .1em; color: var(--lp-faint-on-dark); text-transform: uppercase; }
.lp-tele-value { font-family: var(--lp-mono); font-size: 1.9rem; margin-top: 4px; letter-spacing: -.02em; }
.lp-tele-value small { font-size: 1rem; color: var(--lp-dim-on-dark); margin-left: 4px; }
.lp-tele-tile.warn .lp-tele-value { color: var(--lp-warn); }
.lp-tele-tile.span2 { grid-column: span 2; }

@media (max-width: 920px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-panel { min-height: 380px; }
}

/* ── Hero illustration band (real orthographic drawing) ─────────────── */
.lp-illustration-band {
  position: relative;
  border-top: 1px solid var(--lp-line);
  padding: clamp(24px, 5vw, 40px) var(--lp-pad) 0;
}
.lp-illustration-stage {
  position: relative;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0;
}
.lp-illustration-stage svg { width: min(460px, 82%); height: auto; }
.lp-illustration-stage .lp-drawing-line { stroke: #111; }
.lp-illustration-stage .lp-drawing-hidden { stroke: #9a9a9a; }

.lp-hero-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--lp-line);
  border: 1px solid var(--lp-line);
  margin: 28px 0 0;
}
.lp-hero-foot-cell { background: var(--lp-white); padding: 18px 22px; min-width: 0; }
.lp-foot-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.lp-foot-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On a phone these three vignettes stack into ~700px of supporting detail
   between the headline and the first line of the argument. The orthographic
   drawing above them already carries the hero; the detail belongs to a reader
   who has the width to take it in at a glance. */
@media (max-width: 700px) {
  .lp-hero-foot { display: none; }
}
.lp-foot-title .lp-mono { font-size: .68rem; color: var(--lp-ink-3); }
.lp-pill {
  font-family: var(--lp-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; border: 1px solid var(--lp-line-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.lp-pill-ok { color: #0a7a52; border-color: rgba(10, 122, 82, .35); background: rgba(52, 211, 153, .12); }
.lp-pill-dim { color: var(--lp-ink-3); }
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-live); display: inline-block; }
.lp-dot.ok { background: var(--lp-ok); }
.lp-row-line { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; padding: 7px 0; border-top: 1px solid var(--lp-line); }
.lp-row-line:first-of-type { border-top: none; }
.lp-check-item { display: flex; align-items: center; gap: 9px; font-size: .82rem; padding: 6px 0; color: var(--lp-ink-2); }
.lp-check-item input { accent-color: var(--lp-black); }
.lp-mini-map { width: 100%; height: 74px; margin-top: 6px; }

/* ── Section shells ──────────────────────────────────────────────────── */
.lp-section { padding: clamp(56px, 9vw, 110px) var(--lp-pad); }
.lp-section-dark { background: var(--lp-black); color: var(--lp-white); }
.lp-section-paper { background: var(--lp-paper-2); }
.lp-eyebrow {
  font-family: var(--lp-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lp-ink-3); margin-bottom: 16px; display: block;
}
.lp-section-dark .lp-eyebrow { color: var(--lp-dim-on-dark); }
.lp-h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.04;
  margin: 0 0 20px; max-width: 20ch;
}
.lp-body { font-size: 1.02rem; color: var(--lp-ink-2); max-width: 52ch; }
.lp-section-dark .lp-body { color: var(--lp-dim-on-dark); }

.lp-split { display: grid; grid-template-columns: .92fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-split.reverse { grid-template-columns: 1.4fr .92fr; }
@media (max-width: 900px) {
  .lp-split, .lp-split.reverse { grid-template-columns: 1fr; }
  .lp-split.reverse .lp-split-media { order: 0; }
}

.lp-split-media {
  border: 1px solid var(--lp-hair-on-dark);
  background: var(--lp-black-2);
  overflow: hidden;
}
/* Product screenshots are captured at their natural aspect, and one of them is
   nearly square — at full column width it rendered ~860px tall and turned its
   whole section into an image dump. Cap the frame and show the top of the
   shot rather than letting the asset decide the page's rhythm. */
.lp-split-media img { max-height: 460px; object-fit: cover; object-position: top center; }
.lp-section-paper .lp-split-media, .lp-section:not(.lp-section-dark) .lp-split-media {
  border-color: var(--lp-line);
}
.lp-split-media img { width: 100%; display: block; }

/* ── Node / architecture diagram ─────────────────────────────────────── */
.lp-diagram {
  position: relative; border: 1px solid var(--lp-hair-on-dark);
  min-height: 380px; padding: 30px;
}
.lp-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-node {
  position: absolute; width: 84px; height: 84px;
  background: var(--lp-black); border: 1px solid var(--lp-hair-on-dark-2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lp-node.core { width: 108px; height: 108px; background: var(--lp-white); }
.lp-node.core svg { stroke: var(--lp-black); }
.lp-node svg { width: 30px; height: 30px; stroke: var(--lp-white); fill: none; stroke-width: 1.4; }
.lp-node-label {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 8px; white-space: nowrap; font-family: var(--lp-mono); font-size: .62rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--lp-faint-on-dark); text-align: center;
}
.lp-node-tag {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 8px; white-space: nowrap; font-family: var(--lp-mono); font-size: .58rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--lp-dim-on-dark);
  border: 1px solid var(--lp-hair-on-dark-2); padding: 2px 7px;
}

/* ── Playground: live 3D viewer + real analysis panel ────────────────── */
.lp-play { margin-top: 8px; border: 1px solid var(--lp-hair-on-dark); }
.lp-play-tabs { display: flex; border-bottom: 1px solid var(--lp-hair-on-dark); }
.lp-play-tab {
  flex: 1; background: none; border: none; border-right: 1px solid var(--lp-hair-on-dark);
  color: var(--lp-dim-on-dark); font-family: var(--lp-display); font-size: .92rem;
  padding: 16px 16px; cursor: pointer; text-align: left; display: flex;
  flex-direction: column; gap: 4px;
}
.lp-play-tab:last-child { border-right: none; }
.lp-play-tab span {
  font-family: var(--lp-mono); font-size: .64rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lp-faint-on-dark);
}
.lp-play-tab.active { background: rgba(255, 255, 255, .06); color: var(--lp-white); }
.lp-play-tab.active span { color: var(--lp-dim-on-dark); }
.lp-play-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 440px; }
.lp-play-viewer { position: relative; background: #000; border-right: 1px solid var(--lp-hair-on-dark); cursor: grab; }
.lp-play-viewer:active { cursor: grabbing; }
.lp-play-viewer canvas { display: block; width: 100%; height: 100%; }
.lp-play-hint {
  position: absolute; bottom: 14px; left: 16px; font-family: var(--lp-mono);
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lp-faint-on-dark); pointer-events: none;
}
.lp-play-panel { padding: 22px 24px 12px; display: flex; flex-direction: column; min-width: 0; }
.lp-play-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.lp-play-caveat {
  font-size: .76rem; color: var(--lp-warn); border-top: 1px solid var(--lp-hair-on-dark);
  padding-top: 12px; margin-top: 6px; line-height: 1.5;
}
.lp-play-checks {
  margin-top: 14px; border-top: 1px solid var(--lp-hair-on-dark);
  flex: 1; overflow-y: auto; max-height: 280px;
}
.lp-play-check { border-bottom: 1px solid var(--lp-hair-on-dark); }
.lp-play-check button {
  width: 100%; background: none; border: none; color: var(--lp-dim-on-dark);
  font-family: var(--lp-display); font-size: .84rem; padding: 11px 0;
  display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left;
}
.lp-dot.warn { background: var(--lp-warn); }
.lp-dot.fail { background: var(--lp-live); }
.lp-play-check-msg {
  display: none; font-size: .78rem; color: var(--lp-dim-on-dark);
  padding: 0 0 14px 22px; line-height: 1.55;
}
.lp-play-check.open .lp-play-check-msg { display: block; }
.lp-play-check.open button { color: var(--lp-white); }
@media (max-width: 860px) {
  .lp-play-tabs { flex-direction: column; }
  .lp-play-tab { border-right: none; border-bottom: 1px solid var(--lp-hair-on-dark); }
  .lp-play-body { grid-template-columns: 1fr; }
  /* Stacked, the viewer has no column to take its height from — without this
     it collapses against min-height and the 3D canvas has nowhere to draw. */
  .lp-play-viewer { height: 320px; border-right: none; border-bottom: 1px solid var(--lp-hair-on-dark); }
}

/* ── Stat strip (honest metrics, not fabricated logos) ──────────────── */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lp-line); }
.lp-stat { padding: 26px 22px; border-left: 1px solid var(--lp-line); }
.lp-stat:first-child { border-left: none; }
.lp-stat-value { font-family: var(--lp-mono); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.02em; }
.lp-stat-label { font-family: var(--lp-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-ink-3); margin-top: 6px; }
@media (max-width: 760px) {
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-stat:nth-child(3) { border-left: none; }
}

/* ── Solutions / industries list ─────────────────────────────────────── */
.lp-solutions { display: grid; grid-template-columns: 1.15fr .85fr; }
.lp-solutions-art {
  min-height: 480px; position: relative; overflow: hidden;
  background: var(--lp-black); display: flex; align-items: center; justify-content: center;
}
.lp-solutions-list { padding: clamp(28px, 4vw, 48px); }
.lp-solutions-list ul { list-style: none; margin: 22px 0 0; padding: 0; }
.lp-solutions-list li {
  font-family: var(--lp-mono); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 13px 0; border-top: 1px solid var(--lp-line); color: var(--lp-ink-3);
  display: flex; align-items: center; justify-content: space-between; cursor: default;
}
.lp-solutions-list li:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-solutions-list li.active { color: var(--lp-ink); font-weight: 500; }
.lp-solutions-list li.active::after { content: "▸"; }
@media (max-width: 900px) { .lp-solutions { grid-template-columns: 1fr; } .lp-solutions-art { min-height: 320px; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.lp-footer { background: var(--lp-black); color: var(--lp-white); padding: clamp(48px, 6vw, 72px) var(--lp-pad) 28px; }
.lp-footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid var(--lp-hair-on-dark); margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.lp-footer-mark svg { width: 34px; height: 34px; }
.lp-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-footer-col h4 { font-family: var(--lp-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-faint-on-dark); margin: 0 0 14px; font-weight: 400; }
.lp-footer-col a, .lp-footer-col .lp-fline { display: block; font-size: .88rem; color: var(--lp-dim-on-dark); padding: 7px 0; border-top: 1px solid var(--lp-hair-on-dark); }
.lp-footer-col a:hover { color: var(--lp-white); }
.lp-footer-col a:first-of-type, .lp-footer-col .lp-fline:first-of-type { border-top: none; }
.lp-footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; flex-wrap: wrap; gap: 14px; }
.lp-footer-bottom .lp-mono { font-size: .68rem; color: var(--lp-faint-on-dark); }
@media (max-width: 760px) { .lp-footer-cols { grid-template-columns: 1fr 1fr; } }

/* ── Misc ────────────────────────────────────────────────────────────── */
.lp-hr { border: none; border-top: 1px solid var(--lp-line); margin: 0; }
.lp-section-dark .lp-hr { border-top-color: var(--lp-hair-on-dark); }
.lp-center { text-align: center; }
.lp-max { max-width: 720px; margin: 0 auto; }
