/* Layout - Sigma Cap Pro (Modern Theme) */

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(37, 99, 235, 0.1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(37, 99, 235, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-family-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin-bottom: 0;
}

.nav-list li::before {
  display: none;
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.1);
}

.nav-link.active {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--color-info-bg);
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: var(--color-accent);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: var(--color-accent);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-list {
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  margin-bottom: 0;
}

.mobile-nav-list li::before {
  display: none;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4);
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  border-radius: var(--radius-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-2);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.08);
  padding-left: var(--space-6);
}

.mobile-nav-link.active {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* ========== Hero Section ========== */

/* Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.4), 0 0 80px rgba(37, 99, 235, 0.4); }
}

@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(37, 99, 235, 0.4); }
  50% { text-shadow: 0 0 40px rgba(37, 99, 235, 0.4), 0 0 80px rgba(37, 99, 235, 0.4), 0 0 120px rgba(37, 99, 235, 0.4); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  25% { transform: translate(10px, -20px); opacity: 0.6; }
  50% { transform: translate(-5px, -40px); opacity: 0.3; }
  75% { transform: translate(15px, -20px); opacity: 0.6; }
}

@keyframes electric-flicker {
  0%, 100% { opacity: 0.03; }
  8% { opacity: 0.05; }
  10% { opacity: 0.02; }
  12% { opacity: 0.06; }
  14% { opacity: 0.03; }
  50% { opacity: 0.04; }
  52% { opacity: 0.06; }
  54% { opacity: 0.02; }
  56% { opacity: 0.05; }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: particle-float 8s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: -1s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -3s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: -4s; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: -5s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: -6s; }
.particle:nth-child(7) { left: 90%; top: 50%; animation-delay: -7s; }
.particle:nth-child(8) { left: 40%; top: 10%; animation-delay: -0.5s; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--space-8)) var(--container-padding) var(--space-12);
  background: #0f1c2e;
}

/* Animated Grid Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gradient-shift 20s ease infinite;
}

/* Gradient Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  bottom: -50px;
  left: -50px;
}

/* Two-column layout */
.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: 1400px;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInLeft 0.8s ease-out;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: #60a5fa;
  margin-bottom: var(--space-6);
  animation: pulse-glow 3s infinite;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: var(--space-5);
  color: #e8ecf2;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-title .text-gradient {
  animation: text-glow 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.hero-ctas .btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out;
}

/* Hero Pod Visual - larger, cleaner version of .pod-visual */
.hero-pod-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-8);
  background: rgba(22, 45, 74, 0.6);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 280px;
  margin: 0 auto;
  animation: pulse-glow 3s infinite;
}

.hero-pod {
  width: 160px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border: 2px solid rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.hero-pod-main {
  height: 80px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.hero-pod-big {
  height: 65px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.hero-pod-small {
  height: 55px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.hero-pod-equation {
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-5);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

/* Responsive */
@media (min-width: 768px) {
  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-12)) var(--container-padding);
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .hero-text {
    text-align: left;
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  .hero-pod-visual {
    max-width: 320px;
    padding: var(--space-10);
  }

  .hero-pod {
    width: 200px;
    font-size: var(--text-xl);
  }

  .hero-pod-main { height: 90px; }
  .hero-pod-big { height: 75px; }
  .hero-pod-small { height: 60px; }
}

/* ========== Challenge/Problem-Solution Section ========== */
.challenge-section {
  padding: var(--space-16) var(--space-4);
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-background) 100%);
  position: relative;
}

.challenge-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Circuit trace pattern */
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1'%3E%3Cpath d='M0 50h25m10 0h30m10 0h25' opacity='0.05'/%3E%3Cpath d='M50 0v25m0 10v30m0 10v25' opacity='0.05'/%3E%3Cpath d='M25 25L50 50L75 25' opacity='0.03'/%3E%3Cpath d='M25 75L50 50L75 75' opacity='0.03'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%232563eb' opacity='0.06'/%3E%3Ccircle cx='25' cy='50' r='1.5' fill='%232563eb' opacity='0.04'/%3E%3Ccircle cx='75' cy='50' r='1.5' fill='%232563eb' opacity='0.04'/%3E%3Ccircle cx='50' cy='25' r='1.5' fill='%232563eb' opacity='0.04'/%3E%3Ccircle cx='50' cy='75' r='1.5' fill='%232563eb' opacity='0.04'/%3E%3Ccircle cx='25' cy='25' r='1.5' fill='%23f97316' opacity='0.05'/%3E%3Ccircle cx='75' cy='75' r='1.5' fill='%23f97316' opacity='0.05'/%3E%3C/g%3E%3C/svg%3E"),
    /* Original gradient overlays */
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
  background-size: 100px 100px, 100% 100%, 100% 100%;
  pointer-events: none;
}

