/* ================================================================
   APEX SOFT TECH — Premium Corporate Design System v5
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Manrope:wght@500;600;700;800&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Brand Palette */
  --navy-950: #06101F;
  --navy-900: #0A1628;
  --navy-800: #0F2040;
  --navy-700: #172D58;
  --blue-600: #1A4ED8;
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-300: #60A5FA;
  --sky-500:  #0EA5E9;
  --sky-400:  #38BDF8;

  /* Surfaces */
  --white:     #FFFFFF;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;

  /* Text */
  --gray-900:  #111827;
  --gray-800:  #1F2937;
  --gray-700:  #374151;
  --gray-600:  #4B5563;
  --gray-500:  #6B7280;
  --gray-400:  #9CA3AF;

  /* Semantic aliases */
  --color-bg:        var(--white);
  --color-surface:   var(--gray-50);
  --color-surface-2: var(--gray-100);
  --color-border:    var(--gray-200);
  --color-border-strong: var(--gray-300);

  --color-text:      var(--gray-900);
  --color-body:      var(--gray-700);
  --color-muted:     var(--gray-500);

  --color-brand:     var(--blue-500);
  --color-brand-dk:  var(--blue-600);
  --color-brand-lt:  var(--blue-400);
  --color-accent:    var(--sky-400);

  --color-dark-bg:   var(--navy-900);
  --color-dark-2:    var(--navy-800);

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

  /* Typography Scale */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

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

  /* Fluid headings */
  --display-size: clamp(2.75rem, 6vw, 5rem);
  --h1-size: clamp(2.25rem, 5vw, 4rem);
  --h2-size: clamp(1.75rem, 3.5vw, 2.75rem);
  --h3-size: clamp(1.25rem, 2vw, 1.5rem);

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

  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 5vw, 2.5rem);
  --container-max: 1280px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-blue: 0 8px 24px rgba(37,99,235,0.25);
  --shadow-blue-lg: 0 16px 48px rgba(37,99,235,0.30);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.4,0,0.2,1);
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

p { color: var(--color-body); line-height: 1.75; }
a { color: var(--color-brand); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul,ol { list-style: none; }

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

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

.ast-section-dark {
  background: var(--color-dark-bg);
  color: var(--white);
}

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

.ast-section-dark p { color: rgba(255,255,255,0.72); }

.ast-section-gray { background: var(--color-surface); }
.ast-section-blue-tint { background: #EFF6FF; }

.ast-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.ast-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.ast-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

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

@media (max-width:768px) {
  .ast-grid-2, .ast-grid-3, .ast-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width:769px) and (max-width:1024px) {
  .ast-grid-3, .ast-grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* ================================================================
   4. TYPOGRAPHY UTILITIES
   ================================================================ */
.ast-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.ast-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.ast-eyebrow-dark {
  color: var(--sky-400);
}

.ast-display {
  font-size: var(--display-size);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ast-h1 {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ast-h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ast-h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ast-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.75;
  color: var(--color-body);
  font-weight: 400;
}

.ast-lead-dark { color: rgba(255,255,255,0.70); }

.ast-gradient-text {
  background: linear-gradient(135deg, var(--blue-400), var(--sky-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ast-text-center { text-align: center; }
.ast-text-white { color: var(--white) !important; }
.ast-text-muted { color: var(--color-muted); }
.ast-text-brand { color: var(--color-brand); }

/* ================================================================
   5. HEADER / NAVIGATION
   ================================================================ */
.ast-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}

.ast-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.ast-header.dark-header {
  background: rgba(10,22,40,0.0);
}

.ast-header.dark-header.scrolled {
  background: rgba(255,255,255,0.97);
}

.ast-header > .ast-container {
  display: flex;
  align-items: center;
  height: 130px;
  gap: 2rem;
}

/* Logo */
.ast-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.ast-logo-img {
  height: 120px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ast-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.ast-logo-accent { color: var(--blue-500); }

.ast-header.dark-header:not(.scrolled) .ast-logo-text { color: var(--white); }
.ast-header.dark-header:not(.scrolled) .ast-logo-accent { color: var(--sky-400); }

/* Nav */
.ast-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.ast-nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.ast-nav-link:hover, .ast-nav-link.active {
  color: var(--color-brand);
  background: rgba(37,99,235,0.06);
}

.ast-header.dark-header:not(.scrolled) .ast-nav-link { color: rgba(255,255,255,0.85); }
.ast-header.dark-header:not(.scrolled) .ast-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }

/* Dropdown */
.ast-dropdown { position: relative; }
.ast-dropdown-trigger { background: none; }

.ast-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  z-index: 100;
}

.ast-dropdown:hover .ast-dropdown-menu,
.ast-dropdown:focus-within .ast-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ast-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
  text-decoration: none;
  color: var(--color-text);
}

.ast-dropdown-item:hover { background: var(--gray-50); }

.ast-dd-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.ast-dropdown-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.ast-dropdown-item small {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 1px;
}

/* Mobile toggle */
.ast-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
  margin-left: auto;
}

.ast-mobile-toggle:hover { background: var(--gray-100); }

.ast-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.ast-header.dark-header:not(.scrolled) .ast-mobile-toggle span { background: var(--white); }

/* Mobile menu */
.ast-mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.ast-mobile-menu-inner {
  padding: 1.25rem var(--container-px) 2rem;
}

.ast-mobile-link {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.ast-mobile-sub {
  font-size: var(--text-sm);
  color: var(--color-body);
  padding: 0.5rem 0.75rem;
  border-bottom: none;
}

.ast-mobile-section { margin-bottom: 0.5rem; }

.ast-mobile-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.875rem 0 0.25rem;
}

/* ================================================================
   6. BUTTONS
   ================================================================ */
.ast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-md);
  padding: 0.6875rem 1.375rem;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.01em;
}

.ast-btn-primary {
  background: var(--blue-500);
  color: var(--white) !important;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3), 0 4px 12px rgba(37,99,235,0.2);
}

