/* ============================================================
   EVOTEK 2026 — Design System
   AI System Partner | Engineering Intelligence
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@400;600&family=Space+Mono:wght@400;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors - "Engineering Luxury" (Titanium Blue & Slate) */
  --bg-base: #FFFFFF;
  --bg-surface: #F8FAFD;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F4F8;
  --border: rgba(0, 91, 197, 0.1);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-accent: #005BC5;
  /* Titanium Blue */

  --accent: #005BC5;
  --accent-soft: rgba(0, 91, 197, 0.05);
  --accent-muted: #64748B;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --gradient-hero: radial-gradient(circle at 50% 0%, #F1F5F9 0%, #FFFFFF 100%);
  --gradient-blue: linear-gradient(135deg, #005BC5 0%, #003A80 100%);

  /* Typography - Dramatic & Technical */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing - Extreme Rhythm */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --space-3xl: 160px;
  --space-4xl: 240px;

  /* Shapes - Precision Edges */
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 91, 197, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);

  /* Layout */
  --container: 1400px;
  --nav-h: 88px;

  /* Media Queries Reference: 
     - 1200px: Large Desktop
     - 992px: Desktop/Tablet Landscape
     - 768px: Tablet
     - 480px: Mobile L
     - 375px: Mobile M
     - 320px: Mobile S
  */

  /* Transitions & Easing */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 340px) {
  .container {
    padding: 0 12px; /* Minimal padding for edge cases */
  }
}

.section-label::before {
  content: '//';
  font-weight: 700;
  margin-right: 4px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 72px); /* Smaller base min */
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .section-heading {
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 360px) {
  .section-heading {
    font-size: 28px !important;
    letter-spacing: -0.02em;
  }
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: var(--space-md);
}

.gradient-text {
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: inherit;
  background-clip: unset;
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 18px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: normal; /* Allow text wrapping for long button labels on mobile */
  text-align: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-md); /* Reduced gap */
}

@media (max-width: 768px) {
  .nav__inner {
    padding: 0 var(--space-lg);
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .nav__inner {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .nav__inner {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 360px) {
  .nav__inner {
    padding: 0 var(--space-sm);
  }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  height: 100%;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav__logo-img {
    height: 32px; /* Smoother size for mobile */
    margin-top: 4px; /* Move away from top edge */
  }
}

.nav__logo-img--mobile {
  height: 32px;
}

.nav__logo-img--footer {
  height: 48px;
}

@media (max-width: 768px) {
  .nav__logo-img--footer {
    height: 36px;
  }
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.nav__logo span {
  color: var(--accent);
  margin-left: -2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav__links a:hover::after {
  width: 100%;
}

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

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98); /* Light Mode */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-lg);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-header {
  padding-bottom: var(--space-lg); /* More air */
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: var(--space-sm);
}

.nav__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
}

.nav__mobile.open a {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile.open a:nth-child(2) { transition-delay: 0.1s; }
.nav__mobile.open a:nth-child(3) { transition-delay: 0.15s; }
.nav__mobile.open a:nth-child(4) { transition-delay: 0.2s; }
.nav__mobile.open a:nth-child(5) { transition-delay: 0.25s; }
.nav__mobile.open a:nth-child(6) { transition-delay: 0.3s; }
.nav__mobile.open a:nth-child(7) { transition-delay: 0.35s; }

.nav__mobile a:hover {
  color: var(--accent);
  padding-left: 8px; /* Subtle interaction */
}

.nav__mobile a:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
/* ============================================================
   HERO — Redesigned for Smoother, Premium Experience
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-base);
  padding-top: var(--nav-h);
  overflow: hidden;
}

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

@keyframes grid-pan {
  from { background-position: center top; }
  to { background-position: center bottom; }
}

.hero__grid-mesh {
  position: absolute;
  inset: -100px; /* Oversize for panning */
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  opacity: 0.15;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  animation: grid-pan 120s linear infinite;
}

/* Custom hero reveals for smoother entrance */
.hero .reveal {
  transform: translateY(20px);
  filter: blur(4px);
  transition: 
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s ease;
}

.hero .reveal.visible {
  transform: translateY(0);
  filter: blur(0);
}

.hero__glow-sphere {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
  animation: pulse-glow 15s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-48%) scale(1.1); opacity: 0.5; }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-base) 100%);
  pointer-events: none;
}

