/* DataLodge landing — field-engineering print register. Light mode only, by design. */

:root {
  --paper: #fafaf7;
  --paper-shade: #f4f1e8;
  --ink: #1a1a1a;
  --ink-muted: #5a5a55;
  --ink-faint: #8a8a85;
  --amber: #c2410c;
  --amber-hover: #9a330a;
  --amber-tint: #f5e6dc;
  --steel: #1e4a72;
  --steel-hover: #163654;
  --hairline: #d8d4ca;
  --hairline-strong: #b8b3a8;
  --danger: #b3261e;
  --success: #2f6b4a;
  --mech: #1f77e0;
  --elec: #c2410c;
  --enrg: #ea580c;

  --wrap: 1120px;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-hover); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---- shared bits ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--hairline-strong);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.section-rule { border-top: 1px solid var(--hairline); }

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--ink);
  border: 1.5px solid var(--amber);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.03em;
}
.brand__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { color: var(--ink-muted); font-size: 15px; font-weight: 500; }
.nav__link:hover { color: var(--ink); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn--ghost:hover { background: var(--paper-shade); color: var(--ink); border-color: var(--ink-muted); }
.btn--sm { padding: 9px 15px; font-size: 14px; }

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

/* ---- hero ---- */
.hero { padding: 84px 0 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}
.hero__grid > *, .record__grid > * { min-width: 0; }
.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 34em;
  margin: 0 0 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__note .mono { color: var(--ink-muted); }

/* ---- report artifact (signature) ---- */
.report-frame { position: relative; }
.report {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  padding: 26px 28px 24px;
  max-width: 100%;
  z-index: 2;
}
.report-frame::before,
.report-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--paper-shade);
}
.report-frame::before { transform: translate(7px, 8px); z-index: 1; }
.report-frame::after { transform: translate(14px, 16px); z-index: 0; opacity: 0.6; }

.report__topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.report__doc { color: var(--ink-muted); }
.report__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.report__date { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.report__fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  font-size: 12px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.report__fields dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); align-self: center; }
.report__fields dd { margin: 0; color: var(--ink-muted); }

.report__section { margin-bottom: 16px; }
.report__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.report__label::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.report__label--elec::before { background: var(--elec); }
.report__label--mech::before { background: var(--mech); }

.report__table { width: 100%; border-collapse: collapse; }
.report__table td {
  padding: 5px 0;
  font-size: 12.5px;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.report__table tr:last-child td { border-bottom: none; }
.report__time { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-muted); width: 108px; }
.report__eq {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  padding-left: 10px;
}
.report__desc { padding: 5px 12px; }

.report__issue {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--amber-tint);
  border-left: 3px solid var(--amber);
  border-radius: 0 3px 3px 0;
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  gap: 9px;
}
.report__issue .flag { color: var(--amber); flex: none; margin-top: 1px; }
.report__issue .issue-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-hover); display: block; margin-bottom: 2px; }

/* ---- how it works ---- */
.section { padding: 72px 0; }
.section__head { max-width: 40em; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; margin-bottom: 16px; }
.section__head p { font-size: 18px; color: var(--ink-muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 4px 32px 4px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--hairline); }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-muted); font-size: 15.5px; margin: 0; }

/* ---- feature pillars ---- */
.pillars { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.pillar {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 5px;
}
.pillar__body h3 { font-size: 21px; margin-bottom: 8px; }
.pillar__body p { color: var(--ink-muted); font-size: 16px; margin: 0; max-width: 52em; }

/* ---- compounding record ---- */
.record { background: var(--paper-shade); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.record__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.record__grid h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; margin-bottom: 16px; }
.record__grid > div > p { font-size: 18px; color: var(--ink-muted); margin: 0 0 24px; }
.record__list { list-style: none; margin: 0; padding: 0; }
.record__list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  gap: 12px;
}
.record__list li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; background: var(--amber); flex: none; border-radius: 1px; }

/* mini chart panel */
.panel {
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  padding: 20px 22px;
}
.panel__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.panel__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.panel__value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 500; color: var(--ink); }
.panel__value span { font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.spark { width: 100%; height: auto; display: block; }
.spark-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 8px;
}
.panel__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat__k { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 500; color: var(--ink); display: block; }
.stat__v { font-size: 11.5px; color: var(--ink-muted); line-height: 1.3; display: block; margin-top: 2px; }

/* ---- final cta ---- */
.cta-final { text-align: center; padding: 84px 0; }
.cta-final__inner { max-width: 34em; margin: 0 auto; }
.cta-final h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.08; margin-bottom: 18px; }
.cta-final p { font-size: 18px; color: var(--ink-muted); margin: 0 0 30px; }
.cta-final .hero__cta { justify-content: center; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--hairline); padding: 34px 0; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-faint);
}
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a { color: var(--ink-muted); }
.site-footer__links a:hover { color: var(--ink); }

/* ---- reveal motion (progressive enhancement: only hides when JS is present) ---- */
.reveal { transition: opacity 620ms ease, transform 620ms ease; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .report-frame { max-width: 460px; }
  .record__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0; border-top: 1px solid var(--hairline); }
  .step + .step { padding-left: 0; border-left: none; }
  .step:first-child { padding-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 52px 0 56px; }
  .section { padding: 56px 0; }
  .nav__link--hide { display: none; }
  .nav { gap: 14px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 6px; }
  .pillar__tag { padding-top: 0; }
  .hero h1 { font-size: 34px; }
  .report { padding: 20px 16px; }
  .report-frame { margin-right: 12px; }
  .report-frame::before { transform: translate(5px, 6px); }
  .report-frame::after { transform: translate(10px, 12px); }
  .report__topline { font-size: 9.5px; letter-spacing: 0.05em; }
  .report__time { width: 84px; font-size: 11.5px; }
  .report__table td { font-size: 11.5px; }
  .report__eq { font-size: 10.5px; padding-left: 8px; }
  .report__desc { padding: 5px 8px; }
  .panel__foot { grid-template-columns: 1fr 1fr; }
}
