/* ============================================================
   ECOAAI Design System — Tailwind-style CSS Custom Properties
   Based on UI UX Pro Max: Trust & Authority + Conversion-Optimized
   ============================================================ */

:root {
  /* Brand Colors - GitHub Style */
  --color-primary: #2f81f7;
  --color-primary-light: #58a6ff;
  --color-accent: #a371f7;
  --color-accent-light: rgba(163, 113, 247, 0.15);
  --color-heading: #ffffff;
  
  --color-glow-blue: rgba(47, 129, 247, 0.3);
  --color-glow-purple: rgba(163, 113, 247, 0.3);
  --color-glow-pink: rgba(255, 123, 114, 0.3);

  /* Backgrounds */
  --color-bg: #010409;
  --color-surface: #0d1117;
  --color-surface-alt: #161b22;

  /* Text */
  --color-text: #c9d1d9;
  --color-text-secondary: #8b949e;
  --color-text-muted: #484f58;

  /* Tier Colors */
  --color-junior: #3fb950;
  --color-junior-light: rgba(63, 185, 80, 0.15);
  --color-middle: #2f81f7;
  --color-middle-light: rgba(47, 129, 247, 0.15);
  --color-senior: #a371f7;
  --color-senior-light: rgba(163, 113, 247, 0.15);

  /* Borders */
  --color-border: #30363d;
  --color-border-light: #21262d;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container-width: 1280px;
  --content-width: 720px;

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(1,4,9,0.04);
  --shadow-md: 0 3px 6px rgba(1,4,9,0.04);
  --shadow-lg: 0 8px 24px rgba(1,4,9,0.04);
  --shadow-xl: 0 12px 28px rgba(1,4,9,0.1);
  --shadow-glow-accent: 0 0 30px rgba(163, 113, 247, 0.3);
  --shadow-glow-primary: 0 0 30px rgba(47, 129, 247, 0.3);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

/* Performance optimization for modern browsers */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  html { scroll-behavior: auto; }
}

/* Glassmorphism Utility */
.glass-card {
  background: rgba(13, 17, 23, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  will-change: transform;
}

/* Selection */
::selection { background: var(--color-accent); color: white; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: var(--section-padding) 0;
  contain: content;
  will-change: transform;
}

.section--surface { background: var(--color-surface); }
.section--dark {
  background: var(--color-primary);
  color: white;
}
.section--gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
  color: white;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.section-heading {
  text-align: center;
}
.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 1rem;
}
.section-heading.dark h2 { color: white; }
.section-heading p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}
.section-heading.dark p { color: rgba(255,255,255,0.7); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn--sm { font-size: 0.875rem; padding: 0.5rem 1rem; height: 36px; }
.btn--md { font-size: 0.9375rem; padding: 0.625rem 1.25rem; height: 44px; }
.btn--lg { font-size: 1rem; padding: 0.75rem 1.5rem; height: 52px; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
  color: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}

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

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #0284c7 100%);
  color: white;
  box-shadow: var(--shadow-glow-green);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--accent:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0 25px;
}

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

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn--ghost:hover { color: var(--color-primary); background: var(--color-surface); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card--junior { border-color: var(--color-junior-light); }
.card--middle { border-color: var(--color-middle-light); }
.card--senior { border-color: var(--color-senior-light); }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}
.badge--junior { 
    background: rgba(63, 185, 80, 0.1); 
    color: #3fb950; 
    border: 1px solid rgba(63, 185, 80, 0.2);
    backdrop-filter: blur(4px);
}
.badge--middle { 
    background: rgba(47, 129, 247, 0.1); 
    color: #2f81f7; 
    border: 1px solid rgba(47, 129, 247, 0.2);
    backdrop-filter: blur(4px);
}
.badge--senior {
    background: rgba(163, 113, 247, 0.1);
    color: #a371f7;
    border: 1px solid rgba(163, 113, 247, 0.2);
    backdrop-filter: blur(4px);
}
.badge--accent { background: var(--color-accent-light); color: var(--color-accent); }
.badge--primary { background: var(--color-surface-alt); color: var(--color-primary-light); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 4, 9, 0.8);
  transition: box-shadow var(--transition-base);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(1, 4, 9, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Disable backdrop-filter on mobile for performance */
@media (max-width: 768px) {
  .site-header {
    background: var(--color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-heading);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img.logo-image {
  height: 60px;
  width: auto;
  display: block;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; margin: 0 auto; }
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.main-nav a:hover { color: var(--color-primary); background: var(--color-surface); }
.main-nav a.active { color: var(--color-primary); font-weight: 600; }

.nav-cta { margin-left: auto; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(#000240, #0000);
  margin-top: -35px;
}

/* Stars Background */
.hero__stars {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  background-image: 
    radial-gradient(2px 2px at 10% 20%, white, transparent),
    radial-gradient(2px 2px at 30% 60%, white, transparent),
    radial-gradient(2px 2px at 50% 10%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 70% 80%, white, transparent),
    radial-gradient(2px 2px at 90% 40%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 20% 80%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 80% 20%, white, transparent),
    radial-gradient(2px 2px at 50% 50%, white, transparent);
  background-size: 50% 50%;
  animation: stars-drift 100s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

#pricing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#000240,#0000);
  padding: clamp(6rem, 12vw, 10rem) 0;
}

#pricing .container {
  position: relative;
  z-index: 5;
}

/* Specific Spotlight for Pricing to match the image */
.pricing-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pricing-spotlight__cone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 50% 50%, rgba(163, 113, 247, 0.3) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 1;
}

.pricing-spotlight__beam {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: conic-gradient(from 0deg at 50% 50%, 
      transparent 0deg, 
      rgba(163, 113, 247, 0.3) 15deg, 
      rgba(255, 255, 255, 0.1) 30deg, 
      rgba(163, 113, 247, 0.3) 45deg, 
      transparent 60deg,
      transparent 180deg,
      rgba(163, 113, 247, 0.3) 195deg,
      rgba(255, 255, 255, 0.1) 210deg,
      rgba(163, 113, 247, 0.3) 225deg,
      transparent 240deg);
  filter: blur(50px);
  opacity: 0.6;
  z-index: 2;
  mix-blend-mode: screen;
}

.pricing-spotlight__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(163, 113, 247, 0.5) 0%, transparent 30%);
  filter: blur(40px);
  z-index: 3;
}

