/* style.css — Neo Agent Labs Design System */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Fluid type scale */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1rem + 1.2vw, 2rem);
  --text-2xl:  clamp(1.75rem, 1.1rem + 2vw, 3rem);
  --text-3xl:  clamp(2.25rem, 0.8rem + 4vw, 4.5rem);
  --text-hero: clamp(3rem, 0.5rem + 8vw, 8rem);

  /* 4px spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Shadows for dark theme */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   DARK THEME (default)
   ============================================ */
:root, [data-theme="dark"] {
  --color-bg: #060608;
  --color-surface: #0c0c10;
  --color-surface-2: #111116;
  --color-surface-3: #16161c;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-divider: rgba(255, 255, 255, 0.04);

  --color-text: #e8e8ec;
  --color-text-muted: #8a8a96;
  --color-text-faint: #4a4a56;

  --color-accent: #00f0ff;
  --color-accent-dim: rgba(0, 240, 255, 0.12);
  --color-accent-muted: rgba(0, 240, 255, 0.06);
  --color-amber: #ffb800;
  --color-amber-dim: rgba(255, 184, 0, 0.1);

  color-scheme: dark;
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
  --color-bg: #f4f4f6;
  --color-surface: #ffffff;
  --color-surface-2: #f8f8fa;
  --color-surface-3: #ededf0;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.16);
  --color-divider: rgba(0, 0, 0, 0.05);

  --color-text: #111116;
  --color-text-muted: #5a5a66;
  --color-text-faint: #9a9aa6;

  --color-accent: #0090a0;
  --color-accent-dim: rgba(0, 144, 160, 0.1);
  --color-accent-muted: rgba(0, 144, 160, 0.05);
  --color-amber: #b88000;
  --color-amber-dim: rgba(184, 128, 0, 0.08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  color-scheme: light;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

.text-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #0080ff 40%, #7040ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #007888 0%, #004488 40%, #503090 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.section-header--center .section-label {
  justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-interactive);
}

[data-theme="light"] .nav {
  background: rgba(244, 244, 246, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  padding: var(--space-2) 0;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-accent-muted);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: calc(var(--space-16) + var(--space-8)) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-2);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-interactive);
}

.nav__mobile .btn--primary {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.nav__mobile a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta-desktop { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--color-accent);
  color: #060608;
  border: 1px solid transparent;
}

.btn--primary:hover {
  background: #33f3ff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

[data-theme="light"] .btn--primary {
  background: #007888;
  color: #fff;
}

[data-theme="light"] .btn--primary:hover {
  background: #006070;
  box-shadow: 0 4px 16px rgba(0, 120, 136, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
}

.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-accent-muted);
  transform: translateY(-1px);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--space-16) + var(--space-8));
  padding-bottom: var(--space-10);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Subtle grid pattern — strengthened for v7.3 */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* Gradient orbs — brighter for v7.3 */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  will-change: transform;
}

.hero__orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: drift-1 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 100, 255, 0.16) 0%, transparent 70%);
  bottom: -5%;
  right: -10%;
  animation: drift-2 25s ease-in-out infinite;
}

.hero__orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: drift-3 18s ease-in-out infinite;
}

[data-theme="light"] .hero__orb--1 {
  background: radial-gradient(circle, rgba(0, 120, 136, 0.12) 0%, transparent 70%);
}
[data-theme="light"] .hero__orb--2 {
  background: radial-gradient(circle, rgba(0, 60, 120, 0.08) 0%, transparent 70%);
}
[data-theme="light"] .hero__orb--3 {
  background: radial-gradient(circle, rgba(0, 120, 136, 0.06) 0%, transparent 70%);
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, 20px); }
  50% { transform: translate(-20px, 40px); }
  75% { transform: translate(20px, -10px); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, -20px); }
  66% { transform: translate(20px, -30px); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(calc(-50% + 20px), calc(-50% - 15px)); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 550px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

/* Agent diagram */
.hero__diagram {
  position: relative;
  width: 240px;
  height: 210px;
  margin: 0 auto;
  opacity: 0.6;
}

.hero__diagram svg {
  width: 100%;
  height: 100%;
}

.diagram-line {
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: 0.3;
}

.diagram-line--animated {
  stroke-dasharray: 6 6;
  animation: dash-flow 3s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}

.diagram-node {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: 0.5;
}

.diagram-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--color-text-muted);
  text-anchor: middle;
}

[data-theme="light"] .diagram-line {
  stroke: var(--color-accent);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  background: var(--color-surface);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-2);
}

.stat__number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .stats-bar__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  max-width: 600px;
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   CAPABILITY CARDS
   ============================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.cap-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  /* Gradient border via background-clip trick */
  background-clip: padding-box;
  background-origin: padding-box;
}

/* Gradient border on hover using pseudo-element */
.cap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--color-border), var(--color-border));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: background 400ms var(--ease);
}

.cap-card:hover::before {
  background: linear-gradient(135deg, #00f0ff, #0060ff, #00f0ff);
}

[data-theme="light"] .cap-card:hover::before {
  background: linear-gradient(135deg, #0090a0, #004488, #0090a0);
}

.cap-card:hover {
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 240, 255, 0.03);
  transform: translateY(-2px);
}

[data-theme="light"] .cap-card:hover {
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 144, 160, 0.03);
}

/* Number indicator for capability cards */
.cap-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.cap-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.cap-card__icon svg {
  width: 24px;
  height: 24px;
}

.cap-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.cap-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS (Steps)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.steps__line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + var(--space-3));
  right: calc(12.5% + var(--space-3));
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

/* Animated pulse on the line */
.steps__line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 2px;
  animation: pulse-travel 4s ease-in-out infinite;
}

@keyframes pulse-travel {
  0% { left: -60px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 60px); opacity: 0; }
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 220px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .steps__line { display: none; }
}

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

/* ============================================
   METRICS / RESULTS
   ============================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.metric-card {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

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

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .cta-section__glow {
  background: radial-gradient(circle, rgba(0, 120, 136, 0.05) 0%, transparent 70%);
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cta-section__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-section__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
/* Footer with top edge glow */
.footer {
  position: relative;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  background: var(--color-bg);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-faint);
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              transform var(--transition-interactive);
}

.footer__social a:hover {
  color: var(--color-text);
  background: var(--color-accent-muted);
  transform: scale(1.1);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

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

.footer__list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.footer__list a:hover {
  color: var(--color-text);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-faint);
}

.footer__bar {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer__bar {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ============================================
   SUB-PAGE HERO
   ============================================ */
.sub-hero {
  padding: calc(var(--space-16) + var(--space-16)) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sub-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  /* v7.3: size boosted via override at end of file */
}

.sub-hero__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 580px;
  margin-inline: auto;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.service-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive);
}

/* Gradient border on hover using pseudo-element */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--color-border), var(--color-border));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: background 400ms var(--ease);
}

