/* ForemanAI marketing + docs stylesheet */
    :root {
      --bg: #020617;
      --bg-alt: #050816;
      --card-bg: #0b1220;
      --accent: #2563eb; /* enterprise blue */
      --accent-soft: rgba(37, 99, 235, 0.12);
      --accent-strong: #1d4ed8;
      --accent-warm: #f97316; /* construction orange */
  --cta-blue: #4f8bff;
  --cta-blue-strong: #2563eb;
      --text-main: #f9fafb;
      --text-muted: #9ca3af;
      --border-subtle: rgba(148, 163, 184, 0.28);
      --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
      --radius-lg: 18px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
      background:
            radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.25), transparent 58%),
            radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.18), transparent 62%),
            radial-gradient(circle at 85% 78%, rgba(2, 6, 23, 0.85), transparent 55%),
            linear-gradient(180deg, #020617 0%, #040a19 55%, #030712 100%);
      color: var(--text-main);
      line-height: 1.6;
    }

    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 32px 20px 96px;
    }

    section {
      margin-bottom: 80px;
    }

    h1, h2, h3 {
      font-weight: 700;
      margin: 0 0 12px;
    }

    h1 {
      font-size: clamp(2.6rem, 4vw, 3.4rem);
      letter-spacing: -0.04em;
    }

    h2 {
      font-size: 2rem;
      letter-spacing: -0.02em;
    }

    h3 {
      font-size: 1.2rem;
    }

    p {
      margin: 0 0 10px;
      color: var(--text-muted);
      font-size: 0.98rem;
    }

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

    a:hover {
      text-decoration: underline;
    }

    .pill {
      align-items: center;
      gap: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--t-success);
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
      gap: 40px;
      align-items: center;
      margin-bottom: 72px;
    }

    .hero-copy {
      max-width: 640px;
    }

    .hero-subheadline {
      font-size: 1.05rem;
      color: var(--text-muted);
      margin-bottom: 18px;
    }

    .hero-highlight {
      color: var(--accent-warm);
      font-weight: 600;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 16px;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .hero-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .hero-meta-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    .hero-ctas {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 26px;
      margin-bottom: 8px;
    }

    .btn-primary, .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.18s ease-out;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #f9fafb;
      box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6);
      opacity: 0.96;
    }

    .btn-secondary {
      background: rgba(15, 23, 42, 0.96);
      color: var(--text-muted);
      border-color: rgba(148, 163, 184, 0.7);
    }

    .btn-secondary:hover {
      background: rgba(15, 23, 42, 1);
      color: var(--text-main);
    }

    .btn-pill-caption {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 6px;
    }

    .hero-panel {
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), transparent 60%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), transparent 55%),
        #020617;
      border-radius: var(--radius-lg);
      padding: 20px 20px 18px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
    }

    .hero-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .hero-panel-badge {
      padding: 4px 9px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background: rgba(15, 23, 42, 0.9);
      font-size: 0.75rem;
    }

    .hero-panel-body {
      background: rgba(10, 16, 30, 0.96);
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, 0.95);
      padding: 14px 14px 10px;
      font-size: 0.8rem;
    }

    .hero-panel-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
    }

    .hero-panel-row:last-child {
      border-bottom: none;
    }

    .hero-panel-label {
      color: var(--text-muted);
    }

    .hero-panel-value {
      font-weight: 500;
    }

    .hero-panel-tagline {
      margin-top: 12px;
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .hero-panel-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-panel-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--t-success);
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
      margin-right: 6px;
    }

    .section-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 22px;
      margin-top: 22px;
    }

    .feature-card {
      background: var(--card-bg);
      border-radius: 14px;
      border: 1px solid var(--border-subtle);
      padding: 18px 18px 16px;
    }

    .feature-kicker {
      font-size: 0.75rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent-warm);
      margin-bottom: 4px;
    }

    .eyebrow {
      font-size: 0.85rem;
      color: var(--text-muted);
      max-width: 640px;
      margin-top: 6px;
    }

    .two-col {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 32px;
      align-items: flex-start;
      margin-top: 24px;
    }

    .callout {
      background: rgba(11, 18, 32, 0.96);
      border-radius: 14px;
      border: 1px solid var(--border-subtle);
      padding: 18px 18px 16px;
      font-size: 0.88rem;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .badge {
      font-size: 0.78rem;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background: rgba(15, 23, 42, 0.98);
      color: var(--text-muted);
    }

    .comparison-table {
      margin-top: 18px;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border-subtle);
    }

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

    th, td {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    }

    th {
      background: #020617;
      text-align: left;
      font-weight: 600;
    }

    tr:nth-child(even) td {
      background: rgba(15, 23, 42, 0.85);
    }

    .check {
      color: var(--t-success-text);
      font-weight: 600;
    }

    .cross {
      color: #f97373;
      font-weight: 600;
    }

    .api-strip {
      margin-top: 20px;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 22px;
      align-items: stretch;
    }


    .code-snippet code {
      white-space: pre;
    }

    .final-cta {
      text-align: center;
      padding: 32px 22px 28px;
      border-radius: 18px;
      background: radial-gradient(circle at top, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.98));
      border: 1px solid rgba(37, 99, 235, 0.55);
      box-shadow: var(--shadow-soft);
    }

    .final-cta h2 {
      color: var(--t-text);
      text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
    }

    .marketing-nav .is-active {
      color: var(--text-main);
      position: relative;
    }

    .marketing-nav .is-active::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -4px;
      width: 26px;
      height: 2px;
      background: var(--accent);
      transform: translateX(-50%);
      border-radius: 999px;
    }

    .case-studies-shell {
      display: flex;
      flex-direction: column;
      gap: 72px;
    }

    .case-studies-hero {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
      gap: 40px;
      align-items: stretch;
    }

    .case-studies-hero-copy {
      background: rgba(2, 6, 23, 0.65);
      border-radius: var(--radius-lg);
      padding: 32px;
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
    }

    .case-studies-metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 18px;
      margin-top: 32px;
    }

    .case-studies-metrics .metric {
      background: var(--card-bg);
      border-radius: 14px;
      border: 1px solid var(--border-subtle);
      padding: 16px;
    }

    .metric-label {
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .metric-value {
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--text-main);
      margin: 6px 0;
    }

    .metric-detail {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .case-studies-hero-panel {
      background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.95));
      border-radius: var(--radius-lg);
      padding: 28px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: var(--shadow-soft);
    }

    .case-studies-hero-panel ul {
      list-style: none;
      margin: 18px 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .case-studies-hero-panel li {
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    .case-studies-hero-panel span {
      color: var(--text-main);
      font-weight: 600;
      margin-right: 6px;
    }

    .case-study-grid .section-heading {
      max-width: 760px;
    }

    .case-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 22px;
      margin-top: 28px;
    }

    .case-card {
      background: var(--card-bg);
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .case-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .case-card-value {
      font-weight: 600;
      color: var(--text-main);
    }

    .case-card-headline {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text-main);
    }

    .case-card ul {
      list-style: disc;
      margin: 0 0 0 18px;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 0.92rem;
    }

    .case-study-testimonials {
      background: rgba(2, 6, 23, 0.65);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
      padding: 36px;
    }

    .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .testimonial-card {
      background: var(--card-bg);
      border-radius: 16px;
      border: 1px solid rgba(148, 163, 184, 0.3);
      padding: 18px;
    }

    .testimonial-card .quote {
      font-size: 1rem;
      color: var(--text-main);
      font-weight: 500;
    }

    .testimonial-card .author {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 12px;
    }

    .case-study-next-steps {
      display: flex;
      justify-content: center;
    }

    .next-steps-card {
      width: min(720px, 100%);
      text-align: center;
      background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), rgba(2, 6, 23, 0.95));
      border-radius: var(--radius-lg);
      padding: 40px 28px;
      border: 1px solid rgba(37, 99, 235, 0.5);
      box-shadow: var(--shadow-soft);
    }

    .next-steps-card .hero-ctas {
      justify-content: center;
      margin-top: 24px;
    }

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

      .case-studies-hero-panel {
        order: -1;
      }
    }

    @media (max-width: 640px) {
      .case-studies-hero-copy,
      .case-studies-hero-panel,
      .case-study-testimonials,
      .next-steps-card {
        padding: 24px;
      }

      .marketing-nav .is-active::after {
        display: none;
      }
    }

    .final-cta p {
      max-width: 600px;
      margin: 0 auto 16px;
      font-size: 0.98rem;
    }

    .final-cta .hero-ctas {
      justify-content: center;
      margin-top: 20px;
    }

    .final-cta .hero-meta {
      justify-content: center;
      margin-top: 10px;
    }

    footer {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 26px;
      font-size: 0.8rem;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      border-top: 1px solid rgba(15, 23, 42, 0.95);
      padding-top: 16px;
    }

    /* Responsive */

    @media (max-width: 960px) {
      .hero {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-panel {
        max-width: 480px;
        margin: 0 auto;
      }

      .two-col,
      .api-strip {
        grid-template-columns: minmax(0, 1fr);
      }

      .final-cta {
        margin-top: 40px;
      }
    }

    @media (max-width: 640px) {
      main {
        padding: 24px 16px 64px;
      }

      h1 {
        font-size: 2.2rem;
      }

      .hero-ctas {
        flex-direction: column;
        align-items: stretch;
      }

      .hero-meta {
        flex-direction: column;
      }
      }
/* --- ForemanAI marketing + docs revamp --- */

.marketing-page {
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.28), transparent 58%),
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(2, 6, 23, 0.85), transparent 45%),
    linear-gradient(180deg, #030617 0%, #050b1d 68%, #020512 100%);
  color: var(--text-main);
  min-height: 100vh;
}

