/* ==========================================================================
   METTAREV SYSTEMS PVT. LTD. — DESIGN SYSTEM & STYLESHEET
   Aesthetic: Premium Technical Light Mode, Architectural, Precise, Crisp Navy & Slate Accent
   ========================================================================== */

:root {
  /* Color Tokens - Light Mode */
  --bg-white: #FFFFFF;
  --bg-canvas: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-panel: #F1F5F9;
  --bg-dark-accent: #0F172A;
  
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-brand: rgba(37, 99, 235, 0.3);

  --brand-blue: #2563EB;
  --brand-navy: #1E40AF;
  --brand-dark: #0F172A;
  --brand-cyan: #0284C7;
  --brand-teal: #0D9488;
  
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --accent-green: #059669;
  --accent-green-bg: rgba(16, 185, 129, 0.1);
  --accent-yellow: #D97706;
  --accent-red: #DC2626;

  /* Typography Tokens */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout & Spacing */
  --wrap-max: 1200px;
  --wrap-pad: 32px;
  --header-height: 72px;

  /* Elevation & Effects */
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 0 1px 1px var(--border-subtle);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 0 1px 1px var(--border-strong);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-header-scrolled: rgba(255, 255, 255, 0.98);
}

/* Dark Mode — system preference (only when the user hasn't explicitly chosen light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-white: #0B1120;
    --bg-canvas: #0A0F1C;
    --bg-card: #0F172A;
    --bg-card-hover: #16213A;
    --bg-panel: #16213A;
    --bg-dark-accent: #020617;

    --border-subtle: #1E293B;
    --border-strong: #2D3B52;
    --border-brand: rgba(59, 130, 246, 0.35);

    --brand-blue: #3B82F6;
    --brand-navy: #60A5FA;
    --brand-cyan: #38BDF8;
    --brand-teal: #2DD4BF;

    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-faint: #64748B;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.35), 0 0 1px 1px var(--border-subtle);
    --shadow-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-strong);

    --bg-header: rgba(11, 17, 32, 0.85);
    --bg-header-scrolled: rgba(11, 17, 32, 0.95);
  }
}

/* Dark Mode — explicit user choice via the theme toggle */
:root[data-theme="dark"] {
  --bg-white: #0B1120;
  --bg-canvas: #0A0F1C;
  --bg-card: #0F172A;
  --bg-card-hover: #16213A;
  --bg-panel: #16213A;
  --bg-dark-accent: #020617;

  --border-subtle: #1E293B;
  --border-strong: #2D3B52;
  --border-brand: rgba(59, 130, 246, 0.35);

  --brand-blue: #3B82F6;
  --brand-navy: #60A5FA;
  --brand-cyan: #38BDF8;
  --brand-teal: #2DD4BF;

  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.35), 0 0 1px 1px var(--border-subtle);
  --shadow-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-strong);

  --bg-header: rgba(11, 17, 32, 0.85);
  --bg-header-scrolled: rgba(11, 17, 32, 0.95);
}


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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Utilities */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

.text-cyan { color: var(--brand-blue); }
.text-green { color: var(--accent-green); }
.hidden { display: none !important; }

/* Eyebrow & Titles */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.6;
}

/* Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: var(--bg-canvas);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-ghost {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.btn-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.04);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Scroll Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.site-header.header--scrolled {
  background: var(--bg-header-scrolled);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #FFFFFF;
  border-radius: 6px;
}

.site-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-title {
  display: block;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 6px 0;
  position: relative;
  font-weight: 500;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  transition: transform var(--transition-fast);
}

.nav-item-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 40;
}

.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-link:hover {
  background: var(--bg-panel);
  color: var(--brand-blue);
}

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 12px;
  }
  .nav-item-dropdown.open .nav-dropdown-menu {
    display: flex;
    transform: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--brand-blue);
  border-color: var(--border-brand);
}

.theme-icon {
  display: none;
}

:root[data-theme="dark"] .theme-icon--sun {
  display: block;
}

:root:not([data-theme="dark"]) .theme-icon--moon {
  display: block;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-card);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.is-open .hamburger-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 20%, black 20%, transparent 80%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-blue);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 20px;
  color: var(--text-primary);
}

.hero-highlight {
  color: var(--brand-blue);
}
.hero-title-tagline {
  font-size: 0.76em;
}

.hero-title-tagline > span {
  display: inline-block;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 24px;
  line-height: 1.6;
  max-width: 540px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-domains-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.domain-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.domain-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-secondary);
  font-weight: 500;
}

.domain-pill--more {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--brand-blue);
  font-weight: 600;
}

/* Architecture Visualizer Card in Hero */
.hero-visual {
  position: relative;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.video-card, .anim-card {
  background: #0F172A;
}

.hero-video-wrapper, .hero-anim-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  background: #070B14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-arch-video, .hero-anim-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.arch-header {
  background: #0F172A;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-dots {
  display: flex;
  gap: 6px;
}

