/* ================= OmniCam project page ================= */
:root {
  --bg: #0b0d17;
  --bg-soft: #11142100;
  --panel: #ffffff;
  --ink: #1a1c2b;
  --ink-soft: #4b4f63;
  --muted: #8a8fa3;
  --line: #e7e8ef;
  --brand: #6d5efc;
  --brand-2: #12c2e9;
  --brand-3: #f64f9c;
  --accent: #7c5cff;
  --grad: linear-gradient(120deg, #6d5efc 0%, #a855f7 45%, #f64f9c 100%);
  --grad-cool: linear-gradient(120deg, #12c2e9 0%, #6d5efc 60%, #a855f7 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 20, 60, .10);
  --shadow-lg: 0 24px 60px rgba(24, 20, 60, .18);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f6f7fb;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(124,92,255,.55), transparent 60%),
              radial-gradient(1000px 600px at 100% 0%, rgba(18,194,233,.35), transparent 55%),
              linear-gradient(180deg, #0b0d17 0%, #141833 60%, #1b1e3d 100%);
  overflow: hidden;
  padding: 72px 0 60px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 380px at 50% 20%, #000 40%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  color: #dfe1ff; margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #46e6a0; box-shadow: 0 0 10px #46e6a0; }
.title {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px;
}
.title .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-size: clamp(15px, 2vw, 19px); color: #c7cae6; font-weight: 500; margin: 14px auto 26px; max-width: 820px; }
.authors { font-size: 17px; color: #eef0ff; margin: 8px 0; }
.authors a { color: #fff; }
.authors sup { color: #b9bdff; }
.affil { color: #aeb2d6; font-size: 15px; margin: 4px 0 4px; }
.note-corr { color: #8f93bd; font-size: 13px; }

/* link buttons */
.links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: #171a2e; color: #fff; border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.btn i { font-size: 16px; }
.btn.primary { background: var(--grad); border: none; }
.btn.ghost { background: rgba(255,255,255,.06); }

/* ---------- Section titles ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700;
  color: var(--brand); margin-bottom: 10px;
}
.h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; margin: 0 0 8px; }
.lead { color: var(--ink-soft); font-size: 17px; max-width: 820px; margin: 0 auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 20px; margin-bottom: 14px; background: var(--grad);
}
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .tag { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .4px; }

/* behavior cards accent variants */
.b1 .ic { background: linear-gradient(120deg,#6d5efc,#a855f7); }
.b2 .ic { background: linear-gradient(120deg,#12c2e9,#6d5efc); }
.b3 .ic { background: linear-gradient(120deg,#f64f9c,#a855f7); }
.b4 .ic { background: linear-gradient(120deg,#f8b24a,#f64f9c); }

/* ---------- Abstract ---------- */
.prose { max-width: 860px; margin: 0 auto; color: var(--ink-soft); font-size: 17px; }
.prose b { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-size: clamp(26px,3vw,38px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip:text; color: transparent; }
.stat .lab { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

/* ---------- Teaser figure ---------- */
.figure { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.figure img { width: 100%; display: block; border-radius: 10px; }
.figcap { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- Gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: all .18s ease;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(124,92,255,.35); }
.pane { display: none; }
.pane.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }

.scene-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 20px; }
.scene-head img { width: min(560px, 100%); border-radius: 12px; box-shadow: var(--shadow); }
.scene-head .meta { flex: 1; min-width: 240px; }
.scene-head .meta h3 { margin: 0 0 6px; font-size: 20px; }
.scene-head .meta p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.case {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case .clips { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #0b0d17; }
.case .clips figure { margin: 0; position: relative; }
.case .clips img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.case .clips .lbl {
  position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; text-transform: uppercase;
}
.case .body { padding: 14px 16px 16px; }
.case .chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #fff;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.chip-target { background: linear-gradient(120deg,#6d5efc,#a855f7); }
.chip-surround { background: linear-gradient(120deg,#12c2e9,#6d5efc); }
.chip-reconstruct { background: linear-gradient(120deg,#f64f9c,#a855f7); }
.chip-wander { background: linear-gradient(120deg,#f8b24a,#f64f9c); }
.case .instr { font-size: 13px; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case code { background: #f1f0fb; color: #6d3ee0; padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step { position: relative; }
.step .num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }

/* ---------- BibTeX ---------- */
pre.bibtex {
  background: #0f1226; color: #cfd3f2; border-radius: var(--radius); padding: 22px 24px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.6; border: 1px solid #23264a;
}

/* ---------- Footer ---------- */
.footer { padding: 40px 0 56px; text-align: center; color: var(--muted); font-size: 14px; }
.footer a { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4, .pipeline, .cases { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2, .pipeline, .cases, .stats { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}