.hero__main {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 11px; /* Slightly smaller for luxury feel */
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero__mono-tag {
  color: var(--accent);
  font-weight: 700;
}

.hero__divider {
  opacity: 0.3;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 10vw, 110px); /* Slightly smaller min */
  font-weight: 800;
  line-height: 0.95; /* Breathable line height */
  letter-spacing: -0.06em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  word-break: break-word; /* Safety for very long words on tiny screens */
}

@media (max-width: 360px) {
  .hero__headline {
    font-size: 32px !important;
    letter-spacing: -0.02em;
    line-height: 1;
  }
}

.hero__headline .text-accent {
  display: block;
  font-style: italic; /* Dynamic serif feel */
}

.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  font-weight: 400;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.hero__viz {
  margin-top: var(--space-2xl);
}

.hero__viz-frame {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-2xl);
  border-top: 1px solid var(--border);
  position: relative;
}

.hero__viz-line {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--accent);
}

.hero__viz-data {
  display: flex;
  align-items: center;
  gap: var(--space-xl); /* Reduced gap */
}

.hero__viz-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__viz-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero__viz-lab {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.hero__footer {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  pointer-events: none;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: hero-scroll 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

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

.hero__mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__metadata {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-h) + var(--space-2xl));
    text-align: left;
    align-items: flex-start;
  }

  .hero__main {
    text-align: left;
  }

  .hero__sub {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.125rem;
  }

  .hero__actions {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .hero__viz-data {
    gap: var(--space-md); /* Further reduced gap */
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero__viz-item {
    min-width: 100px;
  }

  .hero__footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--nav-h) + var(--space-xl));
  }
  
  .hero__viz-frame {
    padding: var(--space-lg) 0;
    width: 100%;
    align-items: flex-start;
  }
}

/* ============================================================
   TRUST RIBBON
   ============================================================ */
.trust {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  overflow: hidden;
}

.trust__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.trust__logo {
  filter: grayscale(1) invert(0.8) brightness(1.2);
  opacity: 0.4;
  transition: var(--transition);
}

.trust__logo:hover {
  opacity: 0.8;
  filter: grayscale(0) invert(0);
}

.trust__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .trust__track {
    justify-content: center;
    gap: var(--space-md);
  }
}

.trust__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(1) brightness(0.2);
}

.trust__logo:hover {
  opacity: 1;
  filter: none;
}

.trust__logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.trust__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trust__badges {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.trust__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust__badge-icon {
  width: 20px;
  height: 20px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
}

/* ============================================================
   THE SHIFT — Three Eras Timeline (Redesigned)
   ============================================================ */
.shift {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.shift__intro {
  margin-bottom: var(--space-2xl);
  max-width: 800px;
}

.shift__heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.shift__sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.shift__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-2xl);
  position: relative;
}

.shift__era-new {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-3xl);
}

.shift__era-new:last-child {
  padding-bottom: 0;
}

.shift__era-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  z-index: 2;
}

.shift__era-connector {
  position: absolute;
  top: 50px;
  left: 24px;
  bottom: -var(--space-3xl);
  width: 1px;
  background: var(--border);
  z-index: 1;
}

.shift__era-content {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.shift__era-new:hover .shift__era-content {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.shift__era-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
}

.shift__era-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.shift__era-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.shift__era-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.shift__era-detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.shift__era-new--future {
  grid-template-columns: 120px 1.25fr;
}

.shift__era-new--future .shift__era-content {
  background: #0F172A;
  /* Dramatic shift to dark */
  color: #fff;
  border-color: var(--accent);
  overflow: hidden;
}

.shift__era-new--future .shift__era-title,
.shift__era-new--future .shift__era-desc {
  color: #fff;
}

.shift__era-new--future .shift__era-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 91, 197, 0.4);
}

.shift__era-bg-asset {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}

.shift__era-bg-asset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0) brightness(1.5);
}

.shift__era-new--future .shift__era-header,
.shift__era-new--future .shift__era-detail,
.shift__era-new--future .shift__era-badges {
  position: relative;
  z-index: 1;
}

.shift__era-badges {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.shift__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* color: var(--accent); */
}

@media (max-width: 900px) {
  .shift__era-new {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .shift__era-num {
    margin-left: 0;
  }

  .shift__era-connector {
    display: none;
  }
}

@media (max-width: 480px) {
  .shift__era-content {
    padding: var(--space-lg);
  }
  
  .shift__era-title {
    font-size: 24px;
  }
  
  .shift__era-desc {
    font-size: 15px;
  }
}

/* ============================================================
   CAPABILITIES — THE SPECTRUM
   ============================================================ */
.capabilities {
  background: var(--bg-surface);
  position: relative;
}

.capabilities__header {
  margin-bottom: var(--space-2xl);
}

.spectrum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  position: relative;
}

