/* ========================================
   NEXORA GROUP - Design System
   Premium Business Website
   ======================================== */

/* ========================================
   CSS RESET & BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Colors */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #1a1d2e;
  --color-bg-elevated: #252938;

  --color-accent-purple: #7c7aff;
  --color-accent-blue: #5b9cff;
  --color-accent-purple-dim: rgba(124, 122, 255, 0.1);

  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a3b8;
  --color-text-muted: #6b6e82;

  --color-border: rgba(255, 255, 255, 0.1);

  /* Typography Scale */
  --font-size-xs: 0.875rem;
  /* 14px */
  --font-size-sm: 1rem;
  /* 16px */
  --font-size-base: 1.125rem;
  /* 18px */
  --font-size-lg: 1.5rem;
  /* 24px */
  --font-size-xl: 2.25rem;
  /* 36px */
  --font-size-2xl: 3rem;
  /* 48px */
  --font-size-3xl: 3.5rem;
  /* 56px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing (8px grid) */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */
  --space-4xl: 8rem;
  /* 128px */

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Shadows */
  --shadow-glow-purple: 0 0 20px rgba(124, 122, 255, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(91, 156, 255, 0.3);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-2xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-lg);
}

p {
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-purple);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 122, 255, 0.1);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.logo {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  transition: all var(--transition-base);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
  transition: width var(--transition-base);
}

.logo:hover::after {
  width: 100%;
}

.logo-icon {
  width: 38px !important;
  height: auto !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: atom-spin 10s linear infinite;
  filter: drop-shadow(0 0 10px rgba(124, 122, 255, 0.5));
}

