/* ==========================================================================
   pages.css - Page-specific style overrides
   Keep this file minimal. Most styles should live in components.css.
   Only add styles here when a page needs a one-off layout that doesn't
   fit any reusable component pattern.
   ========================================================================== */

/* --- Homepage --- */

/* Overview section */
.overview-section {
  text-align: center;
}

.overview-features {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overview-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  max-width: 720px;
  width: 100%;
}

.overview-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white-1);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.overview-tile:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 767px) {
  .overview-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.overview-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Four-up workflow cards */
.four-up-section {
  text-align: center;
}

.four-up-section .section-header p {
  margin-bottom: 48px;
}

/* SDK/Docker block */
.sdk-section {
  background: var(--bg-approach);
  text-align: center;
}

.sdk-section h2 a {
  color: var(--blue-3);
  text-decoration: none;
}

.sdk-section h2 a:hover {
  text-decoration: underline;
}

.sdk-install {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--blue-1);
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-code);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-card);
}

/* Alternating feature sections - warm bg variant */
.feature-section-warm {
  background: var(--bg-approach);
}

/* Feature section placeholder visuals */
.feature-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.feature-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  background: rgba(240, 168, 72, 0.06);
  border: 1px solid rgba(240, 168, 72, 0.12);
  font-size: 36px;
  color: var(--warm-accent);
  opacity: 0.5;
  margin-bottom: 8px;
}

.feature-placeholder-label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--white-3);
  letter-spacing: -0.3px;
}

.feature-placeholder-note {
  font-size: var(--text-badge);
  font-weight: 500;
  color: var(--white-4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Industries section */
.industries-section .section-header {
  text-align: left;
}

.industries-section .section-header p {
  margin: 0;
}

/* Case studies section */
.cases-section {
  background: var(--bg-approach);
}

.cases-section .section-header {
  text-align: left;
}

.cases-section .section-header p {
  margin: 0;
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}

.case-card h3 {
  margin-bottom: 8px;
}

.case-card p {
  font-size: var(--text-btn);
  color: var(--white-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.case-link {
  color: var(--blue-3);
  text-decoration: none;
  font-size: var(--text-btn-sm);
  font-weight: 700;
  transition: color 0.2s;
}

.case-link:hover {
  color: var(--blue-1);
}

/* Homepage hero video poster background */
.hero-poster-bg {
  position: absolute;
  inset: 0;
  background: url('/img/hero-poster.jpg') center/cover no-repeat;
  z-index: 0;
}

/* --- Hardware --- */

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card h3 {
  font-family: var(--font-code);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.product-card .product-price {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white-1);
  letter-spacing: -0.5px;
}

.product-card p {
  flex: 1;
}

.product-card .product-includes {
  font-size: 13px;
  opacity: 0.7;
  flex: 0;
}

.product-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* --- Software & Pricing --- */

/* Pricing cards */
.pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 4px;
}

.pricing-tier {
  font-size: var(--text-badge-sm);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-3);
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white-1);
  letter-spacing: -1px;
  line-height: 1.1;
}

.pricing-period {
  font-size: var(--text-footer);
  color: var(--white-3);
  margin-bottom: 16px;
}

.pricing-card p {
  flex: 1;
  margin-bottom: 20px;
}

.pricing-card .btn {
  align-self: center;
  margin-top: auto;
}

.pricing-card--featured {
  border-color: var(--blue-4);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.1);
}

.pricing-card--featured .pricing-tier {
  color: var(--warm-accent);
}

/* --- Engineering Services --- */

/* Engagement step numbers */
.engagement-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 168, 72, 0.1);
  border: 2px solid rgba(240, 168, 72, 0.25);
  color: var(--warm-accent);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* --- NEPI Product Hub --- */

.overview-diagram {
  max-width: 100%;
  height: auto;
}

/* --- NEPI Container --- */

/* Container registration form */
.container-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.container-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 767px) {
  .container-form .form-row {
    grid-template-columns: 1fr;
  }
}

.container-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* --- NEPI Container Get Started --- */

/* Setup instruction lists */
.setup-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.setup-list li {
  position: relative;
  padding-left: 20px;
  color: var(--white-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.setup-list li::before {
  content: '\2022';
  color: var(--warm-accent);
  position: absolute;
  left: 0;
}

/* Inline code blocks in get-started page */
.content-block-inner .code-block {
  margin: 16px 0;
}

.content-block-inner code {
  font-family: var(--font-code);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--blue-1);
}

/* --- Documentation & Tutorials (shared shell layout) --- */

/* Docs shell: full-width sidebar + iframe content area.
   Must override .section > * max-width constraint from components.css */
.docs-shell {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
  max-width: none;
  margin: 0;
  width: 100%;
}

/* Sidebar */
.docs-sidebar {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: var(--bg-approach);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  z-index: 50;
}

.docs-sidebar-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Override base.css h2 (font-size: var(--text-section-title), letter-spacing: -1.5px) */
.docs-sidebar-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--white-1);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0;
}