.pricing-spotlight__stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1.5px 1.5px at 10% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 30%, #fff, transparent),
    radial-gradient(2px 2px at 60% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 50%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 70%, #fff, transparent);
  background-size: 400px 400px;
  opacity: 0.4;
  z-index: 4;
  mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 60%);
}

.pricing-spotlight__floor {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(47, 129, 247, 0.2) 0%, transparent 70%);
  z-index: 1;
}

@keyframes stars-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}

/* Shooting Stars Animation - Desktop Only */
@media (min-width: 1025px) {
  .shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .shooting-star {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 12px #fff;
    animation: shooting-fall 12s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }

  .shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    left: -150px; /* Position trail behind the star */
  }

  @keyframes shooting-fall {
    0% { 
      transform: rotate(135deg) translateX(-200px); 
      opacity: 0; 
    }
    10% { 
      opacity: 0.5; 
    }
    20% { 
      transform: rotate(135deg) translateX(800px); 
      opacity: 0; 
    }
    100% { 
      transform: rotate(135deg) translateX(800px); 
      opacity: 0; 
    }
  }

  .shooting-star:nth-child(1) { top: 0; left: 80%; animation-delay: 0s; }
  .shooting-star:nth-child(2) { top: -20px; left: 40%; animation-delay: 2s; animation-duration: 14s; }
  .shooting-star:nth-child(3) { top: 50px; left: 95%; animation-delay: 4s; }
  .shooting-star:nth-child(4) { top: -40px; left: 60%; animation-delay: 6s; animation-duration: 10s; }
  .shooting-star:nth-child(5) { top: 100px; left: 70%; animation-delay: 8s; }
  .shooting-star:nth-child(6) { top: -60px; left: 50%; animation-delay: 1s; animation-duration: 15s; }
  .shooting-star:nth-child(7) { top: 80px; left: 85%; animation-delay: 3s; }
  .shooting-star:nth-child(8) { top: -30px; left: 30%; animation-delay: 5s; animation-duration: 13s; }
  .shooting-star:nth-child(9) { top: 120px; left: 65%; animation-delay: 7s; }
  .shooting-star:nth-child(10) { top: -10px; left: 45%; animation-delay: 9s; animation-duration: 11s; }
}

/* Simplify stars on mobile */
@media (max-width: 768px) {
  .hero__stars {
    animation: none;
    opacity: 0.2;
    background-image: radial-gradient(1.5px 1.5px at 10% 20%, white, transparent);
    background-size: cover;
  }

  #pricing {
    background: linear-gradient(#000240,#0000);
  }
}


/* Glowing Background */
.hero__glow-bg {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(163,113,247,0.1) 0%, rgba(47,129,247,0.08) 30%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform, opacity;
  transform: translate3d(-50%, -50%, 0);
}

@media (max-width: 768px) {
  .hero__glow-bg {
    width: 100vw;
    height: 100vw;
    filter: blur(40px);
    opacity: 0.5;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(163, 113, 247, 0.1);
  border: 1px solid rgba(163, 113, 247, 0.3);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 75ch;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}
.hero__subtitle strong {
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c9d1d9;
}
.badge-item svg { color: var(--color-text-secondary); }

/* Floating Assets */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 4rem auto 0 auto;
  z-index: 1;
}

.floating-asset {
  position: absolute;
  font-size: 4rem;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  z-index: 20;
}
.floating-asset--bot {
  top: -60px;
  left: 15%;
  animation: float-1 5s ease-in-out infinite;
  z-index: 25;
}
.floating-asset--bot img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 50px rgba(163,113,247,0.5));
}
.floating-asset--keyboard {
  top: 30%;
  left: -5%;
  transform: rotate(-15deg);
  animation: float-2 6s ease-in-out infinite alternate;
}
.floating-asset--rocket {
  top: 20%;
  right: -5%;
  transform: rotate(15deg);
  animation: float-3 7s ease-in-out infinite alternate-reverse;
  font-size: 4.5rem;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(236,72,153,0.3));
}

@keyframes float-1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float-2 {
  0% { transform: translateY(0px) rotate(-15deg); }
  100% { transform: translateY(-20px) rotate(-10deg); }
}
@keyframes float-3 {
  0% { transform: translateY(0px) rotate(15deg); }
  100% { transform: translateY(-25px) rotate(20deg); }
}

/* IDE Mockup */
.ide-mockup {
  position: relative;
  width: 100%;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(163, 113, 247, 0.3);
  border-radius: 24px;
  padding: 12px;
  padding-top: 40px; /* Space for dots in the frame */
  box-shadow: 
    0 30px 100px rgba(0,0,0,0.9), 
    0 0 80px rgba(163,113,247,0.4),
    0 0 150px rgba(47,129,247,0.3),
    0 0 200px rgba(163,113,247,0.2);
  z-index: 10;
  text-align: left;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

@media (max-width: 768px) {
  .ide-mockup {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-surface);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 16px;
  }
}

