/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* ── Core Brand ── */
  --brand-dark: #111118;
  --brand-light: #F8F9FA;
  --brand-gray: #EEF0F2;
  --brand-blue: #0F69B3;

  /* ── Neutral Scale (240° cool undertone) ── */
  --neutral-950: #0B0B11;
  --neutral-900: #111118;
  --neutral-800: #1C1D26;
  --neutral-700: #2A2C38;
  --neutral-600: #3E4150;
  --neutral-500: #585C6B;
  --neutral-400: #757A8A;
  --neutral-300: #9DA1AE;
  --neutral-200: #C4C7CF;
  --neutral-100: #E2E4E8;
  --neutral-75: #EEF0F2;
  --neutral-50: #F8F9FA;

  /* ── Blue Scale (H:207° S:85%) ── */
  --blue-50: #E7F3FD;
  --blue-100: #C6E3FA;
  --blue-200: #7BBEF4;
  --blue-300: #42A2F0;
  --blue-400: #1D8FED;
  --blue-500: #117AD0;
  --blue-600: #0F69B3;
  --blue-700: #0C5997;
  --blue-800: #094271;
  --blue-900: #062C4B;

  /* ── Semantic / Status ── */
  --success-base: #16864A;
  --success-light: #E8F7EE;
  --success-dark: #0E5E33;
  --warning-base: #C27A15;
  --warning-light: #FDF4E6;
  --warning-dark: #8A5610;
  --error-base: #C93B37;
  --error-light: #FDECEB;
  --error-dark: #8E2A27;
  --info-base: #0F69B3;
  --info-light: #E7F3FD;
  --info-dark: #094271;

  /* ── Surfaces ── */
  --surface-page: var(--brand-light);
  --surface-card: #FFFFFF;
  --surface-inset: var(--brand-gray);
  --surface-dark: var(--brand-dark);
  --surface-dark-card: var(--neutral-800);

  /* ── Text (light backgrounds) ── */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-500);
  --text-muted: var(--neutral-500);
  --text-accent: var(--blue-600);
  --text-link: var(--blue-600);

  /* ── Text (dark backgrounds) ── */
  --text-inverse: var(--neutral-50);
  --text-inverse-secondary: var(--neutral-300);
  --text-inverse-accent: var(--blue-400);
  --text-inverse-link: var(--blue-400);

  /* ── Borders ── */
  --border-default: var(--neutral-200);
  --border-subtle: var(--neutral-100);
  --border-dark: var(--neutral-700);

  /* ── Typography ── */
  --font-sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ── Spacing (4px base grid) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── Border Radius ── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* ── Transitions ── */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}


/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--blue-700);
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--brand-blue);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-2);
  color: #fff;
}


/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
}

h1 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin-bottom: 1em;
  max-width: 680px;
}
p:last-child {
  margin-bottom: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-2);
}

.section-dark .section-label {
  color: var(--text-inverse-accent);
}


/* ================================================================
   LAYOUT & CONTAINERS
   ================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.section-light {
  background: var(--surface-page);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-dark {
  background: var(--surface-dark);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-inset {
  background: var(--surface-inset);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Dark section text defaults */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverse);
}
.section-dark p,
.section-dark li {
  color: var(--text-inverse-secondary);
}
.section-dark a {
  color: var(--text-inverse-link);
}
.section-dark a:hover {
  color: var(--blue-200);
}

/* Center-align utility — used ONLY on CTA, video, footer copyright */
.text-center {
  text-align: center;
}



/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px; /* must match scroll offset in main.js */
  z-index: 100;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

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

.nav__logo {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
}

.nav__logo img {
  height: 48px;
  width: auto;
  transition: opacity 0.3s ease;
}

/* Logo swap — stack both logos, cross-fade with opacity */
.nav__logo-white {
  opacity: 0;
}
.nav__logo-black {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
}
.nav--solid .nav__logo-white {
  opacity: 0;
}
.nav--solid .nav__logo-black {
  opacity: 1;
}

