/* =================================================================
   Taldar 2026 — shared design system stylesheet
   Import AFTER style.css so it overrides legacy rules.
   Expects <body class="td2026"> on every page using it.
   ================================================================= */

:root {
  --td-bg-deep: #0A1220;
  --td-bg-panel: #101A2E;
  --td-bg-card:  #0E1828;
  --td-bg-abyss: #070D19;
  --td-fg1: #F4F7FC;
  --td-fg2: #C7D1E3;
  --td-fg3: #8A9AB8;
  --td-muted: #6B7FA3;
  --td-accent1: #1E3A6B;
  --td-accent2: #2A4A7F;
  --td-border: rgba(255,255,255,0.12);
  --td-border-s: rgba(255,255,255,0.08);
}

/* ---------- Body reset ---------- */
html, body.td2026 {
  margin: 0; padding: 0;
  background: var(--td-bg-deep) !important;
  color: var(--td-fg1) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.td2026 { overflow-x: hidden; padding-top: 72px; }
body.td2026 a { color: inherit; }

/* ============= HEADER (fixed) ============= */
body.td2026 .header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(10,18,32,0.78) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid var(--td-border) !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 72px !important;
  display: flex !important; align-items: center !important;
}
body.td2026 .nav-container {
  max-width: 1280px !important; width: 100% !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
body.td2026 .logo a { text-decoration: none !important; padding: 0 !important; }
body.td2026 .logo-image {
  height: 32px !important; width: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
}

body.td2026 .nav-menu {
  display: flex !important; flex-direction: row !important;
  gap: 6px !important;
  list-style: none !important; align-items: center !important;
  position: static !important; width: auto !important; height: auto !important;
  background: transparent !important;
  padding: 0 !important; box-shadow: none !important; border: none !important;
  overflow: visible !important;
}
body.td2026 .nav-item { position: relative !important; width: auto !important; border: none !important; padding: 0 !important; }
body.td2026 .nav-menu .nav-link {
  font-family: Inter, sans-serif !important;
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--td-fg2) !important;
  cursor: pointer !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important; align-items: center !important; gap: 4px !important;
  transition: color 180ms, background 180ms !important;
  line-height: 1 !important;
}
body.td2026 .nav-menu .nav-link:hover {
  color: var(--td-fg1) !important;
  background: rgba(255,255,255,0.06) !important;
}
body.td2026 .nav-menu > .nav-dropdown > .dropdown-toggle::after {
  content: "⌄"; font-size: 11px; margin-left: 2px;
  color: var(--td-muted); transform: translateY(-2px);
}

body.td2026 .dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 240px !important;
  background: rgba(14,24,40,0.96) !important;
  border: 1px solid var(--td-border) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45) !important;
  opacity: 0 !important; visibility: hidden !important;
  transform: translateY(-6px) !important;
  transition: all 180ms ease !important;
}
body.td2026 .nav-dropdown:hover .dropdown-menu {
  opacity: 1 !important; visibility: visible !important;
  transform: translateY(0) !important;
}
body.td2026 .dropdown-item,
body.td2026 .dropdown-menu .dropdown-toggle {
  display: flex !important; align-items: center !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: var(--td-fg2) !important;
  font-family: Inter, sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  border: none !important; border-bottom: none !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background 160ms, color 160ms, padding 160ms !important;
}
body.td2026 .dropdown-menu .dropdown-toggle::after {
  content: "›"; font-size: 14px; margin-left: auto; padding-left: 8px; color: var(--td-muted);
}
body.td2026 .dropdown-item:hover,
body.td2026 .dropdown-menu .dropdown-toggle:hover {
  background: rgba(255,255,255,0.07) !important;
  color: var(--td-fg1) !important;
  padding-left: 14px !important;
}
body.td2026 .dropdown-submenu {
  position: absolute !important;
  left: calc(100% + 6px) !important; top: 0 !important;
  min-width: 220px !important;
  background: rgba(14,24,40,0.96) !important;
  border: 1px solid var(--td-border) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45) !important;
  opacity: 0 !important; visibility: hidden !important;
  transform: translateX(-6px) !important;
  transition: all 180ms ease !important;
}
body.td2026 .dropdown-toggle:hover + .dropdown-submenu,
body.td2026 .dropdown-submenu:hover {
  opacity: 1 !important; visibility: visible !important;
  transform: translateX(0) !important;
}