.ide-mockup__dots {
  position: absolute;
  top: 15px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.ide-mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.ide-mockup__dots span:nth-child(1) { background: #ff5f56; box-shadow: 0 0 12px rgba(255, 95, 86, 0.6); }
.ide-mockup__dots span:nth-child(2) { background: #ffbd2e; box-shadow: 0 0 12px rgba(255, 189, 46, 0.6); }
.ide-mockup__dots span:nth-child(3) { background: #27c93f; box-shadow: 0 0 12px rgba(39, 201, 63, 0.6); }

.ide-mockup-image {
  position: relative;
  z-index: 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 14px;
}

.video-mute-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.video-mute-toggle:hover {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--color-primary);
}

.video-replay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 10px 25px rgba(163, 113, 247, 0.4), 0 0 30px rgba(163, 113, 247, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-replay-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--color-primary-light);
  box-shadow: 0 15px 35px rgba(163, 113, 247, 0.6);
}

.video-replay-btn svg {
  transition: transform 0.6s ease;
}

.video-replay-btn:hover svg {
  transform: rotate(-180deg);
}

.video-mute-toggle svg {
  transition: transform 0.3s ease;
}

.video-mute-toggle:active {
  transform: scale(0.9);
}

.ide-mockup:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 40px 120px rgba(0,0,0,0.9), 
    0 0 100px rgba(163,113,247,0.6),
    0 0 200px rgba(47,129,247,0.4);
}

.ide-mockup:hover .hero-dashboard-img {
  transform: scale(1.04);
}

.ide-mockup:before {
    content: '';
    position: absolute;
    top: -200px;
    width: 100%;
    height: 256px;
    background-image: url(../images/workflow-glow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0.7;
}

.ide-mockup__glow {
  position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(163,113,247,0.7) 0%, transparent 50%, rgba(47,129,247,0.7) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  filter: blur(20px);
}

/* Aggressive Mobile Optimization */
@media (max-width: 768px) {
  .hero__glow-bg, 
  .ide-mockup__glow, 
  .ide-mockup::after,
  .ide-mockup:before,
  #workflow::before {
    display: none !important;
  }
  
  /* Adjust Floating Assets for Mobile */
  .floating-asset--bot img {
    width: 100px;
  }
  
  .floating-asset--bot {
    top: -40px;
    left: 5%;
  }

  .ide-mockup {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    padding: 8px;
    padding-top: 30px;
  }
  
  .btn:hover {
    transform: none !important;
  }
}

/* Secondary Ambient Glow */
.ide-mockup::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(163, 113, 247, 0.2) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  filter: blur(40px);
}

/* Show Hero Visual on Tablet/Mobile */
@media (max-width: 1024px) {
  .hero__visual { 
    display: block; 
    margin-top: 2rem;
    padding: 0 1rem;
  }
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof-bar {
  background: var(--color-surface);
  padding: 1.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.social-proof-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: white;
  margin-bottom: 1.25rem;
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
  .marquee {
    animation-duration: 20s; /* Faster scroll on mobile feels smoother than slow laggy scroll */
  }
}

.marquee__item {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  opacity: 0.5;
}

/* ============================================================
   WHY PAPECLIP SECTION
   ============================================================ */
.ecoa-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ecoaai-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.ecoaai-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.ecoaai-card:hover::before { opacity: 1; }
.ecoaai-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .ecoaai-card::before { display: none; }
  .ecoaai-card:hover { transform: none; }
}

.ecoaai-card__icon {
  width: 56px; height: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary-light);
  transition: background var(--transition-base), color var(--transition-base);
}
.ecoaai-card:hover .ecoaai-card__icon {
  background: var(--color-primary);
  color: white;
}

.ecoaai-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}
.ecoaai-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    row-gap: 2rem;
  }
  .stat-item:last-child {
    grid-column: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .stat-item__number {
    font-size: 2.25rem;
  }
  .stat-item__label {
    font-size: 0.75rem;
  }
}

.stat-item { text-align: center; }
.stat-item__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item__number .prefix { color: var(--color-accent); }
.stat-item__label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.pricing-toggle__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.pricing-toggle__label.active { color: var(--color-primary); font-weight: 700; }

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base);
}
.toggle-switch.active { background: var(--color-accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring);
}
.toggle-switch.active::after { transform: translateX(28px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 50px;
}

.pricing-card {
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(163, 113, 247, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.pricing-card:hover::before { opacity: 1; }
.pricing-card > * { position: relative; z-index: 1; }
.pricing-card__badge { z-index: 2; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }

.pricing-card--featured {
  border: 1px solid rgba(163, 113, 247, 0.8);
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(163, 113, 247, 0.3),
    inset 0 0 20px rgba(163, 113, 247, 0.1);
  background: radial-gradient(circle at top center, rgba(163, 113, 247, 0.15), transparent 70%), var(--color-surface);
  z-index: 10;
}

.pricing-card--featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 50px rgba(163, 113, 247, 0.45);
  opacity: 0;
  z-index: -1;
  animation: featured-glow-pulse 4s ease-in-out infinite;
  will-change: opacity;
}

@keyframes featured-glow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.pricing-card--featured:hover { transform: scale(1.05) translateY(-10px); }

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a371f7 0%, #3b82f6 100%);
  box-shadow: 0 0 15px rgba(163, 113, 247, 0.5);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card__tier { 
  font-size: 0.65rem; 
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800; 
  margin-bottom: 1.5rem; 
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  width: fit-content;
}

.pricing-card__price { margin-bottom: 1.5rem; }
.pricing-card__amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-heading);
  line-height: 1;
}
.pricing-card__amount .currency { font-size: 1.5rem; vertical-align: super; margin-right: 2px; }
.pricing-card__period { font-size: 0.8125rem; color: var(--color-text-secondary); }
.pricing-card__desc { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 2rem; line-height: 1.6; }

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.pricing-card__features li svg { color: var(--color-primary-light); flex-shrink: 0; }
.pricing-card--featured .pricing-card__features li svg { color: #a371f7; }
.pricing-card__features li.inactive svg { color: var(--color-text-muted); }
.pricing-card__features li.inactive { color: var(--color-text-muted); opacity: 0.5; }

.pricing-card .btn {
  margin-top: auto;
}


/* ============================================================
   LANGUAGES SECTION — Premium "Liquid Glass" Aesthetic
   ============================================================ */
.section--languages {
  position: relative;
  overflow: hidden;
  background: #010409;
  padding: 30px 0;
}

/* Multi-layered Immersive Background */
.languages-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.languages-bg__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(163, 113, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(47, 129, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(163, 113, 247, 0.05) 0%, transparent 60%);
  filter: blur(80px);
}

.languages-bg__spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 150%;
  background: conic-gradient(from 180deg at 50% 0%, 
    transparent 0deg, 
    rgba(163, 113, 247, 0.1) 160deg, 
    rgba(255, 255, 255, 0.05) 180deg, 
    rgba(163, 113, 247, 0.1) 200deg, 
    transparent 360deg);
  filter: blur(100px);
  opacity: 0.8;
}