.service-card:hover::before {
  background: linear-gradient(135deg, #00f0ff, #0060ff, #00f0ff);
}

[data-theme="light"] .service-card:hover::before {
  background: linear-gradient(135deg, #0090a0, #004488, #0090a0);
}

.service-card:hover {
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 240, 255, 0.03);
}

[data-theme="light"] .service-card:hover {
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 144, 160, 0.03);
}

/* Numbered badge positioned at top-right of service cards */
.service-card__num-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-card__list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 3px;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.tech-category__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}

.tech-tag:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  border-left: 2px solid var(--color-accent);
  padding-left: calc(var(--space-3) - 1px);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.timeline__line {
  position: absolute;
  top: 12px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: var(--color-border);
}

.timeline-item {
  text-align: center;
  position: relative;
}

.timeline-item__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
}

.timeline-item__dot--active {
  background: var(--color-accent);
  animation: timeline-active-pulse 2s ease-in-out infinite;
}

@keyframes timeline-active-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 240, 255, 0);
  }
}

[data-theme="light"] .timeline-item__dot--active {
  animation-name: timeline-active-pulse-light;
}

@keyframes timeline-active-pulse-light {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 144, 160, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 144, 160, 0);
  }
}

.timeline-item__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.timeline-item__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .timeline__line { display: none; }
}

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

/* ============================================
   VALUES GRID
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.value-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

/* Gradient border on hover */
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--color-border), var(--color-border));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: background 400ms var(--ease);
}

.value-card:hover::before {
  background: linear-gradient(135deg, #00f0ff, #0060ff, #00f0ff);
}

[data-theme="light"] .value-card:hover::before {
  background: linear-gradient(135deg, #0090a0, #004488, #0090a0);
}

.value-card:hover {
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 240, 255, 0.03);
  transform: translateY(-2px);
}

[data-theme="light"] .value-card:hover {
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 144, 160, 0.03);
}

.value-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0 auto var(--space-4);
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

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

/* ============================================
   MISSION CARD
   ============================================ */
.mission-card {
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.mission-card__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: start;
}

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

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

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim), 0 0 16px rgba(0, 240, 255, 0.08);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  box-shadow: 0 0 0 3px var(--color-accent-dim), 0 0 16px rgba(0, 144, 160, 0.06);
}

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

/* Contact sidebar cards */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sidebar-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.sidebar-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.sidebar-card__value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.sidebar-card__value--accent {
  color: var(--color-accent);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.form-success.is-visible {
  display: block;
}

.form-success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transition-delay: 300ms; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }
.text-accent { color: var(--color-accent); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================
   V5 VISUAL UPGRADE — NEW FEATURES
   ============================================ */

/* ---------- Hero Node Network ---------- */
.hero__network {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero__network svg {
  width: 100%;
  height: 100%;
}

.network-line {
  stroke: var(--color-accent);
  stroke-width: 0.5;
  opacity: 0.15;
}

.network-line--animated {
  stroke-dasharray: 8 12;
  animation: network-flow 8s linear infinite;
}

@keyframes network-flow {
  to { stroke-dashoffset: -40; }
}

.network-node {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: 0.5;
}

.network-node-glow {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.5;
  opacity: 0;
  animation: node-glow 4s ease-in-out infinite;
}

.network-node-glow:nth-child(2n) {
  animation-delay: -2s;
}

.network-node-glow:nth-child(3n) {
  animation-delay: -1s;
}

@keyframes node-glow {
  0%, 100% { opacity: 0; r: 5; }
  50% { opacity: 0.3; r: 14; }
}

[data-theme="light"] .network-line {
  stroke: var(--color-accent);
  opacity: 0.12;
}

[data-theme="light"] .network-node {
  fill: var(--color-bg);
}

/* ---------- Scanline / Noise Overlay ---------- */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.02;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Section Gradient Dividers ---------- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.2;
  border: none;
  margin: 0;
}

/* ---------- Section Depth / Stacking ---------- */
.section--stacked {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  box-shadow: 0 -1px 0 var(--color-border), 0 -8px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .section--stacked {
  box-shadow: 0 -1px 0 var(--color-border), 0 -8px 30px rgba(0, 0, 0, 0.04);
}

/* ---------- Section Heading Radial Spotlight ---------- */
.section-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  position: relative;
}

.section-header--center .section-header__title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .section-header--center .section-header__title::before {
  background: radial-gradient(ellipse, rgba(0, 144, 160, 0.04) 0%, transparent 70%);
}

/* ---------- Step Glow on Pulse Pass ---------- */
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

/* Each step glows sequentially via CSS animation */
.step:nth-child(2) .step__number {
  animation: step-glow 4s ease-in-out infinite;
  animation-delay: 0.4s;
}

.step:nth-child(3) .step__number {
  animation: step-glow 4s ease-in-out infinite;
  animation-delay: 1.2s;
}

.step:nth-child(4) .step__number {
  animation: step-glow 4s ease-in-out infinite;
  animation-delay: 2.0s;
}

.step:nth-child(5) .step__number {
  animation: step-glow 4s ease-in-out infinite;
  animation-delay: 2.8s;
}

@keyframes step-glow {
  0%, 15%, 100% {
    box-shadow: none;
    border-color: var(--color-border);
  }
  5%, 10% {
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3), 0 0 4px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
  }
}

[data-theme="light"] .step:nth-child(n) .step__number {
  animation: step-glow-light 4s ease-in-out infinite;
}

[data-theme="light"] .step:nth-child(2) .step__number { animation-delay: 0.4s; }
[data-theme="light"] .step:nth-child(3) .step__number { animation-delay: 1.2s; }
[data-theme="light"] .step:nth-child(4) .step__number { animation-delay: 2.0s; }
[data-theme="light"] .step:nth-child(5) .step__number { animation-delay: 2.8s; }

@keyframes step-glow-light {
  0%, 15%, 100% {
    box-shadow: none;
    border-color: var(--color-border);
  }
  5%, 10% {
    box-shadow: 0 0 16px rgba(0, 144, 160, 0.2), 0 0 4px rgba(0, 144, 160, 0.1);
    border-color: rgba(0, 144, 160, 0.4);
  }
}

/* ---------- Button Shimmer Effect ---------- */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: none;
  pointer-events: none;
}

.btn--primary:hover::after {
  animation: btn-shimmer 600ms var(--ease) forwards;
}

@keyframes btn-shimmer {
  to { left: 150%; }
}

/* ---------- Metric Card Number Underline ---------- */
.metric-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-2);
}

.metric-card__number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.35;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__network,
  .hero__noise {
    display: none;
  }
}

/* ---------- Hero Diagram hidden (replaced by network) ---------- */
.hero__diagram {
  display: none;
}

/* ============================================
   V6 VISUAL UPGRADE — PREMIUM ENHANCEMENTS
   ============================================ */

/* ---------- 1. Interactive Particle Canvas ---------- */
.hero__particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