.marketing-page .app-main {
  padding: 0;
}

.marketing-page .app-header {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.marketing-page .app-header .container {
  background: transparent;
}

/* Marketing page footer - dark theme with bright white text */
.marketing-page .app-footer {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.95), #020617);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2rem 0;
}

.marketing-page .app-footer p {
  color: rgba(248, 250, 252, 0.9);
}

.marketing-page .app-footer .brand-white {
  color: var(--t-text);
  font-weight: 600;
}

.marketing-page .app-footer-links a {
  color: rgba(248, 250, 252, 0.85);
  font-weight: 500;
  transition: color 0.15s ease;
}

.marketing-page .app-footer-links a:hover,
.marketing-page .app-footer-links a:focus-visible {
  color: var(--t-text);
}

.marketing-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px 120px;
}

.docs-shell {
  padding-top: 48px;
}

.marketing-header-actions {
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.marketing-header-actions .app-nav {
  margin-left: 0;
  justify-content: center;
}

.contact-cta,
.marketing-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(241, 245, 249, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-cta:hover,
.contact-cta:focus-visible,
.marketing-cta:hover,
.marketing-cta:focus-visible {
  color: #f9fafb;
  border-bottom-color: rgba(96, 165, 250, 0.9);
  outline: none;
}

.marketing-nav {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marketing-nav .app-nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.marketing-nav .app-nav-link:hover,
.marketing-nav .app-nav-link:focus-visible {
  color: var(--text-main);
}

.marketing-cta {
  color: rgba(191, 219, 254, 0.92);
}

.marketing-shell h1 {
  letter-spacing: -0.02em;
}

body.landing-page .marketing-shell {
  margin-top: 6rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(min(340px, 100%), 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  margin-bottom: 5rem;
      background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.35), transparent 55%),
        radial-gradient(circle at bottom left, rgba(2, 6, 23, 0.9), transparent 50%),
        #050b1d;
      color: var(--text-main);
      border-radius: 32px;
      border: 1px solid rgba(37, 99, 235, 0.28);
      padding: clamp(2rem, 4vw, 3.5rem);
      box-shadow: 0 32px 80px rgba(2, 6, 23, 0.65);
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  }
}

.landing-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
      color: var(--text-main);
}

