/* ==========================================================================
   COMPAÑÍA PROVEEDORA DE SISTEMAS - CORPORATE HIGH-TECH DESIGN SYSTEM (PALO ALTO NETWORKS STYLE)
   Light enterprise aesthetic, deep navy contrast, cyber blue/orange accents.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-accent-subtle: #eff6ff;
  --bg-dark: #0b1528;
  --bg-dark-card: #111e38;

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #0f62fe;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;

  --brand-blue: #0f62fe;
  --brand-blue-hover: #0043ce;
  --brand-blue-light: #e8f1ff;
  --brand-cyan: #00d2ff;
  --brand-orange: #fa582d;
  --brand-orange-hover: #e04419;
  --brand-orange-light: #fff0eb;
  --brand-navy: #001d6c;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-blue: 0 8px 30px -4px rgba(15, 98, 254, 0.25);

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

/* Top Notification Bar (Palo Alto Networks style) */
.top-bar {
  background: var(--brand-navy);
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: var(--brand-cyan);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.5rem;
}

.top-bar a:hover {
  color: #ffffff;
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-capsule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.brand-capsule .brand-cps-link,
.brand-capsule .brand-ibm-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-capsule .logo-cps {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-capsule .brand-sep {
  width: 1px;
  height: 30px;
  background: var(--border-light);
}

.brand-capsule .logo-ibm {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.96;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-capsule .brand-ibm-link:hover .logo-ibm {
  opacity: 1;
  transform: translateY(-1px);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link svg.chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1.25rem;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--bg-secondary);
}

.dropdown-link .title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-link .desc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  box-shadow: var(--shadow-blue);
  color: #ffffff;
}

.btn-orange {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-orange:hover {
  background: var(--brand-orange-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: #cbd5e1;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.mobile-nav-link.highlight {
  color: var(--brand-blue);
}

/* Hero Section (Palo Alto Networks Inspired) */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: radial-gradient(circle at 85% 15%, rgba(15, 98, 254, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 10% 85%, rgba(250, 88, 45, 0.04) 0%, transparent 50%),
              #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: var(--bg-accent-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0043ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-chips {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-chip svg {
  color: var(--brand-blue);
  width: 18px;
  height: 18px;
}

/* Hero Showcase Card (Bob & Watson Didactic Box) */
.hero-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-orange));
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bob-avatar-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bob-avatar-img {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.bob-avatar-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.bob-avatar-text p {
  font-size: 0.8125rem;
  color: var(--brand-blue);
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.status-badge .dot {
  width: 6px;
  height: 6px;
  background: #15803d;
  border-radius: 50%;
}

.agent-code-box {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  color: #94a3b8;
  font-size: 0.75rem;
}

.code-line.green { color: #4ade80; }
.code-line.cyan { color: #38bdf8; }
.code-line.yellow { color: #facc15; }

.hero-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Strategic Partners Grid (High-Contrast Logos) */
.partners-section {
  padding: 3rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.partners-intro {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 0.5rem;
  opacity: 0.85;
  transition: all var(--transition-fast);
}

.partner-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partner-logo-item img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

/* Sections Common Header */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.375rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Didactic IBM Bob Architecture Section */
.didactic-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}

.pipeline-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-normal);
}

.pipeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.pipeline-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-accent-subtle);
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.pipeline-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.pipeline-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pipeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pipeline-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Solutions Portfolio Bento Cards */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-blue);
}

.solution-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.solution-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-img-wrapper img {
  transform: scale(1.05);
}

.solution-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(11, 21, 40, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.solution-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.solution-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.solution-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.solution-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.solution-link:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

/* Why Compañía Proveedora de Sistemas / Authority Metrics */
.authority-section {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.authority-item {
  padding: 1.5rem;
}

.authority-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.authority-label {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.authority-sub {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Contact CTA Section */
.contact-section {
  padding: 5rem 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-accent-subtle);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Contact Form Box */
.contact-form-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-box h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.contact-form-box p.form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}

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

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

.form-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.submission-receipt {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  color: #14532d;
}

.submission-receipt h5 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #166534;
}

.submission-receipt > p {
  margin: 0 0 1rem;
  color: #166534;
}

.submission-receipt dl {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}

.submission-receipt dt {
  font-weight: 700;
}

.submission-receipt dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Static blog: recovered editorial content rendered in the corporate system. */
.blog-hero,
.blog-article-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 4rem;
  background: linear-gradient(135deg, var(--brand-navy), #0b2e75);
  color: var(--text-white);
}

.blog-narrow { max-width: 860px; }
.blog-hero h1,
.blog-article-hero h1 {
  max-width: 900px;
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-white);
}

.blog-hero p,
.blog-lead {
  max-width: 760px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #dbeafe;
}

.blog-date {
  margin: 0.65rem 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-light);
}

.blog-article-hero .blog-date { color: #bfdbfe; }
.blog-section { padding-top: 4.5rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.blog-card > img,
.blog-card-placeholder { width: 100%; height: 190px; object-fit: cover; background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.blog-card-body > span { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue); }
.blog-card h2 { margin: 0.35rem 0 0.6rem; font-size: 1.2rem; line-height: 1.3; }
.blog-card h2 a:hover { color: var(--brand-blue); }
.blog-card-body > p:not(.blog-date) { margin-bottom: 1.2rem; color: var(--text-muted); line-height: 1.55; }
.blog-card .card-link { margin-top: auto; color: var(--brand-blue); font-weight: 750; }

.blog-article { background: var(--bg-primary); }
.blog-article-image { width: 100%; max-height: 520px; margin: 3rem 0 2.5rem; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

/* A restrained tactile response establishes the feature image as the opening
   visual of an article without implying that it is a link or a control. */
@media (hover: hover) and (pointer: fine) {
  .blog-article-image {
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .blog-article-image:hover,
  .cps-motion-ready .blog-article-image.cps-reveal:hover,
  .cps-motion-ready .blog-article-image.cps-reveal-visible:hover {
    transform: translate3d(0, -3px, 0) scale(1.008);
    box-shadow: 0 20px 42px rgba(15, 35, 78, 0.2);
  }
}
.blog-article-content { margin-bottom: 3rem; color: #26364d; font-size: 1.06rem; line-height: 1.8; }
.blog-article-content > * + * { margin-top: 1.25rem; }
.blog-article-content h2 { margin-top: 2.6rem; color: var(--text-main); font-size: 1.85rem; line-height: 1.25; }
.blog-article-content h3 { margin-top: 2rem; color: var(--text-main); font-size: 1.4rem; }
.blog-article-content a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 0.16em; }
.blog-article-content ul,
.blog-article-content ol { padding-left: 1.35rem; }
.blog-article-content ul { list-style: disc; }
.blog-article-content ol { list-style: decimal; }
.blog-article-content img { display: block; width: 100%; height: auto; margin: 1.75rem 0; border-radius: var(--radius-md); }
.blog-table-wrap { margin: 1.75rem 0; overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; }
.blog-article-content table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.94rem; line-height: 1.5; }
.blog-article-content th, .blog-article-content td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-light); }
.blog-article-content th { color: var(--text-main); background: var(--bg-tertiary); font-weight: 750; }
.blog-article-content tr:last-child td { border-bottom: 0; }
.blog-article-content blockquote { padding: 1rem 1.25rem; border-left: 4px solid var(--brand-blue); background: var(--brand-blue-light); color: var(--text-main); }
.blog-article-cta { margin: 3rem 0 5rem; padding: 2.25rem; border-radius: var(--radius-xl); background: var(--bg-tertiary); border: 1px solid var(--border-light); }
.blog-article-cta h2 { margin-bottom: 0.6rem; }
.blog-article-cta p { max-width: 650px; margin-bottom: 1.3rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .submission-receipt dl { grid-template-columns: 1fr; gap: 0.2rem; }
  .submission-receipt dd { margin-bottom: 0.65rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article-image { margin: 2rem 0; border-radius: var(--radius-lg); }
}

/* Footer Section (Guadalajara HQ only - Zero CDMX) */
.footer {
  background: #070d19;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .footer-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-brand .footer-logos img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  opacity: 0.92;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-partner-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-partner-badge img.logo-ibm-footer {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-trademark-note {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-address strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & STRICT MOBILE QA RULES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .didactic-pipeline {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .nav-container {
    height: 70px;
  }

  .brand-capsule .logo-cps {
    height: 36px;
  }

  .brand-capsule .logo-ibm {
    height: 20px;
  }

  .desktop-nav, .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 3rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    word-break: normal;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    gap: 1.5rem;
  }

  .partner-logo-item {
    height: 36px;
  }

  .partner-logo-item img {
    max-height: 28px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .authority-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form-box {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PRODUCT DETAIL PAGES (PALO ALTO LIGHT THEME ADAPTATION)
   ========================================================================== */

.prod-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .prod-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.sku-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--bg-accent-subtle);
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prod-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.prod-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-slas-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .hero-slas-bar {
    grid-template-columns: 1fr;
  }
}

.sla-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.sla-metric {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.sla-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hero-scenario-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.buyer-quote-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.buyer-quote-text {
  font-size: 0.9375rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.buyer-profile-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.buyer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-blue);
}

.buyer-meta strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-main);
}