body.td2026 .hamburger {
  display: none; flex-direction: column;
  cursor: pointer; padding: 8px;
  background: transparent !important; border: none !important;
  z-index: 1001;
}
body.td2026 .hamburger span {
  width: 22px !important; height: 2px !important;
  background: var(--td-fg1) !important;
  margin: 3px 0 !important; border-radius: 2px !important;
  transition: all 0.3s ease !important;
}
body.td2026 .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px) !important; }
body.td2026 .hamburger.active span:nth-child(2) { opacity: 0 !important; }
body.td2026 .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px) !important; }

@media (max-width: 968px) {
  body.td2026 .hamburger { display: flex !important; }
  body.td2026 .nav-menu {
    position: fixed !important;
    top: 0 !important; right: -100% !important; left: auto !important;
    width: 300px !important; height: 100vh !important;
    flex-direction: column !important; align-items: stretch !important;
    background: rgba(10,18,32,0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid var(--td-border) !important;
    padding: 88px 20px 32px !important;
    gap: 2px !important;
    overflow-y: auto !important;
    transition: right 300ms cubic-bezier(.22,1,.36,1) !important;
    z-index: 999 !important;
  }
  body.td2026 .nav-menu.active { right: 0 !important; }
  body.td2026 .nav-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 4px 0 !important;
  }
  body.td2026 .nav-menu .nav-link { padding: 14px 10px !important; font-size: 15px !important; border-radius: 6px !important; }
  body.td2026 .dropdown-menu {
    position: static !important;
    opacity: 1 !important; visibility: visible !important;
    transform: none !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    padding: 4px 0 4px 12px !important;
    min-width: auto !important;
    max-height: 0 !important; overflow: hidden !important;
    transition: max-height 300ms ease !important;
  }
  body.td2026 .nav-dropdown.active .dropdown-menu { max-height: 800px !important; }
  body.td2026 .dropdown-submenu {
    position: static !important;
    opacity: 1 !important; visibility: visible !important;
    transform: none !important;
    background: rgba(255,255,255,0.03) !important; border: none !important; box-shadow: none !important;
    padding: 4px 0 4px 10px !important;
    border-radius: 8px !important; margin: 4px 0 !important;
    min-width: auto !important;
    max-height: 0 !important; overflow: hidden !important;
    transition: max-height 300ms ease !important;
  }
  body.td2026 .dropdown-toggle.active + .dropdown-submenu { max-height: 500px !important; }
  body.td2026 .nav-menu > .nav-dropdown > .dropdown-toggle::after { margin-left: auto !important; }
}

/* ============= PRIMITIVES ============= */
.td-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.td-eye {
  font-family: Inter, sans-serif; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--td-muted);
}
.td-btn-primary, .td-btn-ghost {
  font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
  padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  transition: all 220ms cubic-bezier(.22,1,.36,1);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.td-btn-primary {
  color: var(--td-accent1); background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}
.td-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.td-btn-ghost {
  color: #fff; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.td-btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }

/* ============= HERO ============= */
.td-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F1E3A 0%, #1E3A6B 45%, #2A4A7F 100%);
  padding: 120px 0 120px;
}
.td-hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
}
.td-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(107,127,163,0.28), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(42,74,127,0.45), transparent 55%);
}
.td-hero-inner { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 32px; text-align: center; }
.td-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: Inter, sans-serif; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.88); letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.td-pill-tag {
  font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 11px;
}
.td-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #6EE7B7; box-shadow: 0 0 8px #6EE7B7; }
.td-h1 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(48px, 6.4vw, 84px); font-weight: 500; line-height: 0.98;
  color: #fff; letter-spacing: -0.03em; margin: 0 0 22px;
  text-wrap: balance;
}
.td-h1 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, #A9B7CC 0%, #F4F7FC 50%, #6B7FA3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.td-sub {
  font-family: Inter, sans-serif; font-size: 18px; font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.78); max-width: 680px; margin: 0 auto 40px;
  text-wrap: pretty;
}
.td-hero-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============= SECTIONS ============= */
.td-section { padding: 110px 0; background: var(--td-bg-deep); }
.td-section.alt   { background: var(--td-bg-panel); }
.td-section.abyss { background: var(--td-bg-abyss); }
.td-section-head { margin-bottom: 56px; max-width: 720px; }
.td-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.td-h2 {
  font-family: Inter, sans-serif; font-weight: 600; font-size: 44px;
  color: var(--td-fg1); letter-spacing: -0.02em; line-height: 1.1;
  text-wrap: balance; margin: 14px 0 16px;
}
.td-lede { font-family: Inter, sans-serif; font-size: 16px; font-weight: 300; color: var(--td-fg2); line-height: 1.65; margin: 0; }
.td-lede.wide { max-width: 720px; }

