/* ============================================
   CreativeBoye Agency — Precision Tech Theme
   Color Palette:
     --primary:   #B69D62 (golden tan)
     --dark-base: #2E4039 (forest green)
     --dark-mid:  #3A5048 (medium green)
     --cream:     #F2EDE6 (warm cream)
     --light:     #ffffff
   Font: PP Editorial New / Cormorant Garamond & Inter
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

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

:root {
  /* Brand Colors — updated with user-provided colors */
  --primary: #e8a029;           /* Vibrant Gold/Orange */
  --primary-light: #f2b752;     /* Lighter Gold for highlights */
  --primary-dark: #9c6204;      /* Deep Bronze — WCAG compliant text on light bg (5.5:1) */
  --primary-darker: #7d4b00;    /* Darkest Bronze for hover states */
  --primary-glow: rgba(232, 160, 41, 0.35);
  --primary-subtle: rgba(232, 160, 41, 0.08);

  /* Vibrant Green (User Color) */
  --accent-green: #53ab8b;      /* Vibrant Teal/Mint Green */
  --accent-green-light: #79d7b4; /* Lighter version for hover/subtle states on dark bg */
  --accent-green-dark: #23624a;  /* Deep teal/green for text on light bg (5.4:1) */
  --accent-green-glow: rgba(83, 171, 139, 0.35);
  --accent-green-subtle: rgba(83, 171, 139, 0.08);

  /* Vibrant light theme gradients (readable and cohesive, not dark/muddy) */
  --gradient-light-start: #e58d00; /* Rich vibrant gold */
  --gradient-light-end: #20a377;   /* Rich vibrant teal */

  /* Deepened Dark Tones */
  --bg-deep: #1e2624;           /* Deep Forest Slate Green */
  --bg-base: #25302d;           /* Base background */
  --bg-elevated: #2e3b38;       /* Lighter for contrast elevation */
  --bg-surface: #2b3835;        /* For inputs/inner blocks */
  --bg-card: rgba(37, 48, 45, 0.85);

  /* Light Tones */
  --bg-cream: #ffffff;
  --bg-cream-alt: #fff4db;      /* Lightened moccasin highlight */
  --bg-white: #faf8f5;          /* Warm off-white card backgrounds */

  /* Text — on dark (Brightened) */
  --text-primary: #ffffff;
  --text-secondary: #e2eeec;    /* Max contrast body text */
  --text-muted: #b8c9c6;        /* Readable cadet blue */
  --text-accent: #e8a029;       /* Vibrant Gold */

  /* Text — on light (Darkened for readability) */
  --text-dark: #121a19;
  --text-dark-secondary: #313d3b;
  --text-dark-muted: #4e5e5b;

  /* Borders */
  --border-subtle: rgba(83, 171, 139, 0.12); /* Uses vibrant green accent */
  --border-default: rgba(83, 171, 139, 0.25);
  --border-hover: rgba(232, 160, 41, 0.6);
  --border-light: rgba(37, 48, 45, 0.15);

  /* Sizes */
  --nav-height: clamp(56px, 6vw, 72px);
  --container-max: 1400px;
  --container-wide: 1600px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Neue Montreal', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  animation: page-fade-in 0.45s ease;
}

/* === PAGE TRANSITIONS === */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.page-exiting {
  opacity: 0;
  transition: opacity 0.26s ease;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  body.page-exiting {
    transition: none;
  }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.service-title,
.page-header-title {
  font-family: 'PP Editorial New', 'GT Sectra', 'Canela', 'Cormorant Garamond', 'Playfair Display', serif;
}

p,
.section-desc,
.service-desc,
.hero-subtitle,
.footer-tagline {
  font-weight: 500;
}

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

ul {
  list-style: none;
}

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

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 160px 0;
  position: relative;
}