.landing-hero-copy .hero-subheadline {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
}

.landing-hero .hero-trust {
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(125deg, var(--cta-blue), var(--cta-blue-strong));
  color: var(--t-text);
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(2, 6, 23, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.hero-trust {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── Hero privacy / "never train" badge ── */
.hero-privacy {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.45);
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hero-privacy svg {
  flex-shrink: 0;
  opacity: 0.45;
}


.landing-hero .btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.45);
    color: var(--text-muted);
}

.landing-hero .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.75);
    color: var(--text-main);
}

.landing-section-api .btn-secondary {
  background: linear-gradient(120deg, #facc15, #fbbf24);
  border-color: transparent;
  color: #1e1b4b;
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.35);
}

.landing-section-api .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(250, 204, 21, 0.5);
  color: var(--t-text);
}

.landing-hero-card {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 32px;
    padding: clamp(1.8rem, 3vw, 2.8rem);
    background:
      linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.88));
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.78);
    color: var(--t-text);
    overflow: visible;
}

.landing-hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.2), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  overflow: hidden;
}

.landing-hero-card > * {
  position: relative;
  z-index: 1;
}

.landing-hero-card p {
  color: rgba(226, 232, 240, 0.88);
}

.leaderboard-item p {
  color: rgba(248, 250, 252, 0.82);
}

.landing-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leaderboard-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.82);
  margin: 0;
}

/* Leaderboard Ticker */
.leaderboard-ticker {
  margin-top: 0.5rem;
}

.leaderboard-track {
  position: relative;
  min-height: 160px; /* Minimum height to prevent layout shift */
  overflow: visible;
}

.leaderboard-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  color: var(--t-text);
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.leaderboard-item.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.leaderboard-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.leaderboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.leaderboard-dot:hover {
  border-color: rgba(59, 130, 246, 0.7);
  transform: scale(1.2);
}

.leaderboard-dot.is-active {
  background: #3b82f6;
  border-color: #3b82f6;
}

.leaderboard-rank {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

.leaderboard-copy {
  flex: 1;
  min-width: 0;
}

.leaderboard-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
  overflow-wrap: anywhere;
}

.leaderboard-value {
  margin: 4px 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--t-text);
  overflow-wrap: anywhere;
}

.no-js .leaderboard-value[data-count-target] {
  display: none;
}

.leaderboard-value--static {
  margin: 4px 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--t-text);
}

@keyframes leaderboardTickPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(250, 204, 21, 0);
    color: var(--t-text);
  }
  45% {
    transform: scale(1.05);
    text-shadow: 0 6px 18px rgba(250, 204, 21, 0.35);
    color: #fde047;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(250, 204, 21, 0);
    color: var(--t-text);
  }
}

.leaderboard-value.leaderboard-value--tick {
  animation: leaderboardTickPulse 0.5s ease-out;
  will-change: transform, color, text-shadow;
  transform-origin: left center;
}

.leaderboard-detail {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
  overflow-wrap: anywhere;
}

/* ============================================================================
   RESEARCH TICKER
   ============================================================================ */

.research-ticker {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

.research-ticker-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.72);
}

.research-ticker-track {
  position: relative;
  min-height: 4rem;
  overflow: hidden;
}

.research-ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.6);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease, background 0.2s ease;
}

.research-ticker-item.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.research-ticker-item:hover,
.research-ticker-item:focus-visible {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(37, 99, 235, 0.2);
  outline: none;
}

.research-ticker-type {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #facc15;
  font-weight: 600;
}

.research-ticker-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-ticker-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.research-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.research-ticker-dot:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.15);
}

.research-ticker-dot.is-active {
  background: #3b82f6;
  border-color: #3b82f6;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(207, 217, 232, 0.85);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--t-text);
}

.landing-section {
  margin-bottom: 5.5rem;
}

.section-heading {
  max-width: 720px;
}

.landing-section-features {
  position: relative;
  border-radius: 42px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: clamp(2.5rem, 4vw, 3.75rem);
  background:
    linear-gradient(140deg, rgba(2, 6, 23, 0.92), rgba(10, 12, 24, 0.85)),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.35), transparent 55%);
  box-shadow: 0 45px 120px rgba(2, 6, 23, 0.75);
  overflow: hidden;
}

.landing-section-features::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.2), transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(59, 130, 246, 0.18), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.landing-section-features > * {
  position: relative;
  z-index: 1;
}

.landing-section-features .section-heading h2 {
  color: var(--t-text);
}

.landing-section-features .section-label {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(15, 23, 42, 0.65);
  margin-bottom: 1rem;
}

.landing-section-features .section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.landing-section-features .section-intro {
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.05rem;
}

.landing-section-risk .section-heading h2 {
  color: var(--t-text);
}

.landing-section-api .section-heading h2 {
  color: var(--t-text);
}

.landing-section-api p,
.landing-section-api .api-example {
  color: var(--t-text);
}

.landing-section-api .api-highlight {
  color: var(--t-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
  counter-reset: feature;
}

.feature-grid.eight-up article {
  min-height: 200px;
}

.feature-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(11, 18, 32, 0.82));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
  counter-increment: feature;
  content: "0" counter(feature);
  position: absolute;
  top: 1.2rem;
  right: 1.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.55);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.28), transparent 55%),
              linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 28px 65px rgba(2, 6, 23, 0.75);
}