.languages-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Gradient mask for smooth fade-in/out on edges */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.languages-marquee {
  display: flex;
  user-select: none;
  gap: 1.5rem;
}

.languages-marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 1.5rem;
  min-width: 100%;
}

.languages-marquee--ltr .languages-marquee__track {
  animation: languages-scroll-left 40s linear infinite;
}

.languages-marquee--rtl .languages-marquee__track {
  animation: languages-scroll-right 40s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Pause animation on hover */
.languages-marquee:hover .languages-marquee__track {
  animation-play-state: paused;
}

@keyframes languages-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.75rem)); }
}

@keyframes languages-scroll-right {
  from { transform: translateX(calc(-50% - 0.75rem)); }
  to { transform: translateX(0); }
}

.lang-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  backdrop-filter: blur(5px);
  will-change: transform;
}

.lang-tag img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.lang-tag:hover {
  background: rgba(163, 113, 247, 0.1);
  border-color: rgba(163, 113, 247, 0.4);
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .languages-marquee-container {
    padding: 2rem 0;
  }
  .lang-tag {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }
  .languages-marquee__track {
    animation-duration: 30s;
  }
}

.section--languages .section-heading h2 {
  background: linear-gradient(135deg, #ffffff 0%, #a371f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

#how-it-works {


  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding: var(--section-padding) 0;
}

#how-it-works .section-heading h2 {
  background: linear-gradient(135deg, #ffffff 0%, #a371f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Central Spotlight Effect */
.how-it-works__spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% -20%, rgba(47, 129, 247, 0.2) 0%, transparent 60%);
}

.spotlight-cone {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(163, 113, 247, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
}

.spotlight-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: conic-gradient(from 150deg at 50% 0%, transparent 0deg, rgba(163, 113, 247, 0.15) 30deg, rgba(47, 129, 247, 0.15) 60deg, transparent 90deg);
  filter: blur(80px);
  opacity: 0.9;
  z-index: 2;
  mix-blend-mode: plus-lighter;
}

.spotlight-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, #ffffff, transparent),
    radial-gradient(2px 2px at 40% 70%, #ffffff, transparent),
    radial-gradient(2.5px 2.5px at 50% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 80% 20%, #ffffff, transparent),
    radial-gradient(2px 2px at 60% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(3px 3px at 30% 10%, #ffffff, transparent),
    radial-gradient(2px 2px at 70% 50%, #ffffff, transparent),
    radial-gradient(2px 2px at 10% 80%, #ffffff, transparent),
    radial-gradient(2px 2px at 90% 40%, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 45% 25%, #ffffff, transparent);
  background-size: 50% 50%;
  opacity: 0.4;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 60%);
  animation: stars-flicker 5s infinite alternate;
}

@keyframes stars-flicker {
  0% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
  100% { opacity: 0.2; transform: scale(1); }
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Steps Grid & Line */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
  margin-top: 4rem;
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.steps-connector-line {
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  z-index: 0;
}

@media (max-width: 992px) {
  .steps-connector-line { display: none; }
}

/* Premium Step Item */
.step-item {
  position: relative;
  padding: 3rem 2rem 2.5rem;
  border-radius: 32px; /* iOS-style super rounded */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.2),
    inset 0 0 20px rgba(255,255,255,0.02);
}

.step-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.4),
    0 0 30px rgba(47, 129, 247, 0.1);
}

/* Spotlight effect overlay */
.step-item::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-item:hover::before { opacity: 1; }

/* Shimmer Animation */
.step-item__shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}

.step-item:hover .step-item__shimmer {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Number Badge */
.step-item__number {
  position: relative;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 22px; /* iOS squircle-like */
  margin-bottom: 2rem;
  z-index: 3;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.step-item:hover .step-item__number {
  transform: scale(1.1) rotate(5deg);
}

.number-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(47, 129, 247, 0.4) 0%, transparent 70%);
  z-index: -1;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}

/* Content Styling */
.step-item__content {
  position: relative;
  z-index: 3;
}

.step-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.step-item__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Specific Step Glows */
.step-item:nth-child(2) .step-item__number { background: linear-gradient(135deg, #0284c7, #2563eb); }
.step-item:nth-child(3) .step-item__number { background: linear-gradient(135deg, #7c3aed, #db2777); }

.step-item:nth-child(2) .number-glow { background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%); }
.step-item:nth-child(3) .number-glow { background: radial-gradient(circle, rgba(219, 39, 119, 0.4) 0%, transparent 70%); }
/* TESTIMONIALS */
#testimonials {
  background: #02020f;
  background-image: url('../images/testimonial-glow.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
  background-blend-mode: screen; /* Giúp hòa trộn phần ánh sáng tím vào nền tối */
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

#testimonials .eyebrow {
  color: #c084fc; /* Vibrant purple from image */
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
  display: block;
}

#testimonials h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#testimonials p {
  color: #94a3b8; /* Muted blue-gray */
  font-size: 1.125rem;
  max-width: 60ch;
  margin: 0 auto;
}

.testimonials-slider {
  position: relative;
  overflow: visible; 
  min-height: 400px;
  perspective: 2000px;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .testimonials-slider {
    min-height: 350px;
    perspective: none;
  }
}

.testimonial-card {
  border: none;
  border-radius: 2rem;
  padding: 90px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 80px 40px;
    border-radius: 1.5rem;
    transform: translateX(20px); /* Simpler slide-in instead of scale+translateY */
  }
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/testimonial-card-bg.png') no-repeat center center / 100% 100%;
  z-index: -1;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  position: relative;
}

/* Ẩn các phần tử CSS trang trí cũ vì hình ảnh đã bao gồm chúng */
.testimonial-card__shimmer {
  display: none;
}

.testimonial-card__quote-icon {
  position: absolute;
  top: 70px;
  left: 50px;
  color: #1e1e4a; /* Dark blue-purple like a shadow */
  pointer-events: none;
}

.testimonial-card__quote {
  font-size: 1.375rem;
  color: white;
  line-height: 1.6;
  margin-bottom: 3rem;
  font-style: normal;
  text-align: left;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.testimonial-card__quote::before,
.testimonial-card__quote::after { display: none; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: #3b82f6; /* Bright blue avatar circle */
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.25rem;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: #64748b; /* Muted gray for role */
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
  position: relative;
}

.testimonials-dot.active {
  background: #a855f7; /* Vibrant purple dot */
  transform: scale(1.5);
}

.testimonials-dot.active::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: rgba(168, 85, 247, 0.4);
  filter: blur(8px);
  border-radius: 50%;
  z-index: -1;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
#faq {
  position: relative;
  background: #020215; /* Deep space blue fallback */
  padding: 140px 0;
  overflow: hidden;
}

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

.faq-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/faq-bg.png');
  background-size: 100% 100%;
  background-position: center top;
  opacity: 0.9;
}

@media (max-width: 768px) {
  #faq {
    padding: 40px 0;
  }

  .faq-bg::before {
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.25) 0%, transparent 70%),
      radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
      linear-gradient(to bottom, #020215, #000005);
    background-size: cover;
  }
}

