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

:root {
  color-scheme: light;
  --ink: #0f2f5e;
  --muted: rgba(15, 47, 94, 0.68);
  --paper: #f4f8ff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --stroke: rgba(15, 47, 94, 0.14);
  --stroke-strong: rgba(15, 47, 94, 0.22);
  --shadow: 0 22px 70px rgba(12, 31, 70, 0.16);
  --shadow-tight: 0 14px 30px rgba(12, 31, 70, 0.12);

  /* Brand */
  --accent: #0059b8;
  --accent-2: #e73b4f;
  --accent-3: #5b89d3;
  --glow: rgba(0, 89, 184, 0.24);
  --warn: #c73243;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 14%, rgba(231, 59, 79, 0.17), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(0, 89, 184, 0.20), transparent 44%),
    radial-gradient(circle at 24% 88%, rgba(91, 137, 211, 0.14), transparent 46%),
    linear-gradient(140deg, #f8fbff 0%, #edf4ff 58%, #f8fbff 100%);
  z-index: -1;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 2px,
      transparent 5px
    );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  gap: 28px;
}

.topnav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 47, 94, 0.14);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.topnav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

.topnav-link:hover {
  background: rgba(0, 89, 184, 0.10);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 0 4px;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.60)),
    radial-gradient(circle at 18% 0%, rgba(0, 89, 184, 0.18), transparent 45%),
    radial-gradient(circle at 92% 24%, rgba(231, 59, 79, 0.14), transparent 50%);
  box-shadow: var(--shadow);
  animation: fadeIn 0.6s ease-out;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.subtitle {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-copy {
  min-width: 0;
}

.mark {
  display: block;
  width: 152px;
  max-width: 42vw;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 57, 126, 0.18));
}

.mark-logo {
  flex: 0 0 auto;
}

.hero-card {
  min-width: 200px;
  background: #11131c;
  color: #f6f7fb;
  padding: 20px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
  align-content: center;
  box-shadow: var(--shadow-tight);
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  opacity: 0.8;
}

.hero-value {
  font-size: 24px;
  font-weight: 600;
}

.hero-hint {
  font-size: 12px;
  opacity: 0.7;
}

.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: liftIn 0.6s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-kicker {
  font-size: 13px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

label.checkbox {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
  font-size: 13px;
}

label.checkbox input {
  width: 16px;
  height: 16px;
}

input[type="date"],
input[type="time"],
textarea,
select,
input[type="text"],
input[type="password"],
input[type="file"] {
  font-family: "IBM Plex Mono", "Menlo", monospace;
  border-radius: 12px;
  border: 1px solid rgba(22, 22, 29, 0.18);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.hint {
  font-size: 12px;
  color: rgba(22, 22, 29, 0.55);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px var(--glow);
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(22, 22, 29, 0.18);
  color: var(--ink);
}

.status {
  font-size: 13px;
  color: var(--accent-2);
}

.status.muted {
  color: rgba(22, 22, 29, 0.55);
}

.status.warn {
  color: var(--warn);
}

.after-save {
  margin-top: 10px;
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(0, 89, 184, 0.10), rgba(0, 89, 184, 0.06) 55%, rgba(255, 255, 255, 0.55)),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 22, 29, 0.12);
  box-shadow: var(--shadow-tight);
}

.after-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.after-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(22, 22, 29, 0.92);
}

.after-sub {
  font-size: 12px;
  color: rgba(22, 22, 29, 0.62);
  margin-top: 4px;
}

.after-open {
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 89, 184, 0.25);
}

body.drop-active .panel {
  outline: 2px solid rgba(0, 89, 184, 0.20);
  outline-offset: 6px;
}

.runs {
  display: grid;
  gap: 16px;
}

.run {
  border: 1px solid rgba(22, 22, 29, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.run h3 {
  margin: 0;
  font-size: 18px;
}

.run-summary {
  margin: 0;
  font-size: 13px;
  color: rgba(22, 22, 29, 0.74);
  line-height: 1.35;
}

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

.stat-pill {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(22, 22, 29, 0.12);
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 11px;
  color: rgba(22, 22, 29, 0.78);
}

.stat-pill .k {
  opacity: 0.75;
}

.stat-pill .v {
  font-weight: 700;
}

.run .meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.run a {
  color: var(--accent);
  text-decoration: none;
}

.backlink {
  color: var(--accent);
  text-decoration: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.mini-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 22, 29, 0.10);
  box-shadow: var(--shadow-tight);
}

.mini-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mini-sub {
  font-size: 12px;
  color: rgba(22, 22, 29, 0.60);
  margin-top: 4px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.mini-date {
  width: 100%;
}

.drop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.drop-required {
  grid-column: 1 / -1;
}

.advanced {
  border: 1px solid rgba(22, 22, 29, 0.12);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.45);
}

.advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: rgba(22, 22, 29, 0.78);
}

.advanced-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drop {
  border-radius: 18px;
  border: 1px dashed rgba(22, 22, 29, 0.24);
  background: rgba(255, 255, 255, 0.50);
  padding: 14px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  box-shadow: 0 10px 30px rgba(16, 18, 28, 0.08);
}

.drop:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 89, 184, 0.45);
  box-shadow: 0 18px 44px rgba(0, 89, 184, 0.12);
}

.drop.hover {
  border-color: rgba(231, 59, 79, 0.55);
  box-shadow: 0 18px 44px rgba(231, 59, 79, 0.12);
}

.drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drop-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.drop-badge {
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 29, 0.14);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(22, 22, 29, 0.7);
}

.drop-badge.ok {
  background: rgba(0, 89, 184, 0.10);
  border-color: rgba(0, 89, 184, 0.24);
  color: rgba(0, 89, 184, 1);
}

.drop-badge.subtle {
  opacity: 0.75;
}

.drop-body p {
  margin: 10px 0 12px;
  font-size: 13px;
  color: rgba(22, 22, 29, 0.62);
  line-height: 1.4;
}

.drop input[type="file"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
}

.file-chip {
  margin-top: 10px;
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 11px;
  color: rgba(22, 22, 29, 0.70);
  background: rgba(0, 89, 184, 0.06);
  border: 1px solid rgba(0, 89, 184, 0.12);
  padding: 8px 10px;
  border-radius: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  color: rgba(22, 22, 29, 0.6);
  margin: 0;
}

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

.digest {
  margin-top: 12px;
  border: 1px solid #e0e0ea;
  border-radius: 14px;
  padding: 10px 14px;
  background: #ffffff;
}

.digest summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.digest-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 12px;
  color: #20212a;
  line-height: 1.5;
}

.md {
  color: rgba(22, 22, 29, 0.86);
  line-height: 1.65;
  font-size: 15px;
}

.md h1,
.md h2,
.md h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

.md h1 {
  font-size: 22px;
  margin: 4px 0 10px;
}

.md h2 {
  font-size: 18px;
  margin: 18px 0 10px;
}

.md h3 {
  font-size: 16px;
  margin: 14px 0 8px;
}

.md p {
  margin: 10px 0;
}

.md ul {
  margin: 10px 0 12px 18px;
  padding: 0;
}

.md li {
  margin: 6px 0;
}

.md code {
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.92em;
  background: rgba(0, 89, 184, 0.06);
  border: 1px solid rgba(0, 89, 184, 0.12);
  padding: 2px 6px;
  border-radius: 8px;
}

.md a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 89, 184, 0.25);
}

.md .code {
  margin: 14px 0;
  background: rgba(17, 19, 28, 0.96);
  color: rgba(246, 247, 251, 0.96);
  border-radius: 16px;
  padding: 14px 16px;
  overflow-x: auto;
  box-shadow: var(--shadow-tight);
}

.md .code code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.card {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(22, 22, 29, 0.12);
  box-shadow: var(--shadow-tight);
}

.card .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(22, 22, 29, 0.60);
}

.card .v {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card .s {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(22, 22, 29, 0.62);
  line-height: 1.35;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.check {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(22, 22, 29, 0.12);
  font-size: 13px;
  color: rgba(22, 22, 29, 0.74);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.check strong {
  color: rgba(22, 22, 29, 0.88);
}

.charts {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.chart {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(22, 22, 29, 0.12);
}

.chart-title {
  font-size: 12px;
  color: rgba(22, 22, 29, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

canvas {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 22, 29, 0.10);
}

.compare {
  margin-top: 10px;
  overflow-x: auto;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 12px;
}

.compare th,
.compare td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(22, 22, 29, 0.12);
  text-align: left;
}

.delta-pos {
  color: rgba(0, 89, 184, 1);
  font-weight: 700;
}

.delta-neg {
  color: var(--warn);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag-label {
  font-size: 12px;
  color: rgba(22, 22, 29, 0.62);
  margin-right: 4px;
}

.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 22, 29, 0.12);
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 11px;
  color: rgba(22, 22, 29, 0.74);
}

.tag input {
  width: 14px;
  height: 14px;
}

.timeline {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.note {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(22, 22, 29, 0.12);
}

.note-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: rgba(22, 22, 29, 0.68);
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 11px;
}

.note-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(0, 89, 184, 0.08);
  border: 1px solid rgba(0, 89, 184, 0.12);
  color: rgba(0, 89, 184, 0.92);
}

.note-body {
  margin-top: 8px;
  color: rgba(22, 22, 29, 0.86);
  line-height: 1.5;
}

.raw {
  margin-top: 12px;
  border: 1px solid rgba(22, 22, 29, 0.10);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.35);
}

.raw summary {
  cursor: pointer;
  font-weight: 700;
  color: rgba(22, 22, 29, 0.78);
}

.file-pill {
  background: #eef5ff;
  color: #15468f;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: "IBM Plex Mono", "Menlo", monospace;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .page {
    max-width: 100%;
    padding: 20px 14px 64px;
    gap: 16px;
  }

  .panel,
  .hero {
    border-radius: 18px;
    padding: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .mark {
    width: 120px;
    max-width: 34vw;
  }

  .hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 7vw, 36px);
  }

  .subtitle {
    font-size: 14px;
  }

  .panel h2 {
    font-size: 18px;
  }

  .actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  button,
  .primary,
  .ghost,
  input[type="date"],
  input[type="time"],
  input[type="text"],
  input[type="password"],
  textarea,
  select {
    min-height: 44px;
  }

  .topnav {
    top: 6px;
    width: 100%;
    justify-content: center;
  }

  .topnav-link {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }

  .hero-card {
    width: 100%;
    min-width: 0;
  }

  .grid-2,
  .drop-grid,
  .advanced-grid,
  .cards,
  .checklist,
  .charts {
    grid-template-columns: 1fr;
  }

  .mini-row {
    grid-template-columns: 1fr;
  }

  .panel-header {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 11px;
  }

  .site-footer {
    padding-bottom: 10px;
  }
}