@keyframes atom-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::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: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-blue));
  color: var(--color-text-primary);
  box-shadow: 0 4px 20px rgba(124, 122, 255, 0.3), 0 0 40px rgba(124, 122, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 122, 255, 0.5), 0 0 60px rgba(124, 122, 255, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-elevated);
  border-color: var(--color-accent-purple);
  box-shadow: 0 4px 20px rgba(124, 122, 255, 0.2);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(124, 122, 255, 0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(91, 156, 255, 0.06) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-label {
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subheadline {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(124, 122, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: -1;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  max-width: 600px;
  filter: drop-shadow(0 0 40px rgba(124, 122, 255, 0.3));
  transition: filter var(--transition-base);
}

.hero-visual:hover svg {
  filter: drop-shadow(0 0 60px rgba(124, 122, 255, 0.5));
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  background-color: var(--color-bg-secondary);
}

.section-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3xl);
  color: var(--color-text-primary);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-item {
  padding: var(--space-xl);
  background: rgba(37, 41, 56, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(124, 122, 255, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* Gradient border-bottom effect */
.service-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-item:hover {
  transform: translateY(-8px);
  background: rgba(37, 41, 56, 0.6);
  border-color: rgba(124, 122, 255, 0.3);
  box-shadow: 0 12px 40px rgba(124, 122, 255, 0.15);
}

.service-item:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(124, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.service-item:hover .service-icon {
  background: rgba(124, 122, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(124, 122, 255, 0.2);
}

.service-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Specific responsiveness for services grid */
@media (max-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}

.service-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   APPROACH SECTION
   ======================================== */
.approach-content {
  max-width: 900px;
  margin: 0 auto;
}

.approach-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.approach-item {
  padding: var(--space-xl);
  padding-top: var(--space-3xl);
  /* Extra space for the number */
  background: rgba(37, 41, 56, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(124, 122, 255, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Watermark Step Number */
.step-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(124, 122, 255, 0.05);
  font-family: var(--font-primary);
  line-height: 1;
  pointer-events: none;
  transition: all var(--transition-base);
}

.approach-item:hover {
  background: rgba(37, 41, 56, 0.6);
  border-color: rgba(124, 122, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(124, 122, 255, 0.15);
}

.approach-item:hover .step-number {
  color: rgba(124, 122, 255, 0.1);
  transform: scale(1.1) rotate(-5deg);
}

/* Responsive grid for approach */
@media (max-width: 1024px) {
  .approach-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .approach-items {
    grid-template-columns: 1fr;
  }
}

.approach-item h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.approach-item h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
  transition: width var(--transition-base);
}

.approach-item:hover h3::after {
  width: 100%;
}

.approach-item p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
  background-color: var(--color-bg-secondary);
}

/* Process Timeline Container */
.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: var(--space-xl);
  padding: 0 var(--space-md);
}

/* Remove old timeline bars */
.process-timeline::before,
.process-timeline::after {
  display: none;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Connecting separate lines between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  /* Center of 56px circle */
  left: calc(50% + 32px);
  /* Start from right edge of circle (28px radius + 4px border spacing) */
  width: calc(100% - 64px);
  /* Span to next circle */
  height: 2px;
  background: rgba(124, 122, 255, 0.2);
  transform: translateY(-50%);
  z-index: 0;
}

/* Animated connecting lines */
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
  box-shadow: 0 0 10px var(--color-accent-purple);
  transform: translateY(-50%);
  z-index: 1;
  /* Animation defined in keyframes below */
}

/* Process number circle base */
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(124, 122, 255, 0.1);
  /* Static border */
}

/* Animated Tracing Border */
.process-number::before {
  content: '';
  position: absolute;
  inset: -2px;
  /* Outside the circle */
  border-radius: 50%;
  padding: 2px;
  /* Border width */
  background: conic-gradient(from 270deg, transparent 0%, transparent 100%);
  /* Start from Left (270deg) */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
}

/* Glow effect filling the circle */
.process-number::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 122, 255, 0.4) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

/* --- SEQUENTIAL ANIMATION CONTROLLER (Total Cycle: 8s) --- */

/* Step 1: Circle Trace (0s - 1s) */
.process-step:nth-child(1) .process-number::before {
  background: conic-gradient(from 270deg, var(--color-accent-purple) 0%, var(--color-accent-blue) 100%);
  animation: traceBorder 1s linear forwards, fadeOutBorder 0.5s linear 7.5s forwards;
  /* Trace then reset at end */
  animation-delay: 0s, 7.5s;
}

.process-step:nth-child(1) .process-number::after {
  animation: glowPulse 1s ease-out forwards;
  animation-delay: 1s;
}

/* Line 1: Step 1 -> Step 2 (1s - 2.5s) */
.process-step:nth-child(1)::before {
  animation: fillLine 1.5s ease-in-out forwards, resetLine 0.1s linear 8s forwards;
  animation-delay: 1s, 8s;
}

/* Step 2: Circle Trace (2.5s - 3.5s) */
.process-step:nth-child(2) .process-number::before {
  background: conic-gradient(from 270deg, var(--color-accent-purple) 0%, var(--color-accent-blue) 100%);
  animation: traceBorder 1s linear forwards, fadeOutBorder 0.5s linear 7.5s forwards;
  animation-delay: 2.5s, 7.5s;
}

.process-step:nth-child(2) .process-number::after {
  animation: glowPulse 1s ease-out forwards;
  animation-delay: 3.5s;
}

/* Line 2: Step 2 -> Step 3 (3.5s - 5s) */
.process-step:nth-child(2)::before {
  animation: fillLine 1.5s ease-in-out forwards, resetLine 0.1s linear 8s forwards;
  animation-delay: 3.5s, 8s;
}

/* Step 3: Circle Trace (5s - 6s) */
.process-step:nth-child(3) .process-number::before {
  background: conic-gradient(from 270deg, var(--color-accent-purple) 0%, var(--color-accent-blue) 100%);
  animation: traceBorder 1s linear forwards, fadeOutBorder 0.5s linear 7.5s forwards;
  animation-delay: 5s, 7.5s;
}

.process-step:nth-child(3) .process-number::after {
  animation: glowPulse 1s ease-out forwards;
  animation-delay: 6s;
}

/* Line 3: Step 3 -> Step 4 (6s - 7.5s) */
.process-step:nth-child(3)::before {
  animation: fillLine 1.5s ease-in-out forwards, resetLine 0.1s linear 8s forwards;
  animation-delay: 6s, 8s;
}

/* Step 4: Circle Trace + PRIZE (7.5s - 8s) */
.process-step:nth-child(4) .process-number::before {
  background: conic-gradient(from 270deg, var(--color-accent-purple) 0%, var(--color-accent-blue) 100%);
  animation: traceBorder 0.5s linear forwards, fadeOutBorder 0.5s linear 7.5s forwards;
  /* Faster final trace */
  animation-delay: 7.5s, 7.5s;
}

.process-step:nth-child(4) .process-number::after {
  animation: permanentGlow 0.5s ease-out forwards;
  animation-delay: 8s;
}

/* Stays lit */

/* CONFETTI EXPLOSION */
.process-step:nth-child(4) .process-number {
  /* Container for confetti pseudo-elements */
}

/* Confetti Particles - Left */
.process-step:nth-child(4) .process-number::before {
  /* Re-using ::before for border, so we need a new element or carefully manage. 
      Actually, the border is strictly ::before. 
      Let's use a child span for confetti if possible, but we can't edit HTML easily for all 4. 
      Wait, we can use the main .process-step::after (which is unused for the last step!) */
}

/* Using Step 4's unused ::after (line) for Confetti 1 */
.process-step:nth-child(4)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: transparent;
  z-index: 10;
  transform: translate(-50%, -50%);
  /* Confetti Shadows */
  box-shadow:
    -20px -20px 0 #ff0,
    20px -20px 0 #f0f,
    -20px 20px 0 #0ff,
    20px 20px 0 #0f0,
    0 -30px 0 #ff0,
    0 30px 0 #f00;
  opacity: 0;
  animation: confettiExplosion 1.5s ease-out forwards;
  animation-delay: 8s;
  /* Reset existing line styles */
  background: transparent !important;
  transform: translate(-50%, -50%) !important;
  left: 50% !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50%;
}

/* Using a new pseudo-element on the number for more confetti if needed */
/* We'll stick to one burst for simplicity but make it colorful */

.process-step:hover {
  transform: translateY(-8px);
}

.process-step:hover .process-number {
  transform: scale(1.15);
  box-shadow: 0 6px 30px rgba(124, 122, 255, 0.6);
}

.process-step:hover .process-number::after {
  opacity: 1;
}

.process-label {
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.process-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.process-step:hover .process-description {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PROOF SECTION
   ======================================== */
.proof-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.proof-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, rgba(37, 41, 56, 0.6), rgba(26, 29, 46, 0.4));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(124, 122, 255, 0.15);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.proof-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.proof-item:hover::before {
  transform: scaleX(1);
}

.proof-item:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 122, 255, 0.3);
  box-shadow: 0 12px 40px rgba(124, 122, 255, 0.2);
  background: linear-gradient(135deg, rgba(37, 41, 56, 0.8), rgba(26, 29, 46, 0.6));
}

.proof-item p {
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  position: relative;
  z-index: 1;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta {
  background: linear-gradient(135deg, rgba(124, 122, 255, 0.15), rgba(91, 156, 255, 0.1));
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 122, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.final-cta-text {
  font-size: var(--font-size-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  font-weight: var(--font-weight-bold);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff, var(--color-accent-purple), var(--color-accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--color-bg-secondary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-logo {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

.footer-contact {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact:hover {
  color: var(--color-accent-purple);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes traceBorder {
  0% {
    opacity: 1;
    background: conic-gradient(from 270deg, var(--color-accent-purple) 0deg, transparent 0deg);
  }

  100% {
    opacity: 1;
    background: conic-gradient(from 270deg, var(--color-accent-purple) 360deg, transparent 360deg);
  }
}

@keyframes fillLine {
  0% {
    width: 0;
  }

  100% {
    width: calc(100% - 64px);
  }
}

@keyframes resetLine {
  to {
    width: 0;
  }
}

@keyframes fillLineVertical {
  0% {
    height: 0;
  }

  100% {
    height: calc(100% - 56px);
  }
}

@keyframes resetLineHeight {
  to {
    height: 0;
  }
}

@keyframes fadeOutBorder {
  to {
    opacity: 0;
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes permanentGlow {
  0% {
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 40px 10px rgba(124, 122, 255, 0.6);
  }
}

@keyframes confettiExplosion {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    box-shadow: 0 0 0 #ff0, 0 0 0 #f0f, 0 0 0 #0ff;
  }

  20% {
    width: 10px;
    height: 10px;
    opacity: 1;
    box-shadow:
      -40px -60px 0 #ff0,
      40px -60px 0 #f0f,
      -50px 0px 0 #0ff,
      50px 0px 0 #0f0,
      -30px 50px 0 #ff5e00,
      30px 50px 0 #00ffaa;
  }

  60% {
    opacity: 0.8;
    box-shadow:
      -60px -100px 0 #ff0,
      60px -100px 0 #f0f,
      -80px 10px 0 #0ff,
      80px 10px 0 #0f0,
      -40px 80px 0 #ff5e00,
      40px 80px 0 #00ffaa;
  }

  100% {
    opacity: 0;
    box-shadow:
      -70px -120px 0 transparent,
      70px -120px 0 transparent,
      -90px 20px 0 transparent,
      90px 20px 0 transparent,
      -50px 100px 0 transparent,
      50px 100px 0 transparent;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --font-size-3xl: 2.5rem;
    --font-size-2xl: 2rem;
    --font-size-xl: 1.75rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    order: -1;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .process-timeline::before {
    display: none;
  }

  .process-description {
    opacity: 1;
    transform: translateY(0);
  }

  .proof-items {
    grid-template-columns: 1fr;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
    --font-size-xl: 1.5rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header-content {
    padding: var(--space-sm) var(--space-md);
  }

  .nav {
    gap: var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-2xl);
    overflow: hidden;
    /* Prevent horizontal scroll from any stray elements */
  }

  /* Make hero visual responsive */
  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
  }

  .hero-visual img,
  .hero-visual svg {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .hero-headline {
    font-size: var(--font-size-2xl);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Process Timeline - Vertical Stack with Animation Preservation */
  .process-timeline {
    display: grid;
    /* FORCE GRID */
    grid-template-columns: 1fr;
    gap: 0;
    /* Remove gap, use padding for continuity */
  }

  .process-step {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: var(--space-md);
    padding-bottom: var(--space-xl);
    /* Space for the line */
    position: relative;
    text-align: left;
  }

  .process-number {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .process-label {
    align-self: end;
    /* Align with top of number roughly */
    margin-bottom: 0;
    line-height: 1.2;
    padding-top: 0.5rem;
  }

  .process-description {
    opacity: 1;
    transform: translateY(0);
    max-width: 100%;
    grid-column: 2;
    margin: 0;
  }

  /* Vertical Line Configuration */
  .process-step:not(:last-child)::before {
    display: block;
    top: 56px;
    /* Start below the circle */
    left: 28px;
    /* Center of the 56px column */
    width: 2px !important;
    /* Force fixed width, override animation fill width */
    height: 0;
    /* Start empty */
    transform: translateX(-50%);
    /* Center horizontally */
    background: linear-gradient(180deg, var(--color-accent-purple), var(--color-accent-blue));
    /* Vertical gradient */
    box-shadow: none;

    /* Animation Overrides - Preserving Timing */
  }

  /* Animation Overrides for Vertical Lines */
  /* Line 1: Step 1 -> Step 2 */
  .process-step:nth-child(1)::before {
    animation: fillLineVertical 1.5s ease-in-out forwards, resetLineHeight 0.1s linear 8s forwards;
    animation-delay: 1s, 8s;
  }

  /* Line 2: Step 2 -> Step 3 */
  .process-step:nth-child(2)::before {
    animation: fillLineVertical 1.5s ease-in-out forwards, resetLineHeight 0.1s linear 8s forwards;
    animation-delay: 3.5s, 8s;
  }

  /* Line 3: Step 3 -> Step 4 */
  .process-step:nth-child(3)::before {
    animation: fillLineVertical 1.5s ease-in-out forwards, resetLineHeight 0.1s linear 8s forwards;
    animation-delay: 6s, 8s;
  }

  /* Fix Confetti Position for Mobile (Left Aligned) */
  .process-step:nth-child(4)::after {
    left: 28px !important;
    /* Align with center of circle */
    transform: translate(-50%, -50%) !important;
  }

  .final-cta-text {
    font-size: var(--font-size-xl);
  }
}

/* Small Mobile (390px and below) */
@media (max-width: 420px) {
  .header-content {
    padding: 0.75rem var(--space-sm);
  }

  .logo {
    font-size: var(--font-size-sm);
    /* Ensure logo doesn't break */
    white-space: nowrap;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    /* Smaller font for button */
  }

  /* Adjust Step Numbers size on mobile so they don't dominate */
  .step-number {
    font-size: 4rem;
  }
}