/* Inner pages start with solid nav */
.nav--inner-page {
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.nav--inner-page .nav__logo-white {
  opacity: 0;
}
.nav--inner-page .nav__logo-black {
  opacity: 1;
}
.nav--inner-page .nav__link {
  color: var(--text-secondary);
}
.nav--inner-page .nav__link:hover {
  color: var(--text-primary);
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-5);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-300);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.nav__link:hover {
  color: var(--text-inverse);
}

.nav--solid .nav__link {
  color: var(--text-secondary);
}
.nav--solid .nav__link:hover {
  color: var(--text-primary);
}

/* Nav CTA button (Contact) */
.nav__link--cta {
  background: var(--brand-blue);
  color: #fff !important;
  border-radius: 6px;
  padding: var(--space-2) var(--space-5) !important;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav__link--cta:hover {
  background: var(--blue-700);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 40px;
  padding: var(--space-2);
  cursor: pointer;
  border: 1px solid rgba(42, 44, 56, 0.5);
  background: rgba(17, 17, 24, 0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 6px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, border 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease;
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav--solid .nav__hamburger-line,
.nav--inner-page .nav__hamburger-line {
  background: var(--text-primary);
}

/* Nav menu-open state — transparent so the menu's frosted glass shows through */
.nav--menu-open,
.nav--menu-open.nav--solid,
.nav--menu-open.nav--transparent,
.nav--menu-open.nav--inner-page {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.nav--menu-open .nav__hamburger-line {
  background: var(--text-inverse);
}
.nav--menu-open .nav__logo-black {
  opacity: 0;
}
.nav--menu-open .nav__logo-white {
  opacity: 1;
}

/* Hamburger open state */
.nav__hamburger--open, .nav--solid > .nav__inner > .nav__hamburger {
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* .nav--solid > .nav__inner > .nav__hamburger {
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
} */


.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger--open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 24, 0.93);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  padding: calc(72px + var(--space-6)) var(--space-5) var(--space-10);
  z-index: 99;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

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

.nav__mobile-link {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-inverse);
  text-decoration: none;
  padding: var(--space-2) 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, color var(--transition-fast);
}
.nav__mobile-menu--open .nav__mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.nav__mobile-menu--open .nav__mobile-link:nth-child(1) { transition-delay: 0.06s; }
.nav__mobile-menu--open .nav__mobile-link:nth-child(2) { transition-delay: 0.12s; }
.nav__mobile-menu--open .nav__mobile-link:nth-child(3) { transition-delay: 0.18s; }
.nav__mobile-menu--open .nav__mobile-link:nth-child(4) { transition-delay: 0.24s; }
.nav__mobile-menu--open .nav__mobile-link:nth-child(5) { transition-delay: 0.30s; }
.nav__mobile-link,
.nav__mobile-link:visited,
.nav__mobile-link:hover,
.nav__mobile-link:active,
.nav__mobile-link:focus {
  color: var(--text-inverse);
  -webkit-tap-highlight-color: transparent;
}


/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  line-height: 1.2;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 105, 179, 0.3);
}

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

.btn--secondary {
  background: var(--brand-blue);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--blue-300);
  border: 1px solid var(--brand-blue);
}
.btn--ghost:hover {
  border-color: var(--blue-300);
  color: var(--blue-200);
}

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border: 1px solid var(--border-default);
}
.btn--outline:hover {
  border-color: var(--brand-blue);
  color: var(--blue-700);
}

.btn--disabled,
.btn:disabled {
  background: var(--neutral-100);
  color: var(--neutral-300);
  cursor: not-allowed;
  border: none;
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  height: min(100vh, 600px);
  display: flex;
  align-items: center;
  background: var(--surface-dark);
  overflow: hidden;
  padding-top: 72px; /* account for fixed nav */
}

/* Hero background image — blurred layer behind overlay + content */
.hero__bg-image {
  position: absolute;
  inset: 0;
  background: center center / cover no-repeat;
  filter: blur(5px);
  transform: scale(1.05); /* prevent blur edge bleed */
  z-index: 0;
}

