:root {
  --black: #020202;
  --near-black: #050505;
  --surface: rgb(10 10 10 / 0.7);
  --surface-2: rgb(20 20 20 / 0.8);
  --surface-3: rgb(30 30 30 / 0.9);
  --border: rgb(255 255 255 / 0.08);
  --border-2: rgb(255 255 255 / 0.15);
  --muted: #4a4a4a;
  --subtle: #888;
  --body: #b0b0b0;
  --bright: #fff;
  --white: #fff;

  /* Brand - Neon Core */
  --green: #00ffa3;
  --green-glow: rgb(0 255 163 / 0.4);
  --green-dim: rgb(0 255 163 / 0.05);
  --red: #ff3e3e;
  --red-glow: rgb(255 62 62 / 0.4);
  --amber: #fa0;
  --blue: #00d1ff;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
  --glass: blur(12px);
  --card-shadow: 0 20px 40px rgb(0 0 0 / 0.4);
}

/* ── ADVANCED BACKGROUND ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgb(0 255 163 / 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgb(0 209 255 / 0.03) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgb(255 255 255 / 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* ── CUSTOM CURSOR LENS ── */
.tl-cursor-lens {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  box-shadow: 0 0 15px var(--green-glow);
  transform: translate(-50%, -50%);
  display: none;
  transition: 
    width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
    height 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
    opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

@media (pointer: fine) {
  .tl-cursor-lens {
    display: block;
  }
}

/* ── STUNNING VISUALS ── */
.tl-energy-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.tl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: tl-orb-float 20s infinite alternate;
}

.tl-orb-1 {
  width: 40vw;
  height: 40vw;
  background: var(--green);
  top: -10%;
  left: -10%;
}

.tl-orb-2 {
  width: 50vw;
  height: 50vw;
  background: var(--blue);
  bottom: -15%;
  right: -10%;
  animation-delay: -5s;
}

.tl-orb-3 {
  width: 30vw;
  height: 30vw;
  background: var(--red);
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes tl-orb-float {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(5vw, 5vh) rotate(120deg) scale(1.1); }
  66% { transform: translate(-5vw, 10vh) rotate(240deg) scale(0.9); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Glass Card Premium Borders */
.tl-glass-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.tl-glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.1), transparent, rgb(255 255 255 / 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── PROGRESS ── */
#tl-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--green);
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--green-glow);
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.tl-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5vw 80px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

/* Moving Scanner Effect */
.tl-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 20px var(--green-glow);
  opacity: 0.3;
  animation: tl-scanner 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes tl-scanner {
  0% { top: 0; }
  100% { top: 100%; }
}

.tl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.tl-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tl-hero-bg-num {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: clamp(180px, 28vw, 420px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgb(0 232 122 / 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.tl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.tl-eyebrow-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: tl-pulse 2s infinite;
}

.tl-hero h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgb(255 255 255 / 0.1);
}

.tl-hero h1 .tl-accent {
  color: var(--green);
}

.tl-hero h1 .tl-dim {
  color: var(--muted);
}

.tl-hero-deck {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--subtle);
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.tl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.tl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
}

@media (width <= 480px) {
  .tl-btn-primary {
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    width: 100%;
  }
}

.tl-btn-primary:hover {
  background: #0f8;
  box-shadow: 0 0 24px var(--green-glow);
}

.tl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border-2);
  color: var(--body);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition:
    border-color 0.18s,
    color 0.18s;
  white-space: nowrap;
}

@media (width <= 480px) {
  .tl-btn-ghost {
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    width: 100%;
  }
}

.tl-btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.tl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.tl-meta-item {
  display: flex;
  flex-direction: column;
}

.tl-meta-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.tl-meta-val.g {
  color: var(--green);
}

.tl-meta-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── INSTALL STRIP ── */
.tl-install-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 5vw;
}

.tl-install-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tl-install-cmd {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tl-install-cmd .prompt {
  color: var(--muted);
}

.tl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tl-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid;
}

.tl-badge-green {
  border-color: rgb(0 232 122 / 0.3);
  color: var(--green);
  background: var(--green-dim);
}

.tl-badge-gray {
  border-color: var(--border-2);
  color: var(--subtle);
  background: var(--surface-2);
}

