/* ============================================
   ARX Tech — Design System & Stylesheet
   "Delivering Data-Driven Change"
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary */
  --navy: #0A1628;
  --blue: #1E3A5F;
  --accent: #00A6FB;
  --accent-dark: #0082C8;
  --teal: #00C9A7;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0A1628 0%, #1E3A5F 50%, #0A1628 100%);
  --gradient-glow: linear-gradient(135deg, #00A6FB 0%, #00C9A7 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 58, 95, 0.5) 0%, rgba(10, 22, 40, 0.8) 100%);
  --gradient-text: linear-gradient(135deg, #00A6FB, #00C9A7);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 166, 251, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(0, 166, 251, 0.3);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizes */
  --text-hero: clamp(2.75rem, 5vw, 4.5rem);
  --text-h1: clamp(2.25rem, 4vw, 3.5rem);
  --text-h2: clamp(1.75rem, 3vw, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw, 1.75rem);
  --text-h4: 1.25rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --container: 1280px;
  --container-xl: 1440px;
  --section-py: 6rem;
  --section-py-mobile: 4rem;
  --gap: 2rem;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Border */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--xl {
  max-width: var(--container-xl);
}

.section {
  padding: var(--section-py-mobile) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-py) 0;
  }
}

.section--dark {
  background: var(--navy);
  color: var(--gray-100);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--gray {
  background: var(--gray-50);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-center {
  text-align: center;
}

.font-accent {
  font-family: var(--font-accent);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex */
.flex {
  display: flex;
}

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

.flex--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  display: flex;
  flex-direction: column;
}

.flex--gap {
  gap: var(--gap);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-glow);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 166, 251, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 166, 251, 0.4);
  color: var(--white);
}

.btn--secondary {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  color: var(--gray-400);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn--light {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-body);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--duration-normal) var(--ease);
}

.nav--scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: invert(1);
  mix-blend-mode: screen;
  transition: opacity var(--duration-fast) var(--ease);
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.85;
}

.nav__logo-text {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
}

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

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  padding: 0.5rem 1rem;
  color: var(--gray-300);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease);
  border-radius: var(--radius-sm);
  position: relative;
}

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

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient-glow);
  border-radius: 1px;
}

.nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease);
}

.nav__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav__mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: right var(--duration-normal) var(--ease);
  z-index: 999;
}

.nav__mobile--open {
  right: 0;
}

.nav__mobile .nav__link {
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
}

.nav__mobile .btn {
  margin-top: 1rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated grid pattern */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 166, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 251, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  animation-delay: -5s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 166, 251, 0.1);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__stat-value {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero__stat-value span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: var(--text-xs);
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

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

/* --- Page Hero (smaller, for inner pages) --- */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero .hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 166, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 251, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero .hero__orb {
  position: absolute;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero__title {
  font-size: var(--text-h1);
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.page-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-400);
}

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

.breadcrumb__sep {
  color: var(--gray-600);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-header__tag::before,
.section-header__tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.section--dark .section-header__tag::before,
.section--dark .section-header__tag::after {
  background: var(--accent);
  opacity: 0.5;
}

.section-header__title {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-header__desc {
  color: var(--gray-500);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}

.section--dark .section-header__desc {
  color: var(--gray-400);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

/* Dark card */
.card--dark {
  background: rgba(30, 58, 95, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.card--dark:hover {
  border-color: rgba(0, 166, 251, 0.3);
  box-shadow: var(--shadow-glow);
  background: rgba(30, 58, 95, 0.35);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 166, 251, 0.1);
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card--dark .card__icon {
  background: rgba(0, 166, 251, 0.1);
  border: 1px solid rgba(0, 166, 251, 0.15);
}

.card__title {
  font-size: var(--text-h4);
  margin-bottom: 0.75rem;
}

.card--dark .card__title {
  color: var(--white);
}

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

.card--dark .card__text {
  color: var(--gray-400);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--duration-fast) var(--ease);
}

.card__link:hover {
  gap: 0.625rem;
}

/* --- Team Card --- */
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card__image {
  width: 100%;
  height: 280px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 166, 251, 0.15);
  border: 2px solid rgba(0, 166, 251, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Service Detail Card --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__number {
  font-family: var(--font-accent);
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.service-detail__title {
  font-size: var(--text-h3);
  margin-bottom: 0.75rem;
}

.service-detail__text {
  color: var(--gray-500);
  line-height: 1.7;
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.service-detail__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--gradient-glow);
  border-radius: 50%;
  margin-top: 0.5rem;
}

/* --- Values Grid --- */
.value-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-glow);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 166, 251, 0.08);
  margin-bottom: 1.25rem;
}

.value-card__title {
  font-size: var(--text-h4);
  margin-bottom: 0.75rem;
}

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

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--teal), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.2);
  transform: translateX(-5px);
}

.timeline__year {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-size: var(--text-h4);
  margin-bottom: 0.5rem;
}