/* Per-page hero backgrounds */
.hero--bg .hero__bg-image {
  background-image: url('assets/hero_background.jpg');
}
.hero--solutions .hero__bg-image {
  background-image: url('assets/solutions_background.jpg');
}
.hero--about .hero__bg-image {
  background-image: url('assets/about_background.jpg');
}
.hero--contact .hero__bg-image {
  background-image: url('assets/contact_background.jpg');
}

.hero > .container {
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  /* margin-top: -3%; */
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse-accent);
  margin-bottom: var(--space-4);
}
.hero__label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 6px rgba(15, 105, 179, 0.5);
  margin-right: 10px;
  vertical-align: 2px;
  animation: pulse-blue 2s ease infinite;
}

/* ── Hero logo (homepage only — replaces hero__label) ── */
.hero__logo {
  height: 72px;
  width: auto;
  margin-bottom: var(--space-8);
}

.hero__title {
  font-size: 1.5rem;
  color: var(--text-inverse);
  margin-bottom: var(--space-6);
  line-height: 1.25;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Hero background: dark overlay ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 24, 0.85);
  pointer-events: none;
  z-index: 1;
}


/* ── Detection bounding box brackets ── */
.detection-bracket {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.detection-bracket--tl {
  border-top: 2px solid var(--blue-300);
  border-left: 2px solid var(--blue-300);
}
.detection-bracket--br {
  border-bottom: 2px solid var(--blue-300);
  border-right: 2px solid var(--blue-300);
}
.detection-bracket--tr {
  border-top: 2px solid var(--blue-300);
  border-right: 2px solid var(--blue-300);
}
.detection-bracket--bl {
  border-bottom: 2px solid var(--blue-300);
  border-left: 2px solid var(--blue-300);
}

/* Inner page hero (shorter) */
.hero--inner,
.hero--short {
  height: min(100vh, 340px);
}

.hero--inner .hero__content,
.hero--short .hero__content {
  margin-top: 0;
}

.hero--inner .hero__title,
.hero--short .hero__title {
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  color: var(--text-inverse-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 600px;
}


/* ================================================================
   CARDS — Capabilities
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--brand-blue);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.card__text {
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Deliverables list on services page expanded cards */
.card__deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  list-style: none;
}
.card__deliverable {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-accent);
  background: var(--blue-50);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}


/* ================================================================
   SOLUTIONS SECTION (homepage split cards — image + text)
   ================================================================ */

/* ── Grid ── */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: var(--space-8);
}

/* ── Card container ── */
.sol-card {
  position: relative;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.sol-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(15, 105, 179, 0.18);
  transform: translateY(-3px);
}

/* ── Blue corner brackets on hover ── */
.sol-card.has-brackets {
  position: relative;
}
.sol-card.has-brackets::before,
.sol-card.has-brackets::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-style: solid;
  border-color: var(--brand-blue);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.sol-card.has-brackets::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.sol-card.has-brackets::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}
.sol-card.has-brackets:hover::before,
.sol-card.has-brackets:hover::after {
  opacity: 0.45;
}

/* ── Dark top pane (image area) ── */
.sol-viz {
  position: relative;
  height: 190px;
  background: var(--neutral-400);
  overflow: hidden;
}

/* Placeholder image — fills dark pane */
.sol-viz .sol-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  z-index: 0;
}

/* ── White bottom pane (text content) ── */
.sol-body {
  padding: 24px 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Blue mono tag */
.sol-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

/* Card title */
.sol-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Card description */
.sol-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

/* Ghost link with animated arrow */
.btn-sol-ghost {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-600);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-sol-ghost:hover {
  color: var(--blue-700);
}
.btn-sol-ghost::after {
  content: '\2192';
  transition: transform 0.2s;
}
.btn-sol-ghost:hover::after {
  transform: translateX(3px);
}

/* Stretched link — makes entire card clickable */
.sol-card .btn-sol-ghost::before,
.blog-card .btn-sol-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}