.challenge-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-card {
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.problem-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow:
    0 4px 24px rgba(220, 38, 38, 0.05),
    inset 0 0 60px rgba(220, 38, 38, 0.03);
}

.solution-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.solution-card:hover {
  box-shadow:
    0 12px 40px rgba(37, 99, 235, 0.15),
    0 0 30px rgba(37, 99, 235, 0.1);
}

.comparison-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-card li {
  padding: var(--space-3) 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.comparison-card li:last-child {
  border-bottom: none;
}

.icon-x,
.icon-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.icon-x {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.icon-check {
  background: var(--color-info-bg);
  color: var(--color-accent);
}

.vs-divider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.vs-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.vs-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-sm);
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

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

/* Challenge section responsive */
@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-number {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .comparison-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-8);
  }

  .vs-divider {
    flex-direction: column;
    padding: 0;
  }

  .vs-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  }

  .vs-circle {
    width: 60px;
    height: 60px;
    font-size: var(--text-base);
  }
}

/* ========== ROI Section ========== */
.roi-section {
  padding: var(--space-16) var(--space-4);
  background: var(--color-background);
  position: relative;
}

.roi-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Diagonal grid pattern */
    linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.03) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(37, 99, 235, 0.03) 50%, transparent 51%),
    /* Node dots */
    radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 1.5px, transparent 1.5px),
    /* Original gradient overlays */
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(249, 115, 22, 0.06) 0%, transparent 100%);
  background-size: 50px 50px, 50px 50px, 80px 80px, 100% 100%, 100% 100%;
  pointer-events: none;
}

.roi-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

/* ========== How It Works Section ========== */
.how-it-works-section {
  padding: var(--space-16) var(--space-4);
  position: relative;
  overflow: hidden;
  /* Distinctly lighter/whiter background for visual separation from challenge section */
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, var(--color-background) 100%);
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Simplified - just subtle node dots, no heavy circuit pattern */
    radial-gradient(circle at center, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    /* Subtle gradient overlays */
    radial-gradient(circle at 10% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(96, 165, 250, 0.04) 0%, transparent 40%);
  background-size: 60px 60px, 100% 100%, 100% 100%;
  pointer-events: none;
}

/* Step Cards Grid */
.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background:
    /* Subtle diagonal lines */
    linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(37, 99, 235, 0.02) 50%, transparent 51%),
    rgba(255, 255, 255, 0.65);
  background-size: 25px 25px, 25px 25px, 100% 100%;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 50%,
    rgba(249, 115, 22, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 0 20px rgba(37, 99, 235, 0.1);
}

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

.step-number {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-inverse);
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.3),
    0 0 20px rgba(37, 99, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: box-shadow var(--transition-normal);
}

.step-card:hover .step-number {
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.4),
    0 0 30px rgba(37, 99, 235, 0.25),
    0 0 50px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.8s ease;
}

.step-card:hover .step-icon svg {
  stroke-dashoffset: 0;
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  position: relative;
  z-index: 1;
}