/* Feature / pillar grid */
.td-feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.td-feat-card {
  padding: 36px 28px; background: var(--td-bg-card);
  transition: background 280ms cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
  gap: 14px; min-height: 240px;
  text-decoration: none; color: inherit;
}
.td-feat-card:hover { background: #152137; }
.td-feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(107,127,163,0.14);
  border: 1px solid rgba(107,127,163,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.td-feat-icon svg { stroke: #A9B7CC; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.td-feat-num { font-family: Inter, sans-serif; font-weight: 600; font-size: 13px; color: var(--td-muted); letter-spacing: 0.04em; }
.td-feat-title { font-family: Inter, sans-serif; font-weight: 600; font-size: 20px; color: var(--td-fg1); letter-spacing: -0.01em; margin: 0; }
.td-feat-body { font-family: Inter, sans-serif; font-size: 14px; line-height: 1.65; color: var(--td-fg3); font-weight: 400; margin: 0; }

/* Two column */
.td-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.td-twocol.reverse > div:first-child { order: 2; }
.td-twocol-visual {
  aspect-ratio: 4 / 3; border-radius: 20px;
  background: linear-gradient(135deg, #152137 0%, #0E1828 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 56px;
}
.td-twocol-visual svg {
  width: 100%; height: 100%;
  stroke: rgba(169,183,204,0.7); stroke-width: 1.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.td-twocol-text .td-eye { margin-bottom: 14px; display: block; }
.td-twocol h3 {
  font-family: Inter, sans-serif; font-weight: 600; font-size: 36px;
  color: var(--td-fg1); letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 18px; text-wrap: balance;
}
.td-twocol p.intro {
  font-family: Inter, sans-serif; font-size: 16px; font-weight: 300; line-height: 1.65;
  color: var(--td-fg2); margin: 0 0 24px;
}
.td-feature-list { list-style: none; padding: 0; margin: 0 0 28px; }
.td-feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: Inter, sans-serif; font-size: 14px; line-height: 1.55;
  color: var(--td-fg2);
}
.td-feature-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.06); }
.td-feature-list li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B7CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.td-feature-list li strong { color: var(--td-fg1); font-weight: 600; }

/* Stats band */
.td-stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.td-stat-cell {
  padding: 8px 28px; border-left: 1px solid rgba(255,255,255,0.08);
}
.td-stat-cell:first-child { border-left: none; padding-left: 0; }
.td-stat-num {
  font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 500; font-size: 56px; line-height: 1;
  letter-spacing: -0.03em;
  background-image: linear-gradient(135deg, #F4F7FC 0%, #6B7FA3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.td-stat-label {
  font-family: Inter, sans-serif; font-size: 13px; color: var(--td-fg3);
  margin-top: 14px; font-weight: 400; line-height: 1.5;
}

/* ============= CTA ============= */
body.td2026 .cta-section {
  padding: 140px 32px !important; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0F1E3A 0%, #1E3A6B 50%, #2A4A7F 100%) !important;
  position: relative; overflow: hidden;
}
body.td2026 .cta-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}
body.td2026 .cta-section::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.16), transparent 65%);
}
body.td2026 .cta-section .section-container { position: relative; max-width: 820px; margin: 0 auto; padding: 0; }
body.td2026 .cta-title {
  font-family: Inter, sans-serif !important;
  font-size: clamp(36px, 4.5vw, 52px) !important; font-weight: 600 !important;
  letter-spacing: -0.02em !important; line-height: 1.1 !important;
  margin-bottom: 20px !important; color: #fff !important; text-wrap: balance;
}
body.td2026 .cta-subtitle {
  font-family: Inter, sans-serif !important; font-size: 18px !important; font-weight: 300 !important;
  opacity: 0.85 !important; margin: 0 auto 40px !important; line-height: 1.55 !important;
  max-width: 560px !important; color: #fff !important;
}
body.td2026 .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============= FOOTER ============= */
body.td2026 .footer {
  background: var(--td-bg-abyss) !important;
  color: var(--td-fg2) !important;
  padding: 72px 0 28px !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}