/* ══════════════════════════════════
   SECTIONS — SHARED
══════════════════════════════════ */
.tl-section {
  padding: 7rem 5vw;
  position: relative;
  z-index: 10;
  overflow: visible;
}

@media (width <= 768px) {
  .tl-section {
    padding: 4rem 5vw;
  }
}

.tl-section-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.tl-section-sm {
  padding: 5rem 5vw;
}

.tl-section-dark {
  background: var(--near-black);
}

.tl-section-surface {
  background: var(--surface);
}

.tl-section-alt {
  background: var(--surface-2);
}

.tl-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tl-label::before {
  content: "//";
  color: var(--muted);
}

h2.tl-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1rem;
}

h2.tl-title .tl-g {
  color: var(--green);
}

h2.tl-title .tl-d {
  color: var(--muted);
}

.tl-lead {
  font-size: 1.05rem;
  color: var(--subtle);
  max-width: 620px;
  margin-bottom: 4rem;
  font-weight: 300;
  line-height: 1.8;
}

.tl-divider {
  height: 1px;
  background: var(--border);
  max-width: 1400px;
  margin: 0 auto;
}

/* Ensure sections have enough space and visibility */
.rv.d1 {
  transition-delay: 0.1s;
}

.rv.d2 {
  transition-delay: 0.2s;
}

.rv.d3 {
  transition-delay: 0.3s;
}

.rv.d4 {
  transition-delay: 0.4s;
}

.tl-comp-card,
.tl-mod,
.tl-summary-card,
.tl-terminal,
.tl-crime,
.tl-blocker {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ── REVEAL ── */

/* ══════════════════════════════════
   PROBLEM — THE THREE CRIMES
══════════════════════════════════ */
.tl-crimes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4rem;
}

@media (width <= 760px) {
  .tl-crimes {
    grid-template-columns: 1fr;
  }
}

.tl-crime {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

@media (width <= 480px) {
  .tl-crime {
    padding: 1.5rem 1.25rem;
  }
}

.tl-crime:last-child {
  border-right: none;
}

.tl-crime::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.tl-crime.c1::before {
  background: var(--red);
}

.tl-crime.c2::before {
  background: var(--amber);
}

.tl-crime.c3::before {
  background: var(--blue);
}

.tl-crime:hover {
  background: rgb(255 255 255 / 0.02);
}

.tl-crime-n {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.c1 .tl-crime-n {
  color: rgb(255 68 68 / 0.12);
}

.c2 .tl-crime-n {
  color: rgb(255 179 64 / 0.12);
}

.c3 .tl-crime-n {
  color: rgb(77 159 255 / 0.12);
}

.tl-crime-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.c1 .tl-crime-tag {
  color: var(--red);
}

.c2 .tl-crime-tag {
  color: var(--amber);
}

.c3 .tl-crime-tag {
  color: var(--blue);
}

.tl-crime-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.tl-crime-desc {
  font-size: 0.88rem;
  color: var(--subtle);
  line-height: 1.75;
}

/* ── PROBLEM QUOTE ── */
.tl-manifesto {
  border-left: 3px solid var(--green);
  padding: 1.5rem 2rem;
  margin-bottom: 4rem;
  background: rgb(0 232 122 / 0.04);
  border-radius: 0 6px 6px 0;
}

.tl-manifesto p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--bright);
  line-height: 1.8;
  font-style: italic;
}

.tl-manifesto p strong {
  font-style: normal;
  color: var(--green);
  font-weight: 600;
}

/* ══════════════════════════════════
   TRUST SCORE ENGINE
══════════════════════════════════ */
.tl-score-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (width <= 900px) {
  .tl-score-showcase {
    grid-template-columns: 1fr;
  }
}

/* Score Meter */
.tl-score-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.tl-score-meter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-dim), transparent 60%);
  pointer-events: none;
}

@media (width <= 480px) {
  .tl-score-meter {
    padding: 1.5rem 1.25rem;
  }
}

.tl-meter-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tl-score-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tl-score-num {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 700;
  color: var(--green);
  line-height: 0.8;
  filter: drop-shadow(0 0 20px var(--green-glow));
}

.tl-score-denom {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 5vw, 2rem);
  color: var(--muted);
}

.tl-score-grade {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.5rem;
}