.timeline__text {
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- Client Logos --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--duration-fast) var(--ease);
  min-height: 120px;
}

.client-logo:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.client-logo img {
  max-height: 64px;
  max-width: 100%;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
  object-fit: contain;
}

.client-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* --- News/Blog Cards --- */
.news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card__image {
  width: 100%;
  height: 200px;
  background: var(--gradient-hero);
  position: relative;
}

.news-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 166, 251, 0.9);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.news-card__body {
  padding: 1.5rem;
}

.news-card__date {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.news-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.news-card__link:hover {
  gap: 0.625rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.form__input,
.form__textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.1);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--gray-400);
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 166, 251, 0.1);
  color: var(--accent);
}

.contact-info__label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-weight: 600;
  color: var(--gray-800);
}

/* --- CTA Section --- */
.cta {
  position: relative;
  padding: 5rem 0;
  background: var(--gradient-hero);
  overflow: hidden;
  text-align: center;
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: var(--text-h2);
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.cta__text {
  color: var(--gray-400);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

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

.footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  color: var(--gray-400);
  transition: all var(--duration-fast) var(--ease);
}

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

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--duration-fast) var(--ease);
}

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

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

/* --- Counter Animation --- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* --- Misc --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-glow);
  border-radius: 2px;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(0, 166, 251, 0.1);
  color: var(--accent);
}

/* Feature list */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.feature-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.feature-list__item svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* Two column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.two-col--reverse .two-col__visual {
  order: -1;
}

@media (min-width: 768px) {
  .two-col--reverse .two-col__visual {
    order: 1;
  }
}

.two-col__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Data decoration pattern for visual blocks */
.data-pattern {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-pattern__dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.data-pattern__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 166, 251, 0.3);
  animation: dot-pulse 3s ease-in-out infinite;
}

.data-pattern__dot:nth-child(even) {
  background: rgba(0, 201, 167, 0.3);
  animation-delay: 0.5s;
}

.data-pattern__dot:nth-child(3n) {
  background: rgba(0, 166, 251, 0.6);
  animation-delay: 1s;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ============================================
   Mobile Responsive Fixes
   ============================================ */

/* --- Small screens (< 640px) --- */
@media (max-width: 639px) {
  /* Tighter container padding on small screens */
  .container {
    padding: 0 1rem;
  }

  /* Reduce section header spacing */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Hero adjustments */
  .hero {
    min-height: 100svh; /* Use svh for mobile address bar */
    padding-top: 5rem;
  }

  .hero__badge {
    font-size: var(--text-xs);
    padding: 0.375rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero__title {
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    margin-bottom: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    margin-bottom: 2.5rem;
  }

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

  .hero__stats {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .hero__stat-value {
    font-size: 2rem;
  }

  .hero__stat-label {
    font-size: var(--text-xs);
  }

  /* Hide scroll indicator on mobile */
  .hero__scroll {
    display: none;
  }

  /* Page hero - less top padding on mobile */
  .page-hero {
    padding: 7rem 0 3rem;
  }

  .page-hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  /* Buttons - full width on mobile */
  .btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--text-sm);
  }

  /* Cards - less padding */
  .card {
    padding: 1.5rem;
  }

  .value-card {
    padding: 1.5rem;
  }

  /* Team cards */
  .team-card__image {
    height: 200px;
  }

  .team-card__avatar {
    width: 90px;
    height: 90px;
    font-size: 2rem;
  }

  .team-card__info {
    padding: 1.25rem;
  }

  /* Service detail */
  .service-detail {
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .service-detail__number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .service-detail__list {
    margin-top: 1rem;
  }

  /* CTA - less padding */
  .cta {
    padding: 3.5rem 0;
  }

  .cta__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Footer - tighter on mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer__grid {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  /* Contact grid */
  .contact-grid {
    gap: 2.5rem;
  }

  /* Client logos - less padding */
  .client-logo {
    padding: 1.25rem;
    min-height: 90px;
  }

  /* Two column visual - less height on mobile */
  .two-col__visual {
    min-height: 220px;
  }

  .data-pattern {
    min-height: 220px;
  }
}

/* --- Medium screens (640px - 1023px) --- */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__stats {
    gap: 2rem;
  }

  .page-hero {
    padding: 8rem 0 4rem;
  }

  .team-card__image {
    height: 240px;
  }
}

/* --- iOS & Touch Device Fixes --- */
@supports (-webkit-touch-callout: none) {
  /* Fix iOS input styling */
  .form__input,
  .form__textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn {
    min-height: 44px;
  }

  .footer__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer__social-link {
    width: 44px;
    height: 44px;
  }

  /* Disable hover effects on touch */
  .card:hover {
    transform: none;
  }

  .team-card:hover {
    transform: none;
  }

  .news-card:hover {
    transform: none;
  }

  .value-card:hover::before {
    transform: scaleX(1);
  }

  .btn--primary:hover {
    transform: none;
  }
}

/* Remove tap highlight on mobile */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer__bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .nav__mobile {
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
