:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #667085;
  --panel: #ffffff;
  --surface: #0a0a14;
  --green: #bef03a;
  --green-dark: #9fd021;
  --red: #ff5a4f;
  --gold: #f7b955;
  --blue: #6e4bff;
  --blue-dark: #5635db;
  --line: #d9e1ef;
  --line-strong: #a9b6ca;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: rgb(10, 10, 20);
}

.mesh,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.mesh {
  z-index: -2;
  background-color: rgb(10, 10, 20);
  background-image:
    radial-gradient(60% 50% at 80% 8%, rgba(110, 75, 255, 0.26), rgba(0, 0, 0, 0) 60%),
    radial-gradient(50% 50% at 8% 92%, rgba(110, 75, 255, 0.1), rgba(0, 0, 0, 0) 60%),
    radial-gradient(45% 35% at 50% 45%, rgba(190, 240, 58, 0.04), rgba(0, 0, 0, 0) 70%);
}

.grain {
  z-index: -1;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.xev-motion {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.scrollcue {
  position: absolute;
  left: 32px;
  bottom: 38px;
  width: 1px;
  height: 40px;
}

.scrollcue .bar {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--green), transparent);
  animation: drop 1.8s ease infinite;
}

.proof-thread {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 76vh;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(155, 124, 255, 0.3) 20%,
    rgba(190, 240, 58, 0.3) 80%,
    transparent
  );
  transform: translateY(-50%);
}

.comet {
  position: absolute;
  top: calc(76vh - 3px);
  left: -4%;
  width: 64px;
  height: 6px;
  border-radius: 6px;
  background: radial-gradient(
    circle,
    rgba(190, 240, 58, 0.95),
    rgba(155, 124, 255, 0.5) 40%,
    transparent 72%
  );
  filter: blur(1px);
  opacity: 0;
  animation: xeqtravel 7.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.comet-two {
  top: calc(34vh - 3px);
  animation-delay: 3.9s;
}

@keyframes drop {
  0%,
  100% {
    transform: scaleY(0);
    transform-origin: center top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: center top;
  }

  51% {
    transform-origin: center bottom;
  }
}

@keyframes xeqtravel {
  0% {
    left: -4%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 0;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: 24px;
  min-height: 240px;
  color: #ffffff;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 18px 0 12px;
  max-width: 820px;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

.brand p {
  max-width: 720px;
  margin: 0;
  color: #d4dbea;
  font-size: 19px;
  line-height: 1.5;
}

.scoreboard,
.agenda-panel,
.controls,
.results article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.scoreboard {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.bucket-callout {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 14px;
}

.label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreboard .label {
  color: #c7d2fe;
}

.scoreboard strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.1;
}

.bucket-callout strong {
  color: var(--green);
  font-size: 17px;
  line-height: 1.2;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  margin-top: 26px;
}

.inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.agenda-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.agenda-panel header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.agenda-panel header span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-panel input[type="text"],
.agenda-panel header input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #f8fbff;
  color: var(--ink);
  font-weight: 800;
}

.drop-zone {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  background: #f4f8ff;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--blue), var(--green));
  color: white;
  font-weight: 950;
}

.drop-zone strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
  color: var(--ink);
  line-height: 1.45;
}

.controls {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 10px 13px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: #0e2038;
}

button:disabled {
  background: #a8afa9;
  cursor: not-allowed;
}

#sampleBtn {
  background: var(--blue);
}

#sampleBtn:hover {
  background: var(--blue-dark);
}

#videoBtn {
  background: var(--green);
  color: #07111f;
}

#videoBtn:hover:not(:disabled) {
  background: var(--green-dark);
}

.stage-wrap {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #07111f;
  box-shadow: var(--shadow);
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.results {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 18px;
  margin-top: 18px;
}

.results article {
  min-height: 164px;
  padding: 16px;
}

h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef6ff;
  color: #0c1830;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.audit-grid {
  display: grid;
  gap: 9px;
}

.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e7edf7;
  padding-bottom: 7px;
  font-size: 14px;
}

.audit-row strong {
  font-size: 18px;
}

.calc-line {
  display: block;
  margin-bottom: 4px;
}

#verdictText {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero,
  .workspace,
  .inputs,
  .results {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 14px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 68px);
  }

  .brand p {
    font-size: 16px;
  }

  .controls {
    grid-template-columns: 1fr;
  }
}
