/* Final dark-theme corrections for internal routes. Keep this file last in BaseLayout. */

body.steady-inner {
  color-scheme: dark;
}

.inner-site-nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.inner-site-nav::-webkit-scrollbar { display: none; }
.inner-site-nav a { white-space: nowrap; }

/* Generic service and case landing pages. */
.steady-inner .seo-landing {
  background:
    radial-gradient(circle at 14% 8%, rgba(126,95,255,.14), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(52,174,255,.08), transparent 30rem),
    linear-gradient(180deg, #050508, #09090f 55%, #050508) !important;
  color: #f7f7fb !important;
}

.steady-inner .seo-back,
.steady-inner .section-kicker { color: #a795ff !important; }

.steady-inner .seo-card,
.steady-inner .seo-cta {
  border-color: rgba(255,255,255,.1) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
  color: #f7f7fb !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.28) !important;
}

.steady-inner .seo-card:hover {
  border-color: rgba(167,149,255,.48) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.36) !important;
}

.steady-inner .seo-actions .btn-secondary,
.steady-inner .seo-cta .btn-secondary {
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.04) !important;
  color: #f7f7fb !important;
}

/* Platform case study. */
.steady-inner .platform-story-hero,
.steady-inner .platform-story-section,
.steady-inner .platform-timeline-section,
.steady-inner .platform-flow-section,
.steady-inner .platform-automation-section,
.steady-inner .platform-result-section,
.steady-inner .platform-stack-strip {
  background:
    radial-gradient(circle at 14% 10%, rgba(126,95,255,.12), transparent 28rem),
    linear-gradient(180deg, #07070b, #0b0b12) !important;
  color: #f7f7fb !important;
}

.steady-inner .platform-story-copy h1,
.steady-inner .platform-section-heading h2,
.steady-inner .story-text-card h2,
.steady-inner .automation-card h2,
.steady-inner .platform-result-card h2,
.steady-inner .timeline-card h3,
.steady-inner .platform-contact-head h2 {
  color: #f7f7fb !important;
}

.steady-inner .platform-story-copy p,
.steady-inner .platform-section-heading p,
.steady-inner .story-text-card p,
.steady-inner .automation-card p,
.steady-inner .platform-result-card p,
.steady-inner .timeline-card p,
.steady-inner .platform-contact-head p {
  color: #aaaab8 !important;
}

.steady-inner .platform-hero-visual,
.steady-inner .story-text-card,
.steady-inner .automation-card,
.steady-inner .timeline-card,
.steady-inner .platform-result-card,
.steady-inner .platform-contact-panel {
  border-color: rgba(255,255,255,.11) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.34) !important;
}

.steady-inner .platform-center,
.steady-inner .node,
.steady-inner .flow-box,
.steady-inner .stack-strip-grid span,
.steady-inner .automation-ladder span {
  border-color: rgba(167,149,255,.24) !important;
  background: rgba(14,14,22,.9) !important;
  color: #dcd7ff !important;
}

.steady-inner .platform-contact-form label { color: #f7f7fb !important; }
.steady-inner .platform-contact-form input,
.steady-inner .platform-contact-form select,
.steady-inner .platform-contact-form textarea {
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.045) !important;
  color: #fff !important;
}

/* Advantages directory still contains legacy white blocks. */
.steady-inner .advantages-directory,
.steady-inner .advantages-directory-hero,
.steady-inner .advantages-directory-featured,
.steady-inner .advantages-directory-all,
.steady-inner .advantages-directory-cta,
.steady-inner .advantages-directory-contact {
  background: transparent !important;
}

.steady-inner .advantage-directory-card,
.steady-inner .advantages-directory-toolbar,
.steady-inner .advantages-directory-metrics span,
.steady-inner .advantages-directory-cta-inner {
  border-color: rgba(255,255,255,.1) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
  color: #f7f7fb !important;
  box-shadow: 0 22px 64px rgba(0,0,0,.28) !important;
}

.steady-inner .advantages-directory-copy h1,
.steady-inner .directory-section-heading h2,
.steady-inner .advantage-directory-card h3,
.steady-inner .advantages-directory-cta h2 {
  color: #f7f7fb !important;
}

.steady-inner .advantages-directory-copy p,
.steady-inner .directory-section-heading p,
.steady-inner .advantage-directory-card p,
.steady-inner .advantages-directory-cta p {
  color: #aaaab8 !important;
}

.steady-inner .advantage-directory-tags span,
.steady-inner .advantage-directory-meta span,
.steady-inner .advantages-directory-toolbar a {
  border: 1px solid rgba(167,149,255,.2) !important;
  background: rgba(137,107,255,.1) !important;
  color: #dcd7ff !important;
}

/* Keep CTA and forms visible on dark pages. */
.steady-inner .article-cta,
.steady-inner .resource-library-cta,
.steady-inner .inline-contact,
.steady-inner .lead-form {
  color: #f7f7fb;
}

.steady-inner .lead-form {
  border-color: rgba(255,255,255,.1) !important;
  background: rgba(9,9,15,.72) !important;
}

.steady-inner .lead-form label,
.steady-inner .lead-form summary { color: #dedee7 !important; }

.steady-inner .lead-form input,
.steady-inner .lead-form textarea,
.steady-inner .lead-form select {
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.05) !important;
  color: #fff !important;
}

.steady-inner .form-note { color: #9494a3 !important; }

@media (max-width: 900px) {
  .inner-site-header__row {
    gap: 14px;
  }

  .inner-site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 10px;
  }

  .inner-site-header__row {
    min-height: 0;
    padding-top: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .inner-site-action { display: none; }
  .inner-site-header__row { width: min(100% - 22px, 1180px); }
  .inner-site-nav a { padding-inline: 9px; font-size: .84rem; }
}
