/* LUMA marketing site */

:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --border: #2c2c2c;
  --text: #ededed;
  --text-muted: #a3a3a3;
  --text-dim: #6e6e6e;
  --gold: #bfa86e;
  --gold-hover: #cdb784;
  --gold-soft: rgba(191, 168, 110, 0.14);
  --on-gold: #121212;

  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-tag: 6px;
  --gutter: 24px;
  --grid-line: rgba(237, 237, 237, 0.04);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { inset-block-start: 12px; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

/* Type */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(30px, 8.2vw, 64px); line-height: 1.04; }
@media (min-width: 900px) {
  h1 { font-size: clamp(42px, 4.3vw, 60px); }
  .h1-line { white-space: nowrap; }
}
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.25; }

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.gold { color: var(--gold); }
.eyebrow.gold { color: var(--gold); }
.muted { color: var(--text-muted); }

.body-lg { font-size: 19px; line-height: 1.6; }

.verdict-word {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--gold);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .verdict-word {
    background: linear-gradient(180deg, #cdb784, #a8925a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Buttons and tags */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 44px; padding-inline: 16px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tag);
}
.tag-gold { color: var(--gold); background: var(--gold-soft); border-color: transparent; }

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .eyebrow { margin-block-end: 4px; }

/* Top bar */

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--bg);
  border-block-end: 1px solid var(--border);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.24em;
  text-decoration: none;
  color: var(--text);
}
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }

@media (max-width: 960px) {
  .topbar-inner { position: relative; gap: 12px; }
  .topbar-actions { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-block-end: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 17px;
    color: var(--text);
    border-block-end: 1px solid var(--border);
  }
  .nav a:last-child { border-block-end: 0; }
}
@media (max-width: 380px) {
  .btn-sm { padding-inline: 12px; font-size: 14px; }
  .menu-btn { padding-inline: 10px; }
}

/* Sections */

.section {
  padding-block: clamp(72px, 10vw, 128px);
  border-block-start: 1px solid var(--border);
}
.section h2 + * { margin-block-start: 48px; }

.split {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .split .body-lg { padding-block-start: 34px; }
}

.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 5.1 Hero */

.hero { padding-block: clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}
.hero h1 { margin-block-end: 24px; }
.lead { font-size: 19px; color: var(--text-muted); max-width: 34ch; }
.platforms { margin-block: 28px 0; text-transform: none; }

.hero-visual { display: flex; justify-content: center; }
.phone-stage {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 1 / 2;
}
.phone-body {
  position: absolute;
  inset: 0;
  border-radius: 15% / 7.5%;
  box-shadow: 0 0 60px var(--gold-soft);
}
.phone-img { width: 100%; height: 100%; }

.lens {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(191, 168, 110, 0.30) 0%, rgba(191, 168, 110, 0.12) 45%, rgba(191, 168, 110, 0) 70%);
  border: 1px solid rgba(191, 168, 110, 0.40);
  pointer-events: none;
  opacity: 0;
}

.reveal {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--gold);
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-tag);
  padding: 7px 9px;
  white-space: nowrap;
}