/* ---------- 2. Hero Text Entrance Animation ---------- */
@keyframes hero-clip-reveal {
  from {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__content .eyebrow {
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0ms;
}

.hero__headline {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  animation: hero-clip-reveal 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 200ms;
}

.hero__subtitle {
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 600ms;
}

.hero__ctas {
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 800ms;
}

/* ---------- 3. Card Spotlight / Cursor Glow ---------- */
.cap-card,
.service-card,
.metric-card,
.value-card,
.team-card,
.sidebar-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.cap-card::after,
.service-card::after,
.metric-card::after,
.value-card::after,
.team-card::after,
.sidebar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0,240,255,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
  z-index: 2;
}

.cap-card:hover::after,
.service-card:hover::after,
.metric-card:hover::after,
.value-card:hover::after,
.team-card:hover::after,
.sidebar-card:hover::after {
  opacity: 1;
}

[data-theme="light"] .cap-card::after,
[data-theme="light"] .service-card::after,
[data-theme="light"] .metric-card::after,
[data-theme="light"] .value-card::after,
[data-theme="light"] .team-card::after,
[data-theme="light"] .sidebar-card::after {
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0,144,160,0.04) 0%, transparent 50%);
}

/* Ensure metric-card and team-card and sidebar-card have position relative for the ::after */
.metric-card,
.team-card,
.sidebar-card {
  position: relative;
  overflow: hidden;
}

/* ---------- 4. Logo Marquee / Social Proof ---------- */
.marquee-section {
  padding-block: var(--space-10);
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

.marquee-section .section-label {
  justify-content: center;
  text-align: center;
  margin-bottom: var(--space-5);
}

.marquee-section .section-label::before {
  display: none;
}

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

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  opacity: 0.5;
  white-space: nowrap;
  padding: 0 var(--space-6);
}

.marquee-separator {
  color: var(--color-text-faint);
  opacity: 0.3;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 5. Grain / Film Noise Overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

[data-theme="light"] body::before {
  opacity: 0.02;
}

/* ---------- 6. Section Header Parallax / Scale ---------- */
.section-header__title {
  will-change: transform;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal .section-header__title,
.reveal-stagger .section-header__title {
  transform: scale(1.02);
}

.reveal.is-visible .section-header__title,
.reveal-stagger.is-visible .section-header__title {
  transform: scale(1);
}

/* ---------- 7. Enhanced Button States ---------- */
/* Primary: breathing glow on hover */
@keyframes btn-breathing-glow {
  0%, 100% {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.2), 0 0 8px rgba(0, 240, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.35), 0 0 12px rgba(0, 240, 255, 0.2);
  }
}

@keyframes btn-breathing-glow-light {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 120, 136, 0.2), 0 0 8px rgba(0, 120, 136, 0.08);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 120, 136, 0.3), 0 0 12px rgba(0, 120, 136, 0.15);
  }
}

.btn--primary:hover {
  animation: btn-breathing-glow 2s ease-in-out infinite;
}

[data-theme="light"] .btn--primary:hover {
  animation: btn-breathing-glow-light 2s ease-in-out infinite;
}

/* Ghost: animated border glow on hover */
.btn--ghost {
  position: relative;
  overflow: hidden;
}

.btn--ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
              linear-gradient(var(--ghost-angle, 0deg), transparent, var(--color-accent), transparent) border-box;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.btn--ghost:hover::after {
  opacity: 0.7;
  animation: ghost-border-spin 1.5s linear infinite;
}

@keyframes ghost-border-spin {
  to { --ghost-angle: 360deg; }
}

/* Register the custom property for animation */
@property --ghost-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

[data-theme="light"] .btn--ghost::after {
  background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
              linear-gradient(var(--ghost-angle, 0deg), transparent, var(--color-accent), transparent) border-box;
}

/* ---------- V6 Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__content .eyebrow,
  .hero__headline,
  .hero__subtitle,
  .hero__ctas {
    opacity: 1 !important;
    clip-path: none !important;
    animation: none !important;
  }

  .hero__particle-canvas {
    display: none;
  }

  .marquee-track {
    animation: none !important;
  }

  .btn--primary:hover {
    animation: none !important;
  }

  .btn--ghost::after {
    display: none;
  }

  .section-header__title {
    transform: none !important;
  }
}

/* ============================================
   V7 VISUAL UPGRADE — PREMIUM DESIGN ENHANCEMENTS
   ============================================ */

/* ---------- V7-1. Smooth Page Transition (CSS fade-in) ---------- */
@keyframes v7-page-fade-in {
  from { opacity: 0.01; }
  to   { opacity: 1; }
}

body {
  opacity: 1;
  animation: v7-page-fade-in 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- V7-2. Custom Scrollbar ---------- */
/* Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.18);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.35);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 144, 160, 0.2);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 144, 160, 0.4);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.18) var(--color-surface);
}

[data-theme="light"] {
  scrollbar-color: rgba(0, 144, 160, 0.2) var(--color-surface);
}

/* ---------- V7-3. Enhanced Nav — Glassmorphism Glow Line ---------- */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  pointer-events: none;
}

[data-theme="light"] .nav::after {
  background: linear-gradient(90deg, transparent, rgba(0, 144, 160, 0.2), transparent);
}

/* Nav scroll state — more solid on scroll */
.nav {
  transition: background var(--transition-interactive), box-shadow var(--transition-interactive);
}

.nav.is-scrolled {
  background: rgba(6, 6, 8, 0.95);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .nav.is-scrolled {
  background: rgba(244, 244, 246, 0.96);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- V7-4. Status Badge (SYSTEMS OPERATIONAL) ---------- */
.v7-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.55rem + 0.2vw, 0.7rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .v7-status-badge {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.v7-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  flex-shrink: 0;
  animation: v7-status-pulse 2s ease-in-out infinite;
}

@keyframes v7-status-pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50%      { opacity: 1;   box-shadow: 0 0 6px 2px rgba(0, 255, 136, 0.2); }
}

/* ---------- V7-5. CTA Aurora Gradient Mesh ---------- */
.cta-section__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cta-section__aurora::before,
.cta-section__aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: v7-aurora-drift 18s ease-in-out infinite;
}

.cta-section__aurora::before {
  width: 500px;
  height: 400px;
  top: -20%;
  left: 10%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.07) 0%, rgba(0, 60, 200, 0.04) 50%, transparent 70%);
}

.cta-section__aurora::after {
  width: 450px;
  height: 350px;
  bottom: -10%;
  right: 5%;
  background: radial-gradient(circle, rgba(80, 0, 200, 0.04) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 70%);
  animation-delay: -9s;
  animation-direction: reverse;
}

@keyframes v7-aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -20px) scale(1.05); }
  50%      { transform: translate(-20px, 15px) scale(0.95); }
  75%      { transform: translate(15px, 25px) scale(1.03); }
}

[data-theme="light"] .cta-section__aurora::before {
  background: radial-gradient(circle, rgba(0, 144, 160, 0.05) 0%, rgba(0, 40, 120, 0.03) 50%, transparent 70%);
}

[data-theme="light"] .cta-section__aurora::after {
  background: radial-gradient(circle, rgba(60, 0, 140, 0.03) 0%, rgba(0, 144, 160, 0.04) 50%, transparent 70%);
}