/* === PAGE HEADERS === */
.page-header {
  padding: 180px 0 100px;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(232, 160, 41, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 160, 41, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at bottom right, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at bottom right, black, transparent 80%);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-subtle);
  border: 1px solid rgba(232, 160, 41, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.page-header-title {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  max-width: 900px;
}

.page-header-title span {
  color: var(--primary);
}

/* === TYPOGRAPHY === */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--primary-subtle);
  border: 1px solid rgba(232, 160, 41, 0.2);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header {
  text-align: left;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0;
}

.text-gradient {
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Adaptive gradient for light backgrounds */
.services-section .text-gradient,
.performance-section .text-gradient,
.products-section .text-gradient,
[style*="color: var(--text-dark)"] .text-gradient,
[style*="background: #f4f7f6"] .text-gradient,
[style*="background: var(--bg-cream)"] .text-gradient,
[style*="background:#f4f7f6"] .text-gradient {
  background-image: linear-gradient(135deg, var(--gradient-light-start) 0%, var(--gradient-light-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 0 0 0 var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-darker);
  box-shadow: 0 8px 32px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
  position: relative;
  z-index: 1;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border-default);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  z-index: -2;
  transition: background var(--transition-fast);
}

.btn-ghost::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  z-index: -1;
  transition: background var(--transition-fast);
}

.btn-ghost:hover::before {
  background: var(--border-hover);
}

.btn-ghost:hover::after {
  background: var(--primary-subtle);
}

/* Adapt ghost buttons for light background sections */
.services-section .btn-ghost,
.performance-section .btn-ghost,
.products-section .btn-ghost,
[style*="background: #f4f7f6"] .btn-ghost,
[style*="background: var(--bg-cream)"] .btn-ghost,
[style*="background:#f4f7f6"] .btn-ghost {
  color: var(--text-dark);
}

.services-section .btn-ghost::before,
.performance-section .btn-ghost::before,
.products-section .btn-ghost::before,
[style*="background: #f4f7f6"] .btn-ghost::before,
[style*="background: var(--bg-cream)"] .btn-ghost::before,
[style*="background:#f4f7f6"] .btn-ghost::before {
  background: var(--border-light);
}

.services-section .btn-ghost::after,
.performance-section .btn-ghost::after,
.products-section .btn-ghost::after,
[style*="background: #f4f7f6"] .btn-ghost::after,
[style*="background: var(--bg-cream)"] .btn-ghost::after,
[style*="background:#f4f7f6"] .btn-ghost::after {
  background: var(--bg-white);
}

.services-section .btn-ghost:hover::before,
.performance-section .btn-ghost:hover::before,
.products-section .btn-ghost:hover::before,
[style*="background: #f4f7f6"] .btn-ghost:hover::before,
[style*="background: var(--bg-cream)"] .btn-ghost:hover::before,
[style*="background:#f4f7f6"] .btn-ghost:hover::before {
  background: var(--primary-dark);
}

