/* ============================================
   THESPAN INTELLIGENCE - GLOBAL STYLES
   ============================================ */

:root {
  /* Primary Colors */
  --ts: #2323b0;
  --ts-l: #e8e8fa;
  --ts-m: #4a4ac8;
  
  /* Accent Colors */
  --coral: #d85a30;
  --coral-bg: #faece7;
  --coral-t: #712b13;
  
  /* Other Colors */
  --purple: #534ab7;
  --purple-bg: #eeedfe;
  --purple-t: #3c3489;
  --teal: #0f6e56;
  --teal-bg: #e1f5ee;
  --teal-t: #085041;
  --amber: #ba7517;
  --amber-bg: #faeeda;
  --amber-t: #633806;
  
  /* Backgrounds */
  --cream: #f2f1f6;
  --bg-light: #f2f1f6;
  --bg-white: #ffffff;
  
  /* Text Colors */
  --td: #1a1a2e;
  --tm: #43435c;
  --ts2: #6b6b8a;
  --text-dark: #1a1a2e;
  --text-medium: #43435c;
  --text-light: #6b6b8a;
  --text-light-gray: #9c9cae;
  
  --border-color: rgba(26, 26, 46, 0.09);
  --line: rgba(26, 26, 46, 0.09);
  --wg: rgba(255, 255, 255, 0.4);
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --disp: 'Playfair Display', serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius: 26px;
  
  /* ENHANCED LIQUID GLASS MATERIAL */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 12px 40px -12px rgba(31, 30, 70, 0.28), 0 2px 8px rgba(31, 30, 70, 0.08);
  --glass-inset: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -12px 20px -14px rgba(31, 30, 70, 0.10);
  
  /* ENHANCED BLUR EFFECTS */
  --blur-lg: blur(40px) saturate(220%);
  --blur-md: blur(28px) saturate(205%);
  --blur-sm: blur(16px) saturate(185%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 12px 40px -12px rgba(31, 30, 70, 0.28);
  
  /* Easing Functions */
  --ease-liquid: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --ease-drip: cubic-bezier(.16, 1, .3, 1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= LIQUID BACKDROP ================= */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--cream);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.62;
  will-change: transform;
  mix-blend-mode: normal;
}

.blob1 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 35% 35%, #8f7bff, transparent 68%);
  top: -180px;
  left: -140px;
  animation: blobFloat1 26s ease-in-out infinite;
}

.blob2 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 40% 40%, #ff8a5c, transparent 68%);
  top: 20%;
  right: -180px;
  animation: blobFloat2 32s ease-in-out infinite;
}

.blob3 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle at 45% 45%, #33e2c6, transparent 68%);
  bottom: -160px;
  left: 15%;
  animation: blobFloat3 29s ease-in-out infinite;
}

.blob4 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at 40% 40%, #ffca4d, transparent 68%);
  bottom: 8%;
  right: 10%;
  animation: blobFloat1 34s ease-in-out infinite reverse;
}

.blob5 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 45% 45%, #ff6bc4, transparent 68%);
  top: 48%;
  left: 42%;
  animation: blobFloat2 30s ease-in-out infinite reverse;
  opacity: 0.5;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.1); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(50px, -40px) scale(0.92); }
  70% { transform: translate(-40px, -20px) scale(1.06); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= GLASS MATERIAL ================= */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur-md);
  backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0.28) 100%);
  mix-blend-mode: overlay;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 60%);
  transition: opacity 0.4s var(--ease-smooth);
  mix-blend-mode: soft-light;
}

.glass:hover::after {
  opacity: 1;
}

/* ================= 3D PLANET ANIMATIONS ================= */
.planet {
  position: relative;
  border-radius: 50%;
  will-change: transform;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.5s var(--ease-liquid), filter 0.4s var(--ease-smooth);
}

.planet:hover {
  transform: scale(1.12) !important;
  filter: brightness(1.15);
}

