/* ============================================
   NEXORA DIGITAL - Ultra Modern Light Theme
   Premium UI/UX - Fully Responsive
   ============================================ */

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

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fc;
  --bg-tertiary: #eef0f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-code: #f1f3f9;
  --bg-dark: #0c0e1a;
  --bg-dark-card: rgba(255, 255, 255, 0.05);

  /* Borders */
  --border-light: #e5e7ee;
  --border-medium: #d1d5e0;
  --border-hover: #b8bdd0;
  --border-accent: rgba(79, 70, 229, 0.3);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Accents */
  --accent-primary: #4f46e5;
  --accent-primary-light: #6366f1;
  --accent-primary-dark: #3730a3;
  --accent-secondary: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-secondary: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-green: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-subtle: linear-gradient(135deg, #f0edff, #e8f4f8);
  --gradient-hero: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
  --gradient-hero-mesh: radial-gradient(at 20% 20%, rgba(79, 70, 229, 0.06) 0%, transparent 50%),
                         radial-gradient(at 80% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
                         radial-gradient(at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 4px 8px rgba(15, 23, 42, 0.06), 0 12px 30px rgba(79, 70, 229, 0.08);
  --shadow-accent: 0 8px 30px rgba(79, 70, 229, 0.18);
  --shadow-btn: 0 1px 2px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(79, 70, 229, 0.15);
  --shadow-btn-hover: 0 4px 8px rgba(79, 70, 229, 0.15), 0 12px 28px rgba(79, 70, 229, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s var(--ease-in-out);
  --transition-base: 0.25s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Scrollbar - subtle */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* Selection */
::selection {
  background: rgba(79, 70, 229, 0.15);
  color: var(--accent-primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.75;
}

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

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

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

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1240px; } }

.section {
  padding: 5rem 0;
  position: relative;
}

@media (min-width: 768px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(79, 70, 229, 0.06);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.section-header {
  margin-bottom: 3rem;
}

@media (min-width: 768px) { .section-header { margin-bottom: 3.5rem; } }

.section-header h2 { margin-top: 0.75rem; }

.section-header p {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

/* ============================================
   GRID SYSTEM - Fully Responsive
   ============================================ */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

/* ============================================
   NAVIGATION - Fixed, Clean, Responsive
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) { .nav-container { padding: 0 2rem; } }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1001;
}

.nav-logo .logo-img {
  height: 54px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav-logo .logo-img { height: 62px; }
}

.footer-brand .nav-logo .logo-img {
  height: 64px;
}

@media (min-width: 768px) {
  .footer-brand .nav-logo .logo-img { height: 72px; }
}

.nav-logo .logo-img-white {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* Desktop Nav Links */
.nav-links {
  display: none;
  list-style: none;
  gap: 0.15rem;
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-links a {
  color: var(--text-secondary);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.06);
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.nav-cta > .btn { display: none; }

@media (min-width: 1100px) {
  .nav-cta > .btn { display: inline-flex; }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  background: none;
  border: none;
}

.mobile-toggle:hover { background: var(--bg-secondary); }

@media (min-width: 1100px) {
  .mobile-toggle { display: none; }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-primary);
  z-index: 1000;
  transition: right 0.35s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-nav.active { right: 0; }

.mobile-nav-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.06);
}

.mobile-nav-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mobile-nav-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  color: var(--text-white);
}

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

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.btn-ghost {
  background: none;
  color: var(--accent-primary);
  padding: 0.4rem 0;
  font-weight: 600;
}

.btn-ghost:hover { color: var(--accent-primary-dark); }
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}

/* ============================================
   CARDS - Premium Light Style
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.card h3 { margin-bottom: 0.65rem; font-size: 1.15rem; }
.card h4 { margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; line-height: 1.65; }

@media (min-width: 768px) {
  .card { padding: 2rem; }
}

/* ============================================
   HERO - Homepage (3D Enhanced)
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 2rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

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

.hero-bg .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 40% 40%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 40%, black 20%, transparent 65%);
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 1;
}

.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(79, 70, 229, 0.07);
  top: -25%;
  right: -15%;
}

.hero-bg .orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.05);
  bottom: -20%;
  left: -10%;
}

.hero-bg .orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.06);
  top: 35%;
  left: 40%;
}

/* Floating particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-particle.p1 {
  width: 6px; height: 6px;
  background: var(--accent-primary);
  top: 20%; left: 15%;
  animation: floatParticle 6s ease-in-out infinite;
  opacity: 0.4;
}

.hero-particle.p2 {
  width: 4px; height: 4px;
  background: var(--accent-secondary);
  top: 60%; right: 20%;
  animation: floatParticle 8s ease-in-out infinite 1s;
  opacity: 0.3;
}

.hero-particle.p3 {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  bottom: 30%; left: 25%;
  animation: floatParticle 7s ease-in-out infinite 2s;
  opacity: 0.25;
}

.hero-particle.p4 {
  width: 5px; height: 5px;
  background: var(--accent-primary);
  top: 40%; right: 35%;
  animation: floatParticle 9s ease-in-out infinite 0.5s;
  opacity: 0.35;
}

.hero-particle.p5 {
  width: 3px; height: 3px;
  background: var(--accent-pink);
  top: 75%; left: 60%;
  animation: floatParticle 5s ease-in-out infinite 3s;
  opacity: 0.3;
}

.hero-particle.p6 {
  width: 7px; height: 7px;
  background: var(--accent-secondary);
  top: 15%; right: 45%;
  animation: floatParticle 10s ease-in-out infinite 1.5s;
  opacity: 0.2;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.2); }
  50% { transform: translate(-10px, -35px) scale(0.8); }
  75% { transform: translate(20px, -15px) scale(1.1); }
}

/* Hero split layout */
.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================
   3D AGENT VISUALIZATION
   ============================================ */
.hero-3d-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  min-height: 320px;
}

@media (max-width: 1023px) {
  .hero-3d-visual {
    max-width: 380px;
    min-height: 280px;
  }
}

.hero-3d-scene {
  width: 380px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-5deg);
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .hero-3d-scene { width: 300px; height: 300px; }
}

