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

:root {
  --td-bg-main: #fff;
  --td-bg-soft: #fff;
  --td-bg-dark: #000;
  --td-surface: #fff;
  --td-surface-strong: #fff;
  --td-text: #111111;
  --td-text-soft: #374151;
  --td-text-muted: #6b7280;
  --td-border-soft: rgba(0, 0, 0, 0.05);
  --td-border-strong: rgba(0, 0, 0, 0.1);
  --td-shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --td-shadow-strong: 0 16px 34px rgba(7, 10, 16, 0.18);
  --td-accent: #d2f646;
  --td-accent-dark: #bfe635;
  --td-accent-soft: rgba(210, 246, 70, 0.2);
  --td-danger-soft: #fff;
  --td-radius-pill: 999px;
  --td-radius-xl: 12px;
  --td-radius-lg: 8px;
  --td-radius-md: 6px;
  --td-radius-sm: 4px;
  --td-nav-height: 56px;
  --td-font-main: "Manrope", system-ui, -apple-system, sans-serif;
  --td-font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
}

.td-page {
  position: relative;
  min-height: 100vh;
  color: var(--td-text);
  font-family: var(--td-font-main);
  background: var(--td-bg-main);
}

.td-page::before {
  display: none;
}

.td-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.td-nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin-bottom: 16px;
}

.td-nav-inner {
  pointer-events: auto;
  min-height: var(--td-nav-height);
  padding: 0 16px;
  border-radius: var(--td-radius-pill);
  border: 1px solid var(--td-border-soft);
  background: var(--td-surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--td-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.td-nav-inner:hover,
.td-nav-inner:focus-within {
  border-color: var(--td-border-strong);
}

.td-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  grid-area: brand;
  min-width: 0;
  white-space: nowrap;
  text-decoration: none;
  color: var(--td-text);
}

.td-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: var(--td-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.td-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.td-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-area: links;
  gap: 4px;
  flex: 1;
}

.td-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 16px;
  border-radius: var(--td-radius-pill);
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.td-nav-link:hover,
.td-nav-link:focus {
  color: #fff;
  background: #000;
}

.td-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-area: cta;
  gap: 9px;
  min-height: 32px;
  padding: 8px 16px 8px 20px;
  border-radius: var(--td-radius-pill);
  border: 0;
  text-decoration: none;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 15px;
  text-transform: uppercase;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.td-nav-cta-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-size: 11px;
  line-height: 1;
}