.services-section .btn-ghost:hover::after,
.performance-section .btn-ghost:hover::after,
.products-section .btn-ghost:hover::after,
[style*="background: #f4f7f6"] .btn-ghost:hover::after,
[style*="background: var(--bg-cream)"] .btn-ghost:hover::after,
[style*="background:#f4f7f6"] .btn-ghost:hover::after {
  background: var(--primary-subtle);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

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

/* Button arrow hover micro-animation */
.btn svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(16px, 3vw, 24px);
  height: clamp(64px, 8vw, 88px);
  background: rgba(30, 38, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: height var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav.scrolled {
  height: var(--nav-height); /* fluid, clamps down on scroll */
  background: rgba(30, 38, 36, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: clamp(12px, 2vw, 24px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 6px);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  z-index: 10;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-mark {
  display: block;
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  flex-shrink: 0;
}

.logo-text {
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-accent {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
}

.nav-link {
  position: relative;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  color: var(--text-secondary);
  padding: clamp(6px, 1vw, 8px) 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.nav-actions .btn {
  font-size: clamp(13px, 1.2vw, 15px);
  padding: clamp(9px, 1.1vw, 12px) clamp(16px, 2vw, 24px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav-toggle:hover {
  background: var(--primary-subtle);
}

/* === KEYBOARD FOCUS (accessible, visible on tab — not on mouse click) === */
.nav-link:focus-visible,
.nav-logo:focus-visible,
.nav-toggle:focus-visible,
.social-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 200px 0 160px;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 160, 41, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 160, 41, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  opacity: 0.1;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-green);
  bottom: -100px;
  left: -100px;
  opacity: 0.08;
}

/* === HERO VISUAL (circuit-board image, diagonal-wiped and blended into the dark bg) === */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
  mask-image: linear-gradient(120deg, transparent 10%, transparent 22%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.85) 82%);
  -webkit-mask-image: linear-gradient(120deg, transparent 10%, transparent 22%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.85) 82%);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg-deep) 100%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  mix-blend-mode: screen;
  filter: saturate(1.1) brightness(1.05) contrast(1.05);
}

@media (max-width: 1024px) {
  .hero-visual {
    width: 92%;
    opacity: 0.5;
    mask-image: linear-gradient(120deg, transparent 5%, transparent 16%, rgba(0, 0, 0, 0.2) 28%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.65) 48%, rgba(0, 0, 0, 0.85) 58%);
    -webkit-mask-image: linear-gradient(120deg, transparent 5%, transparent 16%, rgba(0, 0, 0, 0.2) 28%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.65) 48%, rgba(0, 0, 0, 0.85) 58%);
  }
}

@media (max-width: 768px) {
  .hero-visual {
    display: none;
  }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--primary-subtle);
  border: 1px solid rgba(232, 160, 41, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-size: clamp(52px, 8.5vw, 92px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-default);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

.hero-scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === LOGOS SECTION === */
.logos-section {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-cream);
  overflow: hidden;
  position: relative;
}

/* Gradient fade overlays at the edges of the logo marquee to fade into the white background */
.logos-section::before,
.logos-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 350px;
  z-index: 2;
  pointer-events: none;
}

.logos-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-cream), transparent);
}

.logos-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-cream), transparent);
}

.logos-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark-muted);
  margin-bottom: 32px;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.logos-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark-muted);
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.logo-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(78, 94, 91, 0.1);
  color: var(--text-dark-muted);
  flex-shrink: 0;
}

.logo-item:hover {
  opacity: 1;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === LIGHT SECTION OVERRIDES === */
.services-section,
.performance-section,
.products-section {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.services-section .section-title,
.performance-section .section-title,
.products-section .section-title {
  color: var(--text-dark);
}

.services-section .section-desc,
.performance-section .section-desc,
.products-section .section-desc {
  color: var(--text-dark-secondary);
}

.services-section .section-tag,
.performance-section .section-tag,
.products-section .section-tag {
  color: var(--primary-dark);
  background: var(--primary-subtle);
  border-color: rgba(232, 160, 41, 0.25);
}

/* === SERVICES === */
.services-section {
  background: #f4f7f6; /* Very light institutional green-grey */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(37, 48, 45, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.service-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.service-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 14px;
  color: var(--text-dark-secondary);
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-green-dark);
  border-radius: 50%;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: all var(--transition-base);
}

.service-link span {
  position: relative;
}

.service-link span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-dark);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0.8;
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 16px;
}

.service-link:hover span::after {
  transform: scaleX(1);
  opacity: 1;
}

.service-link svg {
  transition: transform var(--transition-base);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* === GOVERNMENT READINESS === */
.gov-section {
  background: var(--bg-deep);
}

.gov-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.gov-status {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.gov-status-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--accent-green-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.status-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-green-dark);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.gov-status-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.gov-status-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* NAICS Card */
.naics-card,
.certs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.naics-card {
  margin-bottom: 24px;
}

.naics-header,
.certs-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.naics-label,
.certs-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.naics-list {
  padding: 8px 0;
}

.naics-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  transition: background var(--transition-fast);
}