.feature-card:hover::after {
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  color: #bfdbfe;
}

.feature-card p {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.55;
}

/* Feature Ticker - Cycling carousel for feature cards */
.feature-ticker {
  position: relative;
  margin-top: 2.5rem;
  min-height: 180px;
}

.feature-ticker-track {
  position: relative;
  width: 100%;
  height: 160px;
}

.feature-ticker .feature-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.feature-ticker .feature-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feature-ticker .feature-card::before {
  display: none; /* Hide the counter in ticker mode */
}

.feature-ticker-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.feature-ticker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.feature-ticker-dot:hover {
  background: rgba(148, 163, 184, 0.6);
}

.feature-ticker-dot.is-active {
  background: rgba(59, 130, 246, 0.85);
  transform: scale(1.2);
}

.benefit-card {
  background: rgba(11, 18, 32, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.35rem;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #facc15;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--t-text);
}

.section-cta {
  margin-top: 2rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.api-teaser {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 1.75rem;
  background: rgba(3, 7, 18, 0.75);
}

.api-benefits-intro {
  margin-top: 1.25rem;
}

.api-benefits {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.api-benefits li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--t-text);
  font-size: 0.92rem;
}

.api-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.api-example {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.final-cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 2.5rem;
  text-align: left;
}

.docs-hero,
.doc-section {
  margin-bottom: 3.5rem;
}

.docs-hero .hero-ctas {
  margin-top: 1rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.api-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.sample-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sample-block pre,
.code-card pre {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  font-size: 0.8rem;
  overflow: visible;
}

.code-container {
  margin-top: 0.9rem;
  background: rgba(4, 8, 24, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 1rem;
  box-shadow: inset 0 0 25px rgba(15, 23, 42, 0.55);
  overflow-x: auto;
}

.code-container code {
  display: block;
  white-space: pre;
}

.code-container--flat {
  background: rgba(4, 8, 24, 0.6);
  border: none;
  box-shadow: none;
  padding: 0.75rem 0.5rem;
}
.code-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.api-capabilities ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-capabilities li {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(6, 11, 24, 0.9);
}

.blueprints-shell {
  gap: 2rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.insight-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(11, 18, 32, 0.9), rgba(2, 6, 23, 0.85));
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.insight-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.85);
}

.insight-value {
  margin: 0.4rem 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--t-text);
}

.insight-detail {
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}

.landing-section-faq {
  margin-top: 4rem;
}

.landing-section-faq .section-heading h2 {
  color: var(--t-text);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  background: rgba(8, 12, 24, 0.92);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.55);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.faq-item.is-open {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 25px 60px rgba(31, 41, 55, 0.7);
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--t-text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1.4rem 1.5rem 1.2rem;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-question:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.8);
  outline-offset: 4px;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0;
}

.faq-cta {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.faq-cta p {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.95);
}

.landing-footer {
  margin-top: 3.5rem;
  padding: 2.5rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(4, 12, 30, 0.98));
  box-shadow: 0 30px 70px rgba(3, 7, 18, 0.7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  align-items: flex-start;
}

.landing-footer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.75);
  margin-bottom: 0.6rem;
}

.landing-footer-brand h3 {
  margin: 0 0 0.5rem;
  color: var(--t-text);
}

.landing-footer-brand p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
}

.landing-footer-nav {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.landing-footer-nav a {
  color: rgba(226, 232, 240, 0.86);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}

.landing-footer-nav a:hover,
.landing-footer-nav a:focus-visible {
  color: var(--t-text);
  text-decoration: underline;
}

.landing-footer-cta p {
  margin: 0 0 0.8rem;
  color: rgba(226, 232, 240, 0.92);
}

.landing-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Minimal footer variant */
.landing-footer--minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2.5rem;
  margin-top: 2.5rem;
}

.landing-footer--minimal .landing-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.landing-footer--minimal .landing-footer-cta p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.9);
}



.marketing-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--t-border-accent);
  border-radius: 10px;
  background-color: var(--t-surface-hover);
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.2s ease;
}

.marketing-menu-toggle:hover {
  background-color: var(--t-surface-active);
  border-color: var(--t-border-accent);
}

.marketing-menu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.marketing-menu-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.marketing-menu-toggle-icon::before,
.marketing-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.marketing-menu-toggle-icon::before {
  top: -6px;
}

.marketing-menu-toggle-icon::after {
  top: 6px;
}

.marketing-drawer {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.marketing-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marketing-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(7, 11, 20, 0.99) 100%);
  border-left: 1px solid var(--t-border-strong);
  box-shadow: 
    -20px 0 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.marketing-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem 1rem;
  border-bottom: 1px solid var(--t-border-medium);
  margin-bottom: 0.5rem;
}

.marketing-drawer-title {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--t-text-secondary);
  font-weight: 600;
}

