/* Report page — same ops console language as the demo */
:root {
  --bg-0: #070b10;
  --bg-1: #0c1219;
  --bg-2: #121a24;
  --bg-3: #182230;
  --line: rgba(94, 234, 212, 0.14);
  --line-strong: rgba(94, 234, 212, 0.35);
  --text: #e8eef4;
  --muted: #7a8a9a;
  --mint: #5eead4;
  --teal: #0ea5a4;
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --lime: #a3e635;
  --rose: #fb7185;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --pad: clamp(1rem, 3vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 8% -8%, #0f2a2a 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 0%, #1a1520 0%, transparent 50%),
    var(--bg-0);
  line-height: 1.5;
  padding: 0 var(--pad) 2.5rem;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 10%, black 15%, transparent 70%);
}

body > *:not(.noise):not(.grid-bg) {
  position: relative;
  z-index: 1;
}

/* Top */
.rpt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(7, 11, 16, 0.88);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, var(--mint), transparent 60%),
    linear-gradient(225deg, var(--amber), transparent 55%),
    var(--bg-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 24px rgba(14, 165, 164, 0.35);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.brand h1 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.rpt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.rpt-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.rpt-nav a:hover {
  color: var(--text);
  background: var(--bg-2);
}

.nav-cta {
  color: var(--mint) !important;
  border: 1px solid var(--line-strong);
  background: rgba(14, 165, 164, 0.12);
  padding: 0.35rem 0.7rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: rgba(14, 165, 164, 0.22) !important;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
  align-items: center;
}

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

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  max-width: 46rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.btn:hover {
  border-color: var(--line-strong);
  background: #1e2b3c;
}

.btn.primary {
  background: rgba(14, 165, 164, 0.28);
  border-color: rgba(14, 165, 164, 0.55);
  color: var(--mint);
}

.btn.primary:hover {
  background: rgba(14, 165, 164, 0.4);
}

.btn.lg {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.stat {
  background: linear-gradient(165deg, rgba(24, 34, 48, 0.95), rgba(12, 18, 25, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease backwards;
}

.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.12s; }
.stat:nth-child(3) { animation-delay: 0.19s; }
.stat:nth-child(4) { animation-delay: 0.26s; }

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

.stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--mint);
  line-height: 1.1;
}

.stat label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
  display: block;
}

/* Blocks */
.block {
  background: linear-gradient(165deg, rgba(24, 34, 48, 0.92), rgba(12, 18, 25, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.block-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-1);
  letter-spacing: 0.06em;
}

.cards-3,
.cards-2 {
  display: grid;
  gap: 0.75rem;
}

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

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 800px) {
  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--mint);
}

.card p,
.card ul,
.module-body p,
.module-body ul {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.card ul,
.module-body ul {
  padding-left: 1.1rem;
  margin-top: 0.55rem;
}

.card li,
.module-body li {
  margin-bottom: 0.25rem;
}

/* Arch */
.arch-board {
  overflow-x: auto;
}

.arch-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.al {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

.ad {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.layer {
  animation: rise 0.55s ease backwards;
}

.layer:nth-child(1) { animation-delay: 0.05s; }
.layer:nth-child(2) { animation-delay: 0.12s; }
.layer:nth-child(3) { animation-delay: 0.19s; }
.layer:nth-child(4) { animation-delay: 0.26s; }
.layer:nth-child(5) { animation-delay: 0.33s; }

/* Modules */
.module {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.module:first-of-type {
  border-top: none;
  padding-top: 0;
}

.module-index {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--c, var(--mint));
  background: color-mix(in srgb, var(--c, var(--mint)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--mint)) 40%, transparent);
}

.module-body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.module-body code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.2rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.08);
  color: var(--lime);
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-1);
}

td:first-child {
  color: var(--mint);
  font-weight: 600;
  white-space: nowrap;
}

td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

/* Steps rail */
.steps-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.35rem;
}

@media (max-width: 1000px) {
  .steps-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps-rail li {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.45rem;
  transition: border-color 0.2s, transform 0.2s;
}

.steps-rail li:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}

.steps-rail i {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.steps-rail span {
  font-size: 0.72rem;
  font-weight: 600;
}

.mono-note {
  margin: 0.9rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  word-break: break-all;
  padding: 0.55rem 0.7rem;
  background: rgba(56, 189, 248, 0.06);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 8px;
}

/* CTA */
.cta-banner {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 164, 0.4);
  background:
    linear-gradient(120deg, rgba(14, 165, 164, 0.15), transparent 55%),
    var(--bg-1);
}

.cta-banner h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cta-banner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.rpt-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.rpt-foot a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
}

.rpt-foot a:hover {
  text-decoration: underline;
}