/* Grade bar */
.tl-grade-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  gap: 2px;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.tl-gb-seg {
  height: 100%;
  border-radius: 2px;
  flex: 1;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.tl-gb-seg.active {
  opacity: 1;
}

.tl-gb-a {
  background: var(--green);
}

.tl-gb-b {
  background: #a8ff78;
}

.tl-gb-c {
  background: var(--amber);
}

.tl-gb-d {
  background: var(--red);
}

/* Score breakdown */
.tl-score-breakdown {
  width: 100%;
}

.tl-sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.tl-sb-row:last-child {
  border-bottom: none;
}

.tl-sb-key {
  color: var(--subtle);
}

.tl-sb-val {
  color: var(--bright);
  font-weight: 700;
}

.tl-sb-val.pen {
  color: var(--red);
}

.tl-sb-val.final {
  color: var(--green);
  font-size: 0.9rem;
}

/* Weights panel */
.tl-weights-panel {
  margin-bottom: 2rem;
}

.tl-weights-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1.5rem;
}

.tl-weight-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tl-wrow {
  display: grid;
  grid-template-columns: 130px 1fr 45px;
  align-items: center;
  gap: 1rem;
}

@media (width <= 480px) {
  .tl-wrow {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tl-wrow-pct {
    text-align: left;
    font-size: 0.7rem;
    color: var(--green);
  }

  .tl-wrow-track {
    height: 12px;
  }
}

.tl-wrow-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bright);
}

.tl-wrow-track {
  height: 20px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}

.tl-wrow-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.4rem;
}

.tl-wrow-fill-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgb(0 0 0 / 0.8);
  font-weight: 700;
}