#faq .container {
  position: relative;
  z-index: 2;
}

#faq .section-heading h2 {
  color: white;
}

#faq .section-heading p {
  color: #94a3b8;
}

.faq-list { 
  max-width: 900px; 
  margin: 4rem auto 0; 
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.faq-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
}

.faq-question:hover { 
  color: #ffffff; 
}

.faq-item.open .faq-question {
  color: #c084fc;
}

.faq-chevron {
  width: 20px; 
  height: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.open .faq-chevron { 
  transform: rotate(180deg); 
  color: #c084fc;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.open .faq-answer { 
  max-height: 800px; 
}

.faq-answer p {
  padding: 0 2rem 2rem;
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   BLOG PREVIEW
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-surface);
}

.blog-card__body { padding: 1.5rem; }
.blog-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.blog-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}
.blog-card:hover .blog-card__title { color: var(--color-primary-light); }
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.blog-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-top: 1rem;
  transition: gap var(--transition-fast);
}
.blog-card:hover .blog-card__arrow { gap: 0.5rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: radial-gradient(circle at top, var(--color-glow-purple) 0%, transparent 50%),
              var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: white;
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin: 0 auto 2rem;
  position: relative;
}
.cta-section .btn--primary {
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
  height: auto;
}
.cta-section .btn--primary:hover {
  background: var(--color-surface);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-surface-alt);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}

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

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

.footer-brand .site-logo { color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; max-width: 30ch; color: white; }

.footer-company-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-company-info .company-name {
  color: white;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-info-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: white;
}

.footer-info-item svg {
  flex-shrink: 0;
  color: var(--color-primary-light);
  margin-top: 2px;
}

.footer-info-item .info-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  min-width: 70px;
}

.footer-info-item a {
  color: white;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
}

.footer-info-item a:hover {
  color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-light);
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8125rem; margin: 0; }
.footer-bottom a { color: var(--color-accent); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-hero {
  background: var(--color-surface);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info { padding: 2rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { font-size: 0.875rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.25rem; }
.contact-info-item p { font-size: 0.9375rem; color: var(--color-text-secondary); margin: 0; }

/* ============================================================
   ANIMATIONS (CSS)
   ============================================================ */
@keyframes float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float-pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  33% { transform: scale(1.1) translate(2%, -2%); opacity: 0.7; }
  66% { transform: scale(0.9) translate(-2%, 2%); opacity: 0.6; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
}

.animate-fade-up { animation: fade-up 0.6s ease-out forwards; }
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }
.animate-scale-in { animation: scale-in 0.5s ease-out forwards; }

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Motion One controlled elements start hidden */
.motion-ready { opacity: 0; }

/* --------------------------------------------------------------------------
   WORKFLOW PIPELINE DIAGRAM
-------------------------------------------------------------------------- */
#workflow {
    position: relative;
    background: linear-gradient(#000240,#0000);
    overflow: hidden;
}

#workflow::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 1000px;
    height: 400px;
    background-image: url('../images/workflow-glow.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

@media (max-width: 768px) {
    #workflow::before {
        display: none !important;
    }
}

#workflow .container {
    position: relative;
    z-index: 2;
}

.workflow-diagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 3rem;
    padding: 2rem 6rem 4rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.workflow-step {
    position: relative;
    flex: 1;
    min-width: 260px;
    height: 320px;
}

/* Base dark: var(--color-bg) */
/* Line color: #5b9cf6 */

/* --- The Path Lines --- */
.step-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(91, 156, 246, 0.6));
    z-index: 1;
}

@media (max-width: 900px) {
    .step-lines {
        filter: none;
    }
}

