/* ============================================================
   STRATIA — Design System & Complete Styles
   Premium Software Company — 2026
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-primary: #0A5EB8;
  --color-primary-dark: #083D7A;
  --color-primary-light: #2E86DE;
  --color-accent: #F47C20;
  --color-accent-light: #FF9F4A;
  --color-accent-dark: #D96A10;

  /* Surfaces */
  --color-bg-dark: #0B1222;
  --color-bg-dark-2: #101A2E;
  --color-bg-dark-3: #152036;
  --color-bg-light: #F7F9FC;
  --color-bg-white: #FFFFFF;
  --color-bg-subtle: #EFF3F8;

  /* Text */
  --color-text-primary: #1A2233;
  --color-text-secondary: #5A6A7E;
  --color-text-muted: #8A96A8;
  --color-text-on-dark: #E8ECF2;
  --color-text-on-dark-muted: #9AAFC4;
  --color-text-white: #FFFFFF;

  /* Borders & Dividers */
  --color-border: #DDE3ED;
  --color-border-light: #EEF1F6;
  --color-border-dark: #1E2D45;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A5EB8 0%, #083D7A 100%);
  --gradient-hero: linear-gradient(160deg, #0B1222 0%, #0E1E3A 40%, #0A3668 100%);
  --gradient-accent: linear-gradient(135deg, #F47C20 0%, #FF9F4A 100%);
  --gradient-dark: linear-gradient(180deg, #0B1222 0%, #101A2E 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Font Sizes — Fluid Scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --container-padding: var(--space-6);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(10, 94, 184, 0.2);
  --shadow-glow-accent: 0 0 40px rgba(244, 124, 32, 0.15);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section--lg {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--dark {
  background: var(--gradient-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-text-white);
}

.section--dark p {
  color: var(--color-text-on-dark);
}

/* Cards with white bg inside dark sections need dark text */
.section--dark .card:not(.card--dark) .card-title {
  color: var(--color-text-primary);
}

.section--dark .card:not(.card--dark) .card-text {
  color: var(--color-text-secondary);
}

.section--light {
  background-color: var(--color-bg-light);
}

.section--subtle {
  background-color: var(--color-bg-subtle);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.heading-1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.heading-2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.heading-3 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.heading-4 {
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.subheading {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 640px;
}

.section--dark .subheading {
  color: var(--color-text-on-dark-muted);
}

.overline {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.section--dark .overline {
  color: var(--color-accent);
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-header .overline {
  margin-bottom: var(--space-4);
  display: block;
}

.section-header .heading-2 {
  margin-bottom: var(--space-5);
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-5) 0;
  transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(11, 18, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-text-white);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-text-white);
  flex-shrink: 0;
}

.logo-text span {
  color: var(--color-accent);
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-text-white);
  background: rgba(255,255,255,0.06);
}

.nav-link.is-active {
  color: var(--color-text-white);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--color-bg-dark-2);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown-link:hover {
  color: var(--color-text-white);
  background: rgba(255,255,255,0.06);
}

.nav-dropdown-link small {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  margin-top: 2px;
  opacity: 0.7;
}

/* Nav CTA */
.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: calc(var(--z-sticky) + 10);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Backdrop */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav Panel — slide in from right */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 340px);
  background: var(--color-bg-dark-2);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

/* Panel header: logo + close button */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.nav-mobile-header .logo {
  font-size: 1.35rem;
}

.nav-mobile-header .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

/* Close button */
.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.nav-mobile-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-white);
}

/* Panel body: nav links */
.nav-mobile-body {
  flex: 1;
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Panel footer: CTA */
.nav-mobile-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.nav-mobile-footer .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Nav links in panel */
.nav-mobile .nav-link {
  display: flex;
  align-items: center;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  padding: var(--space-3) 0;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition-fast);
}

.nav-mobile .nav-link:hover {
  color: var(--color-text-white);
}

.nav-mobile .nav-link.is-active {
  color: var(--color-accent);
}

/* Sub-nav (services) */
.nav-mobile .mobile-subnav {
  padding: var(--space-1) 0 var(--space-2) var(--space-4);
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  margin-left: var(--space-1);
}

.nav-mobile .nav-dropdown-link {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-3);
  color: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-mobile .nav-dropdown-link:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--color-text-white);
  box-shadow: 0 2px 8px rgba(244, 124, 32, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244, 124, 32, 0.35);
  filter: brightness(1.08);
}