.ast-btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37,99,235,0.4), 0 8px 24px rgba(37,99,235,0.25);
}

.ast-btn-primary:active { transform: translateY(0); }

.ast-btn-outline {
  background: transparent;
  color: var(--color-brand) !important;
  border: 1.5px solid var(--color-border-strong);
}

.ast-btn-outline:hover {
  border-color: var(--color-brand);
  background: rgba(37,99,235,0.04);
  transform: translateY(-1px);
}

.ast-btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.ast-btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.5);
}

.ast-btn-lg {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
  border-radius: var(--r-lg);
}

.ast-btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
}

.ast-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* ================================================================
   7. HERO SECTIONS
   ================================================================ */
.ast-hero {
  padding-top: calc(130px + 5rem);
  padding-bottom: 5rem;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.ast-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(37,99,235,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(14,165,233,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid pattern overlay */
.ast-hero::after {
  content: '';
  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;
}

.ast-hero-inner {
  position: relative;
  z-index: 1;
}

.ast-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ast-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-400);
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(56,189,248,0.20);
  border-radius: var(--r-full);
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
}

.ast-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sky-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

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

.ast-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.ast-hero .ast-lead { color: rgba(255,255,255,0.68); margin-bottom: 2rem; }

.ast-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ast-hero-trust {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ast-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

.ast-hero-trust-item svg,
.ast-hero-trust-item .icon {
  color: var(--sky-400);
  flex-shrink: 0;
}

/* Page hero (for inner pages) */
.ast-page-hero {
  padding-top: calc(130px + 4rem);
  padding-bottom: 4rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.ast-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(37,99,235,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 0% 50%, rgba(14,165,233,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.ast-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.ast-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.ast-page-hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ast-page-hero-content {
  max-width: 600px;
}

.ast-page-hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ast-page-hero h1 { color: var(--navy-900); margin-bottom: 1rem; }
.ast-page-hero .ast-lead { color: var(--gray-600); }

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

.ast-breadcrumb a { color: var(--gray-500); text-decoration: none; font-weight: 500; }
.ast-breadcrumb a:hover { color: var(--blue-600); }
.ast-breadcrumb span { color: var(--gray-400); }

/* ================================================================
   8. SECTION HEADERS
   ================================================================ */
.ast-section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ast-section-header-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ast-section-header h2 { margin-bottom: 0.75rem; }
.ast-section-header p { font-size: var(--text-lg); color: var(--color-body); }

/* ================================================================
   9. CARDS
   ================================================================ */
/* Base card */
.ast-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}

.ast-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
}

.ast-card-pad { padding: 2rem; }

/* Service card */
.ast-service-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.ast-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

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

.ast-service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.20);
}

.ast-service-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--t-base);
}

.ast-service-card:hover .ast-service-icon {
  background: rgba(37,99,235,0.14);
}