/* Stack Demo */
.stack-demo {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  background:
    /* Subtle node dots */
    radial-gradient(circle at center, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    rgba(255, 255, 255, 0.7);
  background-size: 40px 40px, 100% 100%;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.stack-visual {
  position: relative;
  width: 140px;
  height: 220px;
  flex-shrink: 0;
}

.mini-pod {
  width: 120px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid rgba(37, 99, 235, 0.5);
  border-radius: var(--radius-lg);
  position: absolute;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-glow-sm);
}

.mini-pod:nth-child(1) { bottom: 0; }
.mini-pod:nth-child(2) { bottom: 45px; }
.mini-pod:nth-child(3) { bottom: 90px; }
.mini-pod:nth-child(4) { bottom: 135px; opacity: 0.5; border-style: dashed; animation: float-pod 2s ease-in-out infinite; }

@keyframes float-pod {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stack-info {
  text-align: center;
  flex: 1;
  max-width: 500px;
}

.stack-info h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.stack-info > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.stack-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.stack-info .btn {
  display: inline-block;
}

.stack-equation span {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-solid);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.stack-equation .operator {
  background: transparent;
  padding: var(--space-1);
  color: var(--color-text-muted);
}

.stack-equation .result {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
}

/* How It Works Responsive */
@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .stack-demo {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-10);
  }
}

/* ========== Grid Layouts ========== */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

.grid-5 {
  grid-template-columns: 1fr;
}

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ========== Footer (Keep Dark) ========== */
.footer {
  background: #0f1c2e;
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  padding: var(--space-12) 0 var(--space-6);
  position: relative;
  color: #e8ecf2;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo img {
  height: 32px;
}

.footer-logo-text {
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: #9ca8b8;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-nav-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  color: #e8ecf2;
}

.footer-nav-list {
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: var(--space-2);
}

.footer-nav-list li::before {
  display: none;
}

.footer-nav-list a {
  color: #9ca8b8;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer-copyright {
  color: #9ca8b8;
  font-size: var(--text-sm);
}

.footer-badges {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-badges img {
  height: 32px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-badges img:hover {
  opacity: 1;
}

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ========== Section Backgrounds ========== */
.section-alt {
  background: var(--color-primary-light);
}

.section-gradient {
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-primary-light) 50%, var(--color-background) 100%);
}

/* ========== Industrial/Electric Patterns ========== */

/* Circuit Board Trace Pattern - SVG-based */
.bg-circuit {
  position: relative;
}

.bg-circuit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1'%3E%3Cpath d='M0 40h20m10 0h20m10 0h20' opacity='0.06'/%3E%3Cpath d='M40 0v20m0 10v20m0 10v20' opacity='0.06'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%232563eb' opacity='0.08'/%3E%3Ccircle cx='20' cy='40' r='2' fill='%232563eb' opacity='0.06'/%3E%3Ccircle cx='60' cy='40' r='2' fill='%232563eb' opacity='0.06'/%3E%3Ccircle cx='40' cy='20' r='2' fill='%232563eb' opacity='0.06'/%3E%3Ccircle cx='40' cy='60' r='2' fill='%232563eb' opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Diagonal Grid Overlay */
.bg-diagonal {
  position: relative;
}

.bg-diagonal::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, var(--pattern-grid-color-light) 1px, transparent 1px),
    linear-gradient(-45deg, var(--pattern-grid-color-light) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Schematic Node Pattern */
.bg-nodes {
  position: relative;
}

.bg-nodes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at center,
    var(--pattern-node-color) 2px,
    transparent 2px
  );
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Combined Electric Background - All patterns layered */
.bg-electric {
  position: relative;
}