.btn--secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-white);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.btn--dark:hover {
  background: var(--color-bg-dark-2);
  transform: translateY(-1px);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Link style button */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.link-arrow:hover {
  gap: var(--space-3);
}

.section--dark .link-arrow {
  color: var(--color-accent-light);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: var(--space-32) 0 var(--space-20);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(10, 94, 184, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(244, 124, 32, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* 3D Depth layers */
.hero-depth-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.3s ease-out;
}

.hero-depth-layer--far {
  background:
    radial-gradient(600px 600px at 20% 30%, rgba(10, 94, 184, 0.12) 0%, transparent 70%),
    radial-gradient(400px 400px at 80% 70%, rgba(244, 124, 32, 0.06) 0%, transparent 70%),
    radial-gradient(300px 300px at 60% 20%, rgba(10, 94, 184, 0.08) 0%, transparent 60%);
}

.hero-depth-layer--mid {
  background:
    radial-gradient(350px 350px at 70% 40%, rgba(10, 94, 184, 0.1) 0%, transparent 60%),
    radial-gradient(250px 250px at 30% 65%, rgba(244, 124, 32, 0.05) 0%, transparent 60%);
}

/* Particle canvas */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Grid pattern background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-8);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--color-text-white);
  margin-bottom: var(--space-6);
}

.hero h1 .text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  margin-top: var(--space-2);
}

/* Hero visual (right side) */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 620px;
  z-index: 1;
  opacity: 0.9;
}

.hero-visual-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-visual-card-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-visual-card-row:last-child {
  border-bottom: none;
}

.hero-visual-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.hero-visual-card-icon--blue {
  background: rgba(10, 94, 184, 0.2);
  color: var(--color-primary-light);
}

.hero-visual-card-icon--accent {
  background: rgba(244, 124, 32, 0.2);
  color: var(--color-accent);
}

.hero-visual-card-icon--green {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.hero-visual-card-label {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
}

.hero-visual-card-value {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-white);
}


/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-light);
}

.card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, rgba(10,94,184,0.1) 0%, rgba(10,94,184,0.05) 100%);
  color: var(--color-primary);
}

.card--dark .card-icon {
  background: linear-gradient(135deg, rgba(10,94,184,0.25) 0%, rgba(10,94,184,0.1) 100%);
  color: var(--color-primary-light);
}

.card-icon--accent {
  background: linear-gradient(135deg, rgba(244,124,32,0.12) 0%, rgba(244,124,32,0.05) 100%);
  color: var(--color-accent);
}

.card--dark .card-icon--accent {
  background: linear-gradient(135deg, rgba(244,124,32,0.25) 0%, rgba(244,124,32,0.1) 100%);
  color: var(--color-accent-light);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.card--dark .card-text {
  color: var(--color-text-on-dark-muted);
}

.card--dark .card-title {
  color: var(--color-text-white);
}

/* Feature card with number */
.card-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: rgba(10, 94, 184, 0.08);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.card--dark .card-number {
  color: rgba(255,255,255,0.05);
}

/* Service card with top border accent */
.card--service {
  position: relative;
  padding-top: var(--space-10);
  display: flex;
  flex-direction: column;
}

.card--service .link-arrow {
  margin-top: auto;
}

.card--service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card--service:hover::before {
  opacity: 1;
}


/* ============================================================
   CAPABILITIES / SERVICES BLOCKS
   ============================================================ */
.capability-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
}