body.td2026 .footer .section-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
body.td2026 .footer-content {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
body.td2026 .footer-section h3 {
  font-family: Inter, sans-serif !important; font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0.12em !important; text-transform: uppercase !important;
  color: var(--td-muted) !important; margin: 0 0 18px !important; padding: 0 !important;
}
body.td2026 .footer-section a {
  font-family: Inter, sans-serif !important; font-size: 13px !important;
  color: var(--td-fg2) !important; display: block; padding: 6px 0 !important;
  text-decoration: none; transition: color 200ms;
}
body.td2026 .footer-section a:hover { color: var(--td-fg1) !important; }
body.td2026 .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-family: Inter, sans-serif; font-size: 12px; color: var(--td-muted) !important;
}
body.td2026 .footer-bottom p { color: var(--td-muted) !important; margin: 0; }
body.td2026 .footer-bottom a { color: var(--td-fg3) !important; }

.td-footer-brand { display: flex; flex-direction: column; gap: 18px; }
.td-footer-brand img { height: 32px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.td-footer-blurb { font-family: Inter, sans-serif; font-size: 13px; line-height: 1.65; color: var(--td-fg3); max-width: 280px; }

/* ============= ARTICLE MODE ============= */
body.td2026.article-mode .td-section { padding: 80px 0; }
.td-article {
  max-width: 760px; margin: 0 auto;
  font-family: Inter, sans-serif;
  font-size: 17px; line-height: 1.75; color: var(--td-fg2);
}
.td-article h2 {
  font-family: Inter, sans-serif; font-size: 32px; font-weight: 600;
  color: var(--td-fg1); letter-spacing: -0.02em; line-height: 1.2;
  margin: 56px 0 20px; text-wrap: balance;
}
.td-article h3 {
  font-family: Inter, sans-serif; font-size: 22px; font-weight: 600;
  color: var(--td-fg1); letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.td-article p { margin: 0 0 20px; }
.td-article strong { color: var(--td-fg1); font-weight: 600; }
.td-article a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; }
.td-article a:hover { text-decoration-color: #fff; }
.td-article ul, .td-article ol { padding-left: 20px; margin: 0 0 24px; }
.td-article li { margin-bottom: 8px; }
.td-article blockquote {
  border-left: 2px solid #A9B7CC;
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--td-fg1);
  font-size: 19px; line-height: 1.6;
}
.td-article hr { border: none; border-top: 1px solid var(--td-border-s); margin: 48px 0; }
.td-article .article-meta {
  display: flex; gap: 20px; align-items: center;
  padding-bottom: 24px; margin-bottom: 40px;
  border-bottom: 1px solid var(--td-border-s);
  font-size: 13px; color: var(--td-fg3);
}
.td-article code {
  background: var(--td-bg-card);
  border: 1px solid var(--td-border-s);
  padding: 2px 7px; border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; color: #A9B7CC;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .td-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .td-twocol { grid-template-columns: 1fr; gap: 40px; }
  .td-twocol.reverse > div:first-child { order: 0; }
  .td-stats-band { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .td-stat-cell { border-left: none; padding: 0 16px; }
  body.td2026 .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .td-feat-grid { grid-template-columns: 1fr; }
  .td-h1 { font-size: 44px; }
  .td-h2 { font-size: 32px; }
  .td-twocol h3 { font-size: 28px; }
  body.td2026 .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .td-section { padding: 72px 0; }
  .td-hero { padding: 80px 0 90px; }
  .td-stats-band { grid-template-columns: 1fr; }
  .td-article { font-size: 16px; }
  .td-article h2 { font-size: 26px; }
}

/* =================================================================
   TABLES — Taldar 2026
   Two modes:
     .td-table              → regular data table (rows of records)
     .td-table.td-table--compare  (alias .comp-table)
                            → side-by-side comparison of N subjects,
                              one subject per column
   Both sit on the dark navy canvas, use glass surfaces, and share
   the same typographic scale so they feel like one family.
   ================================================================= */

/* ---------- Scroll / overflow wrapper ----------
   Wrap any table in <div class="td-table-wrap">...</div> for sticky
   headers + horizontal overflow + nice edge fades. */
.td-table-wrap {
  position: relative;
  width: 100%;
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--td-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(30,58,107,0.22) 0%, rgba(16,26,46,0.55) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 20px 60px rgba(5, 10, 20, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(169,183,204,0.35) transparent;
}
.td-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.td-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(169,183,204,0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.td-table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(169,183,204,0.5); background-clip: padding-box; }

/* ---------- Shared table base ---------- */
.td-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--td-fg1);
  background: transparent;
}

/* caption above table */
.td-table caption {
  caption-side: top;
  text-align: left;
  padding: 20px 22px 16px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--td-fg1);
  border-bottom: 1px solid var(--td-border-s);
}
.td-table caption .td-table-sub {
  display: block;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--td-fg3);
}

