/* Tracelux website — the app's dark palette, with the brand amber as the one accent. */
:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #0e1218;
  --panel-2: #151a22;
  --border: #1d232c;
  --border-hi: #2b333d;
  --txt: #e6edf3;
  --muted: #8b949e;
  --blue: #58a6ff;
  --amber: #f6a623;
  --amber-hot: #ffd27a;
  --radius: 14px;
  --wrap: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.amber { color: var(--amber); }
.eyebrow {
  font: 600 12.5px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

/* ── wordmark: TRACE + amber LUX, as in the app ── */
.wordmark { font: 800 21px/1 var(--display); letter-spacing: .02em; color: var(--txt); }
.wordmark span { color: var(--amber); }
.wordmark--sm { font-size: 14px; }

/* ── navigation ── */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(9, 11, 15, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }   /* tile cropped tight: its own rounded corners */
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #aab3bd;
  transition: color .18s ease;
}
.nav__links a:not(.nav__cta)::after {            /* amber underline that glows in */
  content: ""; position: absolute; left: 0; right: .14em; bottom: -3px; height: 2px; border-radius: 2px;
  background: var(--amber); box-shadow: 0 0 10px rgba(246, 166, 35, .65);
  transform: scaleX(0); transform-origin: left center; transition: transform .22s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--txt); text-decoration: none; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav__links a, .nav__links a::after { transition: none; } }
.nav__links .nav__cta {
  color: var(--amber);
  border: 1px solid rgba(246, 166, 35, .45);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav__links .nav__cta:hover { background: rgba(246, 166, 35, .1); color: var(--amber-hot); }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; border-bottom: 1px solid var(--border); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 78% 30%, rgba(88, 166, 255, .07), transparent 60%),
              radial-gradient(700px 420px at 12% 80%, rgba(246, 166, 35, .06), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 3.4vw, 2.95rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
@media (max-width: 1000px) { .hero h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); } }
.lede { margin-top: 22px; font-size: 18.5px; color: #c4ccd5; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { margin-top: 18px; font: 500 13px/1.5 var(--mono); color: var(--muted); letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: 10px;
  font: 600 15.5px/1 var(--sans);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--amber { background: var(--amber); color: #191207; }
.btn--amber:hover { background: var(--amber-hot); }
.btn--ghost { border: 1px solid var(--border-hi); color: var(--txt); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.hero__shot { margin: 0; }
.window {
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 120px -40px rgba(246, 166, 35, .35);
}
.window__bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2f3640; }

/* ── sections ── */
.section { padding: 104px 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 750; }
.section__intro { margin-top: 18px; max-width: 46em; color: #c4ccd5; }

/* accuracy */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 26px 24px; }
.stat__value { font: 800 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--display); color: var(--amber); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.figure { margin: 34px 0 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 18px; }
.figure figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; max-width: 60em; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 24px; }
.feature h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.feature h3::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px;
  background: var(--amber); box-shadow: 0 0 14px 2px rgba(246, 166, 35, .55);
}
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.steps li { padding: 0 26px 0 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--border); }
.steps__n { font: 600 13px/1 var(--mono); color: var(--amber); letter-spacing: .1em; }
.steps h3 { margin-top: 12px; font-size: 20px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* reproducibility */
.repro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--amber); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--amber);
}
.checks strong { color: var(--txt); font-weight: 650; }

/* contact */
.cta {
  display: flex; align-items: center; gap: 36px;
  background: linear-gradient(135deg, rgba(246, 166, 35, .08), rgba(88, 166, 255, .04) 60%, transparent), var(--panel);
  border: 1px solid var(--border-hi); border-radius: 18px; padding: 40px;
}
.cta img { flex: none; border-radius: 26px; }
.cta p { margin-top: 12px; color: #c4ccd5; max-width: 40em; }
.cta__mail { font: 600 19px/1.4 var(--mono); }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--txt); }

/* ── responsive ── */
@media (max-width: 1000px) {
  .hero__inner, .repro { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 72px 0; }
  .stats, .features, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding: 0; }
  .figure { padding: 12px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; gap: 22px; }
  .cta img { width: 88px; height: 88px; border-radius: 20px; }
}