.arch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.arch-dot--red { background-color: #FF5F56; }
.arch-dot--yellow { background-color: #FFBD2E; }
.arch-dot--green { background-color: #27C93F; }

.arch-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94A3B8;
}

.arch-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: #38BDF8;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

.arch-flow {
  padding: 24px;
  position: relative;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.flow-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: 6px;
  text-align: center;
  min-width: 90px;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.flow-node:hover, .flow-node.active {
  border-color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.node-icon-svg {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--brand-blue);
}

.node-name {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.node-sub {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
}

.flow-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  flex: none;
}

.arch-inspector {
  padding: 20px 24px;
  background: var(--bg-card);
}

.inspector-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.inspector-stat {
  background: var(--bg-canvas);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.stat-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-val {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 2px;
}

.inspector-code {
  background: #0F172A;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #1E293B;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #38BDF8;
  overflow-x: auto;
  white-space: nowrap;
}

/* ==========================================================================
   CAPABILITIES SECTION
   ========================================================================== */
.capabilities-section {
  padding: 100px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.cap-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.cap-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-align: left;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cap-tab:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.cap-tab.active {
  border-color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.cap-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cap-tab.active .cap-num {
  color: var(--brand-blue);
}

.cap-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
}

.cap-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.cap-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-weight: 600;
}

.cap-display-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-primary);
}

.cap-display-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.cap-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.cap-item-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 18px;
}

.cap-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cap-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cap-arch-banner {
  margin-top: 28px;
  padding: 20px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 6px;
}

.banner-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand-teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.banner-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagram-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.d-node {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--text-primary);
  font-weight: 500;
}

.d-arrow {
  color: var(--brand-teal);
  font-family: var(--font-mono);
  font-weight: bold;
}

.diagram-highlight {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-green);
  font-weight: 600;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.svc-editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.svc-list-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-align: left;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.svc-list-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.svc-list-item.active {
  border-color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.06);
}

.svc-item-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
  padding-top: 2px;
}

.svc-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.svc-item-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.svc-item-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  margin-left: auto;
}

.svc-list-item.active .svc-item-arrow {
  color: var(--brand-blue);
}

.svc-system-card {
  position: sticky;
  top: 100px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

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

.svc-card-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
}

.svc-card-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.svc-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.svc-card-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.svc-pipeline-visual {
  margin-top: 28px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.pipeline-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}

.pipeline-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-node {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-node.active {
  border-color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
}

.p-node-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-blue);
  font-weight: 700;
}

.p-node-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.p-connector {
  font-family: var(--font-mono);
  color: var(--brand-blue);
  font-size: 12px;
}

.svc-bullet-points {
  margin-top: 24px;
}

.bullet-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}

.svc-bullet-points ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-bullet-points li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullet-check {
  color: var(--accent-green);
  font-weight: bold;
}

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

.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 600;
}

/* ==========================================================================
   WHY METTAREV (PRINCIPLES)
   ========================================================================== */
.why-section {
  padding: 100px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.why-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.why-principle-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 700;
}

.principle-mark {
  width: 10px;
  height: 10px;
  background: var(--brand-teal);
  border-radius: 2px;
  transform: rotate(45deg);
}

.principle-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.principle-headline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 14px;
}

.principle-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.principle-visual {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.visual-header {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}

.visual-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-step {
  background: var(--bg-canvas);
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.v-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-blue);
  font-weight: 700;
  display: inline-block;
  margin-right: 6px;
}

.v-step-label {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-primary);
}

.v-step-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   PLATFORM INTEGRATIONS FRAMEWORK
   ========================================================================== */