/* ---------- Header ---------- */
.td-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #162542 0%, #101A2E 100%);
  color: var(--td-fg2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  padding: 14px 18px;
  white-space: nowrap;
  border-bottom: 1px solid var(--td-border);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}
.td-table thead th:first-child { border-top-left-radius: 16px; }
.td-table thead th:last-child  { border-top-right-radius: 16px; }

/* numeric alignment helper */
.td-table th.num, .td-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.td-table th.center, .td-table td.center { text-align: center; }

/* ---------- Body rows ---------- */
.td-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  border-bottom: 1px solid var(--td-border-s);
  color: var(--td-fg2);
  transition: background 160ms var(--ease-out, ease);
}
.td-table tbody tr:last-child td { border-bottom: none; }
.td-table tbody tr:hover td { background: rgba(107,127,163,0.06); }

/* row-level semantic highlights */
.td-table tbody tr.is-muted td { opacity: 0.55; }
.td-table tbody tr.is-warning td { background: rgba(245,179,75,0.05); }
.td-table tbody tr.is-danger td  { background: rgba(229,72,77,0.05); }

/* primary column (first cell) reads as record label */
.td-table tbody td:first-child {
  color: var(--td-fg1);
  font-weight: 500;
}

/* ---------- Section / group row ---------- */
.td-table tbody tr.td-row-group td {
  background: rgba(30,58,107,0.35);
  color: var(--td-fg1);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-top: 1px solid var(--td-border);
  border-bottom: 1px solid var(--td-border);
}

/* ---------- Footer row ---------- */
.td-table tfoot td {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--td-fg1);
  background: rgba(30,58,107,0.22);
  border-top: 1px solid var(--td-border);
}

/* ---------- Status badges (for yes/no/partial etc.) ---------- */
.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  vertical-align: middle;
}
.td-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex: 0 0 auto;
}
.td-badge.is-yes,
.td-badge.is-active,
.td-badge.is-success {
  color: #22C39A;
  background: rgba(34,195,154,0.10);
  border-color: rgba(34,195,154,0.28);
}
.td-badge.is-no,
.td-badge.is-inactive,
.td-badge.is-danger {
  color: #E5484D;
  background: rgba(229,72,77,0.10);
  border-color: rgba(229,72,77,0.28);
}
.td-badge.is-partial,
.td-badge.is-pending,
.td-badge.is-warning {
  color: #F5B34B;
  background: rgba(245,179,75,0.10);
  border-color: rgba(245,179,75,0.28);
}
.td-badge.is-info {
  color: #6B9DFF;
  background: rgba(107,157,255,0.10);
  border-color: rgba(107,157,255,0.28);
}
.td-badge.is-neutral {
  color: var(--td-fg2);
  background: rgba(169,183,204,0.08);
  border-color: rgba(169,183,204,0.22);
}