.buyer-meta span {
  font-size: 0.75rem;
  color: var(--brand-blue);
  font-weight: 600;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

.sec-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.sec-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.sec-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.bento-card.danger {
  border-top: 4px solid #ef4444;
}

.bento-card.success {
  border-top: 4px solid #10b981;
}

.bento-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.arch-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .arch-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.arch-pillar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pillar-num {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.arch-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.arch-pillar p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   CPS Corporate Blog Styles - Clean Light Theme
   ========================================================================== */
body.blog,
body.single-post,
body.archive,
body.search,
.main-container {
  background-color: #ffffff !important;
  color: #334155 !important;
}

/* Hide legacy Stack navbar */
.nav-container > .bar,
#menu1,
.bar--sm {
  display: none !important;
}

/* Single Post Hero & Title */
body.single-post .main-container > section:first-child {
  padding: 3.5rem 0 2rem !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.single-post .article__title {
  margin-bottom: 2rem !important;
}

body.single-post .article__title h1,
body.single-post .article__title .h2 {
  color: #0f172a !important;
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}

body.single-post .article__title .article__meta,
body.single-post .article__title .type--fine-print {
  color: #64748b !important;
  font-size: 0.9375rem !important;
}

body.single-post .article__body.post-content {
  color: #334155 !important;
  font-size: 1.125rem !important;
  line-height: 1.85 !important;
}

body.single-post .article__body.post-content h1,
body.single-post .article__body.post-content h2,
body.single-post .article__body.post-content h3,
body.single-post .article__body.post-content h4,
body.single-post .article__body.post-content h5,
body.single-post .article__body.post-content h6,
body.single-post .article__body.post-content strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.single-post .article__body.post-content p,
body.single-post .article__body.post-content li {
  color: #334155 !important;
  margin-bottom: 1.5rem !important;
}

body.single-post .article__body.post-content a {
  color: #0f62fe !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

body.single-post .article__body.post-content img {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
  margin: 2rem 0 !important;
}

/* Blog Cards Index Page (/blog-cards/) */
body.blog .masonry__filters {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

body.blog .masonry__filters li a {
  color: #475569 !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
}

body.blog .masonry__filters li.active a,
body.blog .masonry__filters li a:hover {
  color: #0f62fe !important;
  font-weight: 700 !important;
}

body.blog .feature.feature-1 {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

body.blog .feature.feature-1:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}

body.blog .feature__body {
  padding: 1.75rem !important;
}

body.blog .feature__body h5,
body.blog .feature__body .h5 {
  color: #0f172a !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
}

body.blog .feature__body h5 a,
body.blog .feature__body .h5 a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.blog .feature__body h5 a:hover,
body.blog .feature__body .h5 a:hover {
  color: #0f62fe !important;
}

body.blog .feature__body p {
  color: #475569 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

body.blog .feature__body a:not(.h5) {
  display: inline-flex !important;
  align-items: center !important;
  color: #0f62fe !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  text-decoration: none !important;
  margin-top: 1rem !important;
}

body.blog .feature__body a:not(.h5):hover {
  text-decoration: underline !important;
}

/* Sidebar */
body.blog .sidebar,
body.single-post .sidebar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
}

body.blog .sidebar h5,
body.single-post .sidebar h5 {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  margin-bottom: 1rem !important;
}

body.blog .sidebar a,
body.single-post .sidebar a {
  color: #0f62fe !important;
  text-decoration: none !important;
}

body.blog .sidebar a:hover,
body.single-post .sidebar a:hover {
  text-decoration: underline !important;
}

body.blog .sidebar input,
body.single-post .sidebar input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
}

/* ==========================================================================
   Header & Mobile Drawer Unified High-Priority Styles
   ========================================================================== */
header.main-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
}

header.main-header .nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 80px !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
}

header.main-header .brand-capsule {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  text-decoration: none !important;
}

header.main-header .brand-capsule .logo-cps {
  height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
}

header.main-header .brand-capsule .brand-sep {
  width: 1px !important;
  height: 28px !important;
  background: #cbd5e1 !important;
}

header.main-header .brand-capsule .logo-ibm {
  height: 34px !important;
  width: auto !important;
  object-fit: contain !important;
}

header.main-header .desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
}

header.main-header .nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

header.main-header .nav-item {
  position: relative !important;
  white-space: nowrap !important;
  display: block !important;
}

header.main-header .nav-link {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  padding: 0.5rem 0.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

header.main-header .nav-link:hover,
header.main-header .nav-link.active {
  color: #0f62fe !important;
}

header.main-header .nav-link.active {
  position: relative !important;
  font-weight: 700 !important;
}

header.main-header .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0.25rem !important;
  right: 0.25rem !important;
  height: 2px !important;
  background: #0f62fe !important;
  border-radius: 2px !important;
}

header.main-header .nav-link svg.chevron {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.15s ease !important;
  display: inline-block !important;
}

header.main-header .nav-item:hover .nav-link svg.chevron {
  transform: rotate(180deg) !important;
}

header.main-header .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: -20px !important;
  min-width: 280px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1) !important;
  padding: 0.75rem 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: all 0.25s ease !important;
  z-index: 10100 !important;
  list-style: none !important;
}