.capability-block:nth-child(even) {
  direction: rtl;
}

.capability-block:nth-child(even) > * {
  direction: ltr;
}

.capability-content {
  max-width: 520px;
}

.capability-content .overline {
  margin-bottom: var(--space-4);
}

.capability-content h3 {
  margin-bottom: var(--space-5);
}

.capability-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.capability-list .check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(10, 94, 184, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-xs);
  margin-top: 1px;
}

.section--dark .capability-content p {
  color: var(--color-text-on-dark-muted);
}

.section--dark .capability-list li {
  color: var(--color-text-on-dark-muted);
}

.section--dark .capability-list .check {
  background: rgba(10, 94, 184, 0.2);
  color: var(--color-primary-light);
}

.capability-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-bg-dark-2) 0%, var(--color-bg-dark-3) 100%);
  border: 1px solid rgba(255,255,255,0.06);
}

.capability-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* Visual placeholders / abstract graphics */
.visual-abstract {
  width: 100%;
  height: 100%;
  position: relative;
}

.visual-abstract-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(10,94,184,0.4), transparent);
  border-radius: 2px;
}

.visual-abstract-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
}

.visual-abstract-circle {
  position: absolute;
  border-radius: var(--radius-full);
  border: 1px solid rgba(10, 94, 184, 0.2);
}


/* ============================================================
   TRUST / CLIENTS
   ============================================================ */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
}

.trust-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%) brightness(0.7);
  transition: opacity var(--transition-base), filter var(--transition-base), transform var(--transition-base);
}

.trust-logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.section--dark .trust-logo {
  filter: grayscale(100%) brightness(2) contrast(0.9);
  opacity: 0.65;
}

.section--dark .trust-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}


/* ============================================================
   METRICS / STATS
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.metric {
  padding: var(--space-8) var(--space-4);
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.section--dark .metric-value {
  color: var(--color-text-white);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-3);
}

.section--dark .metric-label {
  color: var(--color-text-on-dark-muted);
}


/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-block {
  text-align: center;
  padding: var(--space-20) var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-block h2 {
  color: var(--color-text-white);
  margin-bottom: var(--space-5);
  position: relative;
}

.cta-block p {
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.cta-block .btn {
  position: relative;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-20) 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-text-white);
}


/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: rgba(10, 94, 184, 0.1);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.section--dark .process-step::before {
  color: rgba(255,255,255,0.06);
}

.process-step h4 {
  margin-bottom: var(--space-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.section--dark .process-step p {
  color: var(--color-text-on-dark-muted);
}

/* Step connector line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -10%;
  width: 20%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-border), transparent);
}

.section--dark .process-step:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.testimonial-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card--dark .testimonial-quote {
  color: var(--color-text-on-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  color: var(--color-text-white);
  font-size: var(--text-lg);
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 94, 184, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input--dark,
.form-textarea--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--color-text-white);
}

.form-input--dark:focus,
.form-textarea--dark:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(10, 94, 184, 0.2);
}

.form-input--dark::placeholder,
.form-textarea--dark::placeholder {
  color: var(--color-text-on-dark-muted);
}


/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-xl);
  line-height: 1.6;
}

.badge--primary {
  background: rgba(10, 94, 184, 0.1);
  color: var(--color-primary);
}

.badge--accent {
  background: rgba(244, 124, 32, 0.1);
  color: var(--color-accent);
}

.badge--dark {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-on-dark-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Tech stack badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-badge {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  background: rgba(10, 94, 184, 0.06);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 94, 184, 0.1);
}

.section--dark .tech-badge {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-on-dark-muted);
  border-color: rgba(255,255,255,0.08);
}


/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industry-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.industry-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.industry-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.industry-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}


/* ============================================================
   BENEFIT LIST
   ============================================================ */
.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.benefit-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.benefit-item:hover {
  background: rgba(10, 94, 184, 0.03);
}

