:root {
  --bg: #03070a;
  --panel: rgba(4, 15, 20, 0.78);
  --panel-strong: rgba(7, 24, 31, 0.94);
  --ink: #f3fbff;
  --muted: #9fb5bd;
  --dim: #657d87;
  --cyan: #62e7ff;
  --green: #55f2a1;
  --magenta: #ff5bc8;
  --amber: #f7c35f;
  --line: rgba(202, 245, 255, 0.18);
  --line-strong: rgba(202, 245, 255, 0.34);
  --shadow: rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --shell: min(1180px, calc(100% - 32px));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(98, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 231, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
select,
input {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img,
canvas {
  display: block;
}

::selection {
  background: rgba(98, 231, 255, 0.34);
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 10px;
  z-index: 90;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  font-weight: 800;
}

.skip-link:focus {
  left: 10px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 10, 0.78);
  backdrop-filter: blur(18px) saturate(145%);
}

.brand,
.nav-links,
.truth-row,
.console-actions,
.panel-heading,
.pulse,
.score-rail,
.slider-grid,
.input-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border: 1px solid rgba(85, 242, 161, 0.48);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(85, 242, 161, 0.08);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 90px 0 22px;
  isolation: isolate;
}

.hero-art,
.hero-art img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 10, 0.94) 0%, rgba(3, 7, 10, 0.7) 36%, rgba(3, 7, 10, 0.26) 64%, rgba(3, 7, 10, 0.76) 100%),
    linear-gradient(0deg, rgba(3, 7, 10, 0.96) 0%, rgba(3, 7, 10, 0.12) 45%, rgba(3, 7, 10, 0.5) 100%);
}

.hero-shell {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: end;
}

.hero-copy {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 112px;
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin-bottom: 22px;
  color: #d5edf4;
  font-size: 26px;
  line-height: 1.2;
}

.truth-row {
  flex-wrap: wrap;
  gap: 8px;
}

.truth-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 12px;
  background: rgba(3, 7, 10, 0.54);
  color: #dff9ff;
  font-size: 13px;
  font-weight: 800;
}

.console-panel,
.root-panel,
.receipt-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(20px) saturate(150%);
}

.console-panel {
  padding: 14px;
}

.panel-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.receipt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.pulse {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.pulse span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.7);
    opacity: 0.44;
  }
}

.input-grid,
.slider-grid {
  gap: 12px;
}

.input-grid > label,
.slider-grid > label {
  flex: 1 1 0;
}

label,
legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 8, 12, 0.78);
  color: var(--ink);
  outline: none;
}

select {
  min-height: 40px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 84px;
  padding: 12px;
  line-height: 1.45;
}

select:focus,
textarea:focus,
input[type="range"]:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(98, 231, 255, 0.7);
  outline-offset: 2px;
}

.evidence-box {
  display: block;
  margin: 10px 0;
}

.slider-grid label {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
}

.slider-grid input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--cyan);
}

output {
  color: var(--ink);
  text-align: right;
}

.vote-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  border: 0;
}

.vote-field legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.vote-button,
.ghost-button,
.primary-button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.vote-button {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.05);
}

.vote-button.is-active {
  border-color: rgba(85, 242, 161, 0.74);
  background: rgba(85, 242, 161, 0.16);
  color: #e9fff4;
}

.ghost-button,
.primary-button {
  min-height: 40px;
  padding: 10px 14px;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.05);
}

.primary-button {
  border-color: rgba(98, 231, 255, 0.72);
  background: linear-gradient(135deg, rgba(98, 231, 255, 0.92), rgba(85, 242, 161, 0.86));
  color: #041015;
  box-shadow: 0 12px 32px rgba(98, 231, 255, 0.18);
}

.vote-button:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 251, 255, 0.62);
}

.console-actions {
  gap: 10px;
}

.console-actions .primary-button,
.console-actions .ghost-button {
  flex: 1;
}

body::after {
  content: "";
  display: block;
  height: 72px;
}