.ast-service-icon svg { width: 24px; height: 24px; color: var(--blue-500); }

.ast-service-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.625rem;
}

.ast-service-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 1.25rem;
}

.ast-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.ast-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--blue-600);
  background: rgba(37,99,235,0.07);
  border-radius: var(--r-full);
  padding: 0.25rem 0.75rem;
}

.ast-tag-gray {
  color: var(--gray-600);
  background: var(--gray-100);
}

.ast-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  transition: gap var(--t-fast);
}

.ast-card-link:hover { gap: 0.625rem; }

/* Feature card */
.ast-feature-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  background: var(--white);
  transition: box-shadow var(--t-base);
}

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

.ast-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ast-feature-icon svg { width: 20px; height: 20px; color: var(--blue-500); }

.ast-feature-content h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.ast-feature-content p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

/* Project card */
.ast-project-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--white);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.ast-project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.ast-project-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.ast-project-content {
  padding: 1.75rem;
}

.ast-project-category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.ast-project-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.ast-project-card p {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.ast-project-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.ast-metric-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-500);
  display: block;
}

.ast-metric-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
}

/* Testimonial card */
.ast-testimonial-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  position: relative;
}

.ast-testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--gray-200);
  font-family: Georgia, serif;
}

.ast-testimonial-card blockquote {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-body);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.ast-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.ast-testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.ast-testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  display: block;
}

.ast-testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: block;
}

/* Stat card */
.ast-stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.ast-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-400), var(--sky-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.ast-stat-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

/* ================================================================
   10. PROCESS / STEPS
   ================================================================ */
.ast-process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.ast-process-step {
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.ast-process-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.ast-process-step h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.ast-process-step p {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: 1.65;
}

/* Horizontal steps (numbered) */
.ast-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
}

.ast-step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ast-step-num {
  width: 40px;
  height: 40px;
  background: var(--blue-500);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ast-step h4 { font-size: 1rem; }
.ast-step p { font-size: var(--text-sm); color: var(--color-body); }

/* ================================================================
   11. FAQ
   ================================================================ */
.ast-faq { display: flex; flex-direction: column; gap: 0.75rem; }

.ast-faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ast-faq-item[open] {
  border-color: rgba(37,99,235,0.25);
  box-shadow: var(--shadow-sm);
}

.ast-faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background var(--t-fast);
}

.ast-faq-item summary::-webkit-details-marker { display: none; }
.ast-faq-item summary:hover { background: var(--gray-50); }

.ast-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-brand);
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.ast-faq-item[open] summary::after { transform: rotate(45deg); }

.ast-faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--text-base);
  color: var(--color-body);
  line-height: 1.75;
}

/* ================================================================
   12. FORMS
   ================================================================ */
.ast-form { display: flex; flex-direction: column; gap: 1.25rem; }

.ast-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width:600px) { .ast-form-row { grid-template-columns: 1fr; } }

.ast-form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.ast-form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.ast-form-req { color: var(--color-brand); margin-left: 2px; }

.ast-form-input,
.ast-form-select,
.ast-form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}

.ast-form-input:focus,
.ast-form-select:focus,
.ast-form-textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

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

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

.ast-form-hint {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ================================================================
   13. TECHNOLOGY GRID
   ================================================================ */
.ast-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
}

.ast-tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: all var(--t-base);
  text-align: center;
}

.ast-tech-item:hover {
  border-color: rgba(37,99,235,0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ast-tech-item img,
.ast-tech-item svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ast-tech-item span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-body);
}

/* ================================================================
   14. CTA SECTIONS
   ================================================================ */
.ast-cta-dark {
  background: var(--blue-600);
  position: relative;
  overflow: hidden;
}

.ast-cta-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ast-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--section-py) 0;
}

.ast-cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.ast-cta-inner p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.ast-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inline CTA band */
.ast-cta-band {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 50%, var(--sky-500) 100%);
  padding: 3rem 0;
}

.ast-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ast-cta-band h3 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  color: var(--white);
}

.ast-cta-band p {
  color: rgba(255,255,255,0.80);
  margin-top: 0.25rem;
}

/* ================================================================
   15. FOOTER
   ================================================================ */
#site-footer {}

/* ================================================================
   16. HERO VISUAL (CSS-only tech graphic)
   ================================================================ */
.ast-hero-visual {
  position: relative;
  height: 420px;
}

.ast-tech-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.ast-hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  position: absolute;
  transition: transform 0.3s ease;
}