.marketing-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--t-border-accent);
  background-color: var(--t-surface-hover);
  color: var(--t-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marketing-drawer-close:hover {
  background-color: var(--t-surface-active);
  border-color: var(--t-text-tertiary);
}

.marketing-drawer-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.marketing-drawer-nav {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.marketing-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--t-border-strong);
  background-color: var(--t-surface-input);
  color: var(--t-text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.marketing-drawer-link:hover,
.marketing-drawer-link:focus-visible {
  background-color: var(--t-surface-hover);
  border-color: var(--t-border-accent);
  color: var(--t-text);
  outline: none;
}

.marketing-drawer-actions {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--t-border-medium);
}

.marketing-drawer-actions .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.marketing-drawer-actions .btn-secondary {
  background-color: var(--t-surface-input);
  border: 1px solid var(--t-border-strong);
  color: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(4px);
}

.marketing-drawer-actions .btn-secondary:hover {
  background-color: var(--t-surface-hover);
  border-color: var(--t-border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.marketing-drawer-actions .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--t-text);
  font-weight: 600;
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.marketing-drawer-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

body.marketing-drawer-open .marketing-drawer {
  opacity: 1;
  pointer-events: auto;
}

body.marketing-drawer-open .marketing-drawer-panel {
  transform: translateX(0);
}

@media (max-width: 640px) {
  body.landing-page {
    font-size: 15px;
  }

  body.landing-page,
  body.landing-page * {
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  body.landing-page .landing-hero {
    grid-template-columns: 1fr;
  }

  body.landing-page .app-header .container {
    flex-wrap: wrap;
  }

  body.landing-page .app-logo-link {
    padding: 0.3rem 0.55rem;
    gap: 0.5rem;
  }

  body.landing-page .marketing-header-actions {
    display: none;
  }

  body.landing-page .marketing-menu-toggle {
    display: inline-flex;
  }

  body.marketing-drawer-open {
    overflow: hidden;
  }

  body.landing-page .marketing-shell {
    padding: 48px 16px 88px;
    max-width: 100%;
  }

  body.landing-page .landing-hero {
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    border-radius: 20px;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }

  body.landing-page .landing-hero-copy,
  body.landing-page .landing-hero-card {
    min-width: 0;
    max-width: 100%;
  }

  body.landing-page .landing-hero-card {
    width: 100%;
    padding: 1rem;
  }

  body.landing-page .leaderboard-item {
    width: 100%;
    max-width: 100%;
  }

  body.landing-page .landing-hero-copy h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    margin-bottom: 0.5rem;
  }

  body.landing-page .landing-hero-copy .hero-subheadline {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  body.landing-page .hero-trust {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }

  body.landing-page .btn {
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
  }

  body.landing-page .landing-hero .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  body.landing-page .landing-hero .hero-ctas .btn {
    width: 100%;
  }

  body.landing-page .btn-primary,
  body.landing-page .btn-secondary {
    white-space: normal;
  }

  body.landing-page .leaderboard-item {
    padding: 0.7rem 0.85rem;
  }

  body.landing-page .leaderboard-track {
    min-height: 100px;
    height: auto;
    overflow: visible;
  }

  body.landing-page .leaderboard-kicker {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }

  body.landing-page .leaderboard-ticker {
    margin-top: 0.35rem;
  }

  body.landing-page .leaderboard-dots {
    margin-top: 0.5rem;
  }

  body.landing-page .leaderboard-label {
    font-size: 0.7rem;
  }

  body.landing-page .leaderboard-value {
    font-size: 1.4rem;
    margin: 0;
  }

  body.landing-page .leaderboard-detail {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  body.landing-page .leaderboard-rank {
    font-size: 0.85rem;
  }

  body.landing-page .feature-grid {
    margin-top: 2rem;
  }

  body.landing-page .feature-card {
    padding: 1.35rem;
  }

  body.landing-page .faq-question {
    padding: 1.15rem 1.15rem 1rem;
    font-size: 1rem;
  }

  .landing-footer {
    padding: 2rem;
  }
}

/* Mobile ultra-compact - fit everything above the fold */
@media (max-width: 420px) {
  body.landing-page {
    font-size: 13px;
  }

  body.landing-page .app-header {
    padding: 0.15rem 0;
  }

  body.landing-page .app-logo-icon {
    width: 28px;
    height: 28px;
  }

  body.landing-page .app-logo-title {
    font-size: 0.85rem;
  }

  body.landing-page .marketing-shell {
    padding: 8px 8px 40px;
  }

  body.landing-page .landing-hero {
    padding: 0.35rem;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
    border-radius: 12px;
  }

  body.landing-page .landing-hero-copy .eyebrow {
    display: none; /* Hide eyebrow to save space */
  }

  body.landing-page .landing-hero-copy h1 {
    font-size: clamp(0.95rem, 4.8vw, 1.2rem);
    margin-bottom: 0.08rem;
    line-height: 1.1;
  }

  body.landing-page .landing-hero-copy .hero-subheadline {
    font-size: 0.55rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
  }

  body.landing-page .hero-ctas {
    gap: 0.2rem;
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  /* Hide secondary buttons (API Docs, View Research) on mobile */
  body.landing-page .hero-ctas .btn-secondary,
  body.landing-page .landing-hero .hero-ctas .btn.btn-secondary {
    display: none !important;
  }

  body.landing-page .landing-hero .hero-ctas .btn {
    width: auto !important;
    padding: 0.3rem 0.5rem;
    font-size: 0.55rem;
  }

  body.landing-page .hero-trust {
    font-size: 0.5rem;
    margin-top: 0.1rem;
  }

  body.landing-page .landing-hero-card {
    padding: 0.35rem;
  }

  body.landing-page .landing-leaderboard {
    gap: 0.1rem;
  }

  /* Research ticker - inline compact */
  body.landing-page .research-ticker {
    margin-bottom: 0.1rem;
    padding-bottom: 0.1rem;
    border-bottom: none;
  }

  body.landing-page .research-ticker-label {
    font-size: 0.45rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.15em;
  }

  body.landing-page .research-ticker-track {
    min-height: 1.5rem;
  }

  body.landing-page .research-ticker-item {
    padding: 0.15rem 0.25rem;
    gap: 0.15rem;
  }

  body.landing-page .research-ticker-type {
    font-size: 0.4rem;
    padding: 0.1rem 0.3rem;
  }

  body.landing-page .research-ticker-title {
    font-size: 0.5rem;
    -webkit-line-clamp: 1;
    line-height: 1.2;
  }

  body.landing-page .research-ticker-dots {
    margin-top: 0.1rem;
    gap: 0.2rem;
  }

  body.landing-page .research-ticker-dot {
    width: 3px;
    height: 3px;
  }

  /* Leaderboard / Impact metrics - ultra compact */
  body.landing-page .leaderboard-kicker {
    font-size: 0.45rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.05rem;
  }

  body.landing-page .leaderboard-ticker {
    margin-top: 0.05rem;
  }

  body.landing-page .leaderboard-track {
    min-height: 42px;
    height: auto;
    overflow: visible;
  }

  body.landing-page .leaderboard-item {
    flex-direction: row;
    gap: 0.25rem;
    padding: 0.2rem 0.3rem;
    align-items: center;
  }

  body.landing-page .leaderboard-rank {
    font-size: 0.5rem;
  }

  body.landing-page .leaderboard-copy {
    flex: 1;
    min-width: 0;
  }

  body.landing-page .leaderboard-label {
    font-size: 0.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 0;
  }

  body.landing-page .leaderboard-value {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.1;
  }

  body.landing-page .leaderboard-detail {
    display: none;
  }

  body.landing-page .leaderboard-dots {
    margin-top: 0.15rem;
  }

  body.landing-page .leaderboard-dot {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 390px) {
  body.landing-page .marketing-shell {
    padding: 18px 8px 50px;
  }

  body.landing-page .landing-hero {
    padding: 0.35rem;
    gap: 0.2rem;
  }

  body.landing-page .landing-hero-copy h1 {
    font-size: clamp(0.9rem, 4.5vw, 1.1rem);
  }

  body.landing-page .landing-hero-copy .hero-subheadline {
    font-size: 0.5rem;
  }

  body.landing-page .landing-hero .hero-ctas .btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.5rem;
  }

  body.landing-page .leaderboard-track {
    min-height: 38px;
    height: auto;
    overflow: visible;
  }

  body.landing-page .leaderboard-value {
    font-size: 0.7rem;
  }
}

.workflow-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: workflow;
}

.workflow-steps li {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 1.5rem;
  background: rgba(11, 18, 32, 0.92);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.6);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.85);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.workflow-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--t-text);
}

.workflow-steps p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.deliverable-card {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(5, 11, 29, 0.9);
}

.deliverable-card h3 {
  margin-top: 0;
  color: #facc15;
}

.deliverable-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.88);
}