.bg-electric::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Circuit traces */
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1'%3E%3Cpath d='M0 40h15m5 0h20m5 0h15m5 0h15' opacity='0.05'/%3E%3Cpath d='M40 0v15m0 5v20m0 5v15m0 5v15' opacity='0.05'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%232563eb' opacity='0.07'/%3E%3Ccircle cx='20' cy='40' r='1.5' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='60' cy='40' r='1.5' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='40' cy='20' r='1.5' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='40' cy='60' r='1.5' fill='%232563eb' opacity='0.05'/%3E%3C/g%3E%3C/svg%3E"),
    /* Diagonal accent lines */
    linear-gradient(45deg, transparent 48%, rgba(37, 99, 235, 0.03) 49%, rgba(37, 99, 235, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(37, 99, 235, 0.03) 49%, rgba(37, 99, 235, 0.03) 51%, transparent 52%);
  background-size: 80px 80px, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Electric pattern with orange accent nodes */
.bg-electric-accent {
  position: relative;
}

.bg-electric-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Circuit traces with nodes */
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1'%3E%3Cpath d='M0 50h25m10 0h30m10 0h25' opacity='0.05'/%3E%3Cpath d='M50 0v25m0 10v30m0 10v25' opacity='0.05'/%3E%3Cpath d='M25 25L50 50L75 25' opacity='0.04'/%3E%3Cpath d='M25 75L50 50L75 75' opacity='0.04'/%3E%3Ccircle cx='50' cy='50' r='4' fill='%232563eb' opacity='0.08'/%3E%3Ccircle cx='25' cy='50' r='2' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='75' cy='50' r='2' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='50' cy='25' r='2' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='50' cy='75' r='2' fill='%232563eb' opacity='0.05'/%3E%3Ccircle cx='25' cy='25' r='2' fill='%23f97316' opacity='0.06'/%3E%3Ccircle cx='75' cy='75' r='2' fill='%23f97316' opacity='0.06'/%3E%3C/g%3E%3C/svg%3E"),
    /* Subtle diagonal grid */
    linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.025) 50%, transparent 51%);
  background-size: 100px 100px, 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle version for cards and smaller elements */
.bg-electric-subtle {
  position: relative;
}

.bg-electric-subtle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.025) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(37, 99, 235, 0.025) 50%, transparent 51%),
    radial-gradient(circle at center, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 40px 40px;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Ensure content stays above patterns */
.bg-circuit > *,
.bg-diagonal > *,
.bg-nodes > *,
.bg-electric > *,
.bg-electric-accent > *,
.bg-electric-subtle > * {
  position: relative;
  z-index: 1;
}

/* ========== Page Header ========== */
.page-header {
  background: var(--color-primary-dark);
  padding: var(--space-12) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-solid);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Scattered dots pattern - technical schematic feel */
    radial-gradient(circle at center, rgba(37, 99, 235, 0.12) 1.5px, transparent 1.5px),
    /* Soft glow at top */
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  background-size: 20px 20px, 100% 100%;
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.page-header h1 {
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-lg);
  position: relative;
  z-index: 1;
}

/* ========== Two Column Layout ========== */
.two-col {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.two-col-reverse .two-col-content {
  order: 1;
}

.two-col-reverse .two-col-media {
  order: 2;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .two-col-reverse .two-col-content {
    order: 2;
  }

  .two-col-reverse .two-col-media {
    order: 1;
  }
}

/* ========== Content Sections ========== */
.content-section {
  margin-bottom: var(--space-10);
}

.content-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-6);
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ========== Calculator Layout ========== */
.calculator-section {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Subtle diagonal grid */
    linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.025) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(37, 99, 235, 0.025) 50%, transparent 51%),
    /* Node dots */
    radial-gradient(circle at center, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 50px 50px;
  pointer-events: none;
  border-radius: inherit;
}

.calculator-section > * {
  position: relative;
  z-index: 1;
}

.calculator-inputs {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .calculator-inputs {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

.calculator-results {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .calculator-results {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== Documentation Layout ========== */
.doc-content {
  max-width: 900px;
}

.doc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.doc-nav {
  background:
    /* Subtle diagonal lines */
    linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.02) 50%, transparent 51%),
    rgba(255, 255, 255, 0.7);
  background-size: 20px 20px, 100% 100%;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.doc-nav-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
}

.doc-nav-list {
  padding: 0;
  margin: 0;
}

.doc-nav-list li {
  margin-bottom: var(--space-1);
}

.doc-nav-list li::before {
  display: none;
}

.doc-nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.doc-nav-link:hover {
  color: var(--color-text);
  background-color: var(--color-info-bg);
}

.doc-nav-link.active {
  color: var(--color-accent);
  background-color: var(--color-info-bg);
}