/* monospace cell (for codes, IDs, amounts) */
.td-table .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: #A9B7CC;
  letter-spacing: 0;
}

/* secondary text inside a cell */
.td-table .td-cell-sub {
  display: block;
  font-size: 12px;
  color: var(--td-fg3);
  margin-top: 3px;
  font-weight: 400;
}

/* =================================================================
   COMPARE TABLE — .td-table--compare (and legacy .comp-table alias)
   Subjects are columns. First column is the feature label (sticky).
   Each subject column can be marked .is-recommended to call it out.
   ================================================================= */

/* legacy alias — also takes the base look */
.comp-table { composes: td-table; }

.td-table--compare,
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--td-fg1);
  background: transparent;
}

/* compare header row — feature label col + one col per subject */
.td-table--compare thead th,
.comp-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #162542 0%, #101A2E 100%);
  padding: 18px 20px;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid var(--td-border);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--td-fg1);
  min-width: 200px;
  white-space: normal;
  text-transform: none;
}

/* first header cell (the "Feature" label) is quieter */
.td-table--compare thead th:first-child,
.comp-table thead th:first-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--td-fg3);
  min-width: 240px;
}

/* subject-column eyebrow above its name */
.td-col-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-fg3);
  margin-bottom: 6px;
}

/* body cells */
.td-table--compare tbody td,
.comp-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--td-border-s);
  vertical-align: middle;
  color: var(--td-fg2);
}
.td-table--compare tbody tr:hover td,
.comp-table tbody tr:hover td { background: rgba(107,127,163,0.05); }