/* ---------- V7-6. Service Card 3D Tilt ---------- */
.service-card {
  transition: box-shadow var(--transition-interactive),
              transform 300ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- V7-7. Animated Avatar Gradient Ring ---------- */
.team-card__avatar {
  position: relative;
  z-index: 1;
}

.team-card__avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00f0ff, #0060ff, #00f0ff);
  z-index: -1;
  animation: v7-avatar-ring-spin 8s linear infinite;
}

.team-card__avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--color-surface);
  z-index: -1;
}

@keyframes v7-avatar-ring-spin {
  to { transform: rotate(360deg); }
}

[data-theme="light"] .team-card__avatar::before {
  background: conic-gradient(from 0deg, #0090a0, #004488, #0090a0);
}

/* ---------- V7-8. Value Card Numbers ---------- */
.value-card__num-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

/* ---------- V7-9. Contact Input Focus Glow Pulse ---------- */
@keyframes v7-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-accent-dim), 0 0 16px rgba(0, 240, 255, 0.08); }
  50%      { box-shadow: 0 0 0 4px var(--color-accent-dim), 0 0 24px rgba(0, 240, 255, 0.14); }
}

@keyframes v7-focus-pulse-light {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-accent-dim), 0 0 16px rgba(0, 144, 160, 0.06); }
  50%      { box-shadow: 0 0 0 4px var(--color-accent-dim), 0 0 24px rgba(0, 144, 160, 0.1); }
}

.form-input:focus,
.form-textarea:focus {
  animation: v7-focus-pulse 2s ease-in-out infinite;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  animation: v7-focus-pulse-light 2s ease-in-out infinite;
}

/* Label color change on input focus */
.form-group:focus-within .form-label {
  color: var(--color-accent);
  transition: color var(--transition-interactive);
}

/* ---------- V7-10. Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- V7-11. Footer Gradient Sweep ---------- */
@keyframes v7-footer-sweep {
  0%   { left: -30%; }
  100% { left: 130%; }
}

.footer::before {
  /* Override existing static gradient to add sweep */
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.15;
  width: 30%;
  animation: v7-footer-sweep 10s linear infinite;
}

/* ---------- V7-12. Back to Top Button ---------- */
.v7-back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 300ms var(--ease),
              visibility 300ms var(--ease),
              transform 300ms var(--ease),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              color var(--transition-interactive);
}

.v7-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.v7-back-to-top:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

[data-theme="light"] .v7-back-to-top:hover {
  box-shadow: 0 0 16px rgba(0, 144, 160, 0.12);
}

.v7-back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- V7-13. Sub-Page Hero Dot Grid Pattern ---------- */
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .sub-hero::before {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

.sub-hero > .container {
  position: relative;
  z-index: 1;
}

/* ---------- V7 Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }

  .v7-status-dot {
    animation: none !important;
    opacity: 1;
  }

  .cta-section__aurora::before,
  .cta-section__aurora::after {
    animation: none !important;
  }

  .team-card__avatar::before {
    animation: none !important;
  }

  .form-input:focus,
  .form-textarea:focus {
    animation: none !important;
  }

  .footer::before {
    animation: none !important;
    width: 100%;
    left: 0 !important;
  }

  .v7-back-to-top {
    transition: none !important;
  }
}

/* ============================================
   V7.1 SECTION UPGRADES
   ============================================ */

/* ---------- V7.1-1. Mission Card Upgrade ---------- */
.v71-mission-card {
  position: relative;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--color-accent), #0060ff) 1;
  text-align: center;
  overflow: hidden;
}

/* Subtle grid pattern background */
.v71-mission-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

[data-theme="light"] .v71-mission-card::after {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.v71-mission-card > * {
  position: relative;
  z-index: 1;
}

.v71-mission-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
  opacity: 0.7;
}

.v71-mission-icon svg {
  width: 100%;
  height: 100%;
}

.v71-mission-quote-open,
.v71-mission-quote-close {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(6rem, 10vw, 12rem);
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.v71-mission-quote-open {
  top: var(--space-4);
  left: var(--space-6);
}

.v71-mission-quote-close {
  bottom: var(--space-2);
  right: var(--space-6);
}

[data-theme="light"] .v71-mission-quote-open,
[data-theme="light"] .v71-mission-quote-close {
  opacity: 0.06;
}

/* ---------- V7.1-2. Team Section Upgrade ---------- */
.v71-team-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 800px !important;
  margin-inline: auto !important;
  gap: var(--space-8) !important;
}

.v71-team-card {
  padding: var(--space-8) var(--space-6) !important;
  transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease) !important;
}

.v71-team-card:hover {
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.08), var(--shadow-md);
  border-color: rgba(0, 240, 255, 0.15);
}

[data-theme="light"] .v71-team-card:hover {
  box-shadow: 0 0 32px rgba(0, 144, 160, 0.06), var(--shadow-md);
  border-color: rgba(0, 144, 160, 0.15);
}

/* Faster ring spin on card hover */
.v71-team-card:hover .team-card__avatar::before {
  animation-duration: 2s;
}

.v71-focus-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.v71-focus-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.v71-social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.v71-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-faint);
  transition: color var(--transition-interactive),
              border-color var(--transition-interactive),
              background var(--transition-interactive);
}

.v71-social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-muted);
}

.v71-social-link svg {
  width: 14px;
  height: 14px;
}

.v71-hiring-note {
  text-align: center;
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.v71-hiring-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-interactive);
}

.v71-hiring-note a:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .v71-team-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- V7.1-3. Tech Stack Grid Upgrade ---------- */
.v71-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  position: relative;
}

.v71-tech-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.v71-tech-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.v71-tech-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.v71-tech-card__icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.v71-tech-card__icon svg {
  width: 100%;
  height: 100%;
}

.v71-tech-card .tech-category__title {
  margin-bottom: 0;
}

.v71-tech-count {
  color: var(--color-text-faint);
  font-weight: 400;
  font-size: var(--text-xs);
}

/* Tech tag glow on hover (upgrade from border-left to full glow) */
.v71-tech-card .tech-tag:hover {
  border-color: var(--color-accent);
  border-left-width: 1px;
  padding-left: var(--space-3);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.12), 0 0 4px rgba(0, 240, 255, 0.08);
  color: var(--color-accent);
}

[data-theme="light"] .v71-tech-card .tech-tag:hover {
  box-shadow: 0 0 12px rgba(0, 144, 160, 0.1), 0 0 4px rgba(0, 144, 160, 0.06);
  color: var(--color-accent);
}

/* Connecting lines between tech cards */
.v71-tech-connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.v71-tech-connector {
  position: absolute;
  background: var(--color-border);
}

.v71-tech-connector--h {
  height: 1px;
  left: 25%;
  right: 25%;
  top: 50%;
}

.v71-tech-connector--v {
  width: 1px;
  top: 25%;
  bottom: 25%;
  left: 50%;
}