.deliverable-card li {
  position: relative;
  padding-left: 1.4rem;
}

.deliverable-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.api-shell {
  padding-top: 32px;
}

.api-surface {
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.25), transparent 65%),
    rgba(4, 10, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 36px;
  padding: clamp(1.75rem, 2.8vw, 2.75rem);
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.7);
  position: relative;
  overflow: hidden;
}

.api-surface::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  pointer-events: none;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.api-sidebar {
  position: sticky;
  top: 110px;
  align-self: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(5, 10, 24, 0.9);
}

.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(191, 219, 254, 0.8);
  margin-bottom: 1rem;
}

.sidebar-link {
  display: block;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--t-text);
}

.api-content {
  width: 100%;
}

.api-section {
  margin-bottom: 3.5rem;
}

.api-section .section-heading h2 {
  color: var(--t-text);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.api-section .section-label {
  color: rgba(226, 232, 240, 0.86);
  letter-spacing: 0.25em;
}

#api-quickstart .section-heading h2 {
  color: var(--t-text);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.api-hero h1 {
  color: var(--t-text);
}

.api-hero .lead {
  color: rgba(226, 232, 240, 0.95);
  max-width: 720px;
}

.api-hero .hero-ctas {
  margin-top: 1.25rem;
}

.api-meta {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(191, 219, 254, 0.75);
}

.meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--t-text);
}

.api-card {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 22px;
  padding: 1.75rem;
  background: linear-gradient(140deg, rgba(19, 27, 52, 0.95), rgba(9, 14, 30, 0.88));
  box-shadow: 0 30px 70px rgba(3, 6, 23, 0.55);
  backdrop-filter: blur(18px);
}

.api-card pre {
  margin-top: 1rem;
  background: rgba(4, 8, 24, 0.92);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  font-size: 0.8rem;
  overflow-x: auto;
}

.code-card h3,
.code-card h2 {
  margin-bottom: 0.5rem;
  color: var(--t-text);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.code-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.code-card-heading h3,
.code-card-heading h2 {
  margin-bottom: 0;
}

.code-copy-btn {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.8);
  color: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-copy-btn:hover,
.code-copy-btn:focus-visible {
  color: var(--t-text);
  border-color: rgba(96, 165, 250, 0.7);
  outline: none;
}

.code-copy-btn[data-state="copied"] {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.code-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.api-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.request-pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pattern-card {
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(24, 32, 60, 0.95), rgba(12, 17, 33, 0.88));
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  backdrop-filter: blur(14px);
}

.pattern-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--t-text);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.pattern-card p {
  color: rgba(226, 232, 240, 0.92);
}

.pattern-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
}

.pattern-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(94, 234, 212, 0.9);
}

.quickstart-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: quickstep;
}

.quickstart-list li {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 1.65rem;
  background: linear-gradient(135deg, #ffffff, #f2f5fb);
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.12);
  position: relative;
}

.quickstart-list li::before {
  counter-increment: quickstep;
  content: counter(quickstep);
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #05070f;
  letter-spacing: 0.15em;
}

.quickstart-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--t-text);
}

.quickstart-list p {
  margin: 0;
  color: #1f2937;
}

.api-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.api-list li {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.9rem;
}

.api-tip {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.85);
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

body.legal-page {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), rgba(3, 7, 18, 0.95)), #030814;
  color: var(--t-text);
}