header.main-header .nav-item:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

header.main-header .dropdown-link {
  display: flex !important;
  flex-direction: column !important;
  padding: 0.65rem 1.25rem !important;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}

header.main-header .dropdown-link:hover {
  background: #f8fafc !important;
}

header.main-header .dropdown-link .title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

header.main-header .dropdown-link .desc {
  font-size: 0.75rem !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

header.main-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

/*
 * Legacy WordPress blog compatibility
 *
 * The static site uses this header as its single source of truth. The legacy
 * blog routes still load Bootstrap/Stack, whose container ::before/::after
 * pseudo-elements become unexpected flex children and whose global type rules
 * change the header's line-height, font family and logo margin. Keep the
 * compatibility layer scoped to those routes so the native HTML pages retain
 * their normal cascade.
 */
body.wp-singular .top-bar,
body.wp-singular .top-bar *,
body.wp-singular header.main-header,
body.wp-singular header.main-header *,
body.wp-singular .mobile-drawer,
body.wp-singular .mobile-drawer * {
  font-family: var(--font-family) !important;
}

body.wp-singular .top-bar,
body.wp-singular header.main-header,
body.wp-singular header.main-header .nav-link,
body.wp-singular header.main-header .header-actions .btn {
  line-height: 1.5 !important;
}

body.wp-singular header.main-header .nav-container::before,
body.wp-singular header.main-header .nav-container::after {
  content: none !important;
  display: none !important;
}

body.wp-singular header.main-header .brand-capsule {
  font-weight: 400 !important;
}

body.wp-singular header.main-header .brand-capsule img {
  margin: 0 !important;
  vertical-align: middle !important;
}

header.main-header .mobile-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  padding: 0.5rem !important;
  cursor: pointer !important;
  color: #0f172a !important;
}