.v71-tech-connector-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  top: calc(50% - 4px);
  left: calc(50% - 4px);
  opacity: 0;
  animation: v71-tech-pulse 3s ease-in-out infinite;
}

@keyframes v71-tech-pulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.5; transform: scale(1); box-shadow: 0 0 12px rgba(0, 240, 255, 0.3); }
}

[data-theme="light"] .v71-tech-connector-pulse {
  background: var(--color-accent);
}

@media (max-width: 600px) {
  .v71-tech-grid {
    grid-template-columns: 1fr;
  }
  .v71-tech-connectors {
    display: none;
  }
}

/* ---------- V7.1-4. FAQ Accordion ---------- */
.v71-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v71-faq-item {
  border-bottom: 1px solid var(--color-border);
}

.v71-faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.v71-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-4);
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              color var(--transition-interactive);
}

.v71-faq-question:hover {
  color: var(--color-accent);
}

.v71-faq-item.is-open .v71-faq-question {
  border-left-color: var(--color-accent);
}

.v71-faq-toggle {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-faint);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform 300ms var(--ease), color 300ms var(--ease);
}

.v71-faq-item.is-open .v71-faq-toggle {
  color: var(--color-accent);
}

.v71-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease), padding 400ms var(--ease);
  padding: 0 var(--space-4) 0 calc(var(--space-4) + 2px);
}

.v71-faq-item.is-open .v71-faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-5);
}

.v71-faq-answer p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- V7.1-5. Featured Deployment / Case Study Card ---------- */
.v71-case-study-card {
  max-width: 800px;
  margin-inline: auto;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Gradient border via pseudo-element */
.v71-case-study-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--color-border), var(--color-border));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: background 400ms var(--ease);
  z-index: 1;
}

.v71-case-study-card:hover::before {
  background: linear-gradient(135deg, #00f0ff, #0060ff, #00f0ff);
}

[data-theme="light"] .v71-case-study-card:hover::before {
  background: linear-gradient(135deg, #0090a0, #004488, #0090a0);
}

.v71-case-study-card__inner {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot pattern inside the card */
.v71-case-study-card__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.6;
}

[data-theme="light"] .v71-case-study-card__inner::after {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.v71-case-study-card__inner > * {
  position: relative;
  z-index: 1;
}

.v71-case-study-client {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.v71-case-study-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.v71-case-study-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.v71-case-study-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.v71-case-study-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

/* ---------- V7.1 Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .v71-tech-connector-pulse {
    animation: none !important;
    display: none;
  }

  .v71-team-card:hover .team-card__avatar::before {
    animation-duration: 8s;
  }

  .v71-faq-answer {
    transition: none !important;
  }
}

/* ============================================
   V7.2 — HERO & NAV OVERHAUL
   ============================================ */

/* ---------- V7.2-1. Hero Headline Glow (dark mode) ---------- */
[data-theme="dark"] .hero__headline,
:root .hero__headline {
  text-shadow: 0 0 80px rgba(0, 240, 255, 0.1);
}

[data-theme="light"] .hero__headline {
  text-shadow: none;
}

/* ---------- V7.2-2. Nav Logo Mark (ring + core) ---------- */
.nav__logo-mark {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-rings {
  width: 24px;
  height: 24px;
}

.nav__logo-ring-outer {
  animation: v72-logo-spin 12s linear infinite;
  transform-origin: 12px 12px;
}

@keyframes v72-logo-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- V7.2-3. Active Link Glow Dot ---------- */
.nav__link--active {
  position: relative;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
  animation: v72-active-dot-pulse 2s ease-in-out infinite;
}

@keyframes v72-active-dot-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

[data-theme="light"] .nav__link--active::after {
  box-shadow: 0 0 6px rgba(0, 144, 160, 0.4);
}

/* ---------- V7.2-4. Nav CTA Glow ---------- */
.nav__cta-desktop {
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.18), inset 0 0 12px rgba(0, 240, 255, 0.06);
}

[data-theme="light"] .nav__cta-desktop {
  box-shadow: 0 0 18px rgba(0, 144, 160, 0.12), inset 0 0 12px rgba(0, 144, 160, 0.05);
}

/* ---------- V7.2-5. Agent Network Visualization ---------- */
.v72-agent-network {
  max-width: 700px;
  margin: var(--space-6) auto 0;
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1000ms;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.v72-agent-network__svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.5;
}

/* Connection lines */
.v72-net-line {
  stroke: var(--color-accent);
  stroke-width: 0.8;
  stroke-dasharray: 6 8;
  opacity: 0.25;
  animation: v72-net-flow 5s linear infinite;
}

@keyframes v72-net-flow {
  to { stroke-dashoffset: -56; }
}

/* Glow rings */
.v72-net-glow {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.5;
  opacity: 0;
  animation: v72-net-glow-pulse 4s ease-in-out infinite;
}

@keyframes v72-net-glow-pulse {
  0%, 100% { opacity: 0; r: 8; }
  50%      { opacity: 0.2; r: 14; }
}

/* Nodes */
.v72-net-node {
  fill: rgba(0, 240, 255, 0.08);
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: 0.6;
}

[data-theme="light"] .v72-net-line {
  stroke: var(--color-accent);
  opacity: 0.2;
}

[data-theme="light"] .v72-net-node {
  fill: rgba(0, 144, 160, 0.08);
  stroke: var(--color-accent);
}

[data-theme="light"] .v72-net-glow {
  stroke: var(--color-accent);
}

/* ---------- V7.2-6. Trust Line ---------- */
.v72-trust-line {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-6);
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 900ms;
}

/* ---------- V7.2-7. CTA Divider ---------- */
.v72-cta-divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
  margin: 0 auto var(--space-6);
}

/* ---------- V7.2-8. Sub-Hero Orb ---------- */
.v72-sub-hero {
  position: relative;
}

.v72-sub-hero-orb {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .v72-sub-hero-orb {
  background: radial-gradient(circle, rgba(0, 144, 160, 0.05) 0%, transparent 60%);
}

/* ---------- V7.2-9. Sub-Hero Divider ---------- */
.v72-sub-hero-divider {
  margin-top: var(--space-6);
  color: var(--color-accent);
  opacity: 0.35;
}

.v72-sub-hero-divider svg {
  width: 120px;
  height: 12px;
  display: block;
  margin-inline: auto;
}

/* ---------- V7.2-10. Sub-Hero Entrance Animations ---------- */
.v72-sub-eyebrow {
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0ms;
}

.v72-sub-title {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  animation: hero-clip-reveal 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 200ms;
}

.v72-sub-text {
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 500ms;
}

.v72-sub-hero-divider {
  opacity: 0;
  animation: hero-fade-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 700ms;
}

/* ---------- V7.2 Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav__logo-ring-outer {
    animation: none !important;
  }

  .nav__link--active::after {
    animation: none !important;
    opacity: 1;
  }

  .v72-agent-network {
    opacity: 0.5 !important;
    animation: none !important;
  }

  .v72-net-line {
    animation: none !important;
  }

  .v72-net-glow {
    animation: none !important;
    display: none;
  }

  .v72-trust-line {
    opacity: 1 !important;
    animation: none !important;
  }

  .v72-sub-eyebrow,
  .v72-sub-title,
  .v72-sub-text,
  .v72-sub-hero-divider {
    opacity: 1 !important;
    clip-path: none !important;
    animation: none !important;
  }
}

/* ============================================
   V7.3 — HERO & NAV OVERHAUL (VISUAL IMPACT)
   ============================================ */

/* ---------- V7.3-1. Hero Headline — Dramatic Glow ---------- */
/* Double-layer cyan text-shadow for intense glow on gradient text */
[data-theme="dark"] .hero__headline,
:root .hero__headline {
  text-shadow:
    0 0 60px rgba(0, 240, 255, 0.18),
    0 0 120px rgba(0, 240, 255, 0.08);
}

[data-theme="light"] .hero__headline {
  text-shadow: none;
}

/* ---------- V7.3-2. Particle Canvas — Higher Opacity ---------- */
.hero__particle-canvas {
  opacity: 1;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 25%, transparent 70%);
}

/* ---------- V7.3-3. Hero CTAs — Larger & Glowier ---------- */
.hero__ctas .btn--primary {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), 0 0 60px rgba(0, 240, 255, 0.06);
}

.hero__ctas .btn--primary:hover {
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.3), 0 0 80px rgba(0, 240, 255, 0.1);
}