.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  color: var(--t-text);
}

.legal-hero {
  margin-bottom: 2.5rem;
}

.legal-hero h1 {
  color: var(--t-text);
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.legal-hero .lead,
.legal-hero p {
  color: rgba(248, 250, 252, 0.9);
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.35rem;
  color: var(--t-text);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: rgba(248, 250, 252, 0.9);
  display: grid;
  gap: 0.4rem;
}

.legal-section p,
.legal-section li {
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.6;
}

.legal-section strong {
  color: var(--t-text);
}

.legal-contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 600;
  color: var(--t-text);
}

.legal-contact a {
  color: #cbd5f5;
  text-decoration: underline;
}

.endpoint-card {
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(150deg, rgba(23, 31, 58, 0.94), rgba(10, 15, 32, 0.9));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.48);
  backdrop-filter: blur(12px);
}

.endpoint-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--t-text);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.endpoint-card p {
  color: rgba(226, 232, 240, 0.92);
}

.endpoint-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.endpoint-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(94, 234, 212, 0.9);
}

.webhook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.webhook-card {
  border: 1px solid rgba(129, 140, 248, 0.38);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(150deg, rgba(27, 38, 70, 0.94), rgba(11, 16, 32, 0.9));
  box-shadow: 0 26px 60px rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(16px);
}

.webhook-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--t-text);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.webhook-card p {
  color: rgba(226, 232, 240, 0.92);
}

.webhook-card ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.api-table th,
.api-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  text-align: left;
}

.api-table th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.85);
}

.api-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.55);
}

@media (max-width: 960px) {
  .api-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .api-sidebar {
    position: static;
    order: 2;
  }
}

@media (max-width: 768px) {
  .marketing-shell {
    padding: 56px 18px 96px;
  }

  /* Landing page: override the 6rem margin-top so there's no huge gap at top */
  body.landing-page .marketing-shell {
    margin-top: 0;
    padding-top: 1.5rem;
  }

  .marketing-header-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .landing-metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body.landing-page .marketing-shell {
    padding-top: 0.75rem;
  }

  .landing-hero-copy h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .landing-hero {
    padding: clamp(1.2rem, 4vw, 1.8rem);
  }
}

/* =============================================================================
   RESEARCH & BENCHMARKS PAGES
   ============================================================================= */

/* Research Landing Page */
.research-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0 !important;
}

.research-hero {
  text-align: center;
  padding: 0 0 16px;
}

.research-hero .eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--t-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.research-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 8px;
  color: var(--t-text);
}

.research-hero .hero-subheadline {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--t-text);
}

/* Filter Tabs */
.research-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.research-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.research-filter-tab {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.research-filter-tab:hover {
  color: var(--text-main);
  background-color: var(--t-surface-input);
}

.research-filter-tab.is-active {
  color: var(--text-main);
  background: var(--accent);
}

/* Research Cards */
.research-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.research-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.research-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.research-card--coming-soon {
  opacity: 0.7;
}

.research-card--coming-soon:hover {
  border-color: var(--border-subtle);
  transform: none;
}

.research-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.research-card-badge {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.research-card-badge--benchmark {
  background: rgba(37, 99, 235, 0.15);
  color: var(--t-link);
}

.research-card-badge--publication {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.research-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.research-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--t-text) !important;
}

.research-card-title a {
  color: var(--t-text) !important;
  text-decoration: none;
}

.research-card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.research-card-subtitle {
  font-size: 0.95rem;
  color: var(--t-text);
  margin-bottom: 12px;
  font-weight: 500;
}

.research-card-summary {
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.research-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.research-card-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.research-card-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Research CTA */
.research-cta {
  margin-top: 64px;
}

.research-cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.research-cta-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.research-cta-card p {
  max-width: 560px;
  margin: 0 auto 24px;
}

/* =============================================================================
   BENCHMARK DETAIL PAGE
   ============================================================================= */

.benchmark-shell {
  max-width: 820px;
  margin: 0 auto;
}

.benchmark-breadcrumb {
  margin-bottom: 32px;
}

.benchmark-breadcrumb a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.benchmark-breadcrumb a:hover {
  color: var(--accent);
}

.benchmark-article {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.benchmark-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.benchmark-badge {
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--t-link);
}

.benchmark-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.benchmark-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--t-text);
}

.benchmark-subtitle {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.benchmark-section {
  margin-bottom: 40px;
}

.benchmark-section h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-section h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 28px 0 12px;
}

.benchmark-section p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.benchmark-section ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.benchmark-section li {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.benchmark-section strong {
  color: var(--text-main);
}

.benchmark-section em {
  color: var(--accent);
  font-style: italic;
}

/* Benchmark Comparison Box */
.benchmark-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.benchmark-comparison-item {
  padding: 24px;
  border-radius: 12px;
  background-color: var(--t-surface-soft);
  border: 1px solid var(--border-subtle);
}

.benchmark-comparison-item--highlight {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.comparison-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-value {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

/* Benchmark CTA */
.benchmark-cta {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.06));
  border-radius: 16px;
  text-align: center;
}

.benchmark-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.benchmark-cta p {
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .research-card-grid {
    grid-template-columns: 1fr;
  }

  .benchmark-article {
    padding: 28px 20px;
  }

  .benchmark-comparison {
    grid-template-columns: 1fr;
  }

  .research-cta-card {
    padding: 32px 20px;
  }

  /* Research page mobile header - match landing page */
  body.research-page .marketing-header-actions,
  body.benchmark-page .marketing-header-actions {
    display: none;
  }

  body.research-page .marketing-menu-toggle,
  body.benchmark-page .marketing-menu-toggle {
    display: inline-flex;
  }

  body.research-page .marketing-shell,
  body.benchmark-page .marketing-shell {
    padding: 56px 16px 88px;
  }
}


/* ==========================================================================
   FEATURES PAGE
   ========================================================================== */

.features-shell {
  padding: 0 clamp(1rem, 4vw, 3rem) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

body.features-page .marketing-shell {
  margin-top: 6rem;
}

/* ---- Hero ---- */
.features-hero {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem);
  margin-bottom: 4rem;
  background:
    radial-gradient(circle at 60% 20%, rgba(37, 99, 235, 0.25), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15), transparent 50%);
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.features-hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(96, 165, 250, 0.9);
  margin-bottom: 0.75rem;
}