.td-nav-cta:hover,
.td-nav-cta:focus {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.td-nav-cta:hover .td-nav-cta-icon,
.td-nav-cta:focus .td-nav-cta-icon {
  background: #000;
  color: #fff;
}

.td-section {
  margin-top: 24px;
}

.td-section--tight {
  margin-top: 16px;
}

.td-hero-stage {
  position: relative;
  overflow: hidden;
  min-height: max-content;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.td-hero-stage::before {
  display: none;
}

.td-hero-stage::after {
  display: none;
}

.td-hero-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(#000 1px, transparent 1px),
    linear-gradient(90deg, #000 1px, transparent 1px);
  background-size: 40px 40px;
}

.td-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 16px;
  border-radius: var(--td-radius-pill);
  border: 1px solid var(--td-border-soft);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.td-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #000;
  box-shadow: none;
}

.td-code-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--td-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.td-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  gap: 48px;
  align-items: start;
}

.td-hero-title {
  margin: 24px 0 0;
  font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.td-hero-highlight {
  position: relative;
  display: inline-block;
}

.td-hero-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  border-radius: 999px;
  background: #000;
  z-index: -1;
}

.td-hero-subtitle {
  margin: 0 0 24px;
  max-width: 34ch;
  color: #111827;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.55;
  font-weight: 500;
}

.td-hero-subcopy {
  margin-top: 0;
  max-width: 40ch;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
}

.td-accent-underline {
  border-bottom: 2px solid rgba(210, 246, 70, 0.9);
}

.td-cta-cluster {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.td-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  padding: 16px 32px;
  border-radius: var(--td-radius-xl);
  border: 1px solid #000;
  text-decoration: none;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.td-cta-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.td-cta--primary {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.td-cta--primary .td-cta-arrow {
  background: #fff;
  color: #000;
}

.td-cta--primary:hover,
.td-cta--primary:focus {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}

.td-cta--primary:hover .td-cta-arrow,
.td-cta--primary:focus .td-cta-arrow {
  background: #000;
  color: #fff;
}

.td-cta--ghost {
  background: transparent;
  border-color: var(--td-border-strong);
  color: #111827;
}

.td-cta--ghost .td-cta-arrow {
  background: #fff;
  border: 1px solid #000;
}

.td-cta--ghost:hover,
.td-cta--ghost:focus {
  border-color: #000;
  background: #fff;
}

.td-cta--soft {
  border-color: var(--td-border-soft);
  background: #ffffff;
  color: #111827;
}

.td-cta--soft .td-cta-arrow {
  background: #fff;
  border: 1px solid #000;
}

.td-cta--soft:hover,
.td-cta--soft:focus {
  background: #fff;
  border-color: #000;
}

.td-pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--td-radius-pill);
  border: 1px solid var(--td-border-soft);
  background: #fff;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
}

.td-panel {
  border: 1px solid var(--td-border-soft);
  border-radius: var(--td-radius-lg);
  background: var(--td-surface-strong);
  box-shadow: var(--td-shadow-soft);
}

.td-layer-card {
  position: relative;
  width: min(1100px, 100%);
  min-height: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 40px 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.td-layer-card:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

.td-layer-card-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--td-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}

.td-layer-card-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.td-layer-card-copy {
  margin: 0;
  max-width: 64ch;
  color: #374151;
  font-size: 17px;
  line-height: 1.625;
  font-weight: 500;
}

.td-panel--dark {
  background: #000;
  border-color: rgba(228, 238, 252, 0.16);
  color: #edf2fc;
  box-shadow: var(--td-shadow-strong);
}

.td-panel--status {
  position: relative;
  width: 100%;
  max-width: 574px;
  justify-self: end;
  border-radius: 24px;
  padding: 8px;
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.td-panel--status::before {
  display: none;
}

.td-status-main {
  border-radius: 18px;
  border: 1px solid #f3f4f6;
  background: #fff;
  overflow: hidden;
}

.td-status-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.td-status-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.td-status-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.td-status-brand-text strong {
  display: block;
  font-size: 12px;
  line-height: 1.1;
}

.td-status-brand-text small {
  display: block;
  margin-top: 2px;
  color: #8b95a8;
  font-size: 10px;
}

.td-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--td-radius-pill);
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: var(--td-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.td-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}

.td-status-stream {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.td-status-row {
  padding: 10px;
  border-radius: var(--td-radius-md);
  border: 1px solid #e7ebf2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.td-status-row--warn {
  border-color: #e7ebf2;
  background: #fff;
}

.td-status-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.td-status-row-head .td-code-label {
  color: #8791a2;
  font-size: 9px;
}

.td-status-row--warn .td-status-row-head .td-code-label {
  color: #d97706;
}

.td-status-time {
  color: #a7b0bf;
  font-family: var(--td-font-mono);
  font-size: 9px;
}

.td-status-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.td-status-row small {
  display: block;
  margin-top: 2px;
  color: #738095;
  font-size: 11px;
}

.td-status-metrics {
  padding: 12px 16px 14px;
  border-top: 1px solid #e7ebf2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.td-status-metrics strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.td-status-metrics span {
  color: #8a95a7;
  font-family: var(--td-font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.td-floating-toast {
  position: absolute;
  right: -6px;
  bottom: -14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--td-radius-xl);
  border: 1px solid rgba(219, 230, 245, 0.16);
  background: #000;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.td-floating-toast-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 14px;
}

.td-floating-toast-body {
  display: grid;
  gap: 2px;
}

.td-floating-toast-body strong {
  font-family: var(--td-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #9ca8ba;
}

.td-floating-toast-body span {
  font-size: 22px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 700;
}

@keyframes td-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.td-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--td-border-soft);
  background: #fff;
  padding: 32px 0;
}

.td-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0;
  animation: td-marquee-scroll 52s linear infinite;
  will-change: transform;
}

.td-marquee-item {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0 16px;
  font-family: var(--td-font-main);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #d1d5db;
}

.td-marquee-item::after {
  content: "•";
  margin-left: 16px;
  color: #c7ccd5;
}

.td-section-head {
  margin-bottom: 12px;
}

.td-section-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.td-section-subtitle {
  margin: 10px 0 0;
  max-width: 74ch;
  color: var(--td-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.td-bg-swatch {
  position: relative;
  min-height: 168px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: #fff;
}

.td-bg-swatch-code {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: #6b7280;
  font-family: var(--td-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-bg-swatch-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #111827;
}

.td-bg-swatch--dark .td-bg-swatch-title {
  color: #f4f5f7;
}

.td-bg-swatch--dark .td-bg-swatch-code {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #cfd5df;
}

.td-bg-swatch--bg-main {
  border-width: 0;
  background: #fff;
}

.td-bg-swatch--hero-surface {
  border-width: 0;
  background: #fff;
}

.td-bg-swatch--hero-grid {
  border-width: 0;
  background: #fff;
}

.td-bg-swatch--hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(#000 1px, transparent 1px),
    linear-gradient(90deg, #000 1px, transparent 1px);
  background-size: 40px 40px;
}

.td-bg-swatch--hero-accent {
  border-width: 0;
  background: #fff;
}

.td-bg-swatch--hero-accent::before {
  display: none;
}

.td-bg-swatch--hero-accent::after {
  display: none;
}

.td-bg-swatch--status-shell {
  border-color: #e5e7eb;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.td-bg-swatch--status-inner {
  border-color: #f3f4f6;
  background: #fff;
}

.td-bg-swatch--light-section {
  border-width: 0 0 1px;
  border-radius: 0;
  border-color: #e5e7eb;
  background: #fff;
}

.td-bg-swatch--marquee {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}

.td-bg-swatch--terminal {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.td-bg-swatch--terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 1px, #fff 1px, #fff 2px);
}

.td-bg-swatch--footer {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111;
}

.td-bg-swatch--footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}

.td-problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(870px, 100%);
  margin: 0 auto;
}

.td-problem-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 26px;
  row-gap: 8px;
  border-radius: 12px;
  border-top: 1px solid #000;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  box-shadow: none;
  padding: 48px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.td-problem-card::before,
.td-problem-card::after {
  display: none;
}

.td-problem-card:hover {
  transform: none;
  border-top-color: #000;
  background: #fff;
  box-shadow: none;
}

.td-problem-number {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-self: center;
  font-family: var(--td-font-mono);
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #d1d5db;
}

.td-problem-title {
  grid-column: 2;
  grid-row: 1;
  margin: 2px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: normal;
  font-weight: 700;
}

.td-problem-copy {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 54ch;
  color: #374151;
  font-size: 15px;
  line-height: 1.625;
  font-weight: 500;
}

.td-problem-metric {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin-top: 2px;
  display: inline-flex;
  align-items: end;
  gap: 8px;
  margin-left: 0;
  align-self: center;
}

.td-problem-metric strong {
  font-size: clamp(3rem, 5vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.td-problem-metric span {
  margin-bottom: 8px;
  color: #6b7280;
  font-family: var(--td-font-main);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

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

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

.td-card {
  border: 1px solid var(--td-border-soft);
  border-radius: var(--td-radius-md);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.td-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: var(--td-shadow-soft);
}

.td-card--dark {
  background: #000;
  border-color: rgba(221, 232, 248, 0.2);
  color: #edf2fc;
  box-shadow: var(--td-shadow-strong);
}

.td-card--soft {
  background: #fff;
}

.td-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.td-card-meta {
  font-family: var(--td-font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8a9d;
}

.td-card-title {
  margin: 10px 0 7px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: normal;
  font-weight: 700;
}

.td-card-copy {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.625;
  font-weight: 500;
}

.td-card--dark .td-card-meta,
.td-card--dark .td-card-copy {
  color: rgba(228, 237, 250, 0.78);
}

.td-card-stat {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.td-card-stat-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.td-card-stat-label {
  margin-bottom: 5px;
  color: #7b8699;
  font-family: var(--td-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.td-form {
  border: 1px solid var(--td-border-soft);
  border-radius: var(--td-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--td-shadow-soft);
  padding: 16px;
}

.td-form-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: #647084;
  font-family: var(--td-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-input,
.td-select,
.td-textarea {
  width: 100%;
  border: 1px solid var(--td-border-soft);
  border-radius: var(--td-radius-sm);
  background: rgba(255, 255, 255, 0.95);
  color: #0e1522;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.td-textarea {
  min-height: 84px;
  resize: vertical;
}

.td-input:focus,
.td-select:focus,
.td-textarea:focus {
  border-color: #8a99af;
  box-shadow: 0 0 0 4px rgba(138, 153, 175, 0.24);
}

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

.td-terminal {
  position: relative;
  width: 100%;
  max-width: 568px;
  min-height: 648px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.td-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(0deg, transparent, transparent 1px, #fff 1px, #fff 2px);
}

.td-terminal-main {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.td-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.td-terminal-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.td-terminal-head .td-code-label {
  margin-bottom: 4px;
  color: var(--td-accent);
}

.td-terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.td-terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.td-terminal-dot--red {
  background: #fff;
}

.td-terminal-dot--yellow {
  background: #fff;
}

.td-terminal-dot--green {
  background: #fff;
  box-shadow: none;
}

.td-terminal-form {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 10px;
}

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

.td-terminal-field {
  display: grid;
  gap: 6px;
}

.td-terminal-label {
  margin-left: 2px;
  color: #7e8da5;
  font-family: var(--td-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.td-terminal-input,
.td-terminal-select,
.td-terminal-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  color: #f4f7fd;
  font-family: var(--td-font-mono);
  font-size: 13px;
  padding: 10px 11px;
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.td-terminal-textarea {
  min-height: 72px;
  resize: vertical;
}

.td-terminal-input::placeholder,
.td-terminal-textarea::placeholder {
  color: #64748b;
}

.td-terminal-input:focus,
.td-terminal-select:focus,
.td-terminal-textarea:focus {
  border-color: var(--td-accent);
  background: #000;
}

.td-terminal-submit {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--td-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.td-terminal-submit:hover,
.td-terminal-submit:focus {
  background: #000;
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.td-terminal-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-terminal-meta-item {
  color: #79879e;
  font-family: var(--td-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.td-terminal-meta-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.td-footer {
  margin-top: 26px;
  min-height: 476px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: #f4f5f7;
}

.td-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}

.td-footer-shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 9vw, 96px);
  padding-bottom: clamp(40px, 5vw, 52px);
}

.td-footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(180px, 1fr)) minmax(240px, 1.1fr);
  gap: 24px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.td-footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.td-footer-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: var(--td-accent);
  border: 1px solid rgba(210, 246, 70, 0.2);
  box-shadow: 0 0 10px rgba(210, 246, 70, 0.1);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.td-footer-title {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.td-footer-copy {
  margin: 16px 0 0;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 500;
}

.td-footer-status {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  color: #d1d5db;
  font-family: var(--td-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.td-footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.td-footer-col-title {
  margin: 0 0 14px;
  color: #6b7280;
  font-family: var(--td-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.td-footer-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.td-footer-link-list a,
.td-footer-contact-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease, transform 0.18s ease;
}

.td-footer-link-list a:hover,
.td-footer-link-list a:focus,
.td-footer-contact-link:hover,
.td-footer-contact-link:focus {
  color: #fff;
  transform: translateX(2px);
}

.td-footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.td-footer-contact-phone {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.td-footer-contact-meta {
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}

.td-footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.td-footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.td-footer-legal a {
  color: #6b7280;
  text-decoration: none;
}

.td-footer-legal a:hover,
.td-footer-legal a:focus {
  color: #fff;
}

.td-footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  color: #6b7280;
  font-family: var(--td-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.td-footer-chip-icon {
  color: #fff;
}

@media (max-width: 1180px) {
  .td-nav-links {
    gap: 2px;
  }

  .td-nav-link {
    padding: 8px 10px;
  }
}

@media (max-width: 1080px) {
  .td-hero-grid,
  .td-grid-2,
  .td-grid-3,
  .td-bg-grid,
  .td-problem-grid,
  .td-form-grid-2,
  .td-terminal-grid-2,
  .td-footer-top {
    grid-template-columns: 1fr;
  }

  .td-layer-card {
    min-height: 280px;
    padding: 30px 28px;
  }

  .td-problem-card {
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    row-gap: 10px;
    padding: 28px 0;
  }

  .td-problem-number {
    grid-row: 1 / span 2;
  }

  .td-problem-metric {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }

  .td-floating-toast {
    position: static;
    margin-top: 10px;
    max-width: fit-content;
  }
}

@media (max-width: 860px) {
  .td-shell {
    width: calc(100% - 16px);
  }

  .td-nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "links links";
    align-items: center;
    row-gap: 8px;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 20px;
    gap: 10px;
  }

  .td-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 4px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .td-nav-links::-webkit-scrollbar {
    display: none;
  }

  .td-brand-text {
    font-size: 13px;
  }

  .td-nav-cta {
    min-height: 34px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .td-section {
    margin-top: 22px;
  }

  .td-section-title {
    font-size: clamp(36px, 13vw, 64px);
  }

  .td-hero-title {
    font-size: clamp(50px, 16vw, 84px);
  }

  .td-hero-highlight::after {
    bottom: 4px;
    height: 9px;
  }

  .td-hero-subtitle {
    font-size: 20px;
  }

  .td-footer-shell {
    padding-top: 52px;
    padding-bottom: 28px;
  }

  .td-footer {
    min-height: 0;
  }

  .td-footer-top {
    padding-bottom: 26px;
  }

  .td-footer-title {
    font-size: 26px;
  }
}

@media (max-width: 620px) {
  .td-cta-cluster .td-cta {
    flex: 1 1 calc(50% - 6px);
  }

  .td-hero-subtitle {
    font-size: 18px;
  }

  .td-marquee-item {
    padding: 0 12px;
  }

  .td-status-metrics strong {
    font-size: 24px;
  }

  .td-layer-card {
    min-height: 240px;
    padding: 24px 20px;
  }

  .td-footer-title {
    font-size: 24px;
  }
}

/* Clean background policy: only white/black surfaces. */
.td-page,
.td-shell,
.td-section,
.td-panel,
.td-layer-card,
.td-status-main,
.td-status-head,
.td-status-row,
.td-pill,
.td-eyebrow,
.td-bg-swatch,
.td-bg-swatch--bg-main,
.td-bg-swatch--hero-surface,
.td-bg-swatch--hero-grid,
.td-bg-swatch--hero-accent,
.td-bg-swatch--status-shell,
.td-bg-swatch--status-inner,
.td-bg-swatch--light-section,
.td-bg-swatch--marquee,
.td-form,
.td-input,
.td-select,
.td-textarea,
.td-marquee,
.td-marquee-shell {
  background: #fff !important;
  background-image: none !important;
}

.td-hero-stage,
.td-hero-stage-overlay {
  background: #fff !important;
  background-image: none !important;
}

.td-hero-stage::before,
.td-hero-stage::after,
.td-bg-swatch--hero-accent::before,
.td-bg-swatch--hero-accent::after {
  display: none !important;
}

.td-panel--dark,
.td-terminal,
.td-terminal-main,
.td-footer,
.td-footer::before,
.td-bg-swatch--terminal,
.td-bg-swatch--footer,
.td-footer-chip {
  background: #000 !important;
  background-image: none !important;
}

.td-bg-swatch--terminal::before,
.td-terminal::before {
  background: none !important;
}

.td-bg-swatch--footer::before,
.td-footer::before {
  background-image: none !important;
  background-size: auto !important;
}