.planet:active {
  transform: scale(0.96) !important;
}

.planet::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: rotateX(72deg) rotate(-18deg);
  pointer-events: none;
}

.planet-parallax {
  position: absolute;
  will-change: transform;
}

.pp-hero {
  top: -26px;
  right: 42px;
}

.pp-cta {
  top: -20px;
  right: 8%;
}

.pp-earth1 {
  top: -8px;
  right: 2%;
}

.pp-earth2 {
  bottom: 6%;
  left: 4%;
}

.pp-moon1 {
  top: 8px;
  left: 6%;
}

.planet-hero {
  width: 132px;
  height: 132px;
  background: radial-gradient(circle at 32% 28%, #e6e2ff 0%, #a99bff 24%, #6a4fe0 52%, #2c1b8f 82%, #150c4a 100%);
  box-shadow: inset -16px -12px 26px rgba(10, 8, 40, 0.5), 0 0 60px -4px rgba(150, 120, 255, 0.7);
  animation: planetDrift 22s ease-in-out infinite;
}

.planet-cta {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 34% 30%, #ffe9c2 0%, #ffb27a 28%, #e8622f 58%, #7a3115 100%);
  box-shadow: inset -8px -6px 14px rgba(40, 10, 0, 0.45), 0 0 34px -2px rgba(255, 156, 116, 0.7);
  animation: planetDrift 18s ease-in-out infinite reverse;
}

.planet-earth {
  background:
    radial-gradient(circle at 66% 24%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 28% 66%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 62% 60%, #4caf6e 0%, rgba(76, 175, 110, 0) 26%),
    radial-gradient(circle at 30% 34%, #57b878 0%, rgba(87, 184, 120, 0) 30%),
    radial-gradient(circle at 40% 55%, #2e6fd6 0%, #1b4fb0 40%, #0e2f74 72%, #071642 100%);
  box-shadow: inset -14px -10px 24px rgba(5, 10, 30, 0.55), 0 0 46px -4px rgba(80, 150, 255, 0.65);
}

.planet-earth-1 {
  width: 96px;
  height: 96px;
  animation: planetDrift 20s ease-in-out infinite;
}

.planet-earth-2 {
  width: 58px;
  height: 58px;
  animation: planetDrift 16s ease-in-out infinite reverse;
}

.planet-moon {
  background: radial-gradient(circle at 36% 32%, #f2efe9 0%, #cfc9bd 28%, #9c968a 62%, #55504a 100%);
  box-shadow: inset -8px -6px 12px rgba(20, 18, 14, 0.5),
    inset 6px 8px 0 -4px rgba(150, 144, 132, 0.5),
    inset -10px 4px 0 -6px rgba(150, 144, 132, 0.4),
    0 0 24px -4px rgba(200, 196, 188, 0.5);
  width: 38px;
  height: 38px;
}

.planet-moon-1 {
  top: 14px;
  left: 10%;
  animation: planetDrift 13s ease-in-out infinite;
}

@keyframes planetDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
}

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

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

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(242, 241, 246, 0.85);
  -webkit-backdrop-filter: var(--blur-md);
  backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
}

.logo svg {
  height: 30px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover svg {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  flex: 1;
  margin-left: var(--spacing-3xl);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-medium);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all var(--transition-fast);
  border-radius: 1px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 35, 176, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-medium);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(35, 35, 176, 0.4);
}

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

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

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 100px;
  padding: var(--spacing-3xl) var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  z-index: 3;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(232, 232, 250, 0.5) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-element {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(35, 35, 176, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(74, 74, 200, 0.1) 0%, transparent 50%);
  border-radius: var(--radius-xl);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.page-header {
  margin-top: 100px;
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  background: rgba(232, 232, 250, 0.15);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   USE CASES SECTION
   ============================================ */

.use-cases {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.use-cases h2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-3xl);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.use-case-card {
  background-color: var(--bg-light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.use-case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.use-case-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.use-case-card p {
  color: var(--text-light);
}

/* ============================================
   COVERAGE SECTION
   ============================================ */

.coverage {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.coverage h2 {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--spacing-md);
}

.coverage-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-3xl);
  font-size: 1.1rem;
  color: var(--text-medium);
}

.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.service-item {
  background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35, 35, 176, 0.1);
  transition: all var(--transition-smooth);
}

.service-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.service-number {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.service-item h4 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.service-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.view-all-services {
  text-align: center;
}

/* ============================================
   PIPELINE STAGES SECTION
   ============================================ */

.pipeline-stages {
  background: rgba(232, 232, 250, 0.15);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 32px -8px rgba(31, 30, 70, 0.15);
}

.pipeline-stages h2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
}

.pipeline-stages > .container > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.stages-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-top: var(--spacing-2xl);
}

.stage {
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  flex: 0 1 200px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
}

.stage-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.stage h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.stage p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.stage-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  flex: 0;
}

/* ============================================
   DIFFERENTIATION SECTION
   ============================================ */

.differentiation {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.differentiation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.diff-card {
  background: linear-gradient(135deg, rgba(35, 35, 176, 0.05) 0%, transparent 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  transition: all var(--transition-smooth);
}

.diff-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.diff-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.diff-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.1rem;
}

.cta-section .btn {
  background-color: white;
  color: var(--primary);
}

.cta-section .btn:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.05rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.services-section h2 {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--primary);
}

.service-details {
  display: grid;
  gap: var(--spacing-2xl);
}

.service-detail-item {
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35, 35, 176, 0.1);
}