.framework-section {
  padding: 100px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.framework-interactive-container {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.fw-arch-diagram {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 24px;
  align-items: center;
}

.col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.rails-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rail-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 14px;
  text-align: left;
  transition: all var(--transition-fast);
}

.rail-card:hover, .rail-card.active {
  border-color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

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

.rail-type {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--brand-blue);
  font-weight: 600;
}

.rail-status {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--accent-green);
  font-weight: 700;
}

.rail-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 4px;
}

.rail-protocol {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.bus-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
}

.bus-lines-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.mettarev-core-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 2px solid var(--brand-blue);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
  z-index: 2;
  color: #FFFFFF;
}

.core-logo-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  color: #38BDF8;
}

.core-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
}

.core-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #38BDF8;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
}

.core-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-feat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94A3B8;
}

.app-target-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.app-icon-svg {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--brand-blue);
}

.app-target-box h4 {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.app-target-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

.app-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  margin-top: 14px;
  font-weight: 700;
}

/* Rail Inspector */
.fw-rail-inspector {
  margin-top: 32px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 24px;
}

.insp-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brand-blue);
  font-weight: 600;
}

.insp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.insp-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.insp-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.spec-box {
  background: var(--bg-card);
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.spec-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2px;
}

.insp-features {
  margin-top: 16px;
}

.feat-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.feat-tags {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.feat-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.06);
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-weight: 500;
}

.fw-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.fw-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.fw-pillar h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.fw-pillar p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ==========================================================================
   ENGINEERING SCENARIOS / REFERENCE ARCHITECTURES
   ========================================================================== */
.scenarios-section {
  padding: 100px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

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

.scenario-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 4px;
}

.scenario-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.scenario-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}

.scenario-summary {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.55;
  flex-grow: 1;
}

.scenario-pattern {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.pattern-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.pattern-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand-blue);
  font-weight: 600;
  margin-top: 2px;
}

.scenario-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Modal Drawer for Scenarios */
.scenario-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scenario-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue);
  font-weight: 600;
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.modal-summary {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.modal-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.m-section h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.m-section p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.m-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-step-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: 4px;
}

.m-step-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue);
  font-weight: 700;
  display: block;
}

.m-step-text {
  font-size: 13.5px;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

.m-outcome-box {
  background: rgba(5, 150, 105, 0.06);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--accent-green);
  line-height: 1.5;
  font-weight: 500;
}

.m-stack-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   ENGAGEMENT MODELS
   ========================================================================== */
.engage-section {
  padding: 100px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.engage-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.engage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  line-height: 1.25;
}

.engage-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
}

.engage-highlights {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.hl-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.engage-highlights ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engage-highlights li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hl-check {
  color: var(--brand-blue);
  font-weight: bold;
}

.engage-modes-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.mode-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.m-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

.mode-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.mode-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   PROCESS / HOW WE WORK
   ========================================================================== */
.process-section {
  padding: 100px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.process-connected-tracker {
  position: relative;
  margin-top: 40px;
}

.tracker-line-bg {
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.tracker-line-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
}

.process-steps-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

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

.step-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue);
}

.step-phase {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.55;
}

.step-indicator {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ind-dot {
  width: 10px;
  height: 10px;
  background: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-blue);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.contact-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 56px;
  box-shadow: var(--shadow-card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 16px;
  color: var(--text-primary);
}

.contact-lede {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 18px;
  line-height: 1.6;
}

.contact-details-box {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.d-icon-svg {
  color: var(--brand-blue);
  margin-top: 2px;
}

.d-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.d-val {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 2px;
}

.d-link {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.contact-copy-banner {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.copy-feedback {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
}

.copy-feedback.show {
  opacity: 1;
}

/* Contact Form */
.contact-form-side {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 36px;
}

.contact-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 8px;
}

.contact-notice .d-icon-svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-notice h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-notice p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 320px;
}

.contact-notice .d-link {
  color: var(--brand-blue);
  font-weight: 600;
}

.contact-notice .d-link:hover {
  text-decoration: underline;
}

.contact-notice .btn {
  margin-top: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0F172A;
  color: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-brand-col .logo-title {
  color: #FFFFFF;
}

.foot-brand-desc {
  font-size: 14px;
  color: #94A3B8;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 300px;
}

.foot-location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748B;
  margin-top: 16px;
}

.foot-nav-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #64748B;
  margin-bottom: 18px;
}

.foot-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-nav-col a {
  font-size: 14px;
  color: #CBD5E1;
  transition: color 0.2s;
}

.foot-nav-col a:hover {
  color: #38BDF8;
}

.foot-contact-p {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.6;
}

.foot-email-link {
  color: #38BDF8 !important;
  font-weight: 500;
}

.footer-bottom-bar {
  padding-top: 28px;
}

.foot-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748B;
}