[data-theme="light"] .hero__ctas .btn--primary {
  box-shadow: 0 0 20px rgba(0, 120, 136, 0.12);
}

[data-theme="light"] .hero__ctas .btn--primary:hover {
  box-shadow: 0 0 32px rgba(0, 120, 136, 0.2);
}

.hero__ctas .btn--ghost {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ---------- V7.3-4. Nav Glow Line — Brighter & Wider ---------- */
.nav::after {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0, 240, 255, 0.35) 30%, rgba(0, 240, 255, 0.45) 50%, rgba(0, 240, 255, 0.35) 70%, transparent 95%);
}

[data-theme="light"] .nav::after {
  background: linear-gradient(90deg, transparent 5%, rgba(0, 144, 160, 0.25) 30%, rgba(0, 144, 160, 0.35) 50%, rgba(0, 144, 160, 0.25) 70%, transparent 95%);
}

/* ---------- V7.3-5. Nav CTA — Stronger Persistent Glow ---------- */
.nav__cta-desktop {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.22), 0 0 8px rgba(0, 240, 255, 0.12), inset 0 0 12px rgba(0, 240, 255, 0.06);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.nav__cta-desktop:hover {
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35), 0 0 12px rgba(0, 240, 255, 0.2), inset 0 0 12px rgba(0, 240, 255, 0.08);
}

[data-theme="light"] .nav__cta-desktop {
  box-shadow: 0 0 20px rgba(0, 144, 160, 0.15), 0 0 8px rgba(0, 144, 160, 0.08), inset 0 0 12px rgba(0, 144, 160, 0.05);
}

[data-theme="light"] .nav__cta-desktop:hover {
  box-shadow: 0 0 28px rgba(0, 144, 160, 0.22), 0 0 12px rgba(0, 144, 160, 0.12);
}

/* ---------- V7.3-6. Sub-Hero — Larger Headlines + Gradient Overlay ---------- */
.sub-hero__title {
  font-size: clamp(2.5rem, 1rem + 5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Radial gradient glow behind sub-hero content */
.sub-hero::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.05) 0%, rgba(0, 60, 200, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

[data-theme="light"] .sub-hero::after {
  background: radial-gradient(ellipse, rgba(0, 144, 160, 0.04) 0%, rgba(0, 40, 120, 0.02) 40%, transparent 70%);
}

/* Ensure sub-hero content sits above the glow */
.sub-hero > .container {
  position: relative;
  z-index: 2;
}

/* ---------- V7.3-7. Hero Eyebrow Tighter Spacing ---------- */
.hero__content .eyebrow {
  margin-bottom: var(--space-2);
}

/* ---------- V7.3-8. Hero CTA Margin Reduction ---------- */
.hero__ctas {
  margin-bottom: var(--space-4);
}

/* ---------- V7.3-9. Tighter Hero Content Max-Width ---------- */
.hero__content {
  max-width: 920px;
}

/* ---------- V7.3-10. Mobile Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--space-16) + var(--space-4));
    padding-bottom: var(--space-8);
  }

  .hero__ctas .btn--primary,
  .hero__ctas .btn--ghost {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .sub-hero::after {
    width: 400px;
    height: 300px;
  }
}

/* ---------- V7.3 Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__particle-canvas {
    display: none;
  }
}

/* ============================================
   V7.4 — DEEP AUDIT & POLISH
   ============================================ */

/* ---------- V7.4-1. Nav Links — Premium Pill Hover & Active ---------- */
/* Override the basic nav link styles with pill-shaped hover/active states */
.nav__link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.nav__link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav__link:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Active nav link — frosted glass pill with accent border */
.nav__link--active {
  color: var(--color-text);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.06);
}

[data-theme="light"] .nav__link--active {
  background: rgba(0, 144, 160, 0.06);
  border: 1px solid rgba(0, 144, 160, 0.15);
  box-shadow: 0 0 12px rgba(0, 144, 160, 0.04);
}

/* Remove the old glow dot from v7.2 — the pill is the new active indicator */
.nav__link--active::after {
  display: none;
}

/* ---------- V7.4-2. Nav CTA — Premium 'Start a Project' Button ---------- */
.nav__cta-desktop {
  padding: var(--space-2) var(--space-6);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.18),
              0 0 6px rgba(0, 240, 255, 0.1),
              inset 0 0 10px rgba(0, 240, 255, 0.05);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive),
              background var(--transition-interactive);
}

.nav__cta-desktop span {
  display: inline-block;
  transition: transform var(--transition-interactive);
  margin-left: var(--space-1);
}

.nav__cta-desktop:hover span {
  transform: translateX(3px);
}

.nav__cta-desktop:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.3),
              0 0 10px rgba(0, 240, 255, 0.15),
              inset 0 0 12px rgba(0, 240, 255, 0.08);
}

[data-theme="light"] .nav__cta-desktop {
  border: 1px solid rgba(0, 144, 160, 0.25);
  box-shadow: 0 0 18px rgba(0, 144, 160, 0.12),
              0 0 6px rgba(0, 144, 160, 0.06),
              inset 0 0 8px rgba(0, 144, 160, 0.04);
}

[data-theme="light"] .nav__cta-desktop:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(0, 144, 160, 0.4);
  box-shadow: 0 0 24px rgba(0, 144, 160, 0.2),
              0 0 8px rgba(0, 144, 160, 0.1);
}

/* ---------- V7.4-3. Tech Tag Links — Maintain styling for <a> elements ---------- */
a.tech-tag,
a.tech-tag--link {
  text-decoration: none;
  color: var(--color-text-muted);
  display: inline-block;
  cursor: pointer;
}