.docs-sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--white-3);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Sidebar nav */
.docs-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.docs-nav-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

/* Override base.css h3 (font-size: var(--text-card-title), letter-spacing: -1px) */
.docs-nav-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.4;
  color: var(--white-4);
  padding: 8px 8px 4px;
  margin: 0;
}

.docs-nav-link {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-3);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-1);
  text-decoration: none;
}

.docs-nav-link.is-active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-3);
  font-weight: 600;
}

/* Coming soon links */
.docs-nav-link--soon {
  color: var(--white-4);
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

.docs-nav-link--soon::after {
  content: ' (soon)';
  font-size: 11px;
  font-style: italic;
}

/* Sidebar footer */
.docs-sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  gap: 16px;
}

.docs-sidebar-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-3);
  text-decoration: none;
}

.docs-sidebar-footer a:hover {
  color: var(--blue-3);
}

/* Main content area (iframe) */
.docs-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.docs-iframe {
  flex: 1;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  border: none;
  display: block;
}

/* Mobile sidebar toggle button */
.docs-sidebar-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  color: var(--white-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  margin: 12px 16px;
  cursor: pointer;
  align-self: flex-start;
}

.docs-sidebar-toggle:hover {
  border-color: var(--white-4);
  color: var(--white-1);
}

/* --- Responsive: docs layout --- */
@media (max-width: 899px) {
  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
    box-shadow: none;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .docs-sidebar-close {
    display: block;
  }

  .docs-sidebar-toggle {
    display: block;
  }

  .docs-shell {
    flex-direction: column;
  }
}

/* Theme overrides for docs sidebar */
[data-theme="clean"] .docs-sidebar,
[data-theme="warm"] .docs-sidebar {
  background: var(--bg-card);
}

[data-theme="clean"] .docs-nav-link:hover,
[data-theme="warm"] .docs-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="clean"] .docs-nav-link.is-active,
[data-theme="warm"] .docs-nav-link.is-active {
  background: rgba(59, 130, 246, 0.08);
}

[data-theme="clean"] .docs-sidebar-toggle,
[data-theme="warm"] .docs-sidebar-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-card);
}

/* --- Doc Article (standalone pages with sidebar) --- */

.doc-article {
  max-width: 900px;
  padding: 32px 48px 64px;
  line-height: 1.7;
}

.doc-article h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.doc-article h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.doc-article h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.doc-article h4 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.doc-article p {
  margin-bottom: 16px;
}

.doc-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.doc-article ul,
.doc-article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.doc-article li {
  margin-bottom: 6px;
}

.doc-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.doc-article th,
.doc-article td {
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  text-align: left;
}

.doc-article th {
  background: var(--bg-approach);
  font-weight: 700;
}

.doc-article pre,
.doc-article code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
}