/* ================================================================
   SOLUTION FEATURE BLOCKS (services.html deep-dives — all light)
   ================================================================ */
.solution-feature {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.solution-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.solution-feature__grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--neutral-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.solution-feature__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-2);
}

.solution-feature__title {
  margin-bottom: var(--space-4);
}

.solution-feature__text {
  line-height: 1.65;
  margin-bottom: var(--space-6);
  color: var(--text-secondary);
}

/* Confidence-bar styled "Ideal for" list */
.confidence-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.confidence-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.confidence-list__bar {
  flex-shrink: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-blue);
}


/* ================================================================
   VIDEO SECTION
   ================================================================ */
.video-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--surface-inset);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.video-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--neutral-300);
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.video-wrapper__thumbnail {
  width: 100%;
  display: block;
}

.video-wrapper__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 17, 24, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-normal), transform var(--transition-normal);
}
.video-wrapper__play:hover {
  background: rgba(17, 17, 24, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-wrapper__play svg {
  margin-left: 4px; /* optical center for play triangle */
}

.video-wrapper .intro-video {
  display: none;
}

.video-wrapper--playing .video-wrapper__thumbnail,
.video-wrapper--playing .video-wrapper__play {
  display: none;
}

.video-wrapper--playing .intro-video {
  display: block;
}

.intro-video {
  width: 100%;
  border-radius: var(--radius-xl);
  display: block;
}

/* When replaced with an iframe, the parent container handles aspect ratio */
.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-xl);
}

.video-caption {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}


/* ================================================================
   TWO-COLUMN INTRO — Who We Are + Video / About Intro
   ================================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.intro-grid__text p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.intro-grid__text .text-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-link);
}
.intro-grid__text .text-link:hover {
  color: var(--blue-700);
}


/* ================================================================
   CREDIBILITY STRIP — 4 horizontal proof points
   ================================================================ */
.credibility-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.credibility-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.credibility-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}

.credibility-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.credibility-item__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: none;
}


/* ================================================================
   INTEGRATION CALLOUT STRIP — 2-column with checklist
   ================================================================ */
.integration-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

.integration-strip__text h3 {
  margin-bottom: var(--space-4);
}

.integration-strip__text p {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Blue checkmark list */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.check-list__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-blue);
}


/* ================================================================
   SOLUTION PROBLEM PARAGRAPH
   ================================================================ */
.solution-feature__problem {
  line-height: 1.65;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.solution-feature__approach-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: var(--space-2);
}


/* ================================================================
   DIFFERENTIATORS — About page column layout
   ================================================================ */
.differentiators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.differentiator-item {
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.differentiator-item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.differentiator-item__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: none;
}


/* ================================================================
   CONTACT CTA — Intentionally centered (visual break)
   ================================================================ */
.contact-cta {
  text-align: center;
}

.contact-cta h2 {
  margin-bottom: var(--space-4);
}

.contact-cta p {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Compact padding for credibility strip on homepage */
#credibility {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--surface-dark);
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
  position: relative;
}

/* Engineering notebook grid background */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Major grid lines */
    linear-gradient(to right, rgba(200, 200, 210, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 200, 210, 0.05) 1px, transparent 1px),
    /* Minor grid lines */
    linear-gradient(to right, rgba(200, 200, 210, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 200, 210, 0.03) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  pointer-events: none;
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  background: rgba(17, 17, 24, 0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(42, 44, 56, 0.5);
  border-radius: 16px;
  padding: 28px 36px 24px;
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 20px;
}
.footer__brand img {
  height: 48px;
  width: auto;
}
.footer__brand-desc {
  color: var(--text-inverse-secondary);
  font-size: 0.8125rem;
  line-height: 1.55;
  text-align: center;
}

.footer__nav-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-300);
  margin-bottom: var(--space-3);
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__nav-link {
  font-size: 0.875rem;
  color: var(--neutral-300);
  text-decoration: none;
}
.footer__nav-link:hover {
  color: var(--text-inverse);
}