.naics-item:hover {
  background: var(--accent-green-subtle);
}

.naics-code {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}

.naics-name {
  font-size: 14px;
  color: var(--text-secondary);
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-subtle);
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg-card);
  transition: background var(--transition-fast);
}

.cert-badge:hover {
  background: var(--accent-green-subtle);
}

.cert-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-green-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
}

.cert-badge span {
  font-size: 15px;
  font-weight: 600;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.tech-chip:hover {
  border-color: var(--border-hover);
  background: var(--primary-subtle);
}

/* === PAST PERFORMANCE === */
.performance-section {
  background: var(--bg-cream);
}

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

.performance-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-base);
  position: relative;
}

.performance-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(46, 64, 57, 0.08);
}

.perf-number {
  font-size: 64px;
  font-weight: 900;
  color: var(--bg-base);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.perf-org {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.perf-role {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-dark);
}

.perf-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
}

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

.perf-tag {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark-muted);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 100px;
}

/* === LABS / INNOVATION === */
.labs-section {
  background: var(--bg-deep);
}

.labs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Terminal Window */
.terminal-window {
  background: #0d0d0d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 2;
}

.terminal-line {
  display: flex;
  gap: 8px;
  align-items: center;
}

.terminal-prompt {
  color: var(--primary);
  font-weight: 700;
}

.terminal-cmd {
  color: #e0e0e0;
}

.terminal-output {
  color: var(--text-muted);
  font-size: 13px;
}

.terminal-output.success {
  color: #28c840;
}

.terminal-cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}





.labs-projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.lab-project {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.lab-project:hover {
  border-color: var(--border-hover);
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(37, 48, 45, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: 12px;
  margin-bottom: 32px;
}

.service-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.service-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.service-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark-secondary);
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.service-features li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--primary);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  width: fit-content;
  padding-bottom: 4px;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.service-link:hover::after {
  width: 100%;
}

.service-link span {
  transition: transform var(--transition-fast);
}

.service-link svg {
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(6px);
}

.lab-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-shrink: 0;
}

.lab-project h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lab-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7fd99a;
  background: rgba(127, 217, 154, 0.12);
  border: 1px solid rgba(127, 217, 154, 0.3);
  border-radius: 100px;
  white-space: nowrap;
}

.lab-status-rd {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: rgba(224, 196, 150, 0.3);
}

.lab-project p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === PRODUCTS / SNAPCIET === */
.products-section {
  background: var(--bg-cream);
}

.products-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.products-card .section-title {
  color: var(--text-primary);
}

.products-card .section-desc {
  color: var(--text-secondary);
}

.products-card .section-tag {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: rgba(232, 160, 41, 0.2);
}

.products-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232, 160, 41, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.products-content {
  position: relative;
}

.products-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}

/* Orbit */
.product-orbit {
  position: relative;
  width: 280px;
  height: 280px;
}

.orbit-ring {
  position: absolute;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
}

.orbit-ring-1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: rotate 20s linear infinite;
}

.orbit-ring-2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: rgba(232, 160, 41, 0.25);
  animation: rotate 15s linear infinite reverse;
}

.orbit-ring-3 {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-color: rgba(232, 160, 41, 0.35);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--primary-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 40px var(--primary-glow);
}

.orbit-node {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--accent-green);
}

.orbit-node-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease-in-out infinite;
}

.orbit-node-2 {
  bottom: 10%;
  left: 5%;
  animation: float 3s ease-in-out 1s infinite;
}