.section--dark .benefit-item:hover {
  background: rgba(255,255,255,0.03);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(10, 94, 184, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.section--dark .benefit-icon {
  background: rgba(10, 94, 184, 0.2);
  color: var(--color-primary-light);
}

.benefit-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.benefit-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.section--dark .benefit-text {
  color: var(--color-text-on-dark-muted);
}


/* ============================================================
   PAGE HERO (Interior pages)
   ============================================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: var(--space-32) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  max-width: 720px;
}

.page-hero .overline {
  margin-bottom: var(--space-4);
}

.page-hero h1 {
  color: var(--color-text-white);
  margin-bottom: var(--space-5);
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-6);
}

.page-hero .breadcrumb a {
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.page-hero .breadcrumb a:hover {
  color: var(--color-text-white);
}

.page-hero .breadcrumb .separator {
  opacity: 0.4;
}


/* ============================================================
   SERVICE DETAIL SECTIONS
   ============================================================ */
.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-feature {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-feature:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.service-feature-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.service-feature h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.service-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(10, 94, 184, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.value-card h4 {
  margin-bottom: var(--space-3);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}


/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.case-card-visual {
  height: 220px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.case-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.case-card-body {
  padding: var(--space-6);
}

.case-card-industry {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.case-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.case-card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Dark variant */
.case-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.case-card--dark:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.case-card--dark .case-card-title {
  color: var(--color-text-white);
}

.case-card--dark .case-card-text {
  color: var(--color-text-on-dark-muted);
}


/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}

.section--dark .faq-item {
  border-color: rgba(255,255,255,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  padding: var(--space-2) 0;
  text-align: left;
}

.section--dark .faq-question {
  color: var(--color-text-white);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: var(--space-2) 0 var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.section--dark .faq-answer p {
  color: var(--color-text-on-dark-muted);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes draw-line {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.animate-on-scroll.animate--fade-left {
  transform: translateX(-32px);
}

.animate-on-scroll.animate--fade-right {
  transform: translateX(32px);
}

.animate-on-scroll.animate--scale {
  transform: scale(0.92);
}

.animate-on-scroll.animate--fade {
  transform: none;
}

/* Staggered delays for children */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Hero entrance animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.65s; }

/* Neural network / IA visual */
.ia-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0B1830 0%, #0A3668 50%, #0E2445 100%);
}

.ia-visual-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ia-node {
  position: absolute;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite, pulse-glow 3s ease-in-out infinite;
}

.ia-node--primary {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  box-shadow: 0 0 20px rgba(10, 94, 184, 0.6), 0 0 40px rgba(10, 94, 184, 0.3);
}

.ia-node--accent {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  box-shadow: 0 0 16px rgba(244, 124, 32, 0.5), 0 0 32px rgba(244, 124, 32, 0.2);
}

.ia-node--subtle {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.ia-visual-label {
  position: absolute;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ia-visual svg line {
  stroke-dasharray: 200;
  animation: draw-line 2s ease forwards;
}

/* Counter animation */
.counter-value {
  display: inline-block;
}


/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-text-white); }
.text-muted { color: var(--color-text-muted); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .capability-block {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .capability-block:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile toggle visibility */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta.desktop-only {
    display: none;
  }
}

@media (min-width: 901px) {
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --container-padding: var(--space-5);
  }

  /* Prevent horizontal overflow from translateX animations on small screens */
  .animate-on-scroll.animate--fade-left,
  .animate-on-scroll.animate--fade-right {
    transform: translateY(28px);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section--lg {
    padding: var(--space-16) 0;
  }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }

  .heading-1 {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
  }

  .hero {
    min-height: auto;
    padding: var(--space-32) 0 var(--space-12);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .trust-logos {
    gap: var(--space-8);
  }

  .trust-logo {
    height: 28px;
    width: auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: var(--space-12) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .page-hero {
    padding: var(--space-32) 0 var(--space-10);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}