.tl-wrow-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.wf-cal {
  background: linear-gradient(90deg, var(--green), #a8ff78);
}

.wf-fail {
  background: linear-gradient(90deg, var(--amber), #ffd580);
}

.wf-bias {
  background: linear-gradient(90deg, var(--blue), #80bfff);
}

.wf-rep {
  background: linear-gradient(90deg, var(--red), #f88);
}

/* Penalties */
.tl-penalties {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.tl-pen-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.tl-pen-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tl-pen-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tl-pen-name {
  color: var(--body);
}

.tl-pen-val {
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 700;
}

.tl-pen-trig {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  width: 100%;
}

/* ══════════════════════════════════
   PIPELINE FLOW
══════════════════════════════════ */
.tl-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 3rem;
}

@media (width <= 760px) {
  .tl-pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
  }
}

@media (width <= 480px) {
  .tl-pipeline {
    grid-template-columns: 1fr;
  }
}

.tl-pipe-step {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  background: var(--surface);
  transition:
    background 0.18s,
    border-color 0.18s;
  box-sizing: border-box;
}

.tl-pipe-step:last-child {
  border-right: 1px solid var(--border);
}

.tl-pipe-step:hover {
  background: var(--surface-2);
  border-color: var(--green);
}

.tl-pipe-step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 0.9rem;
  z-index: 2;
  background: var(--surface);
  padding: 2px 0;
}

.tl-pipe-step:last-child::after {
  display: none;
}

@media (width <= 760px) {
  .tl-pipe-step::after {
    display: none;
  }

  .tl-pipe-step {
    border-right: 1px solid var(--border);
  }
}

.tl-ps-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tl-ps-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.tl-ps-desc {
  font-size: 0.75rem;
  color: var(--subtle);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ══════════════════════════════════
   MODULES GRID
══════════════════════════════════ */
.tl-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (width <= 700px) {
  .tl-modules {
    grid-template-columns: 1fr;
  }
}

.tl-mod {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  background: var(--surface);
  backdrop-filter: var(--glass);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (width <= 480px) {
  .tl-mod {
    padding: 1.25rem;
  }
}

.tl-mod:hover {
  border-color: var(--green);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.5), 0 0 20px var(--green-dim);
}

.tl-mod::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.2s;
}

.tl-mod:hover::before {
  opacity: 1;
}

.tl-mod.m-cal::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.tl-mod.m-fail::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.tl-mod.m-bias::before {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.tl-mod.m-rep::before {
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.tl-mod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tl-mod-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: 1px solid;
}

.m-cal .tl-mod-tag {
  color: var(--green);
  border-color: rgb(0 232 122 / 0.3);
  background: var(--green-dim);
}

.m-fail .tl-mod-tag {
  color: var(--red);
  border-color: rgb(255 68 68 / 0.3);
  background: var(--red-dim);
}

.m-bias .tl-mod-tag {
  color: var(--blue);
  border-color: rgb(77 159 255 / 0.3);
  background: var(--blue-dim);
}

.m-rep .tl-mod-tag {
  color: var(--amber);
  border-color: rgb(255 179 64 / 0.3);
  background: var(--amber-dim);
}

.tl-mod-weight {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.tl-mod-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.tl-mod-desc {
  font-size: 0.85rem;
  color: var(--subtle);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tl-mod-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-mod-metric {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ══════════════════════════════════
   CODE TERMINAL
══════════════════════════════════ */
.tl-terminal {
  background: rgb(5 5 5 / 0.8);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.tl-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(255 255 255 / 0.02) 1px, transparent 1px);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.1;
}

.tl-term-bar {
  background: var(--surface-2);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl-dot.r {
  background: #ff5f57;
}

.tl-dot.y {
  background: #febc2e;
}

.tl-dot.g {
  background: #28c840;
}

.tl-term-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.tl-term-body {
  padding: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tl-term-body code {
  color: var(--body);
  display: block;
  white-space: pre;
}

@media (width <= 480px) {
  .tl-term-body {
    padding: 1.25rem 1rem;
    font-size: 0.75rem;
  }

  .tl-term-body code {
    white-space: pre-wrap;
    word-break: break-all;
  }
}

.tk {
  color: #ff79c6;
} /* keyword */
.tf {
  color: #50fa7b;
} /* function */
.ts {
  color: #f1fa8c;
} /* string */
.tc {
  color: #6272a4;
  font-style: italic;
} /* comment */
.tn {
  color: #bd93f9;
} /* number */
.to {
  color: var(--green);
} /* output */
.tp {
  color: var(--muted);
} /* prompt */

/* Output block */
.tl-term-output {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

@media (width <= 480px) {
  .tl-term-output {
    padding: 1rem;
    font-size: 0.72rem;
  }
}

.tl-out-line {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (width <= 600px) {
  .tl-out-line {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.tl-out-key {
  color: var(--muted);
  min-width: 140px;
}

@media (width <= 480px) {
  .tl-out-key {
    min-width: 100%;
    margin-bottom: 0.1rem;
  }
}

.tl-out-val {
  color: var(--bright);
  font-weight: 700;
}

.tl-out-val.g {
  color: var(--green);
}

.tl-out-val.r {
  color: var(--red);
}

.tl-out-val.a {
  color: var(--amber);
}

.tl-out-sep {
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
}

.tl-out-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.tl-out-verdict::before {
  content: "▶";
  font-size: 0.65rem;
}

/* ══════════════════════════════════
   FOR WHO — AUDIENCE
══════════════════════════════════ */
.tl-audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}

@media (width <= 640px) {
  .tl-audience {
    grid-template-columns: 1fr;
  }
}

.tl-aud-card {
  background: var(--surface);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}

.tl-aud-card:hover {
  background: var(--surface-2);
}

.tl-aud-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.tl-aud-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.tl-aud-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.tl-aud-desc {
  font-size: 0.88rem;
  color: var(--subtle);
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════
   PRINCIPLES — TICKER STYLE
══════════════════════════════════ */
.tl-principles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.tl-principle:first-child {
  border-top: 1px solid var(--border);
}

.tl-principle:hover {
  background: rgb(0 232 122 / 0.02);
}

.tl-pr-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border-2);
  padding-top: 0.2rem;
}

.tl-pr-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.tl-pr-desc {
  font-size: 0.88rem;
  color: var(--subtle);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.tl-pr-note {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  opacity: 0.7;
}

/* ══════════════════════════════════
   ARCHITECTURE LAYERS
══════════════════════════════════ */
.tl-arch-layers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 3rem;
}

.tl-arch-layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

@media (width <= 700px) {
  .tl-arch-layer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.tl-arch-layer:first-child {
  border-radius: 8px 8px 0 0;
}

.tl-arch-layer:not(:first-child, :last-child) {
  border-top: none;
}

.tl-arch-layer:last-child {
  border-radius: 0 0 8px 8px;
  border-top: none;
}

.tl-arch-layer:hover {
  border-color: var(--green);
  z-index: 1;
  position: relative;
}

.tl-arch-lname {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.tl-arch-lfile {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 600;
}

.tl-arch-desc {
  font-size: 0.85rem;
  color: var(--subtle);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.tl-arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.tl-at {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ══════════════════════════════════
   STATS ROW
══════════════════════════════════ */
.tl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tl-stat {
  background: var(--surface);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.18s;
}

.tl-stat:hover {
  background: var(--surface-2);
}

.tl-stat-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.tl-stat-val.g {
  color: var(--green);
}

.tl-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════
   CONTRIBUTORS
══════════════════════════════════ */
.tl-contributors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tl-contrib {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.tl-contrib:hover {
  transform: translateY(-4px);
}

.tl-contrib img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.tl-contrib:hover img {
  border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
}

.tl-contrib-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--subtle);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════
   BLOCKER BOX
══════════════════════════════════ */
.tl-blocker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (width <= 620px) {
  .tl-blocker-grid {
    grid-template-columns: 1fr;
  }
}

.tl-blocker {
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  border: 1px solid rgb(255 68 68 / 0.2);
  background: rgb(255 68 68 / 0.04);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tl-blocker-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tl-blocker-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.tl-blocker-desc {
  font-size: 0.8rem;
  color: var(--subtle);
  line-height: 1.6;
}

/* ══════════════════════════════════
   COMPARE TABLE
══════════════════════════════════ */
.tl-compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.tl-compare-table thead {
  background: var(--surface-2);
}

.tl-compare-table th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tl-compare-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  background: var(--surface);
}

.tl-compare-table tr:last-child td {
  border-bottom: none;
}

.tl-compare-table tr:hover td {
  background: var(--surface-2);
}

.tl-tc-feature {
  font-weight: 600;
  color: var(--white);
}

.tl-tc-no {
  color: var(--muted);
}

.tl-tc-yes {
  color: var(--green);
  font-weight: 600;
}

.tl-tc-hl {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ══════════════════════════════════
   GRADE VISUALIZATION
══════════════════════════════════ */
.tl-grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

@media (width <= 600px) {
  .tl-grades {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 400px) {
  .tl-grades {
    grid-template-columns: 1fr;
  }
}

.tl-grade {
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tl-grade-letter {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.tl-grade.ga .tl-grade-letter {
  color: var(--green);
}

.tl-grade.gb .tl-grade-letter {
  color: #a8ff78;
}

.tl-grade.gc .tl-grade-letter {
  color: var(--amber);
}

.tl-grade.gd .tl-grade-letter {
  color: var(--red);
}

.tl-grade-range {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.tl-grade-verdict {
  font-size: 0.78rem;
  color: var(--subtle);
}

/* ══════════════════════════════════
   CITATION BOX
══════════════════════════════════ */
.tl-cite-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--subtle);
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

@media (width <= 480px) {
  .tl-cite-box {
    padding: 1.25rem;
    font-size: 0.72rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
  }
}

.tl-cite-box .ck {
  color: var(--blue);
}

.tl-cite-box .cv {
  color: var(--amber);
}

.tl-cite-box .cs {
  color: var(--green);
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes tl-fadeup {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tl-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes tl-count {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tl-scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(400%);
  }
}

/* ══════════════════════════════════
   UTILITIES
══════════════════════════════════ */
.tl-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (width <= 1024px) {
  .tl-two-col {
    gap: 2rem;
  }
}

@media (width <= 900px) {
  .tl-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.tl-spacer {
  margin-bottom: 3rem;
}

.tl-spacer-sm {
  margin-bottom: 1.5rem;
}

.tl-inline-code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  color: var(--green);
}

/* Vertical Pipeline override */
.tl-pipeline-v {
  grid-template-columns: 1fr !important;
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.tl-pipeline-v .tl-pipe-step {
  display: grid !important;
  grid-template-columns: 40px 1fr !important;
  gap: 1rem;
  align-items: start;
  border: none !important;
  text-align: left !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 0 !important;
}

.tl-pipe-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--green);
  font-weight: 700;
  line-height: 1;
}

@media (width <= 480px) {
  .tl-pipe-num {
    font-size: 1rem;
  }
}

.tl-pipeline-v .tl-pipe-step:not(:first-child) {
  border-top: 1px solid var(--border) !important;
}

.tl-demo-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.tl-section-h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.tl-section-p {
  font-size: 0.88rem;
  color: var(--subtle);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  max-width: 100%;
  overflow-wrap: break-word;
}

.tl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (width <= 480px) {
  .tl-section-h3 {
    font-size: 1.15rem;
  }

  .tl-section-p {
    font-size: 0.82rem;
  }

  .tl-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .tl-demo-card {
    padding: 1rem 0.75rem;
    margin-top: 1rem;
  }

  .tl-pipeline-v .tl-pipe-step {
    grid-template-columns: 30px 1fr !important;
    padding: 1rem !important;
  }
}

/* ══════════════════════════════════
   BENCHMARKING & COMPARISON
══════════════════════════════════ */
.tl-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (width <= 900px) {
  .tl-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.tl-comp-card {
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.tl-comp-card:hover {
  border-color: var(--green);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.6);
}

.tl-comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tl-comp-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.tl-comp-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
}

.tl-comp-status.blocked {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgb(255 68 68 / 0.2);
}

.tl-comp-metrics {
  margin-bottom: 1.5rem;
}

.tl-cm-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.tl-cm-row:last-child {
  border-bottom: none;
}

.tl-cm-val {
  font-weight: 700;
  color: var(--bright);
}

.tl-cm-val.r {
  color: var(--red);
}

.tl-cm-val.a {
  color: var(--amber);
}

.tl-label-mini {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.tl-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-risk-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tl-risk-tag.r {
  color: var(--red);
  border-color: rgb(255 68 68 / 0.1);
}

.tl-risk-tag.a {
  color: var(--amber);
  border-color: rgb(255 179 64 / 0.1);
}

.tl-verdict-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 2rem;
  border-radius: 8px;
}

.tl-verdict-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.tl-v-icon {
  color: var(--red);
}

.tl-v-desc {
  font-size: 0.9rem;
  color: var(--subtle);
  line-height: 1.7;
}

/* ── FAILURE DIVE ── */
.tl-fail-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.tl-fs-item {
  display: flex;
  flex-direction: column;
}

.tl-fs-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.tl-fs-val.r {
  color: var(--red);
}

.tl-fs-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.tl-red { color: var(--red); }

/* ── SUMMARY SHOWCASE ── */
.tl-summary-card {
  background: rgb(255 255 255 / 0.95);
  border-radius: 12px;
  padding: 3rem;
  color: #111;
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.8);
  border: 1px solid rgb(255 255 255 / 0.2);
}

.tl-sc-header {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.tl-sc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.tl-sc-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.tl-sc-subtitle.r { color: #f44; }

.tl-sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (width <= 768px) {
  .tl-sc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 480px) {
  .tl-sc-grid {
    grid-template-columns: 1fr;
  }
}

.tl-sc-plot {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-sc-p-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 1rem;
}

.tl-sc-p-gauge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f5f5f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-gauge-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#f44 calc(var(--p) * 1%), transparent 0);
  -webkit-mask: radial-gradient(transparent 35px, #000 36px);
  mask: radial-gradient(transparent 35px, #000 36px);
}

.tl-gauge-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f44;
}

.tl-sc-p-viz {
  width: 100%;
  height: 100px;
  background: #f9f9f9;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.tl-viz-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: #ddd;
  top: 50%;
  transform: rotate(-35deg);
}

.tl-viz-dots span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #007bff;
  border-radius: 50%;
}

.tl-gap-bar {
  position: absolute;
  bottom: 0;
  width: 15%;
  border-radius: 2px 2px 0 0;
}

.tl-gap-bar.red {
  background: #f44;
  opacity: 0.6;
}

.tl-gap-bar.green {
  background: #28a745;
  opacity: 0.6;
}

.tl-err-bar {
  height: 12px;
  width: 100%;
  margin: 4px 0;
  border-radius: 20px;
}

.tl-dist-pie {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#007bff 66%, #ffa500 0);
}

.tl-sub-row {
  height: 6px;
  width: 100%;
  margin: 4px 0;
  border-radius: 3px;
}

/* Summary Plot Specifics */
.tl-sc-p-viz.cal::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-left: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

.tl-sc-p-viz.cal .tl-viz-line {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  z-index: 2;
}

.tl-sc-p-viz.gap::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #eee;
  bottom: 0;
}

.tl-sc-p-viz.dist::after {
  content: "66%";
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  position: absolute;
}

.tl-sc-p-placeholder {
  width: 100%;
  height: 100px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #aaa;
}