.doc-article pre {
  background: var(--bg-approach);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.doc-article code {
  background: var(--bg-approach);
  padding: 2px 6px;
  border-radius: 4px;
}

.doc-article pre code {
  background: none;
  padding: 0;
}

.doc-breadcrumb {
  font-size: 13px;
  color: var(--white-4);
  margin-bottom: 16px;
}

.doc-breadcrumb a {
  color: var(--white-3);
  text-decoration: none;
}

.doc-breadcrumb a:hover {
  color: var(--blue-3);
}

/* --- Doc Content Formatting (per DOCS-FORMATTING-SPEC.md) --- */

/* Enhanced headings */
.doc-article h2 {
  border-bottom: 1px solid rgba(148,163,184,0.2);
  padding-bottom: 12px;
  margin-top: 48px;
}

/* Links in doc content */
.doc-article a {
  color: #3B82F6;
  text-decoration: underline;
  text-decoration-color: rgba(59,130,246,0.4);
  text-underline-offset: 3px;
}

.doc-article a:hover {
  color: #60A5FA;
  text-decoration-color: rgba(96,165,250,0.8);
}

.doc-article a:visited {
  color: #818CF8;
}

.doc-article a[target="_blank"]::after {
  content: ' \2197';
  font-size: 0.75em;
  opacity: 0.6;
}

/* Enhanced tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.12);
}

.doc-article .table-responsive table {
  margin: 0;
  border: none;
}

.doc-article table {
  border-collapse: collapse;
  border: none;
}

.doc-article th {
  background: #1E293B;
  color: #F1F5F9;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-bottom: 2px solid rgba(59,130,246,0.3);
  padding: 12px 16px;
}

.doc-article td {
  border: none;
  border-bottom: 1px solid rgba(148,163,184,0.12);
  padding: 12px 16px;
  font-size: 14px;
}

.doc-article tbody tr {
  border-bottom: 1px solid rgba(148,163,184,0.08);
}

.doc-article tbody tr:nth-child(even) {
  background: rgba(30,41,59,0.35);
}

.doc-article tbody tr:hover {
  background: rgba(59,130,246,0.08);
}

.doc-article thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* API reference table */
.api-reference-table td:first-child {
  font-family: var(--font-code);
  font-weight: 600;
  color: #60A5FA;
  font-size: 13px;
  white-space: nowrap;
}

.api-reference-table td:nth-child(2) {
  font-family: var(--font-code);
  color: #94A3B8;
  font-size: 13px;
}

.table-scroll {
  max-height: 600px;
  overflow-y: auto;
}

.table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Enhanced code blocks */
.doc-article code {
  background: rgba(30,41,59,0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: #E2E8F0;
  border: 1px solid rgba(148,163,184,0.15);
}

.doc-article pre {
  background: #0F172A;
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 8px;
  padding: 20px 24px;
  border-left: 3px solid #3B82F6;
  margin: 20px 0;
  line-height: 1.6;
}

.doc-article pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 14px;
  color: #E2E8F0;
}

/* Enhanced ordered lists */
.doc-article ol {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.doc-article ol > li {
  counter-increment: step-counter;
  padding-left: 36px;
  position: relative;
  margin-bottom: 16px;
}

.doc-article ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #3B82F6;
  font-size: 16px;
  line-height: 1.7;
}

.doc-article ol ol {
  counter-reset: sub-step;
  margin-top: 8px;
}

.doc-article ol ol > li {
  counter-increment: sub-step;
  padding-left: 24px;
  font-size: 14px;
  margin-bottom: 8px;
}

.doc-article ol ol > li::before {
  content: counter(sub-step, lower-alpha);
  font-size: 14px;
}

/* Enhanced unordered lists */
.doc-article ul {
  list-style: none;
  padding-left: 0;
}

.doc-article ul > li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.doc-article ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3B82F6;
}

.doc-article ul ul > li::before {
  background: transparent;
  border: 1.5px solid #3B82F6;
}

/* Callout boxes */
.callout {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-note {
  border-left: 3px solid #3B82F6;
  background: rgba(59,130,246,0.06);
}

.callout-warning {
  border-left: 3px solid #F59E0B;
  background: rgba(245,158,11,0.06);
}

.callout-danger {
  border-left: 3px solid #EF4444;
  background: rgba(239,68,68,0.06);
}

.callout strong:first-child {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* Topic/definition entries */
.topic-entry {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148,163,184,0.08);
}

.topic-name {
  font-family: var(--font-code);
  font-size: 15px;
  font-weight: 600;
  color: #60A5FA;
  margin-bottom: 6px;
}

.topic-description {
  font-size: 15px;
  color: #CBD5E1;
  line-height: 1.7;
  padding-left: 16px;
}

/* Image figures */
.doc-article figure {
  margin: 24px 0;
}

.doc-article figure img {
  border: 1px solid rgba(148,163,184,0.12);
}

.doc-article figcaption {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 8px;
  text-align: center;
}

/* Page table of contents */
.page-toc {
  background: rgba(30,41,59,0.4);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0 32px 0;
}

.page-toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  margin-bottom: 12px;
}

.page-toc a {
  display: block;
  padding: 4px 0;
  color: #CBD5E1;
  font-size: 14px;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.page-toc a:hover {
  color: #3B82F6;
  border-left-color: #3B82F6;
}

.page-toc a.toc-h3 {
  padding-left: 28px;
  font-size: 13px;
  color: #94A3B8;
}

/* Pagefind search overrides for dark theme */
.docs-search {
  max-width: 600px;
  margin: 0 auto 32px;
}

.docs-search .pagefind-ui__search-input {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--white-1) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
}

.docs-search .pagefind-ui__result-link {
  color: #3B82F6 !important;
}

.docs-search .pagefind-ui__result-excerpt {
  color: var(--white-3) !important;
}

/* --- API Entry Cards --- */

.api-entry {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-left: 3px solid #3B82F6;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.api-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.api-entry-type {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.api-entry-name {
  font-family: var(--font-code);
  font-size: 15px;
  font-weight: 600;
  color: #60A5FA;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.api-entry-body {
  font-size: 14px;
  line-height: 1.6;
  color: #CBD5E1;
}

