/* Lumen Labs Limited — one stylesheet for the whole site.
   Dark, gridded, instrument-panel. The character sits in the display type,
   the mono chrome and the grid; long-form prose stays in a readable sans
   because a privacy policy is read, not admired. */

:root {
  color-scheme: dark;

  /* ground */
  --void:      #050505;
  --ground:    #0e0e0e;
  --surface:   #131313;
  --sunk:      #1c1b1b;
  --raised:    #201f1f;
  --high:      #2a2a2a;
  --highest:   #353534;

  /* ink */
  --ink:       #e5e2e1;
  --ink-warm:  #e4beb1;
  --ink-2:     #b4b0ad;
  --ink-3:     #9c9c9c;

  /* line */
  --rule:      #222222;
  --rule-warm: #5b4137;
  --outline:   #ab897d;

  /* signal */
  --orange:      #ff5c00;
  --orange-soft: #ffb59a;
  --orange-glow: rgba(255, 92, 0, 0.3);
  --cyan:        #00eefc;
  --cyan-soft:   #d3fbff;
  --cyan-glow:   rgba(0, 240, 255, 0.2);
  --violet:      #d1bcff;

  /* type */
  --display: Syne, "Arial Black", Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 38rem;
  --grid: 64px;
  --shell: 76rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--void);
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: center top;
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ------------------------------------------------------------ type ---- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

h1, .display-xl {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-warm);
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 600; color: #fff; }

.accent { color: var(--orange); }
.text-glow { text-shadow: 0 0 24px var(--orange-glow); }

/* the mono chrome layer — eyebrows, labels, meta, data */
.chrome, .eyebrow, .tag, .stat-label, .meta, nav a, .foot-head {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.eyebrow::before { content: "// "; opacity: 0.6; }

.muted { color: var(--ink-3); }
.warm  { color: var(--ink-warm); }

/* ---------------------------------------------------------- layout ---- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: var(--measure); }

section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
section + section { border-top: 1px solid var(--rule); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-warm);
  max-width: var(--measure);
}

/* ------------------------------------------------------------ nav ---- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}

.masthead .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 62px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; color: var(--orange-soft); }

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.masthead nav a {
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--orange);
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
}

/* the section after a hero doesn't need a full lead-in — the hero is one */
.hero + section { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* document pages (support, policies) put the reader on the text sooner */
.hero.doc { padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(1.25rem, 2vw, 1.75rem); }
.hero.doc + section { padding-top: clamp(2rem, 4vw, 2.5rem); }

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(900px, 120%);
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-rule {
  height: 1px;
  background: linear-gradient(to right, var(--orange), transparent);
  margin: 2rem 0;
  max-width: 40rem;
}

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--rule-warm);
  background: rgba(255, 92, 0, 0.07);
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.5rem;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  animation: blink 1.6s step-end infinite;
}

/* --------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 0 12px 2px var(--orange-glow); }

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-secondary:hover {
  background: rgba(0, 238, 252, 0.08);
  box-shadow: inset 0 0 12px var(--cyan-glow);
}

.btn-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------------------------------------------------------- panels ---- */

.panel {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

a.panel:hover,
.panel-link:hover {
  border-color: var(--rule-warm);
  box-shadow: 0 0 24px rgba(255, 92, 0, 0.08);
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

/* product card */
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  color: var(--cyan);
  border: 1px solid rgba(0, 238, 252, 0.35);
  padding: 0.2rem 0.5rem;
  font-size: 0.62rem;
  white-space: nowrap;
}

.tag-warm {
  color: var(--orange);
  border-color: var(--rule-warm);
}

.card-body { color: var(--ink-2); font-size: 0.95rem; }

.card-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-more::after { content: " →"; }

/* ----------------------------------------------------------- index ---- */
/* numbered section list — 01. 02. 03. */

.index-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.index-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange);
  padding-top: 0.35rem;
}

/* ----------------------------------------------------------- stats ---- */

.stat-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0;
}

.stat {
  background: var(--ground);
  padding: 1.25rem;
}

.stat-label {
  display: block;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
}

.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1.1;
}

/* ----------------------------------------------------------- prose ---- */
/* long-form: policies, support, about. Readability first. */

.prose {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose h3 {
  margin-top: 2rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
}

.prose ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--orange); }

.prose strong { color: var(--ink); }

.callout {
  border-left: 2px solid var(--orange);
  background: rgba(255, 92, 0, 0.05);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}

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

/* ---------------------------------------------------------- tables ---- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-warm);
  background: var(--ground);
  white-space: nowrap;
}

td { color: var(--ink-2); background: rgba(14, 14, 14, 0.5); }

.table-wrap { overflow-x: auto; }

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

.shots {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  margin: 2rem 0 1rem;
}

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  background: var(--ground);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.shots img:hover {
  border-color: var(--rule-warm);
  transform: translateY(-3px);
}

/* ------------------------------------------------------- pulse bar ---- */

.pulse {
  height: 2px;
  width: 100%;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  margin: 2.5rem 0;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--orange);
  animation: pulse-strobe 2.4s infinite linear;
}

/* --------------------------------------------------------- scanline ---- */

.scanline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg,
    rgba(0, 240, 255, 0) 0%,
    rgba(0, 240, 255, 0.1) 50%,
    rgba(0, 240, 255, 0) 100%);
  opacity: 0.12;
  animation: scanline 12s linear infinite;
}

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

.colophon {
  border-top: 1px solid var(--orange);
  box-shadow: 0 -2px 14px var(--orange-glow);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem 0 2.5rem;
  margin-top: 2rem;
}

.colophon .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.foot-head {
  color: var(--ink-warm);
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
}

.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.5rem; }

.colophon a { color: var(--ink-2); font-size: 0.9rem; }
.colophon a:hover { color: var(--orange); }

.colophon p { font-size: 0.88rem; color: var(--ink-3); }

.legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--ink-3);
  text-transform: uppercase;
}

.legal a { color: var(--ink-3); text-decoration: underline; }
.legal a:hover { color: var(--orange); }

/* --------------------------------------------------------- motion ---- */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse-strobe {
  0%   { left: -30%; }
  100% { left: 100%; }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scanline { display: none; }
  .status::before { opacity: 1; }
}

/* ----------------------------------------------------------- focus ---- */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #000;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  z-index: 100;
}
.skip:focus { left: 0; }

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

@media (max-width: 640px) {
  :root { --grid: 44px; }
  .masthead .shell { min-height: 56px; padding-block: 0.6rem; }
  .masthead nav { gap: 1rem; width: 100%; margin-left: 0; }
  .index-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .index-num { padding-top: 0; }
}