.hero-verdict {
  position: absolute;
  inset-inline-end: -14%;
  inset-block-end: 4%;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-verdict .eyebrow { margin: 0; }
.hero-verdict .verdict-word { font-size: clamp(34px, 5vw, 46px); }
@media (max-width: 600px) {
  .hero-verdict { inset-inline-end: -6%; }
}

@media (prefers-reduced-motion: no-preference) {
  .lens { animation: lens-move 12s ease-in-out infinite; }
  .reveal, .hero-verdict { animation-duration: 12s; animation-iteration-count: infinite; animation-timing-function: ease-out; animation-fill-mode: both; }
  .r1 { animation-name: rev1; }
  .r2 { animation-name: rev2; }
  .r3 { animation-name: rev3; }
  .r4 { animation-name: rev4; }
  .r5 { animation-name: rev5; }
  .hero-verdict { animation-name: rev6; }
}

@keyframes lens-move {
  0%   { left: 50%; top: 2%;  opacity: 0; }
  5%   { opacity: 1; }
  10%  { left: 32%; top: 20%; }
  24%  { left: 66%; top: 33%; }
  38%  { left: 34%; top: 47%; }
  52%  { left: 66%; top: 61%; }
  66%  { left: 34%; top: 75%; }
  80%  { left: 52%; top: 52%; opacity: 1; }
  92%  { opacity: 0; }
  100% { left: 52%; top: 52%; opacity: 0; }
}
@keyframes rev1 { 0%, 9%  { opacity: 0; } 12%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rev2 { 0%, 23% { opacity: 0; } 26%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rev3 { 0%, 37% { opacity: 0; } 40%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rev4 { 0%, 51% { opacity: 0; } 54%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rev5 { 0%, 65% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rev6 { 0%, 78% { opacity: 0; transform: translateY(8px); } 82%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* 5.3 How it works */

.how-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

.layers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.layer-item {
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: start;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.layer-item:hover, .layer-item.is-lit { border-color: var(--gold); background: var(--gold-soft); }
.layer-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-block-start: 5px;
}
.layer-item.is-lit .layer-num, .layer-item:hover .layer-num { color: var(--gold); }
.layer-text { display: flex; flex-direction: column; gap: 4px; }
.layer-title { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; font-size: 19px; line-height: 1.3; }
.layer-line { color: var(--text-muted); font-size: 16px; line-height: 1.55; }

.how-visual { display: flex; flex-direction: column; gap: 20px; }

.stack {
  --plane: min(230px, 54vw);
  --gap: clamp(38px, 9vw, 56px);
  position: relative;
  height: clamp(400px, 52vw, 500px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-lift { transform: translateY(calc(var(--gap) * 1.66)); }
.stack-inner {
  position: relative;
  width: var(--plane);
  height: var(--plane);
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-45deg);
}
.plane {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 16px;
  transform: translateZ(calc(var(--i) * var(--gap)));
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}
.plane:hover, .plane.is-lit {
  border-color: var(--gold);
  background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--surface-2);
  color: var(--gold);
  transform: translateZ(calc(var(--i) * var(--gap) + 22px));
}
@media (prefers-reduced-motion: no-preference) {
  .plane { transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .45s, background-color .45s, color .45s; }
}

.side-card h3 { font-size: 24px; }

/* 5.4 Report */

.cards-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.product { margin-block-start: 40px; display: grid; gap: 24px; }
@media (min-width: 1000px) {
  .product:has(.screenshot-slot:not(:empty)) { grid-template-columns: 1fr 1fr; }
}
.screenshot-slot { margin: 0; }
.screenshot-slot:empty { display: none; }
.screenshot-slot img { width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--border); }

.screen {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-block-end: 1px solid var(--border);
}
.screen-bar span { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--text-dim); }
.screen-body { display: flex; flex-wrap: wrap; }
.screen-side {
  flex: 1 1 200px;
  padding: 22px 16px;
  border-inline-end: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.screen-wordmark { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.24em; font-size: 16px; padding-inline: 12px; }
.screen-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.screen-side li {
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.screen-side li.is-active { background: var(--gold-soft); color: var(--gold); }
.screen-main {
  flex: 999 1 320px;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen-card .eyebrow { margin: 0; }
.screen-verdict .verdict-word { font-size: clamp(48px, 7vw, 76px); }
.screen-verdict p { color: var(--text-muted); max-width: 52ch; }
.finding-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  border-block-start: 1px solid var(--border);
  color: var(--text-muted);
}
.screen-side li, .finding-row { line-height: 1.4; }
@media (max-width: 560px) {
  .screen-side { border-inline-end: 0; border-block-end: 1px solid var(--border); }
  .screen-side ul { flex-direction: row; flex-wrap: wrap; }
}

/* 5.5 Custody */

.custody-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .custody-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

.fan {
  position: relative;
  height: clamp(400px, 46vw, 480px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  overflow: hidden;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fan-tilt {
  position: relative;
  width: min(250px, 56vw);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: rotateX(14deg);
}
.sheet {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-tag);
  border: 1px solid var(--border);
}
.sheet-1 { background: var(--surface); transform: translateZ(-30px) rotate(-3deg) translate(-8px, 4px); }
.sheet-2 { background: var(--surface); transform: translateZ(-15px) rotate(2deg) translate(8px, -2px); }
.sheet-3 {
  background: var(--surface-2);
  transform: translateZ(0);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.fan.is-fanned .sheet-1, .fan:hover .sheet-1 { transform: translateZ(-30px) rotate(-9deg) translate(-38px, 10px); }
.fan.is-fanned .sheet-2, .fan:hover .sheet-2 { transform: translateZ(-15px) rotate(6deg) translate(34px, -6px); }
.fan.is-fanned .sheet-3, .fan:hover .sheet-3 { transform: translateZ(10px) rotate(-1deg) translateY(-8px); }
@media (prefers-reduced-motion: no-preference) {
  .sheet { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
}
.sheet-title { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; font-size: 22px; color: var(--text); }
.sheet-rule { height: 2px; background: var(--gold); width: 100%; margin-block-end: 6px; }
.ph { display: block; height: 7px; border-radius: 2px; background: var(--text-dim); opacity: .45; }
.ph.gap { margin-block-start: 10px; }
.stamp {
  position: absolute;
  inset-inline-end: 18px;
  inset-block-end: 30px;
  transform: rotate(-14deg);
  font-size: clamp(26px, 4vw, 34px);
  padding: 8px 14px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-btn);
  letter-spacing: 0.04em;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline li {
  position: relative;
  padding-inline-start: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 19px;
  font-weight: 500;
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -6px;
  inset-block-start: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 5.6 Remote */

.tag-row { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* 5.8 Position */

.position-grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .position-grid { grid-template-columns: 1fr 1fr; }
}
.position-card.is-yes { border-color: var(--gold); }
.position-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.position-list li {
  position: relative;
  padding-block: 14px;
  padding-inline-start: 24px;
  border-block-start: 1px solid var(--border);
}
.position-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 24px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.is-yes .position-list li::before { background: var(--gold); }
.is-no .position-list li { color: var(--text-muted); }
.is-no .position-list li::before { background: transparent; border: 1px solid var(--text-muted); }

.position-quote {
  margin: 40px 0 0;
  padding-inline-start: 22px;
  border-inline-start: 2px solid var(--gold);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 62ch;
}

/* 5.9 Contact */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.contact-card .eyebrow { margin: 0; }
.contact-card h2 + * { margin-block-start: 0; }
.contact-card .btn { margin-block-start: 8px; }

/* 5.10 Footer */

.footer {
  border-block-start: 1px solid var(--border);
  padding-block: 56px 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--gold); }
.footer-legal { margin-block-start: 32px; font-size: 15px; }
.footer-line { margin: 20px 0 0; }

/* Reduced motion: no animation at all */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lens { display: none; }
}

/* Anchors kept for links from the legal pages */
.anchor-alias { display: block; height: 0; }
html { scroll-padding-block-start: 80px; }
