@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #070708;
  --panel: #121214;
  --line: #2a2a2e;
  --ink: #f4f1ea;
  --muted: #9a958c;
  --gold: #d4a017;
  --gold2: #f0c14b;
  --blood: #c45c26;
  --prey: #6b7280;
  --font-d: "Bebas Neue", sans-serif;
  --font-b: "Manrope", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.sub { color: var(--muted); margin: 0 0 18px; max-width: 52ch; }
.fine { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; max-width: 48ch; }

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7,7,8,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 22px;
  letter-spacing: .04em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.nav { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.bar-cta {
  padding: 8px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: calc(100svh - 56px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,8,.92) 0%, rgba(7,7,8,.55) 48%, rgba(7,7,8,.25) 100%),
    linear-gradient(0deg, rgba(7,7,8,.95) 0%, transparent 45%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
  max-width: 720px;
  margin-left: max(14px, calc((100% - var(--max)) / 2));
}
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(64px, 12vw, 120px);
  line-height: .85;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.tag {
  font-family: var(--font-d);
  font-size: clamp(22px, 3.5vw, 34px);
  color: var(--gold2);
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.lead {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  color: #d8d2c8;
  max-width: 42em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn-gold { background: var(--gold); color: #111; }
.btn-ghost { border: 1px solid #5a564e; color: var(--ink); background: transparent; }

.lenses { padding: 48px 0 20px; }
.lenses h2, .modes-band h2, .studio-sec h2, .check-sec h2, .guides h2, .ego-band h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: .03em;
  margin: 0 0 10px;
  font-weight: 400;
}
.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.lens {
  text-align: left;
  padding: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  min-height: 170px;
}
.lens:hover { border-color: var(--gold); }
.lens-k {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.lens strong {
  display: block;
  font-family: var(--font-d);
  font-size: 26px;
  letter-spacing: .03em;
  margin-bottom: 8px;
  font-weight: 400;
}
.lens p { margin: 0; font-size: 13.5px; color: var(--muted); }

.modes-band { padding: 28px 0; }
.shot-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  aspect-ratio: 3/4;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: transform .35s ease, filter .35s ease;
}
.shot:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.1); }
.shot span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-family: var(--font-d);
  font-size: 18px;
  letter-spacing: .04em;
}

.studio-sec { padding: 20px 0 36px; }
.studio-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.mode-pill {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 12px;
  white-space: nowrap;
}
.mode-pill strong { color: var(--gold2); }
.analyzer {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
}
.pose-slot {
  position: relative;
  min-height: 420px;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.pose-slot img,
.pose-slot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pose-slot canvas { z-index: 2; mix-blend-mode: soft-light; opacity: 0; pointer-events: none; }
.pose-slot.grading canvas { opacity: .85; }
.pose-slot.has-file img { display: block; }
.pose-slot img { display: none; z-index: 1; }
.pose-slot.has-file .hint { display: none; }
.hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
}
.hint strong {
  display: block;
  font-family: var(--font-d);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.scan-hud {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 4;
  padding: 10px 12px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(212,160,23,.45);
  font-size: 13px;
  color: var(--gold2);
  letter-spacing: .04em;
}
.panel { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.chip.on { border-color: var(--gold); color: var(--gold2); background: rgba(212,160,23,.08); }
.apex {
  border: 1px solid var(--line);
  padding: 12px;
  background: #0c0c0e;
}
.apex-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.apex-track {
  height: 10px;
  background: #1c1c20;
  position: relative;
  overflow: hidden;
}
.apex-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--prey), var(--blood), var(--gold));
  transition: width .2s linear;
}
.stage-text { margin: 10px 0 0; font-size: 14px; color: #d8d2c8; min-height: 2.6em; }

.result {
  display: none;
  margin-top: 14px;
  border: 1px solid var(--gold);
  background: #0c0c0e;
  padding: 0;
}
.result.show { display: block; }
.result-banner {
  padding: 22px 20px 18px;
  background: linear-gradient(120deg, #16120a 0%, #0c0c0e 55%);
  border-bottom: 1px solid var(--line);
}
.role {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 18px;
  letter-spacing: .14em;
  color: #111;
  background: var(--gold);
  padding: 6px 10px;
  margin-bottom: 10px;
}
.role.soft { background: var(--prey); color: #fff; }
.role.hot { background: var(--blood); color: #fff; }
.apex-big {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.apex-big b {
  font-family: var(--font-d);
  font-size: 48px;
  color: var(--gold2);
  letter-spacing: .02em;
  margin: 0 4px;
  font-weight: 400;
}
.verdict {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .03em;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.05;
}
.verdict-sub {
  margin: 0;
  font-size: 15px;
  color: #cfc8bc;
  max-width: 70ch;
  line-height: 1.45;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.result-grid > div {
  padding: 18px 20px;
}
.result-grid > div + div { border-left: 1px solid var(--line); }
.result-h {
  margin: 0 0 12px;
  font-family: var(--font-d);
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--gold);
  font-weight: 400;
}
.meters { display: grid; gap: 10px; margin-bottom: 0; }
.meter {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.meter .track {
  height: 8px;
  background: #1c1c20;
}
.meter .track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--gold));
  width: 0;
  transition: width .55s ease;
}
.reads { display: grid; gap: 10px; margin-bottom: 0; }
.read {
  border-left: 3px solid var(--blood);
  padding: 10px 12px;
  background: #151518;
  font-size: 14px;
}
.read b { display: block; color: var(--gold2); font-weight: 700; margin-bottom: 4px; }
.read p { margin: 0; color: #d8d2c8; line-height: 1.4; }
.hit-list, .fix-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d8d2c8;
  font-size: 14px;
  line-height: 1.35;
}
.fix-list { color: #e7dfd0; }
.punch {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-d);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .03em;
  line-height: 1.1;
  border-bottom: 1px solid var(--line);
  color: var(--gold2);
}
.result .disclaimer { padding: 0 20px; margin: 14px 0 0; }
.result .cta-row { padding: 14px 20px 20px; }

.check-sec {
  padding: 36px 0;
  background: #0c0c0e;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.check-board { display: grid; gap: 8px; }
.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  color: #d8d2c8;
}
.check-item input { margin-top: 3px; accent-color: var(--gold); }

.guides { padding: 28px 0 8px; }
.dossier { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.case:hover { background: rgba(212,160,23,.04); }
.case-no {
  font-family: var(--font-d);
  font-size: 36px;
  color: var(--gold);
  letter-spacing: .06em;
  line-height: 1;
}
.case h3 {
  margin: 0 0 6px;
  font-family: var(--font-d);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: .03em;
  font-weight: 400;
}
.case p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.35; }
.case-go {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.ego-band {
  margin-top: 8px;
  padding: 0;
  background: #0c0c0e;
  border-top: 1px solid var(--line);
}
.ego-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}
.ego-band blockquote {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: .02em;
  color: var(--ink);
  border-left: 5px solid var(--gold);
  padding: 36px 28px 36px 22px;
  background: #111113;
}
.ego-band .ego-copy {
  padding: 36px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #151518 0%, #0c0c0e 100%);
}
.ego-band h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
}
.ego-band p {
  color: #cfc8bc;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  max-width: none;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 96px;
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
}
.footer-grid { display: grid; gap: 10px; max-width: 900px; }
.footer strong {
  color: var(--ink);
  font-family: var(--font-d);
  font-size: 28px;
  letter-spacing: .04em;
}
.footer a { color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; }
.footer .links { display: flex; gap: 14px; flex-wrap: wrap; }

#main-target-btn {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
body.studio-active #main-target-btn,
body.result-shown #main-target-btn { display: none !important; }

/* internal pages */
body > header.topbar, .topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.page {
  padding: 28px 0 48px;
  max-width: 720px;
}
.page h1 {
  font-family: var(--font-d);
  font-size: clamp(36px, 6vw, 52px);
  letter-spacing: .03em;
  margin: 0 0 10px;
  font-weight: 400;
}
.page .meta { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.page p { margin: 0 0 14px; color: #d8d2c8; }

@media (max-width: 960px) {
  .nav { display: none; }
  .lens-grid, .shot-row, .analyzer, .ego-grid, .result-grid { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78svh; align-items: end; }
  .hero-inner { margin-left: 14px; padding-bottom: 36px; }
  .pose-slot { min-height: 320px; }
  .ego-grid { grid-template-columns: 1fr; }
  .ego-band blockquote { padding: 28px 18px; }
  .ego-band .ego-copy { border-left: 0; border-top: 1px solid var(--line); padding: 28px 18px; }
  .case { grid-template-columns: 56px 1fr; padding: 18px 4px; }
  .case-go { display: none; }
  .case-no { font-size: 30px; }
  .result-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .meter { grid-template-columns: 1fr 1.2fr 36px; }
  .studio-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .shot-row, .lens-grid { grid-template-columns: 1fr; }
}