/* first column = feature label, sticky when scrolling horizontally */
.td-table--compare tbody td:first-child,
.comp-table tbody td:first-child,
.td-table--compare thead th:first-child,
.comp-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(90deg, #101A2E 80%, rgba(16,26,46,0.92));
  color: var(--td-fg1);
  font-weight: 500;
  box-shadow: 1px 0 0 rgba(255,255,255,0.06);
}
.td-table--compare thead th:first-child,
.comp-table thead th:first-child {
  z-index: 4;
  background:
    linear-gradient(180deg, #162542 0%, #101A2E 100%),
    linear-gradient(90deg, #101A2E 80%, rgba(16,26,46,0.92));
}

/* section/group row spans all columns */
.td-table--compare tbody tr.td-row-group td,
.comp-table tbody tr.td-row-group td,
.comp-table tbody tr td[colspan] {
  background: rgba(30,58,107,0.42);
  color: var(--td-fg1);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-top: 1px solid var(--td-border);
  border-bottom: 1px solid var(--td-border);
  position: sticky;
  left: 0;
  box-shadow: none;
}

/* recommended column — full-column navy glow */
.td-table--compare tbody td.is-recommended,
.td-table--compare thead th.is-recommended,
.comp-table tbody td.is-recommended,
.comp-table thead th.is-recommended {
  background:
    linear-gradient(180deg, rgba(42,74,127,0.28) 0%, rgba(30,58,107,0.18) 100%);
  box-shadow:
    inset 1px 0 0 rgba(169,183,204,0.18),
    inset -1px 0 0 rgba(169,183,204,0.18);
}
.td-table--compare thead th.is-recommended,
.comp-table thead th.is-recommended {
  background:
    linear-gradient(180deg, #1E3A6B 0%, #162542 100%);
  color: #F4F7FC;
  box-shadow:
    inset 1px 0 0 rgba(169,183,204,0.22),
    inset -1px 0 0 rgba(169,183,204,0.22),
    inset 0 -1px 0 rgba(169,183,204,0.28);
}
.td-table--compare thead th.is-recommended,
.comp-table thead th.is-recommended {
  padding-top: 14px;
}
.td-table--compare thead th.is-recommended::before,
.comp-table thead th.is-recommended::before {
  content: "★ Recommended";
  display: block;
  width: max-content;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(169,183,204,0.22);
  color: #F4F7FC;
  border: 1px solid rgba(169,183,204,0.38);
  box-shadow: 0 0 16px rgba(169,183,204,0.2);
}
.td-table--compare thead th.is-recommended .td-col-name,
.comp-table thead th.is-recommended .td-col-name {
  display: block;
}

/* ---------- Compare cell content primitives ---------- */

/* check / cross / dash icons rendered in the cell */
.td-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
  vertical-align: middle;
}
.td-mark.is-yes {
  color: #22C39A;
  background: rgba(34,195,154,0.12);
  box-shadow: inset 0 0 0 1px rgba(34,195,154,0.35);
}
.td-mark.is-no {
  color: #E5484D;
  background: rgba(229,72,77,0.12);
  box-shadow: inset 0 0 0 1px rgba(229,72,77,0.35);
}
.td-mark.is-partial {
  color: #F5B34B;
  background: rgba(245,179,75,0.12);
  box-shadow: inset 0 0 0 1px rgba(245,179,75,0.35);
}
.td-mark.is-yes::before { content: "✓"; }
.td-mark.is-no::before { content: "✕"; }
.td-mark.is-partial::before { content: "◐"; }

/* compound cell: icon + text on the same row */
.td-cmp-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.td-cmp-cell .td-mark { margin-top: 1px; }
.td-cmp-cell-text { min-width: 0; }
.td-cmp-cell-text strong {
  display: block;
  color: var(--td-fg1);
  font-weight: 500;
  font-size: 14px;
}
.td-cmp-cell-text span {
  display: block;
  color: var(--td-fg3);
  font-size: 12.5px;
  margin-top: 2px;
}

/* =================================================================
   RESPONSIVE — compare table stacks to cards on mobile
   Requires each <td> and <th> (except the first/feature col) to
   carry data-col="<Subject name>" so the label can be rendered.
   ================================================================= */
@media (max-width: 760px) {
  .td-table-wrap { max-height: none; overflow: visible; padding: 14px; }

  .td-table--compare,
  .comp-table,
  .td-table--compare thead,
  .comp-table thead,
  .td-table--compare tbody,
  .comp-table tbody,
  .td-table--compare tr,
  .comp-table tr,
  .td-table--compare td,
  .comp-table td,
  .td-table--compare th,
  .comp-table th { display: block; width: auto; }

  /* hide the original header row — we render labels per-cell */
  .td-table--compare thead,
  .comp-table thead { display: none; }

  .td-table--compare tbody tr,
  .comp-table tbody tr {
    position: relative;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 8px 4px;
    background: rgba(16,26,46,0.6);
  }

  /* feature label floats to the top of each card */
  .td-table--compare tbody td:first-child,
  .comp-table tbody td:first-child {
    position: static;
    background: transparent;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--td-fg1);
    padding: 10px 16px 6px;
    border-bottom: 1px solid var(--td-border-s);
    box-shadow: none;
  }

  /* each subject cell becomes a row with its column label */
  .td-table--compare tbody td,
  .comp-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--td-border-s);
    text-align: right;
  }
  .td-table--compare tbody td:last-child,
  .comp-table tbody td:last-child { border-bottom: none; }

  .td-table--compare tbody td[data-col]:not(:first-child)::before,
  .comp-table tbody td[data-col]:not(:first-child)::before {
    content: attr(data-col);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--td-fg3);
    flex: 0 0 auto;
    text-align: left;
  }

  /* group rows stay full-width banners */
  .td-table--compare tbody tr.td-row-group,
  .comp-table tbody tr.td-row-group {
    border: none;
    background: transparent;
    padding: 0;
    margin: 18px 0 6px;
  }
  .td-table--compare tbody tr.td-row-group td,
  .comp-table tbody tr.td-row-group td,
  .comp-table tbody tr td[colspan] {
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
    background: rgba(30,58,107,0.5);
  }

  /* recommended col highlight on mobile: left-border stripe */
  .td-table--compare tbody td.is-recommended,
  .comp-table tbody td.is-recommended {
    background: rgba(42,74,127,0.18);
    border-left: 3px solid #A9B7CC;
    padding-left: 13px;
  }
}