/* Central core */
.agent-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  z-index: 5;
}

@media (max-width: 767px) {
  .agent-core { width: 70px; height: 70px; }
}

.core-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  z-index: 3;
  background: var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.15), 0 4px 20px rgba(0,0,0,0.06);
  border: 2px solid rgba(79, 70, 229, 0.15);
}

@media (max-width: 767px) {
  .core-icon { font-size: 1.6rem; }
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 70, 229, 0.12);
}

.core-ring.ring-1 {
  inset: -15px;
  animation: coreRotate 12s linear infinite;
  border-style: dashed;
  border-color: rgba(79, 70, 229, 0.1);
}

.core-ring.ring-2 {
  inset: -35px;
  animation: coreRotate 18s linear infinite reverse;
  border-color: rgba(124, 58, 237, 0.08);
}

.core-ring.ring-3 {
  inset: -55px;
  animation: coreRotate 25s linear infinite;
  border-style: dotted;
  border-color: rgba(59, 130, 246, 0.06);
}

@keyframes coreRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Orbit tracks */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(79, 70, 229, 0.08);
}

.orbit-track.orbit-1 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.orbit-track.orbit-2 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.orbit-track.orbit-3 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.orbit-track.orbit-4 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

/* Agent nodes */
.agent-node {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.1), 0 1px 4px rgba(0,0,0,0.04);
  border: 1.5px solid rgba(79, 70, 229, 0.12);
  transition: all 0.3s ease;
  z-index: 4;
}

@media (max-width: 767px) {
  .agent-node { width: 46px; height: 46px; }
}

.agent-node span { font-size: 1.3rem; line-height: 1; }

@media (max-width: 767px) {
  .agent-node span { font-size: 1rem; }
}

.agent-node .node-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .agent-node .node-label { display: none; }
}

.agent-node:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--accent-primary);
}

/* Node positions - floating around center */
.agent-node.node-1 {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  animation: nodeFloat1 4s ease-in-out infinite;
}

.agent-node.node-2 {
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  animation: nodeFloat2 5s ease-in-out infinite 0.5s;
}

.agent-node.node-3 {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  animation: nodeFloat3 4.5s ease-in-out infinite 1s;
}

.agent-node.node-4 {
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  animation: nodeFloat4 5.5s ease-in-out infinite 1.5s;
}

@keyframes nodeFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes nodeFloat2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(12px); }
}

@keyframes nodeFloat3 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

@keyframes nodeFloat4 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-12px); }
}

/* Connection lines SVG */
.connection-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.conn-line {
  stroke-dasharray: 6 4;
  animation: dashMove 3s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -20; }
}

/* Data pulses traveling along connections */
.data-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  z-index: 3;
  opacity: 0;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

.data-pulse.pulse-1 {
  top: 50%;
  left: 50%;
  animation: pulseTravel1 3s ease-in-out infinite;
}

