/* ── How It Works Section ── */
.howitworks {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

/* SVG hex tile — matches the Remotion video background exactly */
.howitworks-hex {
  position: absolute;
  inset: 0;
  z-index: var(--z-canvas);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%2300f0ff' fill-opacity='0.015' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 14px 24px;
  pointer-events: none;
}

/* Radial glows — matches the Remotion video gradients exactly */
.howitworks-glows {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: var(--z-canvas);
  background:
    radial-gradient(ellipse at center, rgba(0,240,255,0.05) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(circle at 30% 20%, rgba(0,240,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(247,147,26,0.015) 0%, transparent 50%);
  pointer-events: none;
}

.howitworks-content {
  position: relative;
  z-index: var(--z-content);
}

.howitworks-header {
  text-align: center;
  margin-bottom: 3rem;
}

.howitworks-header .label {
  margin-bottom: 1rem;
}

/* ── Video Container ── */
.howitworks-video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(0, 240, 255, 0.03);
}

.howitworks-video-wrap:hover {
  border-color: rgba(0, 240, 255, 0.12);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5),
              0 0 80px rgba(0, 240, 255, 0.05);
}

.howitworks-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

.howitworks-video[hidden] {
  display: none;
}

/* ── Feature Tags ── */
.howitworks-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.howitworks-feature {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  color: var(--text-secondary);
  background: var(--glass-bg);
}

.howitworks-feature:nth-child(odd) {
  border-color: rgba(0, 240, 255, 0.15);
  color: rgba(0, 240, 255, 0.7);
}

.howitworks-feature:nth-child(even) {
  border-color: rgba(247, 147, 26, 0.15);
  color: rgba(247, 147, 26, 0.7);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .howitworks-video-wrap {
    border-radius: 8px;
  }

  .howitworks-header {
    margin-bottom: 2rem;
  }
}