.path-main {
    position: absolute;
    top: 80px;
    bottom: 60px;
    left: 49px;
    right: 49px;
    border-left: 2px solid rgba(91, 156, 246, 0.7);
    border-bottom: 2px solid rgba(91, 156, 246, 0.7);
    border-right: 2px solid rgba(91, 156, 246, 0.7);
    border-radius: 0 0 24px 24px;
}

.path-exit {
    position: absolute;
    top: 49px;
    right: 27px;
    width: 24px;
    height: 31px;
    border-top: 2px solid rgba(91, 156, 246, 0.7);
    border-left: 2px solid rgba(91, 156, 246, 0.7);
    border-top-left-radius: 24px;
}

.path-line-out {
    position: absolute;
    top: 49px;
    right: -20px;
    width: 47px;
    border-top: 2px solid rgba(91, 156, 246, 0.7);
}

/* --- Top Badge (The Glowing Circle) --- */
.top-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2f65a1, #0f1e36 80%);
    box-shadow: 
        inset 0 -5px 15px rgba(91, 156, 246, 0.4),
        0 0 40px rgba(91, 156, 246, 0.3),
        0 3px 0 0 #82baff,
        0 5px 12px 0 rgba(130, 186, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.workflow-step:hover .top-badge {
    transform: scale(1.1);
    box-shadow: 
        inset 0 -5px 15px rgba(130, 186, 255, 0.6),
        0 0 50px rgba(91, 156, 246, 0.5),
        0 3px 0 0 #82baff,
        0 5px 15px 0 rgba(130, 186, 255, 0.8);
}

/* --- Number Badge (Bottom Middle) --- */
.number-badge {
    position: absolute;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f1e36;
    color: #82baff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(91, 156, 246, 0.5);
    border: 2px solid #5b9cf6;
    z-index: 10;
    transition: all 0.3s ease;
}

.workflow-step:hover .number-badge {
    background: #5b9cf6;
    color: #fff;
    box-shadow: 0 0 20px rgba(91, 156, 246, 0.8);
}

/* --- Glowing Dot (Connection Point) --- */
.glowing-dot {
    position: absolute;
    top: 45px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 4px rgba(91, 156, 246, 0.8);
    z-index: 5;
}

/* --- Text Content --- */
.step-text {
    position: absolute;
    top: 95px;
    left: 65px;
    right: 65px;
    text-align: center;
    z-index: 5;
}

.step-text h3 {
    font-size: 0.75rem;
    color: #82baff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-weight: 700;
}

.step-text h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* --- Desktop Snake Layout (3x2 Grid) --- */
@media (min-width: 901px) {
    /* Row 2 Right-to-Left Ordering */
    .workflow-step:nth-child(4) { grid-column: 3; grid-row: 2; }
    .workflow-step:nth-child(5) { grid-column: 2; grid-row: 2; }
    .workflow-step:nth-child(6) { grid-column: 1; grid-row: 2; }

    /* Mirroring for Row 2 (Steps 4, 5, 6) */
    .workflow-step:nth-child(n+4) .top-badge {
        left: auto; right: 20px;
    }
    .workflow-step:nth-child(n+4) .path-exit {
        right: auto; left: 27px;
        border-left: none; border-right: 2px solid rgba(91, 156, 246, 0.7);
        border-top-left-radius: 0; border-top-right-radius: 24px;
    }
    .workflow-step:nth-child(n+4) .path-line-out {
        right: auto; left: -20px;
    }
    .workflow-step:nth-child(n+4) .glowing-dot {
        right: auto; left: -5px;
    }
    
    /* Inter-row Connection: Step 3 to Step 4 */
    /* Step 3 line-out extends to right: -40px */
    .workflow-step:nth-child(3) .path-line-out {
        width: 67px; /* 27 to -40 */
        right: -40px;
        border-image: none; /* remove fade out */
    }
    /* S-Curve going down from Step 3 */
    .workflow-step:nth-child(3)::after {
        content: '';
        position: absolute;
        top: 49px;
        right: -64px; /* 40 + 24 radius */
        width: 24px;
        height: calc(100% + 3rem + 2px); /* perfectly reaches Y=49px of row 2 */
        border-top: 2px solid rgba(91, 156, 246, 0.7);
        border-right: 2px solid rgba(91, 156, 246, 0.7);
        border-bottom: 2px solid rgba(91, 156, 246, 0.7);
        border-radius: 0 24px 24px 0;
        z-index: 0;
        filter: drop-shadow(0 0 5px rgba(91, 156, 246, 0.6));
    }
    /* Connection line entering Step 4 */
    .workflow-step:nth-child(4)::before {
        content: '';
        position: absolute;
        top: 49px;
        right: -40px; /* starts at end of S-curve */
        width: 60px; /* reaches top-badge at right: 20px */
        border-top: 2px solid rgba(91, 156, 246, 0.7);
        z-index: 0;
        filter: drop-shadow(0 0 5px rgba(91, 156, 246, 0.6));
    }
    
    /* Glowing dot on the curve for visual continuity */
    .workflow-step:nth-child(3) .glowing-dot {
        display: block; 
        right: -45px; /* exactly at the junction of line-out and curve */
    }

    /* Step 6 End Point (Final Success Badge) */
    .workflow-step:nth-child(6) .path-line-out {
        left: -40px;
        width: 67px;
        border-image: none;
        border-top: 2px solid rgba(91, 156, 246, 0.7);
    }
    
    /* The Success Badge */
    .workflow-step:nth-child(6)::after {
        content: '';
        position: absolute;
        top: 20px;
        left: -70px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: 
            url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center center,
            radial-gradient(circle at 30% 30%, #2f65a1, #0f1e36 80%);
        box-shadow: 
            inset 0 -5px 15px rgba(91, 156, 246, 0.4),
            0 0 40px rgba(91, 156, 246, 0.3),
            0 3px 0 0 #82baff,
            0 5px 12px 0 rgba(130, 186, 255, 0.6);
        z-index: 10;
    }

    .workflow-step:nth-child(6) .glowing-dot {
        display: none !important;
    }
}

/* Mobile (1 column): Pure vertical list */
@media (max-width: 900px) {
    .workflow-diagram {
        grid-template-columns: 1fr;
        row-gap: 2rem;
        padding: 2rem 1rem;
    }
    .workflow-step {
        height: 180px;
    }
    /* Hide horizontal lines and curves */
    .path-line-out, .path-exit, .glowing-dot {
        display: none !important;
    }
    /* Turn U-shape into a simple vertical line */
    .path-main {
        border-right: none;
        border-bottom: none;
        border-radius: 0;
        bottom: 20px;
    }
    .number-badge {
        bottom: 0px;
        left: 49px; /* align with the vertical line */
        transform: translateX(-50%);
    }
    .step-text {
        top: 20px;
        left: 100px;
        right: 10px;
        text-align: left;
    }
}



/* ============================================================
   FREE PERKS SECTION — Glassmorphism & Premium UI
   ============================================================ */
.perks-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* Ambient background glows */
.perks-section::before,
.perks-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.perks-section::before {
  top: -100px;
  left: -100px;
  background: var(--color-accent);
  animation: pulse-glow 8s ease-in-out infinite;
}

.perks-section::after {
  bottom: -100px;
  right: -100px;
  background: var(--color-primary);
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
  50% { transform: translate(30px, 20px) scale(1.2); opacity: 0.2; }
}

.perks-card {
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid rgba(163, 113, 247, 0.3);
  border-radius: 32px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.5), 
    0 0 50px rgba(163, 113, 247, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: reveal-up 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@supports (backdrop-filter: blur(1px)) {
  .perks-card {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Enhanced Glass Effect on mobile */
@media (max-width: 768px) {
  .perks-card {
    background: rgba(13, 17, 23, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 3rem 1.5rem;
    border-radius: 32px;
    border: 1px solid rgba(163, 113, 247, 0.4);
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.perks-card:hover {
  border-color: rgba(163, 113, 247, 0.6);
  box-shadow: 
    0 60px 120px rgba(0, 0, 0, 0.6), 
    0 0 80px rgba(163, 113, 247, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

/* Animated border light */
.perks-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent, 
    transparent, 
    transparent, 
    rgba(163, 113, 247, 0.4), 
    transparent
  );
  animation: rotate-border 6s linear infinite;
  z-index: -1;
  pointer-events: none;
}

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

/* Content wrapper to stay above animated border */
.perks-content {
  position: relative;
  z-index: 2;
}

.perks-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: white;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff 20%, #a371f7 50%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 4s linear infinite;
  white-space: nowrap;
}

@keyframes shimmer-text {
  to { background-position: 200% center; }
}

.perks-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
}

.perk-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.4s var(--transition-spring);
  min-width: 0;
}

.perk-item:hover {
  transform: translateY(-12px) scale(1.05);
}

.perk-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.perk-icon {
  width: 100%;
  height: 100%;
  background: rgba(163, 113, 247, 0.1);
  border: 1px solid rgba(163, 113, 247, 0.3);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s var(--transition-spring);
  position: relative;
  z-index: 2;
}

/* Icon glow effect */
.perk-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.perk-item:hover .perk-icon {
  background: var(--color-accent);
  color: white;
  border-color: white;
  transform: rotate(10deg);
  box-shadow: 0 20px 40px rgba(163, 113, 247, 0.4);
}

.perk-item:hover .perk-icon-wrapper::after {
  opacity: 0.4;
}

.perk-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  max-width: 200px;
  transition: color 0.3s ease;
}

.perk-item:hover .perk-text {
  color: white;
}

@media (max-width: 1200px) {
  .perks-grid {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .perks-title {
    white-space: normal;
    font-size: 2rem;
  }
  .perks-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
  }
  .perk-item {
    flex: 0 0 calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .perks-grid {
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .perk-item {
    flex: 0 0 calc(50% - 1rem);
    gap: 1rem;
    min-width: 140px;
  }
  .perk-icon-wrapper {
    width: 64px;
    height: 64px;
  }
  .perk-text {
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/* ============================================================
   ULTRA-DARK SAAS PREMIUM THEME
   ============================================================ */
.single-recruitment.ultra-dark-theme {
    background: transparent; /* Background is handled by ultra-dark-bg */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #94a3b8;
    position: relative;
    overflow-x: hidden;
}

/* Abstract Background Glows & Liquid Glass Orbs */
.ultra-dark-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: #020617;
}

.ultra-dark-bg .glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.4;
    mix-blend-mode: screen;
}

.ultra-dark-bg .orb-1 { width: 800px; height: 800px; background: radial-gradient(circle, #a371f7, transparent); top: -200px; left: -200px; animation: float-slow 20s infinite alternate; }
.ultra-dark-bg .orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, #3b82f6, transparent); top: 10%; right: -200px; animation: float-slow 25s infinite alternate-reverse; }
.ultra-dark-bg .orb-3 { width: 600px; height: 600px; background: radial-gradient(circle, #06b6d4, transparent); bottom: -100px; left: 20%; animation: float-slow 30s infinite alternate; }
.ultra-dark-bg .orb-4 { width: 500px; height: 500px; background: radial-gradient(circle, #ec4899, transparent); bottom: 20%; right: 10%; animation: float-slow 22s infinite alternate-reverse; }

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

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    opacity: 0.15; /* Reduced opacity for better clarity */
    z-index: 1;
    pointer-events: none;
}

/* Dark Header */
.recruitment-header-dark {
    position: relative;
    padding: 6rem 0 6rem;
    z-index: 10;
    overflow: hidden;
}

.recruitment-header-dark::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 800px;
    background: radial-gradient(ellipse at top, rgba(163, 113, 247, 0.15) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.recruitment-header__content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1000px;
}
.breadcrumb-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.breadcrumb-dark a {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    text-decoration: none;
}
.breadcrumb-dark a:hover { color: #f8fafc; }
.breadcrumb-dark svg { color: #475569; }

.title-ultra-dark {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, #fff 20%, #a371f7 50%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 5s linear infinite;
}

.badges-ultra-dark {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.badge-dark:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.badge-dark svg {
    opacity: 0.9;
}
.badge-dark.badge-dept { color: #c084fc; border-color: rgba(192, 132, 252, 0.3); background: rgba(192, 132, 252, 0.1); }
.badge-dark.badge-type { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.1); }
.badge-dark.badge-loc { color: #34d399; border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.1); }


/* ============================================================
   RECRUITMENT ARCHIVE — Premium Glassmorphism Grid
   ============================================================ */
.recruitment-hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    background: #020617;
}

.recruitment-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.recruitment-hero__subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.recruitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0;
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .recruitment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .recruitment-grid {
        grid-template-columns: 1fr;
        padding: 3rem 0 5rem;
    }
}

.recruitment-card {
    position: relative;
    border-radius: 32px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.recruitment-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 0% 0%, rgba(163, 113, 247, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.recruitment-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(163, 113, 247, 0.4);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(163, 113, 247, 0.1);
}

.recruitment-card:hover::before {
    opacity: 1;
}

/* Light beam effect on hover */
.recruitment-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(255, 255, 255, 0.05), transparent 20%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.recruitment-card:hover::after {
    opacity: 1;
    animation: rotate-border 4s linear infinite;
}

.recruitment-card__body {
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.recruitment-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.recruitment-card__title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.recruitment-card__title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recruitment-card:hover .recruitment-card__title a {
    color: var(--color-accent);
    background: linear-gradient(135deg, #ffffff, var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recruitment-card__excerpt {
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recruitment-card__info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.recruitment-card__info .info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.recruitment-card__info .info-item svg {
    color: var(--color-accent);
    opacity: 0.8;
}

.recruitment-card__footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.recruitment-card .btn--outline {
    width: 100%;
    justify-content: center;
    padding: 1.1rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.4s ease;
}

.recruitment-card:hover .btn--outline {
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(163, 113, 247, 0.3);
}

/* Grid Layout */

.recruitment-grid-dark {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 10;
}

/* Main Content Card - Upgraded Liquid Glass */
.main-content-card-dark {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 32px;
    padding: 4.5rem;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.4), 
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.main-content-card-dark::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 2;
}
.entry-content-dark h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 3.5rem 0 1.5rem;
}
.entry-content-dark h2:first-child { margin-top: 0; }
.entry-content-dark p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 1.5rem;
}
.entry-content-dark ul { margin-bottom: 2rem; padding-left: 1.5rem; }
.entry-content-dark li {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.entry-content-dark li::marker { color: #475569; }

/* Sidebar */
.sidebar-dark {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

/* Base Card Styling with Enhanced Glassmorphism */
.sidebar-card-dark {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-card-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 0% 0%, rgba(163, 113, 247, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.sidebar-card-dark::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(255, 255, 255, 0.05), transparent 20%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.sidebar-card-dark:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(163, 113, 247, 0.4);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(163, 113, 247, 0.1);
}

.sidebar-card-dark:hover::before {
    opacity: 1;
}

.sidebar-card-dark:hover::after {
    opacity: 1;
    animation: rotate-border 4s linear infinite;
}

.action-card-dark {
    position: sticky;
    top: 100px;
    z-index: 20;
}

.action-icon-dark {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(163, 113, 247, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

.action-icon-dark::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    opacity: 0.3;
    z-index: -1;
    filter: blur(8px);
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}
.action-card-dark h3 { font-size: 1.6rem; font-weight: 800; color: #ffffff; margin-bottom: 1rem; line-height: 1.3; }
.action-card-dark p { color: #94a3b8; font-size: 1rem; line-height: 1.6; margin-bottom: 2.5rem; }

.btn-apply-dark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-apply-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: 1;
}

.btn-apply-dark:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4);
}

.btn-apply-dark:hover::before {
    left: 100%;
}

.btn-apply-dark span {
    position: relative;
    z-index: 2;
}

.btn-apply-dark svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.btn-apply-dark:hover svg {
    transform: translateX(6px);
}

.social-share-dark {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.social-share-dark > span {
    display: block; font-size: 0.75rem; font-weight: 800; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem;
}
.social-links-dark { display: flex; gap: 0.75rem; }
.social-btn-dark {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255,255,255,0.03); color: #94a3b8;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.social-btn-dark:hover { background: rgba(255,255,255,0.08); color: #ffffff; transform: translateY(-2px); border-color: rgba(255,255,255,0.1); }

.perks-header-dark h3 { font-size: 1.25rem; font-weight: 800; color: #f8fafc; margin-bottom: 0.5rem; }
.highlight-dark { background: linear-gradient(135deg, #a371f7, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perks-header-dark p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 2rem; }

.perks-list-dark {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.perks-list-dark li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 16px;
}

.perks-list-dark li:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(8px);
}

.icon-wrap-dark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.1) 0%, rgba(163, 113, 247, 0.1) 100%);
    color: #c084fc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(192, 132, 252, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.perks-list-dark li:hover .icon-wrap-dark {
    background: #c084fc;
    color: white;
    transform: rotate(10deg);
}

.text-wrap-dark strong {
    display: block;
    font-size: 1rem;
    color: #f8fafc;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.text-wrap-dark span {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .recruitment-grid-dark { grid-template-columns: 1fr; gap: 2rem; }
    .action-card-dark { position: static; }
    .main-content-card-dark { padding: 2.5rem; }
}
@media (max-width: 768px) {
    .title-ultra-dark { font-size: 2.5rem; }
    .recruitment-header-dark { padding: 8rem 0 3rem; }
}