.ast-hero-card-title {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.25rem;
}

.ast-hero-card-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
}

.ast-hero-card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16,185,129,0.15);
  border-radius: var(--r-full);
  padding: 0.125rem 0.5rem;
  margin-top: 0.25rem;
}

.ast-device-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 8px solid rgba(255,255,255,0.12);
  background: var(--navy-800);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  position: relative;
}

/* ================================================================
   17. UTILITY CLASSES
   ================================================================ */
.ast-mt-0 { margin-top: 0; }
.ast-mb-0 { margin-bottom: 0; }
.ast-mb-sm { margin-bottom: 1rem; }
.ast-mb-md { margin-bottom: 2rem; }
.ast-mb-lg { margin-bottom: 3rem; }

.ast-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

.ast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  padding: 0.3125rem 0.875rem;
}

.ast-badge-blue {
  color: var(--blue-600);
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.15);
}

.ast-badge-green {
  color: #059669;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.15);
}

.ast-badge-gray {
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--color-border);
}

/* Visually hidden */
.ast-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible { transform: none; }

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* ================================================================
   18. MISCELLANEOUS COMPONENTS
   ================================================================ */
/* Horizontal rule */
.ast-hr { border: none; border-top: 1px solid var(--color-border); margin: 3rem 0; }

/* Checkmark list */
.ast-check-list { display: flex; flex-direction: column; gap: 0.75rem; }

.ast-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-base);
  color: var(--color-body);
}

.ast-check-item::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563EB'%3E%3Cpath fill-rule='evenodd' d='M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Split layout */
.ast-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ast-split-reverse { direction: rtl; }
.ast-split-reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .ast-split, .ast-hero-split { grid-template-columns: 1fr; gap: 3rem; }
  .ast-split-reverse { direction: ltr; }
  .ast-hero-visual { height: 300px; }
}

/* Contact info items */
.ast-contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ast-contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ast-contact-icon svg { width: 20px; height: 20px; color: var(--blue-500); }

.ast-contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.ast-contact-value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

.ast-contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

.ast-contact-value a:hover { color: var(--color-brand); }

/* Case study layout */
.ast-case-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.ast-case-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ast-case-results {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
}

@media (max-width:768px) {
  .ast-case-results { grid-template-columns: repeat(2,1fr); }
}

/* ================================================================
   19. SCROLL PROGRESS BAR
   ================================================================ */
.ast-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-400));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 50ms linear;
}

/* ================================================================
   20. REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   21. RESPONSIVE HELPERS
   ================================================================ */
@media (max-width:768px) {
  .ast-header > .ast-container { height: 80px; }
  .ast-logo-img { height: 80px; }
  .ast-nav, .ast-header .ast-btn:not(.ast-mobile-menu .ast-btn) { display: none; }
  .ast-mobile-toggle { display: flex; }
  .ast-hero { padding-bottom: 3rem; padding-top: calc(80px + 3rem); }
  .ast-page-hero { padding-bottom: 2.5rem; padding-top: calc(80px + 2rem); min-height: auto; }
  .ast-page-hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .ast-page-hero-visual { min-height: 300px; }
  .ast-cta-band-inner { flex-direction: column; text-align: center; }
  .ast-case-header { grid-template-columns: 1fr; }
  .ast-tech-grid { grid-template-columns: repeat(3,1fr); }
  .ast-steps { grid-template-columns: 1fr; }
}

/* ================================================================
   22. INFINITE TECH MARQUEE
   ================================================================ */
.ast-tech-marquee-wrapper {
  background: var(--white);
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.ast-tech-marquee-wrapper::before,
.ast-tech-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.ast-tech-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}
.ast-tech-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

.ast-tech-marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}

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

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

.ast-tech-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  margin-right: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.ast-tech-bubble:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-300);
}

.ast-tech-bubble img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .ast-tech-marquee-wrapper { padding: 2rem 0; }
  .ast-tech-marquee-wrapper::before,
  .ast-tech-marquee-wrapper::after { width: 60px; }
  .ast-tech-bubble { padding: 10px 20px; font-size: 0.85rem; margin-right: 12px; gap: 8px; }
  .ast-tech-bubble img { width: 20px; height: 20px; }
}

@media (min-width:769px) {
  .ast-mobile-menu { display: none !important; }
}

/* Override old CSS classes that might remain */
.premium-enterprise-v2, .glass-effect, .glass-effect-strong { all: unset; }