.features-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 1rem;
}

.features-hero .lead {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.features-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Sections ---- */
.features-section {
  margin-bottom: 4rem;
}

.features-section-header {
  margin-bottom: 2rem;
}

.features-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-main, #f1f5f9);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.features-section-lead {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  max-width: 640px;
  line-height: 1.65;
}

/* ---- Badges ---- */
.features-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: rgba(37, 99, 235, 0.18);
  color: rgba(96, 165, 250, 0.95);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.features-badge--teal {
  background: rgba(20, 184, 166, 0.15);
  color: rgba(94, 234, 212, 0.95);
  border-color: rgba(20, 184, 166, 0.3);
}

.features-badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: rgba(252, 211, 77, 0.95);
  border-color: rgba(245, 158, 11, 0.3);
}

.features-badge--rose {
  background: rgba(244, 63, 94, 0.15);
  color: rgba(251, 113, 133, 0.95);
  border-color: rgba(244, 63, 94, 0.3);
}

.features-badge--indigo {
  background: rgba(99, 102, 241, 0.15);
  color: rgba(165, 180, 252, 0.95);
  border-color: rgba(99, 102, 241, 0.3);
}

.features-badge--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: rgba(103, 232, 249, 0.95);
  border-color: rgba(6, 182, 212, 0.3);
}

/* ---- Capability grid ---- */
.features-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.features-capability-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.features-capability-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.features-capability-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.5);
}

.features-capability-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: rgba(96, 165, 250, 0.9);
  margin-bottom: 1rem;
}

.features-capability-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.features-capability-card p {
  font-size: 0.88rem;
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  line-height: 1.6;
  margin: 0;
}

.features-beta {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: rgba(252, 211, 77, 0.95);
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* ---- CTA section ---- */
.features-cta-section {
  margin-top: 2rem;
}

.features-cta-block {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2), transparent 60%),
    rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 24px;
}

.features-cta-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 0.75rem;
}

.features-cta-block p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 768px) {
  .features-shell {
    padding: 0 1rem 60px;
  }

  body.features-page .marketing-shell {
    margin-top: 4rem;
  }

  .features-hero {
    padding: 2rem 1.25rem;
    margin-bottom: 2.5rem;
  }

  .features-section {
    margin-bottom: 3rem;
  }

  body.features-page .marketing-header-actions {
    display: none;
  }

  body.features-page .marketing-menu-toggle {
    display: inline-flex;
  }
}

/* ═══════════════════════════════════════════════════════
   Desktop Connect Feature Page
   ═══════════════════════════════════════════════════════ */

.dc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 2rem;
}

.dc-breadcrumb a {
  color: rgba(34, 197, 94, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dc-breadcrumb a:hover {
  color: #4ade80;
}

/* ─── DC Hero ─── */
.dc-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem);
}

.dc-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f1f5f9 30%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dc-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: rgba(74, 222, 128, 0.9);
  margin-bottom: 1rem;
}

.dc-hero-lead {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.dc-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── DC Sections ─── */
.dc-section {
  max-width: 900px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

/* ─── How It Works steps ─── */
.dc-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.dc-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 16px;
  transition: border-color 0.25s ease;
}

.dc-step:hover {
  border-color: rgba(34, 197, 94, 0.35);
}

.dc-step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.dc-step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 0.4rem;
}

.dc-step-content p {
  font-size: 0.88rem;
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  line-height: 1.6;
  margin: 0;
}

/* ─── Capability cards (DC variant) ─── */
.dc-card {
  border-color: rgba(34, 197, 94, 0.15);
}

.dc-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.5);
}

.dc-icon {
  background: rgba(34, 197, 94, 0.1);
  color: rgba(74, 222, 128, 0.9);
}

/* ─── Use Cases ─── */
.dc-use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.dc-use-case {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 16px;
  transition: border-color 0.25s ease;
}

.dc-use-case:hover {
  border-color: rgba(34, 197, 94, 0.3);
}

.dc-use-case-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: block;
}

.dc-use-case h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 0.5rem;
}

.dc-use-case p {
  font-size: 0.88rem;
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  line-height: 1.6;
  margin: 0;
}

.dc-use-case em {
  color: rgba(74, 222, 128, 0.85);
  font-style: italic;
}

/* ─── Tech Details grid ─── */
.dc-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.dc-detail {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.35);
  border-radius: 14px;
}

.dc-detail h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 0.4rem;
}

.dc-detail p {
  font-size: 0.83rem;
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  line-height: 1.6;
  margin: 0;
}

/* ─── Getting Started ─── */
.dc-getting-started {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dc-gs-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 12px;
}

.dc-gs-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.dc-gs-step p {
  font-size: 0.88rem;
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  line-height: 1.6;
  margin: 0;
}

.dc-gs-step a {
  color: rgba(74, 222, 128, 0.9);
  text-decoration: none;
}

.dc-gs-step a:hover {
  text-decoration: underline;
}

/* ─── DC Mobile ─── */
@media (max-width: 768px) {
  .dc-hero h1 {
    font-size: 1.8rem;
  }

  .dc-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .dc-breadcrumb {
    margin-bottom: 1rem;
  }
}