.data-pulse.pulse-2 {
  top: 50%;
  left: 50%;
  animation: pulseTravel2 3.5s ease-in-out infinite 1s;
}

.data-pulse.pulse-3 {
  top: 50%;
  left: 50%;
  animation: pulseTravel3 4s ease-in-out infinite 2s;
}

@keyframes pulseTravel1 {
  0% { transform: translate(-50%, -50%) translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(-50%, -50%) translate(0, -140px); opacity: 0.8; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pulseTravel2 {
  0% { transform: translate(-50%, -50%) translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(-50%, -50%) translate(140px, 0); opacity: 0.8; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pulseTravel3 {
  0% { transform: translate(-50%, -50%) translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(-50%, -50%) translate(-140px, 0); opacity: 0.8; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

/* Stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

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

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

.hero-stat h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.15rem;
}

.hero-stat p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   LOGO STRIP / MARQUEE
   ============================================ */
.logo-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  overflow: hidden;
}

.logo-strip p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.marquee-wrapper { overflow: hidden; }

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.marquee-item:hover { opacity: 0.8; }

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

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.service-card .service-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.service-card p { margin-bottom: 1.25rem; font-size: 0.92rem; }

.service-card .card-glow {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at center, rgba(79, 70, 229, 0.03), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.service-card:hover .card-glow { opacity: 1; }

@media (min-width: 768px) { .service-card { padding: 2.25rem; } }

/* ============================================
   CASE STUDY CARDS
   ============================================ */
.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.case-study-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.case-study-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { .case-study-image { height: 220px; } }

.case-study-image .cs-gradient { position: absolute; inset: 0; }

.case-study-image .cs-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 25px 25px;
}

.case-study-image .cs-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-image .cs-icon {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-size: 2.5rem;
  opacity: 0.25;
}

.case-study-body { padding: 1.5rem; }
@media (min-width: 768px) { .case-study-body { padding: 1.75rem; } }

.case-study-body h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.case-study-body p { font-size: 0.88rem; margin-bottom: 1.25rem; }

.case-study-metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.case-study-metric .metric-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.case-study-metric .metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-base);
}

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

.testimonial-card .quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-primary);
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-white);
  flex-shrink: 0;
}

.testimonial-card .author-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .author-role { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
}

.stat-item .stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

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

@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.15;
    border-radius: 1px;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-primary);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; margin: 0 auto; max-width: 220px; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { padding: 4rem 0; }

@media (min-width: 768px) { .cta-section { padding: 5rem 0; } }

.cta-box {
  background: var(--bg-dark);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
}

@media (min-width: 768px) { .cta-box { padding: 4.5rem 3rem; } }

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.2), transparent 60%);
  pointer-events: none;
}

.cta-box h2 { color: var(--text-white); margin-bottom: 0.75rem; }

.cta-box .gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  color: rgba(255,255,255,0.65);
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  max-width: 500px;
}

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

.cta-actions .btn-primary {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
}

.cta-actions .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: var(--text-white);
}

.cta-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--text-white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
  background: var(--bg-secondary);
}

@media (min-width: 768px) { .footer { padding: 4.5rem 0 2rem; } }

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

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

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

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: var(--text-white);
  border-color: var(--accent-primary);
}

.footer-col h4 {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--accent-primary); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--accent-primary); }

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

@media (min-width: 768px) { .page-hero { padding: 10rem 0 5rem; } }

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
}

.page-hero .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.page-hero .orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(79, 70, 229, 0.06);
  top: -30%;
  right: -5%;
}

.page-hero .orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.04);
  bottom: -25%;
  left: -5%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.page-hero-content .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.page-hero-content .breadcrumb a { color: var(--text-muted); }
.page-hero-content .breadcrumb a:hover { color: var(--accent-primary); }

.page-hero-content h1 { margin-bottom: 1.25rem; }
.page-hero-content p { font-size: clamp(1rem, 2vw, 1.15rem); }

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
}

.team-card h4 { margin-bottom: 0.2rem; }