.spectrum__line {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.spectrum__phase {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
  transition: var(--transition);
}

.spectrum__node {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.spectrum__phase:hover .spectrum__node {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 91, 197, 0.2);
}

.spectrum__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.spectrum__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  min-height: 3.2em;
}

.spectrum__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spectrum__item {
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent-soft);
  transition: var(--transition);
}

.spectrum__phase:hover .spectrum__item {
  border-left-color: var(--accent);
}

.spectrum__item-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* Active/Featured phase styling */
.spectrum__phase--active {
  background: rgba(0, 91, 197, 0.02);
  padding: var(--space-xl) var(--space-lg);
  margin: 0 calc(var(--space-md) * -1); /* Reduced negative margin */
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: inset 0 0 40px rgba(0, 91, 197, 0.02);
}

@media (max-width: 1100px) {
  .spectrum {
    gap: var(--space-lg);
  }

  .spectrum__phase--active {
    margin: 0;
    padding: var(--space-xl) var(--space-sm);
  }
}

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

  .spectrum__line {
    display: none;
  }

  .spectrum__phase {
    padding: var(--space-lg) 0;
  }

  .spectrum__phase--active {
    border: none;
    background: rgba(0, 91, 197, 0.03);
    padding: var(--space-md); /* Reduced padding */
    margin: 0;
  }

  .spectrum__title {
    font-size: 22px;
  }
}

/* ============================================================
   PROOF OF IMPACT
   ============================================================ */
.impact {
  position: relative;
  overflow: hidden;
}

.impact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Avoid fractional column issues */
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

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

.impact__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.impact__card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(197, 160, 89, 0.1);
}

.impact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.impact__client {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.impact__metric {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.impact__metric span {
  color: var(--accent);
  font-size: 0.4em;
  margin-left: 4px; /* Prevent overlap on small screens */
}

.impact__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.impact__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.impact__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.impact__tag {
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.impact__numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.impact__num {
  text-align: center;
}

.impact__num-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
}

.impact__num-value span {
  color: var(--accent);
}

.impact__num-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

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

@media (max-width: 480px) {
  .impact__card {
    padding: var(--space-lg);
  }

  .impact__metric {
    font-size: 42px;
  }
  
  .impact__num-value {
    font-size: 24px;
  }
}

/* ============================================================
   ENGAGEMENT MODELS (Redesigned: Engineering Architecture)
   ============================================================ */
.engagement {
  background: var(--bg-surface);
  position: relative;
}

.engagement__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-3xl);
}

.eng-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  height: 100%;
}

.eng-card:hover {
  background: var(--bg-base);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.eng-card--featured {
  border-color: var(--accent);
  background: rgba(0, 91, 197, 0.02);
}

.eng-card--featured::before {
  content: 'Strategic Priority';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  letter-spacing: 0.1em;
}

.eng-card__technical-label {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.eng-card__icon-box {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-md);
}

.eng-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.eng-card__duration {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.eng-card__tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 2px;
}

.eng-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.eng-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Technical Specification Table */
.eng-card__specs {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eng-card__spec {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.eng-card__spec span:first-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: lowercase;
}

.eng-card__spec span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.eng-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.eng-card__feature {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.eng-card__feature::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.eng-card__bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.eng-card:hover .eng-card__bottom-line {
  width: 100%;
}

@media (max-width: 1200px) {
  .engagement__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 480px) {
  .eng-card {
    padding: var(--space-lg);
  }
  
  .eng-card__title {
    font-size: 20px;
  }
}

@media (max-width: 1100px) {
  .engagement__grid {
    gap: var(--space-sm);
  }

  .eng-card {
    padding: var(--space-lg) var(--space-md);
  }
}

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

/* ============================================================
   VALUES / PILLARS
   ============================================================ */
.pillars {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.pillars::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.pillar-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

@media (max-width: 480px) {
  .pillar-card {
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
  }
}

.pillar-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.pillar-card__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: rgba(79, 142, 247, 0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 42px;
  user-select: none;
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.pillar-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .cta-banner {
    padding: var(--space-xl) 0;
  }
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__label {
  margin-bottom: var(--space-lg);
}

.cta-banner__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.cta-banner__sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-banner__note {
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-lg);
}

.footer__office {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

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

.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Tagline */
.footer__tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

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

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Functional Utilities (Harden) --- */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Focus States (Normalize) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}