.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-4xl) 0;
}

.section-dark {
  background: var(--primary);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-dark p {
  color: rgba(255,255,255,0.85);
}

.section-light {
  background: var(--bg-light);
}

.section-white {
  background: var(--bg-white);
}

.section-off-white {
  background: var(--bg-off-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

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

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

.col-text h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.col-text p {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

/* ── Particle Head Hero ── */
.hero-particle-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-particle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-particle-heading {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-lg);
  color: #fff;
  line-height: 1.15;
  min-height: 2.3em; /* prevent layout shift from typed effect */
}

.hero-particle-heading .gradient-text {
  display: inline-block;
  min-width: 5ch; /* keep space even when text is being deleted */
}

.hero-particle-sub {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.col-particle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.particle-head-canvas {
  width: 100%;
  height: 500px;
  position: relative;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.particle-head-canvas.particle-head--loaded {
  opacity: 1;
}

.particle-head-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Fallback when WebGL isn't supported */
.particle-head--no-webgl {
  display: none;
}