.team-card .team-role {
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p { font-size: 0.85rem; text-align: center; margin: 0 auto; }

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.blog-image {
  height: 180px;
  position: relative;
}

@media (min-width: 768px) { .blog-image { height: 200px; } }

.blog-image .blog-gradient { position: absolute; inset: 0; }

.blog-image .blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.blog-body { padding: 1.25rem; }
@media (min-width: 768px) { .blog-body { padding: 1.5rem; } }

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-body p { font-size: 0.88rem; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 550px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list { list-style: none; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-list li:last-child { border-bottom: none; }

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition-base);
}

.tech-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tech-item .tech-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.tech-item .tech-name { font-weight: 600; font-size: 0.85rem; }
.tech-item .tech-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-tier {
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

/* ============================================
   CASE STUDY DETAIL INFO CARD
   ============================================ */
.cs-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

@media (min-width: 768px) { .cs-info-card { padding: 2rem; } }

.cs-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.cs-info-row:last-child { border-bottom: none; }
.cs-info-label { color: var(--text-muted); }
.cs-info-value { font-weight: 700; color: var(--text-primary); }

/* ============================================
   JOB CARDS
   ============================================ */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .job-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
  }
}

.job-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.job-tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.job-tag {
  padding: 0.2rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   PARTNER LOGOS
   ============================================ */
.partner-logo {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  gap: 0.4rem;
}

.partner-logo:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active { border-color: var(--border-accent); }

.accordion-header {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition-fast);
  gap: 1rem;
  user-select: none;
}

.accordion-header:hover { background: var(--bg-secondary); }

.accordion-icon {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
  color: var(--accent-primary);
  flex-shrink: 0;
  font-weight: 300;
}

.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.accordion-item.active .accordion-body { max-height: 500px; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Stagger children */
.grid-2 > .fade-up:nth-child(2),
.grid-3 > .fade-up:nth-child(2),
.grid-4 > .fade-up:nth-child(2) { transition-delay: 0.08s; }

.grid-3 > .fade-up:nth-child(3),
.grid-4 > .fade-up:nth-child(3) { transition-delay: 0.16s; }

.grid-4 > .fade-up:nth-child(4) { transition-delay: 0.24s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  .hero-3d-scene { transform: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.divider { height: 1px; background: var(--border-light); margin: 1.5rem 0; }

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0.15rem;
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* ============================================
   CASE STUDY GRADIENT COLORS
   ============================================ */
.cs-healthcare { background: linear-gradient(135deg, #059669, #0d9488); }
.cs-finance { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.cs-manufacturing { background: linear-gradient(135deg, #d97706, #ef4444); }
.cs-retail { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.cs-logistics { background: linear-gradient(135deg, #0891b2, #3b82f6); }
.cs-energy { background: linear-gradient(135deg, #16a34a, #06b6d4); }
.cs-legal { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cs-realestate { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.cs-insurance { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cs-telecom { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

/* ============================================
   RESPONSIVE FIXES FOR INNER PAGE LAYOUTS
   ============================================ */

/* Service page alternating layouts */
@media (max-width: 767px) {
  .grid-2[style*="direction: rtl"] { direction: ltr !important; }
  .grid-2[style*="direction: rtl"] > * { direction: ltr !important; }
  .grid-2[style*="gap: 4rem"] { gap: 2rem !important; }
  .grid-2[style*="gap: 3rem"] { gap: 1.5rem !important; }

  /* Case study detail */
  .cs-detail-grid { grid-template-columns: 1fr !important; }

  /* Code block */
  .card[style*="font-mono"] { overflow-x: auto; }
}

/* Pricing cards responsive */
@media (max-width: 1023px) {
  .pricing-card { padding: 2rem 1.5rem; }
  .pricing-card.featured { margin-top: 1rem; }
}

/* Blog featured post */
@media (max-width: 767px) {
  .card > .grid-2[style*="gap: 0"] {
    grid-template-columns: 1fr !important;
  }
  .card > .grid-2[style*="gap: 0"] > div:first-child {
    min-height: 200px !important;
    height: 200px !important;
  }
}

/* Contact page layout */
@media (max-width: 767px) {
  .section > .container > .grid-2[style*="gap: 4rem"] {
    gap: 2.5rem !important;
  }
}

/* Fix inline styles on mobile */
@media (max-width: 767px) {
  [style*="padding: 3rem"] { padding: 1.75rem !important; }
  [style*="padding: 5rem"] { padding: 2.5rem 1.75rem !important; }
  [style*="margin-bottom: 6rem"] { margin-bottom: 3rem !important; }
}

/* Touch targets for mobile */
@media (max-width: 768px) {
  .accordion-header { padding: 1.1rem 1.25rem; min-height: 52px; }
  .nav-links a { padding: 0.6rem 1rem; }
  .footer-col a { padding: 0.2rem 0; display: inline-block; }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .navbar { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .mobile-nav { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}