.footer__contact-item {
  font-size: 0.875rem;
  color: var(--neutral-300);
  margin-bottom: var(--space-2);
}
.footer__contact-item a {
  color: var(--text-inverse-link);
}
.footer__contact-item a:hover {
  color: var(--blue-200);
}

.footer__bottom {
  padding-top: var(--space-2);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--neutral-300);
}


/* ================================================================
   FORMS (contact.html)
   ================================================================ */
.form-container {
  max-width: 640px;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-label--optional::after {
  content: ' (optional)';
  font-weight: 400;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(15, 105, 179, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-submit {
  width: 100%;
}

.form-success {
  background: var(--success-light);
  border-left: 3px solid var(--success-base);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--success-dark);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.form-success--hidden {
  display: none;
}

.contact-info {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.contact-info__item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.contact-info__item a {
  color: var(--text-link);
}


/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about-prose {
  max-width: 680px;
}

.about-prose p {
  margin-bottom: 1em;
  line-height: 1.65;
  color: var(--text-secondary);
}

.about-intro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro-logo__img {
  width: 160px;
  height: auto;
  opacity: 0.12;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.value-item {
  padding: var(--space-6);
}

.value-item__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--brand-blue);
}

.value-item__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.value-item__text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 320px;
}


/* ================================================================
   IMAGE PLACEHOLDERS — Detection frame style
   ================================================================ */
.image-placeholder {
  position: relative;
  background: var(--surface-inset);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 300px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow: hidden;
}

/* Corner detection brackets on placeholder */
.image-placeholder::before,
.image-placeholder::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--brand-blue);
  border-style: solid;
  opacity: 0.3;
}
.image-placeholder::before {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px; /* top-left bracket */
}
.image-placeholder::after {
  bottom: 16px;
  right: 16px;
  border-width: 0 2px 2px 0; /* bottom-right bracket */
}

.image-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
}


/* ================================================================
   UTILITIES & HELPERS
   ================================================================ */
/* Focus-visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 105, 179, 0.3);
  border-radius: var(--radius-sm);
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ================================================================
   ANIMATIONS
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .animate-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .animate-in--visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* If user prefers reduced motion, elements appear instantly */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
  }
}


/* ================================================================
   RESPONSIVE — TABLET (768px+)
   ================================================================ */
@media (min-width: 768px) {
  h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero__logo {
    height: 96px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .section-light,
  .section-dark,
  .section-inset {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .solution-feature {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  /* Nav */
  .nav__links {
    display: flex;
  }
  .nav__hamburger {
    display: none;
  }

  /* Card grids — 2 columns at tablet */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Solution feature blocks — side by side */
  .solution-feature__grid {
    grid-template-columns: 1fr 1fr;
  }

  .solution-feature__grid--reversed {
    direction: rtl;
  }
  .solution-feature__grid--reversed > * {
    direction: ltr;
  }

  /* Two-column intro */
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* About intro — text + logo side by side */
  .about-intro-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro-logo__img {
    width: 220px;
  }

  /* Integration strip */
  .integration-strip {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .integration-strip .check-list {
    padding-top: var(--space-10);
  }

  /* Credibility strip — 2x2 at tablet */
  .credibility-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Differentiators — side by side at tablet */
  .differentiators-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer — 4 columns with solution links */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ================================================================
   RESPONSIVE — DESKTOP (1024px+)
   ================================================================ */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero__logo {
    height: 112px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section-light,
  .section-dark,
  .section-inset {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }

  .solution-feature {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }

  .about-intro-logo__img {
    width: 260px;
  }

  /* Card grid — 3 columns on desktop (3×2 layout for 6 capability cards) */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Solutions grid 3 columns on desktop */
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Credibility strip — 4 columns on desktop */
  .credibility-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ================================================================
   RESPONSIVE — WIDE (1280px+)
   ================================================================ */
@media (min-width: 1280px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}


/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes pulse-blue {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(15, 105, 179, 0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(15, 105, 179, 0.2); }
}