.api-entry-body code {
  font-size: 13px;
}

/* --- Table caption --- */

.doc-article .table-caption {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
  text-align: left;
  padding: 8px 16px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-top: 20px;
  margin-bottom: 0;
}

.doc-article .table-caption + .table-responsive {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* --- Case Study Article (no sidebar) --- */

.case-study-article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.case-study-article h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

.case-study-article h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.case-study-article h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--blue-3);
}

.case-study-article p {
  margin-bottom: 16px;
}

.case-study-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.case-study-article ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.case-study-article em {
  display: block;
  border-left: 3px solid var(--blue-3);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--white-3);
}

.case-study-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
}

.case-study-back a {
  color: var(--blue-3);
  text-decoration: none;
  font-weight: 600;
}

.case-study-download {
  margin: 16px 0 32px;
}

.case-study-download a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-3);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s;
}

.case-study-download a:hover {
  border-color: var(--blue-3);
  color: var(--white-1);
}

/* Case study section headings - replace removed chevron decorators */
.case-study-article h4 {
  color: var(--blue-2);
  border-left: 3px solid var(--blue-2);
  padding-left: 12px;
}

/* --- Docs Hub (landing pages for /nepi/docs/ and /nepi/tutorials/) --- */

.docs-hub-hero {
  padding-bottom: 48px;
}

.docs-hub-hero h1 {
  font-size: 36px;
}

.docs-hub-content {
  padding-top: 0;
}

.docs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.docs-hub-category {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 28px;
}

.docs-hub-category h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.docs-hub-category > p {
  font-size: 14px;
  color: var(--white-3);
  margin-bottom: 16px;
}

.docs-hub-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-hub-links li {
  border-top: 1px solid var(--border-card);
}

.docs-hub-links a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--white-2);
  text-decoration: none;
  transition: color 0.15s;
}

.docs-hub-links a:hover {
  color: var(--blue-3);
}

.docs-hub-cta {
  text-align: center;
  margin-top: 48px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.docs-hub-cta a {
  color: var(--blue-3);
  font-weight: 600;
}

/* --- Case Studies --- */

.case-study-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.case-study-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 30px 30px 0;
}

.case-study-content h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.case-study-content .chip {
  margin-bottom: 12px;
}

.case-study-content p {
  margin-bottom: 12px;
}

.case-study-content .content-highlight {
  font-size: 16px;
  padding: 16px 0;
  margin-top: 16px;
}

.case-study-action {
  display: flex;
  gap: 12px;
  padding: 24px 30px 30px;
}

@media (max-width: 767px) {
  .case-study-image {
    height: 180px;
  }
  .case-study-content {
    padding: 24px 24px 0;
  }
  .case-study-action {
    padding: 20px 24px 24px;
    flex-wrap: wrap;
  }
}

/* --- Whitepapers --- */

.whitepaper-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.whitepaper-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.whitepaper-card .chip {
  margin-bottom: 12px;
}

.whitepaper-content {
  flex: 1;
}

.whitepaper-action {
  flex-shrink: 0;
  padding-top: 32px;
}

@media (max-width: 767px) {
  .whitepaper-card {
    flex-direction: column;
    gap: 16px;
  }
  .whitepaper-action {
    padding-top: 0;
  }
}

/* --- Programs --- */

/* --- Beta Program --- */

/* --- Support --- */

/* --- About --- */

/* Page hero - reusable for interior pages */
.page-hero {
  padding-top: calc(var(--header-height) + 80px);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-hero-headline);
  margin-bottom: 20px;
}

.page-hero .section-header p {
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .page-hero h1 {
    font-size: 36px;
  }
}

/* About story / vision / IP sections now use .content-block component (components.css) */

/* Leadership team cards */
.about-team-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-team-card {
  text-align: left;
}

.about-team-card h3 {
  margin-bottom: 4px;
}

.about-team-role {
  font-size: var(--text-btn);
  font-weight: 600;
  color: var(--blue-3);
  margin-bottom: 16px;
}

.about-team-card p {
  color: var(--white-2);
  font-size: var(--text-body-sm);
  line-height: 1.7;
}

/* CTA contact info line */
.cta-contact-info {
  margin-top: 24px;
  font-size: var(--text-btn);
  color: var(--white-3);
}

.cta-contact-info a {
  color: var(--blue-3);
}

.cta-contact-info a:hover {
  text-decoration: underline;
}

/* Defense card - no specific accent color, use default blue */
.card-industry .card-tag {
  color: var(--blue-3);
}

/* --- News --- */

/* --- Contact --- */