a.tech-tag:hover,
a.tech-tag--link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.12), 0 0 4px rgba(0, 240, 255, 0.08);
  border-left: 2px solid var(--color-accent);
  padding-left: calc(var(--space-3) - 1px);
}

[data-theme="light"] a.tech-tag:hover,
[data-theme="light"] a.tech-tag--link:hover {
  box-shadow: 0 0 12px rgba(0, 144, 160, 0.1), 0 0 4px rgba(0, 144, 160, 0.06);
}

/* ---------- V7.4-4. Service Card Tilt — Ensure transform works on all cards ---------- */
/* The reveal-stagger now includes transform in its transition (fixed above). 
   Also ensure service cards have the right composite transition. */
.services-grid.reveal-stagger.is-visible > .service-card {
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--transition-interactive),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- V7.4-5. Polish: Consistent Hover for All Card Types ---------- */
/* Ensure cap-card has transform in its transition (it already does in base, confirm) */
.cap-card {
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

/* ---------- V7.4-6. Fix: Footer sweep animation z-index ---------- */
/* The footer::before sweep uses width: 30% and animation, but it also serves as 
   the glowing top border. Ensure it stays above footer content visually. */
.footer::before {
  z-index: 1;
}

/* ---------- V7.4-7. Fix: Remove duplicate nav transition ---------- */
/* The nav has transition declared at line 214 and again at line 2373.
   The v7 version (2373) is more complete — keep it winning by specificity. */

/* ---------- V7.4-8. Sub-hero z-index consistency ---------- */
/* .sub-hero::before (dot grid) = z:0, .sub-hero::after (glow) = z:0,
   .sub-hero > .container = z:2 (from v7.3). That's correct. Just confirm. */

/* ---------- V7.4-9. Mobile Responsive Nav Adjustments ---------- */
@media (max-width: 768px) {
  /* Nav links are hidden on mobile, so pill styles don't apply. 
     But ensure the mobile nav CTA also gets the premium treatment. */
  .nav__mobile .btn--primary {
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
  }

  [data-theme="light"] .nav__mobile .btn--primary {
    border-color: rgba(0, 144, 160, 0.2);
    box-shadow: 0 0 12px rgba(0, 144, 160, 0.08);
  }
}

/* ---------- V7.4-10. Polish: Ensure cursor: pointer on all interactive cards ---------- */
.cap-card:hover,
.service-card:hover,
.value-card:hover {
  cursor: default;
}

/* ---------- V7.4-11. Fix: v72-sub-hero-divider opacity conflict ---------- */
/* Line 3380: opacity: 0.35 (static), Line 3411: opacity: 0 with animation.
   The animation version (3411) wins because it's later. That's correct for entrance. */

/* ---------- V7.4 Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav__link,
  .nav__link--active {
    transition: none !important;
  }

  .nav__cta-desktop {
    transition: none !important;
  }

  .nav__cta-desktop:hover {
    transform: none !important;
  }
}

/* ============================================
   V7.5 — PREMIUM NAV BAR OVERHAUL
   ============================================ */

/* ---------- V7.5-1. Nav Bar — Gradient Bottom Border & Scrolled State ---------- */
.nav {
  border-bottom: none;
  position: relative;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.3) 20%,
    rgba(0, 128, 255, 0.4) 50%,
    rgba(112, 64, 255, 0.3) 80%,
    transparent 100%
  );
  opacity: 0.6;
  transition: opacity 400ms var(--ease);
}

.nav.is-scrolled::after {
  opacity: 1;
}

.nav.is-scrolled {
  background: rgba(6, 6, 8, 0.92);
}

[data-theme="light"] .nav::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 120, 136, 0.25) 20%,
    rgba(0, 68, 136, 0.3) 50%,
    rgba(80, 48, 144, 0.25) 80%,
    transparent 100%
  );
  opacity: 0.5;
}

[data-theme="light"] .nav.is-scrolled::after {
  opacity: 0.8;
}

[data-theme="light"] .nav.is-scrolled {
  background: rgba(244, 244, 246, 0.95);
}

/* ---------- V7.5-2. Logo — Gradient Text, Glow, Animated Rings ---------- */
.nav__logo {
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 800;
}

.nav__logo-text {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00f0ff 0%, #0080ff 40%, #7040ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.15));
}

[data-theme="light"] .nav__logo-text {
  background: linear-gradient(135deg, #007888 0%, #004488 40%, #503090 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(0, 120, 136, 0.1));
}

/* Logo rings — animated glow pulse */
.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav__logo-rings {
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
  animation: v75-logo-ring-glow 3s ease-in-out infinite;
}

@keyframes v75-logo-ring-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6))
           drop-shadow(0 0 20px rgba(0, 240, 255, 0.2));
  }
}

.nav__logo-ring-outer {
  animation: v75-ring-rotate 12s linear infinite;
  transform-origin: 12px 12px;
}

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

[data-theme="light"] .nav__logo-rings {
  filter: drop-shadow(0 0 3px rgba(0, 120, 136, 0.25));
  animation: v75-logo-ring-glow-light 3s ease-in-out infinite;
}

@keyframes v75-logo-ring-glow-light {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(0, 120, 136, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(0, 120, 136, 0.35))
           drop-shadow(0 0 12px rgba(0, 120, 136, 0.1));
  }
}

/* ---------- V7.5-3. Nav Links — Mono Font, Uppercase, Accent States ---------- */
.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: 0;
  background: transparent;
  border: none;
  position: relative;
  transition: color 180ms var(--ease);
}

