:root {
  --color-bg: #f4fafb;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f5f7;
  --color-primary: #005f73;
  --color-primary-soft: #0a9396;
  --color-accent: #94d2bd;
  --color-text: #102a43;
  --color-muted: #627d98;
  --color-border: #d9e2ec;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-padding-top: 200px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout helpers */
.section {
  padding: 4rem 1.5rem;
  transition: background-color 0.5s ease;
}

.section.highlight {
  background-color: rgba(148, 210, 189, 0.25);
}

.section-alt.highlight {
  background-color: rgba(148, 210, 189, 0.35);
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 250, 251, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
}
/*logo and title spacing */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

/* COMPANY LOGO SIZE - Adjust the height value (130px) to make logo bigger/smaller */
.brand-logo {
  height: 150px;
  width: auto;
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
}
/*TITLE NEXT TO LOGO */
.brand-title {
  font-weight: 700;
  font-size: 1.95rem;
  color: var(--color-primary-soft);
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav {
  margin-left: auto;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  display: block;
  margin: 4px 0;
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
  }

  .nav-toggle {
    display: block;
  }
}

/* IMAGERY BANNER HEIGHT - Adjust min-height value (currently 800px) to make banner taller/shorter */
.hero {
  position: relative;
  min-height: 800px;
  color: #fdfdfd;
  background-image: linear-gradient(to bottom right, rgba(5, 28, 45, 0.25), rgba(4, 18, 32, 0.7)),
    url("ALPI.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* HERO TEXT BLOCK POSITION - Adjust the left padding value (14.5rem) to move text left/right */
.hero-inner {
  max-width: 100%;
  margin: 0;
  padding: 4.25rem 5rem 3rem 14.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-content {
  max-width: 540px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(2.1rem, 2.7vw, 2.7rem);
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: rgba(241, 250, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: rgba(226, 239, 246, 0.9);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.65rem;
  max-width: 460px;
}

.hero-link-btn {
  display: block;
  background: rgba(88, 214, 210, 0.82);
  color: #003840;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
  white-space: nowrap;
}

.hero-link-btn:hover {
  background: rgba(88, 214, 210, 1);
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding: 3.25rem 1.25rem 3rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-links {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fdfdfd;
  box-shadow: 0 8px 20px rgba(0, 95, 115, 0.32);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-primary);
  border-color: rgba(0, 95, 115, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: #ffffff;
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* Cards, panels */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(217, 226, 236, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

.summary-panel {
  background: linear-gradient(145deg, #0a9396, #005f73);
  color: #f9fbff;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.6rem;
}

.summary-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.summary-panel dl {
  margin: 0;
}

.summary-panel dt {
  font-weight: 700;
  font-size: 1.3rem;
}

.summary-panel dd {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-list li + li {
  margin-top: 1.5rem;
}

.icon-list h3 {
  margin: 0 0 0.35rem;
}

.icon-list p {
  margin: 0;
  color: var(--color-muted);
}

.callout {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--color-border);
}

.callout h3 {
  margin-top: 0;
}

.callout ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.callout li {
  margin-bottom: 0.4rem;
}

/* Contact */
.section-contact {
  background: radial-gradient(circle at top left, #e0fbff 0, #f4fafb 42%, #f4fafb 100%);
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 95, 115, 0.35);
  outline-offset: 1px;
}

.full-width {
  display: block;
  margin-bottom: 1rem;
}

.form-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 1.5rem 2rem;
  background: #ffffff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.footer-logo {
  height: 32px;
}

.footer-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Active nav link (sub-pages)
   ============================================================ */
.site-nav a.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   Product layout — two-column (features + map)
   ============================================================ */
.product-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.product-features {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid rgba(217, 226, 236, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.feature-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-map-panel {
  flex: 0 0 280px;
  text-align: center;
}

.map-image {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.map-caption {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .product-layout {
    flex-direction: column;
  }

  .product-map-panel {
    flex: auto;
    width: 100%;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Ethics list — single vertical column
   ============================================================ */
.ethics-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  max-width: 720px;
}

.ethics-list li + li {
  margin-top: 0;
}

/* ============================================================
   Sub-page shared layout (catalog, API docs, CRM)
   ============================================================ */
.page-hero {
  position: relative;
  background: url('terrain.jpg') center/cover no-repeat;
  color: #fdfdfd;
  padding: 3.5rem 1.5rem 3rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,63,77,0.78) 0%, rgba(10,147,150,0.68) 100%);
  z-index: 0;
}

.page-hero .section-inner {
  position: relative;
  z-index: 1;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: rgba(253, 253, 253, 0.85);
  max-width: 640px;
}

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-section {
  margin-bottom: 3.5rem;
}

.page-section h2 {
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
}

.page-section h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.4rem;
}

.page-section p,
.page-section ul,
.page-section ol {
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================================
   Data catalog table
   ============================================================ */
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.catalog-table th {
  background: var(--color-surface-alt);
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  white-space: nowrap;
}

.catalog-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.catalog-table tr:last-child td {
  border-bottom: none;
}

.catalog-table code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--color-surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
}

.field-type {
  color: var(--color-primary-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ============================================================
   API docs
   ============================================================ */
.endpoint-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  overflow: hidden;
}

/* ============================================================
   Mega-menu nav
   ============================================================ */
.nav-has-mega {
  position: static;
}

.nav-mega-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0.25em 0.5em;
  border-radius: 4px;
  transition: color 0.2s;
}

.nav-mega-toggle:hover,
.nav-mega-toggle:focus-visible {
  color: var(--color-primary);
  outline: none;
}

.mega-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
  margin-left: 2px;
  vertical-align: middle;
}

.nav-has-mega.is-open .mega-chevron {
  transform: rotate(180deg);
}

.mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
}

.mega-panel.is-open {
  display: block;
}

.mega-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 0 3rem;
}

.mega-desc {
  padding-right: 2rem;
  border-right: 1px solid var(--color-border);
}

.mega-desc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.mega-desc-text {
  font-size: 0.87rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.mega-desc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--color-primary-soft);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
}

.mega-desc-link:hover {
  text-decoration: underline;
}

.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mega-list li {
  border-bottom: 1px solid var(--color-border);
}

.mega-list a {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

.mega-list a::before {
  content: ">";
  color: var(--color-primary-soft);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mega-list a:hover {
  color: var(--color-primary);
}

/* ============================================================
   Product grid cards
   ============================================================ */
.products-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  margin: 2rem 0 0.75rem;
}

.products-category-label-spaced {
  margin-top: 2.5rem;
}

.products-grid {
  gap: 1.25rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.product-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.product-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.product-card h3 a:hover {
  text-decoration: underline;
}

.product-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted, #555);
  line-height: 1.55;
}

.product-card-service {
  border-left: 3px solid var(--color-primary-soft);
}

/* ============================================================
   News / Newsroom section
   ============================================================ */
.news-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: stretch;
}

.news-panel {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.news-panel-chevron {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.9);
}

.news-panel-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.news-panel-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  overflow: hidden;
}

.news-card {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.news-card:last-child {
  border-right: none;
}

.news-thumb {
  height: 190px;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb-crm {
  background: #1a1a2e;
  gap: 1.5rem;
}

.news-thumb-crm .thumb-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.news-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.news-body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color-text);
}

.news-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.news-body time {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-panel {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }

  .mega-desc {
    display: none;
  }
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.method-badge {
  background: var(--color-primary);
  color: #fdfdfd;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
}

.endpoint-path {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
  color: var(--color-text);
}

.endpoint-desc {
  padding: 0.75rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

.code-block {
  background: #0f1923;
  color: #c8dfec;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
  margin: 0.75rem 0;
  white-space: pre;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.params-table th {
  background: var(--color-surface-alt);
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.params-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.params-table code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: var(--color-surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ============================================================
   CRM page — step grid
   ============================================================ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: #fdfdfd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* CRM platform logo cards */
.crm-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.crm-platform-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--color-surface, #f8fafc);
  border: 1px solid var(--color-border, #dde4ed);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem;
}

.crm-platform-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1px solid var(--color-border, #dde4ed);
  border-radius: var(--radius-sm, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.crm-platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.crm-platform-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.crm-platform-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.crm-also-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.crm-also-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding: 0;
  list-style: none;
  margin: 0;
}

.crm-also-list li {
  font-size: 0.9rem;
  color: var(--color-text);
  position: relative;
  padding-left: 0.9rem;
}

.crm-also-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

/* Product card logo strip */
.product-card-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.product-card-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border, #dde4ed);
  border-radius: 6px;
  padding: 4px 8px;
}

@media (max-width: 640px) {
  .crm-platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalog-table,
  .params-table {
    font-size: 0.78rem;
  }
}

/* ============================================================
   Data catalog tabs
   ============================================================ */
.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.6em 1.1em;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel-hidden {
  display: none;
}

/* mega heading spaced variant */
.mega-heading-spaced {
  margin-top: 1.25rem;
}

/* ============================================================
   Foreclosure Intelligence — featured section layout
   ============================================================ */
.fc-stats-hero {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
  background: url('skyline.jpg') center 30% / cover no-repeat;
}

.fc-stats-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,40,55,0.72) 0%, rgba(0,95,115,0.68) 100%);
  z-index: 0;
}

.fc-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.fc-stat {
  background: transparent;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.fc-stat:last-child {
  border-right: none;
}

.fc-stat-num {
  display: block;
  font-size: 3.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.fc-stat-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.72);
  margin-top: 0.6rem;
}

.fc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.fc-narrative h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.fc-lead {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.fc-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}

.fc-bullets li::before {
  content: "→";
  color: var(--color-primary-soft);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* Product section full-width image (SAR) */
.product-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 2rem;
}

/* DEM processing pipeline strip */
.pipeline-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  margin: 2rem 0 2.5rem;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pipeline-step img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid var(--color-border);
}

.pipeline-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary);
  margin-top: 0.6rem;
}

.pipeline-step-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.pipeline-arrow {
  font-size: 1.4rem;
  color: var(--color-primary-soft);
  font-weight: 700;
  padding: 0 0.5rem;
  padding-top: 2.5rem;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .fc-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fc-stats {
    grid-template-columns: 1fr;
  }
  .fc-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .fc-stat:last-child {
    border-bottom: none;
  }
  .pipeline-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .pipeline-arrow {
    display: none;
  }
}
