/* Hilti-Trimble SLAM Challenge 2026 project page: light, sharing the layout of the IMU challenge page. */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --card: #ffffff;
  --line: #e4e6ee;
  --fg: #12142e;
  --muted: #5d6275;
  --navy: #010042;
  --accent: #f5b800;
  --a: #6c8fd8;
  --b: #9a86d6;
  --c: #c8a0dc;
  --d: #e6c37a;
  --e: #7cc4a8;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--navy); }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 80px 0 30px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 110%;
  background:
    radial-gradient(38% 45% at 22% 30%, rgba(108, 143, 216, 0.14), transparent 70%),
    radial-gradient(32% 42% at 78% 22%, rgba(154, 134, 214, 0.14), transparent 70%),
    radial-gradient(30% 40% at 55% 65%, rgba(245, 184, 0, 0.12), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.hero h1 {
  margin: 22px auto 0; max-width: 980px;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--navy);
}
.hero h1 .hl { color: #d99a00; }
.award {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 22px;
  border-radius: 999px; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 30px rgba(245, 184, 0, 0.30);
}
.award span { font-weight: 600; opacity: 0.85; }
.venue { margin-top: 14px; color: var(--muted); font-size: 15px; }
.authors { margin-top: 26px; font-size: 18px; }
.authors a { text-decoration: none; border-bottom: 1px solid rgba(1, 0, 66, 0.2); }
.authors a:hover { border-color: var(--accent); }
.authors a.leader { color: #d99a00; font-weight: 700; border-color: rgba(217, 154, 0, 0.5); }
.authors sup { color: var(--muted); font-size: 11px; margin-left: 1px; }
.authors .sep { color: var(--muted); }
.affil { margin-top: 6px; color: var(--muted); font-size: 14px; }
.affil span { margin: 0 8px; white-space: nowrap; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 44px auto 0; max-width: 1100px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 40px rgba(1, 0, 66, 0.06);
}
.stat { background: #fff; padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.stat b.gold { color: #d99a00; }
.stat small { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
section.block { padding: 96px 0 0; }
.kicker { color: #d99a00; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h2.title { margin: 8px 0 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--navy); }
.lead { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.prose { color: #2b2f45; font-size: 17px; text-align: justify; hyphens: auto; }
.prose b { color: var(--navy); }

figure { margin: 28px 0 0; }
figure.frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 40px rgba(1, 0, 66, 0.06); }
figure img { width: 100%; }
figcaption { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
figcaption b { color: var(--navy); }

/* ---------- pipeline steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }
.step {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 16px;
}
.step::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c0); }
.step .tag { display: inline-block; font-weight: 800; color: var(--navy); font-size: 14px; }
.step h3 { margin: 4px 0 6px; font-size: 16px; color: var(--navy); letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- score ---------- */
.score { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 14px; margin-top: 26px; }
.score div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 8px 30px rgba(1, 0, 66, 0.05); }
.score div.main { background: var(--navy); border-color: var(--navy); color: #fff; }
.score b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.score div.main b { color: var(--accent); font-size: 36px; }
.score small { color: var(--muted); font-size: 13.5px; }
.score div.main small { color: #c9cbe0; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- legend ---------- */
.legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 14px; }
.legend span::before { content: ""; display: inline-block; width: 26px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--c0); border-radius: 2px; }
.legend span.dot::before { width: 10px; height: 10px; border-radius: 3px; }

footer { margin-top: 110px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--bg-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--navy); }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .score { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .brand span { display: none; } .score { grid-template-columns: 1fr; } }