.service-detail-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.service-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.service-header h3 {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  margin-left: 0;
}

.feature-list li {
  padding-left: var(--spacing-lg);
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ============================================
   POST-DELIVERY SECTION
   ============================================ */

.post-delivery {
  background: rgba(232, 232, 250, 0.15);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.post-delivery h2 {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.post-delivery > .container > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
  font-size: 1.05rem;
}

.post-delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.post-item {
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.post-item h4 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.post-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */

.tech-stack {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tech-stack h2,
.tech-stack p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.tech-category {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(232, 232, 250, 0.3) 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35, 35, 176, 0.1);
}

.tech-category h4 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--primary);
  padding-bottom: var(--spacing-sm);
}

.tech-category ul {
  list-style: none;
  margin: 0;
}

.tech-category li {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   RESOURCES SECTION
   ============================================ */

.resources-section {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  padding: var(--spacing-3xl) var(--spacing-lg);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--spacing-lg);
}

.resource-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.resource-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
}

.resource-badge {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  width: fit-content;
}

.resource-card h3 {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
}

.resource-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

.resource-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-light);
}

.read-time {
  display: flex;
  align-items: center;
}

.resource-link {
  color: var(--primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.resource-link:hover {
  color: var(--primary-medium);
  transform: translateX(4px);
  display: inline-block;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
  color: white;
  text-align: center;
}

.newsletter-cta h2 {
  color: white;
}

.newsletter-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--text-light-gray);
}

.newsletter-form button {
  white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--text-dark);
  color: #ffffff;
  padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .nav-menu {
    gap: var(--spacing-lg);
    margin-left: auto;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    margin-top: 80px;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .stages-diagram {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .stage-arrow {
    transform: rotate(90deg);
  }
  
  .services-preview {
    grid-template-columns: 1fr;
  }
  
  .tech-categories {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: 100%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  
  .header {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero {
    padding: var(--spacing-xl) 0;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .services-preview {
    gap: var(--spacing-md);
  }
  
  .page-header {
    margin-top: 80px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .cta-buttons {
    gap: var(--spacing-sm);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.bg-primary {
  background-color: var(--primary);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-2xl {
  margin-top: var(--spacing-2xl);
}

.mb-2xl {
  margin-bottom: var(--spacing-2xl);
}