header.main-header .mobile-toggle svg {
  width: 26px !important;
  height: 26px !important;
  stroke: #0f172a !important;
}

@media (max-width: 991px) {
  header.main-header .desktop-nav,
  header.main-header .header-actions {
    display: none !important;
  }
  header.main-header .mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 360px !important;
  background: #ffffff !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
  z-index: 2147483647 !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow-y: auto !important;
}

@media (max-width: 480px) {
  .mobile-drawer {
    max-width: 100% !important;
  }
}

.mobile-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mobile-drawer-header .mobile-toggle,
#closeDrawer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0.5rem !important;
  color: #0f172a !important;
}

.mobile-drawer-header .mobile-toggle svg,
#closeDrawer svg {
  width: 28px !important;
  height: 28px !important;
  stroke: #0f172a !important;
}

.mobile-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 1.5rem !important;
}

.mobile-nav-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-nav-link {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  padding: 0.75rem 0.5rem !important;
  border-radius: 8px !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.mobile-nav-link:hover {
  color: #0f62fe !important;
  background: #f1f5f9 !important;
}

.mobile-nav-link.highlight {
  color: #0f62fe !important;
  background: #eff6ff !important;
  border-left: 4px solid #0f62fe !important;
  padding-left: 1rem !important;
  font-weight: 700 !important;
}

/* Ensure no horizontal overflow anywhere */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Visible only while navigating with a keyboard. */
.skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #22d3ee;
  outline-offset: 3px;
}

/*
 * CPS scroll reveal system
 *
 * Elements only receive .cps-reveal from JavaScript when the browser supports
 * the behaviour. This keeps the complete page readable if JavaScript is
 * unavailable, while IntersectionObserver limits motion to elements entering
 * the viewport.
 */
.cps-motion-ready .cps-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}

.cps-motion-ready .cps-reveal.cps-reveal-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cps-motion-ready .cps-reveal,
  .cps-motion-ready .cps-reveal.cps-reveal-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