/* --- Privacy --- */

/* ==========================================================================
   THEME OVERRIDES - Page-specific light theme fixes
   ========================================================================== */

[data-theme="clean"] .overview-tile,
[data-theme="warm"] .overview-tile {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="clean"] .overview-tile:hover,
[data-theme="warm"] .overview-tile:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="clean"] .nepi-feature-tile,
[data-theme="warm"] .nepi-feature-tile {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="clean"] .nepi-feature-tile:hover,
[data-theme="warm"] .nepi-feature-tile:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Theme switcher dropdown in nav */
.theme-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-switcher-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white-3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}

.theme-switcher-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white-1);
}

[data-theme="clean"] .theme-switcher-btn,
[data-theme="warm"] .theme-switcher-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="clean"] .theme-switcher-btn:hover,
[data-theme="warm"] .theme-switcher-btn:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.theme-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-sm);
  padding: 6px 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 200;
}

[data-theme="clean"] .theme-switcher-menu,
[data-theme="warm"] .theme-switcher-menu {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.theme-switcher.is-open .theme-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-switcher-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}

.theme-switcher-menu button:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--white-1);
}

.theme-switcher-menu button.is-active {
  color: var(--blue-3);
  font-weight: 700;
}

.theme-switcher-menu button.is-active::before {
  content: '\2713 ';
}

/* --- Videos Page --- */

.video-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.video-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.video-section > p {
  color: var(--white-3);
  margin-bottom: 24px;
}

.video-section > p a {
  color: var(--blue-3);
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px 4px;
}

.video-card p {
  font-size: 14px;
  color: var(--white-3);
  padding: 0 20px 16px;
  line-height: 1.5;
}

.video-card p a {
  color: var(--blue-3);
  font-weight: 600;
}

/* --- Contact Page --- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--white-3);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white-4);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--blue-3);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-3);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--white-1);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-3);
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Legal Pages (Privacy) --- */

.legal-article {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-article h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-effective {
  color: var(--white-4);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-article h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-article h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-article p {
  margin-bottom: 14px;
}

.legal-article ul {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-article a {
  color: var(--blue-3);
}

/* --- News Page --- */

.news-content {
  padding-top: 0;
}

.news-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-card);
}

.news-item:first-child {
  padding-top: 0;
}

.news-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.news-item h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.news-item p {
  color: var(--white-3);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-link {
  color: var(--blue-3);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Documentation Formatting
   Styles for restored code blocks, callouts, and tables in doc pages.
   ========================================================================== */

/* Callout boxes: Note, Warning, Important */
.doc-article .doc-callout {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  border-left: 4px solid var(--blue-3);
  background: rgba(59, 130, 246, 0.06);
}

.doc-article .doc-callout--warning {
  border-left-color: var(--warm-accent);
  background: rgba(240, 168, 72, 0.06);
}

.doc-article .doc-callout--important {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

.doc-article .doc-callout strong:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Terminal commands with $ prompt */
.doc-article pre.doc-terminal {
  position: relative;
  padding-left: 28px;
}

.doc-article pre.doc-terminal code::before {
  content: '$ ';
  color: var(--white-4);
  user-select: none;
}

/* Table wrapper for horizontal scroll on mobile */
.doc-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.doc-table-wrap table {
  margin: 0;
}

/* Light theme overrides for doc formatting */
[data-theme="clean"] .doc-article .doc-callout,
[data-theme="warm"] .doc-article .doc-callout {
  background: rgba(59, 130, 246, 0.05);
}

[data-theme="clean"] .doc-article .doc-callout--warning,
[data-theme="warm"] .doc-article .doc-callout--warning {
  background: rgba(240, 168, 72, 0.05);
}

[data-theme="clean"] .doc-article .doc-callout--important,
[data-theme="warm"] .doc-article .doc-callout--important {
  background: rgba(239, 68, 68, 0.05);
}

/* --- Product page pipeline diagram --- */

.pipeline-diagram-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.pipeline-diagram-container svg {
  display: block;
  width: 100%;
  height: auto;
}

.pipeline-caption {
  text-align: center;
  font-size: 14px;
  color: var(--white-3);
  margin-top: 16px;
}

/* --- Product page feature placeholders --- */

.feature-placeholder-box {
  border: 2px dashed var(--border-card);
  border-radius: 12px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  background: rgba(148,163,184,0.03);
}

.feature-placeholder-box span {
  font-size: 13px;
  color: var(--white-4);
  font-family: var(--font-code);
}

/* --- Docs landing page architecture diagram --- */

.architecture-diagram-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.architecture-diagram-container svg {
  display: block;
  width: 100%;
  height: auto;
}