.orbit-node-3 {
  bottom: 10%;
  right: 5%;
  animation: float 3s ease-in-out 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.orbit-node-1 {
  animation: float 3s ease-in-out infinite;
  transform: translateX(-50%);
}

/* === CONTACT === */
.contact-section {
  background: var(--bg-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-value:hover {
  color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

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

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23806977' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.form-group select option {
  background: var(--bg-base);
  color: var(--text-primary);
}

/* === FOOTER === */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 160px 0 0;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer .logo-text {
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: var(--primary-subtle);
}

.footer-links-group h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group li a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links-group li a:hover {
  color: var(--primary);
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* === ANIMATIONS (Scroll-triggered) === */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate="fade-right"] {
  transform: translateX(-32px);
}

[data-animate="fade-left"] {
  transform: translateX(32px);
}

[data-animate].in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gov-layout,
  .labs-layout,
  .contact-layout,
  .products-card {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* COLLAPSE NAVIGATION AT 1024PX FOR PROFESSIONAL RESPONSIVENESS */
  .nav {
    height: 72px; /* Static height on mobile/tablet to avoid sizing issues */
    padding: 0 16px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 38, 36, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 120px 24px 140px;
    z-index: 5;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .nav-links.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links .nav-link {
    font-family: 'PP Editorial New', 'Cormorant Garamond', serif;
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  }

  .nav-links .nav-link::after {
    display: none; /* No underlines on mobile */
  }

  .nav-links.mobile-open .nav-link {
    transform: translateY(0);
    opacity: 1;
  }

  /* Stagger mobile links animations */
  .nav-links.mobile-open .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.mobile-open .nav-link:nth-child(2) { transition-delay: 0.14s; }
  .nav-links.mobile-open .nav-link:nth-child(3) { transition-delay: 0.18s; }
  .nav-links.mobile-open .nav-link:nth-child(4) { transition-delay: 0.22s; }
  .nav-links.mobile-open .nav-link:nth-child(5) { transition-delay: 0.26s; }
  .nav-links.mobile-open .nav-link:nth-child(6) { transition-delay: 0.3s; }

  .nav-actions {
    display: flex;
    position: fixed;
    bottom: 48px;
    left: 24px;
    right: 24px;
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.32s, opacity 0.4s ease 0.32s;
  }

  .nav-actions.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .hero-title {
    font-size: clamp(32px, 8vw, 52px);
  }

  .hero-metrics {
    gap: 24px;
  }

  .metric-divider {
    display: none;
  }

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

  .logos-track {
    gap: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .products-card {
    padding: 32px;
  }

  .products-visual {
    min-height: 240px;
  }

  .product-orbit {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .service-card,
  .performance-card,
  .contact-form-wrapper {
    padding: 24px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  /* Keep the wordmark from crowding the hamburger on narrow phones */
  .nav-container {
    gap: 12px;
  }

  .nav-logo {
    font-size: 15px;
    gap: 5px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .logo-text {
    white-space: nowrap;
  }

  .logo-accent {
    display: none;
  }
}

/* === BLOG / PUBLICATION STYLES === */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-top: 48px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 48px;
  align-items: center;
  transition: border-color var(--transition-normal);
}

.blog-featured:hover {
  border-color: var(--primary);
}

.blog-featured-media {
  border-radius: 8px;
  overflow: hidden;
  height: 340px;
  background: var(--dark-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.blog-featured-media svg {
  color: var(--primary);
  opacity: 0.8;
}

.blog-featured-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.blog-category {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.blog-title-link {
  color: inherit;
  text-decoration: none;
}

.blog-title-link:hover h2,
.blog-title-link:hover h3 {
  color: var(--primary);
}

.blog-featured-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}

.blog-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
}

.blog-read-more svg {
  transition: transform var(--transition-fast);
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

.blog-categories-bar {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-categories-bar::-webkit-scrollbar {
  display: none;
}

.blog-category-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.blog-category-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.blog-category-btn.active {
  color: var(--primary-dark);
  background: var(--primary-subtle);
}

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

.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal);
}

.blog-card:hover {
  border-color: var(--primary);
}

.blog-card-media {
  height: 200px;
  background: var(--dark-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.blog-card-media svg {
  color: var(--primary);
  opacity: 0.8;
}

.blog-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.blog-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .blog-featured-media {
    height: 280px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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