.foot-domain-tag {
  color: #38BDF8;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cap-layout {
    grid-template-columns: 1fr;
  }
  .svc-editorial-grid {
    grid-template-columns: 1fr;
  }
  .svc-system-card {
    position: static;
  }
  .fw-arch-diagram {
    grid-template-columns: 1fr;
  }
  .bus-lines-svg {
    display: none;
  }
  .bus-container {
    min-height: auto;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    align-items: flex-start;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions .btn {
    display: none;
  }
  .why-principles-grid {
    grid-template-columns: 1fr;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .engage-grid {
    grid-template-columns: 1fr;
  }
  .engage-modes-bar {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  .tracker-line-bg {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-main {
    padding: 28px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .cap-items-grid {
    grid-template-columns: 1fr;
  }
  .rails-grid {
    grid-template-columns: 1fr;
  }
  .fw-pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .engage-modes-bar {
    grid-template-columns: 1fr;
  }
  .inspector-grid {
    grid-template-columns: 1fr;
  }
  .insp-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOW WE WORK (Hero replacement for architecture diagram)
   ========================================================================== */
.how-we-work-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-strong);
}

.how-we-work-header {
  background: #0F172A;
}

.how-we-work {
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-card) 100%);
}

.how-we-work-intro {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.55;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.how-step {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.how-step:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-step-body strong {
  font-size: 14px;
  color: var(--text-primary);
}

.how-step-body span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.how-step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-size: 16px;
  font-weight: 600;
}

.how-focus-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.how-focus {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
}

.how-focus-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.how-focus-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   ENTERPRISE INTEGRATIONS — TILE GRID
   ========================================================================== */
.integration-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.integration-tile {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.integration-tile:hover {
  background: var(--bg-card);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.integration-tile-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.integration-tile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   LIFE @ METTAREV
   ========================================================================== */
.life-section {
  padding: 100px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.life-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.life-vm-card,
.life-bio-block {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}

.life-vm-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.life-vm-card p,
.life-bio-block p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.life-bio-block {
  margin-bottom: 40px;
}

.life-section--page {
  padding-top: 140px;
  border-bottom: none;
}

.life-team-head {
  margin: 48px 0 20px;
}

.life-team-head h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.life-team-head p {
  color: var(--text-muted);
  font-size: 14px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.team-photo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #E2E8F0, #F1F5F9);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}

.team-photo--empty .team-photo-placeholder {
  display: flex;
}

.team-name {
  font-size: 17px;
  margin-bottom: 2px;
}

.team-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-linkedin {
  display: inline-flex;
  font-size: 14px;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.team-linkedin:hover {
  text-decoration: underline;
}

.life-events-head {
  margin-bottom: 20px;
}

.life-events-head h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.life-events-head p {
  color: var(--text-muted);
  font-size: 14px;
}

.life-events-head code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 4px;
}

.life-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.life-event-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.life-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.life-event-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #E2E8F0, #F1F5F9);
  overflow: hidden;
}

.life-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.life-event-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  font-family: var(--font-mono);
}

.life-event-media--empty .life-event-placeholder {
  display: flex;
}

.life-event-card figcaption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.life-event-card figcaption strong {
  font-size: 14px;
  color: var(--text-primary);
}

.life-event-card figcaption span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
.careers-section {
  padding: 100px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.careers-section--page {
  padding-top: 140px;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.career-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.career-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card);
}

.career-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.career-card h3 {
  font-size: 18px;
}

.career-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.career-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

.career-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: 4px;
}

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

.careers-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border-radius: 14px;
  color: #E2E8F0;
}

.careers-cta p {
  flex: 1;
  min-width: 220px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
  }
  .how-step-arrow {
    display: none;
  }
  .life-events-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .how-steps,
  .how-focus-row,
  .life-vm-grid,
  .integration-tiles-grid,
  .life-events-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