/* Remove v7.4 pill active styles */
.nav__link--active {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="light"] .nav__link--active {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Hover — transition to accent */
.nav__link:hover {
  color: var(--color-accent);
  background: transparent;
}

[data-theme="light"] .nav__link:hover {
  color: var(--color-accent);
  background: transparent;
}

/* Active — accent-colored bottom bar indicator */
.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #0080ff, #7040ff);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

[data-theme="light"] .nav__link--active::after {
  background: linear-gradient(90deg, #007888, #004488, #503090);
  box-shadow: 0 0 6px rgba(0, 120, 136, 0.25);
}

[data-theme="light"] .nav__link--active {
  color: var(--color-text);
}

/* ---------- V7.5-4. CTA Button — Ghost/Outline with Gradient Border ---------- */
.nav__cta-desktop {
  position: relative;
  background: transparent;
  color: #00f0ff;
  border: none;
  box-shadow: none;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  overflow: visible;
  isolation: isolate;
  transition: color 180ms var(--ease),
              transform 180ms var(--ease),
              box-shadow 180ms var(--ease);
}

/* Gradient border via pseudo-element */
.nav__cta-desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 1.5px;
  background: linear-gradient(135deg, #00f0ff 0%, #0080ff 50%, #7040ff 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  transition: opacity 180ms var(--ease);
  animation: v75-cta-border-pulse 3s ease-in-out infinite;
}

@keyframes v75-cta-border-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Background fill on hover */
.nav__cta-desktop::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg,
    rgba(0, 240, 255, 0.08) 0%,
    rgba(0, 128, 255, 0.06) 50%,
    rgba(112, 64, 255, 0.08) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 180ms var(--ease);
}

.nav__cta-desktop:hover {
  color: #33f3ff;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2),
              0 0 8px rgba(0, 240, 255, 0.1);
}

.nav__cta-desktop:hover::before {
  opacity: 1;
  animation: none;
}

.nav__cta-desktop:hover::after {
  opacity: 1;
}

/* Arrow animation on hover */
.nav__cta-desktop span {
  display: inline-block;
  transition: transform 180ms var(--ease);
  margin-left: var(--space-1);
}

.nav__cta-desktop:hover span {
  transform: translateX(4px);
}

/* Light mode CTA */
[data-theme="light"] .nav__cta-desktop {
  color: #007888;
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="light"] .nav__cta-desktop::before {
  background: linear-gradient(135deg, #007888 0%, #004488 50%, #503090 100%);
  animation: v75-cta-border-pulse-light 3s ease-in-out infinite;
}

@keyframes v75-cta-border-pulse-light {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.8; }
}

[data-theme="light"] .nav__cta-desktop::after {
  background: linear-gradient(135deg,
    rgba(0, 120, 136, 0.06) 0%,
    rgba(0, 68, 136, 0.04) 50%,
    rgba(80, 48, 144, 0.06) 100%
  );
}

[data-theme="light"] .nav__cta-desktop:hover {
  color: #005868;
  box-shadow: 0 0 18px rgba(0, 120, 136, 0.15),
              0 0 6px rgba(0, 120, 136, 0.08);
}

[data-theme="light"] .nav__cta-desktop:hover::before {
  opacity: 1;
  animation: none;
}

/* ---------- V7.5-5. Mobile Nav Overrides ---------- */
@media (max-width: 768px) {
  .nav__logo {
    font-size: var(--text-base);
  }

  .nav__logo-rings {
    width: 24px;
    height: 24px;
  }

  /* Mobile CTA in slide-out menu — keep the gradient border style */
  .nav__mobile .btn--primary {
    position: relative;
    background: transparent;
    color: #00f0ff;
    border: none;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
  }

  .nav__mobile .btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1.5px;
    background: linear-gradient(135deg, #00f0ff 0%, #0080ff 50%, #7040ff 100%);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
  }

  [data-theme="light"] .nav__mobile .btn--primary {
    color: #007888;
  }

  [data-theme="light"] .nav__mobile .btn--primary::before {
    background: linear-gradient(135deg, #007888 0%, #004488 50%, #503090 100%);
  }
}

/* ---------- V7.5-6. Reduced Motion Overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav__logo-rings {
    animation: none !important;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.3)) !important;
  }

  .nav__logo-ring-outer {
    animation: none !important;
  }

  .nav__logo-text {
    animation: none !important;
  }

  .nav__cta-desktop::before {
    animation: none !important;
    opacity: 0.85 !important;
  }

  .nav__cta-desktop:hover {
    transform: none !important;
  }

  .nav__link,
  .nav__link--active {
    transition: none !important;
  }
}

/* ============================================
   V7.6 — NAV TABS, CTA HOVER, LOGO IMAGE
   ============================================ */

/* ---------- V7.6-1. Logo Image Styling ---------- */
.nav__logo-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: none;
  animation: none;
  transition: filter 180ms var(--ease);
}

.nav__logo:hover .nav__logo-img {
  filter: none;
}

[data-theme="light"] .nav__logo-img {
  filter: none;
  animation: none;
}

[data-theme="light"] .nav__logo:hover .nav__logo-img {
  filter: none;
}

/* ---------- V7.6-2. Nav Links — Enhanced Presence ---------- */
/* Add subtle left/right border lines that appear on active, and a background highlight on hover */
.nav__link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color 180ms var(--ease),
              background 180ms var(--ease);
}

.nav__link:hover {
  color: var(--color-accent);
  background: rgba(0, 240, 255, 0.04);
}

[data-theme="light"] .nav__link:hover {
  color: var(--color-accent);
  background: rgba(0, 144, 160, 0.04);
}

/* Active state — stronger presence with background tint + gradient bottom bar */
.nav__link--active {
  color: var(--color-accent);
  background: rgba(0, 240, 255, 0.06);
}

[data-theme="light"] .nav__link--active {
  color: var(--color-accent);
  background: rgba(0, 144, 160, 0.06);
}

.nav__link--active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: var(--space-2);
  right: var(--space-2);
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #0080ff, #7040ff);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5),
              0 2px 8px rgba(0, 240, 255, 0.3);
}

[data-theme="light"] .nav__link--active::after {
  background: linear-gradient(90deg, #007888, #004488, #503090);
  box-shadow: 0 0 8px rgba(0, 120, 136, 0.3),
              0 2px 6px rgba(0, 120, 136, 0.2);
}

/* Add a subtle top line too for the active state — brackets the tab */
.nav__link--active::before {
  content: '';
  display: block;
  position: absolute;
  top: -2px;
  left: calc(var(--space-2) + 25%);
  right: calc(var(--space-2) + 25%);
  height: 1px;
  background: rgba(0, 240, 255, 0.25);
  border-radius: 1px;
}

[data-theme="light"] .nav__link--active::before {
  background: rgba(0, 144, 160, 0.2);
}

/* ---------- V7.6-3. CTA Hover Fix — Refined, No Bright Flash ---------- */
/* Override the v7.5 hover that creates a bright flash */
.nav__cta-desktop:hover {
  color: #e8e8ec;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12),
              0 0 4px rgba(112, 64, 255, 0.08);
}

/* The ::after background fill on hover — make it a subtle gradient instead of bright */
.nav__cta-desktop:hover::after {
  opacity: 1;
  background: linear-gradient(135deg,
    rgba(0, 240, 255, 0.06) 0%,
    rgba(0, 128, 255, 0.04) 50%,
    rgba(112, 64, 255, 0.06) 100%
  );
}

/* The ::before border should not over-glow on hover */
.nav__cta-desktop:hover::before {
  opacity: 1;
  animation: none;
}

/* Light mode hover */
[data-theme="light"] .nav__cta-desktop:hover {
  color: #111116;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 120, 136, 0.1),
              0 0 4px rgba(80, 48, 144, 0.06);
}

[data-theme="light"] .nav__cta-desktop:hover::after {
  opacity: 1;
  background: linear-gradient(135deg,
    rgba(0, 120, 136, 0.05) 0%,
    rgba(0, 68, 136, 0.03) 50%,
    rgba(80, 48, 144, 0.05) 100%
  );
}

/* Reduced motion override for logo image */
@media (prefers-reduced-motion: reduce) {
  .nav__logo-img {
    animation: none !important;
    filter: none !important;
  }
  .nav__link--active::before {
    display: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav__logo-img {
    width: 32px;
    height: 32px;
  }
}
