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

:root {
  --black: #000000;
  --coral: #ff4f38;
  --coral-dim: #cc3f2d;
  --coral-glow: rgba(255, 79, 56, 0.6);
  --coral-glow-soft: rgba(255, 79, 56, 0.25);
  --coral-glow-faint: rgba(255, 79, 56, 0.10);
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-300: #aaaaaa;
  --gray-500: #666666;
  --gray-700: #333333;
  --gray-900: #111111;
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --warning-stripe: repeating-linear-gradient(
    -45deg,
    var(--coral) 0px,
    var(--coral) 8px,
    var(--black) 8px,
    var(--black) 16px
  );
  --warning-stripe-subtle: repeating-linear-gradient(
    -45deg,
    rgba(255, 79, 56, 0.15) 0px,
    rgba(255, 79, 56, 0.15) 8px,
    transparent 8px,
    transparent 16px
  );
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  text-shadow: 0 0 8px var(--coral-glow);
}

img {
  max-width: 100%;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== GEOMETRIC BACKGROUND ===== */
.geo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-bg svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-shapes .chevron {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0.06;
}

.hero-bg-shapes .chevron-1 {
  top: 15%;
  left: 5%;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 60px solid var(--coral);
  transform: rotate(90deg);
  animation: drift 8s ease-in-out infinite;
}

.hero-bg-shapes .chevron-2 {
  top: 60%;
  right: 8%;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 90px solid var(--coral);
  transform: rotate(90deg);
  animation: drift 10s ease-in-out infinite reverse;
}

.hero-bg-shapes .chevron-3 {
  bottom: 20%;
  left: 15%;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 45px solid var(--coral);
  transform: rotate(90deg);
  animation: drift 12s ease-in-out infinite;
}

.hero-bg-shapes .line-h {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral-glow-faint), transparent);
}

.hero-bg-shapes .line-h-1 {
  top: 30%;
  left: 0;
  width: 100%;
  animation: lineFlash 6s ease-in-out infinite;
}

.hero-bg-shapes .line-h-2 {
  top: 70%;
  left: 0;
  width: 100%;
  animation: lineFlash 8s ease-in-out infinite 2s;
}

.hero-bg-shapes .line-v {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--coral-glow-faint), transparent);
}

.hero-bg-shapes .line-v-1 {
  left: 20%;
  top: 0;
  height: 100%;
  animation: lineFlash 7s ease-in-out infinite 1s;
}

.hero-bg-shapes .line-v-2 {
  right: 25%;
  top: 0;
  height: 100%;
  animation: lineFlash 9s ease-in-out infinite 3s;
}

@keyframes drift {
  0%, 100% { transform: rotate(90deg) translateY(0); }
  50% { transform: rotate(90deg) translateY(20px); }
}

@keyframes lineFlash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 240px);
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--black);
  -webkit-text-stroke: 2px var(--coral);
  text-shadow:
    0 0 20px var(--coral-glow),
    0 0 60px var(--coral-glow-soft),
    0 0 120px var(--coral-glow-faint);
  margin-bottom: 16px;
  user-select: none;
  position: relative;
}

.hero-title::after {
  content: 'HEMP';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-text-stroke: 2px var(--coral);
  color: transparent;
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.hero-acronym {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 22px);
  letter-spacing: 0.35em;
  color: var(--gray-300);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 40px);
  letter-spacing: 0.12em;
  color: var(--white);
  border: 2px solid var(--coral);
  padding: 12px 32px;
  margin-bottom: 48px;
  position: relative;
  text-shadow: 0 0 10px var(--coral-glow-soft);
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--coral);
  border-style: solid;
}

.hero-tagline::before {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}

.hero-tagline::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 2px 2px 0;
}

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 48px auto 56px;
  max-width: 800px;
  flex-wrap: nowrap;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.flow-node-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--black);
  box-shadow: 0 0 15px var(--coral-glow-soft), inset 0 0 10px var(--coral-glow-faint);
}

.flow-node-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
}

.flow-node-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--gray-300);
}

/* Solid connectors between nodes */
.flow-connector {
  flex: 1;
  height: 2px;
  background: var(--coral);
  position: relative;
  min-width: 60px;
  max-width: 140px;
  box-shadow: 0 0 8px var(--coral-glow), 0 0 20px var(--coral-glow-soft);
  overflow: visible;
}

/* Glowing dot pulse along connectors */
.flow-connector .pulse-dot {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 8px var(--white), 0 0 20px var(--coral-glow);
  animation: pulseFlow 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 1s;
  opacity: 0;
  z-index: 2;
}

/* Second connector: reverse direction (right to left) */
.flow-connector ~ .flow-node ~ .flow-connector .pulse-dot {
  animation: pulseFlowReverse 3.2s cubic-bezier(0.35, 0, 0.25, 1) infinite;
  animation-delay: 1.6s;
}

/* Chevron arrow at end of connector */
.flow-connector .connector-arrow {
  position: absolute;
  right: -6px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--coral);
  filter: drop-shadow(0 0 4px var(--coral-glow));
}

@keyframes pulseFlow {
  0% { left: -10px; opacity: 0; }
  5% { opacity: 0; }
  12% { opacity: 1; }
  75% { opacity: 0.9; }
  90% { opacity: 0.3; }
  100% { left: calc(100% - 16px); opacity: 0; }
}

@keyframes pulseFlowReverse {
  0% { left: calc(100% - 16px); opacity: 0; }
  5% { opacity: 0; }
  12% { opacity: 1; }
  75% { opacity: 0.9; }
  90% { opacity: 0.3; }
  100% { left: -10px; opacity: 0; }
}

/* Dotted continuation lines (chain of N) */
.flow-chain-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  flex-shrink: 0;
}

.flow-chain-dots .dot {
  width: 4px;
  height: 4px;
  background: var(--coral);
  opacity: 0.5;
  border-radius: 0;
}

.flow-chain-dots .dot:nth-child(1) { opacity: 0.25; }
.flow-chain-dots .dot:nth-child(2) { opacity: 0.4; }
.flow-chain-dots .dot:nth-child(3) { opacity: 0.55; }

/* ===== CTA / WAITLIST ===== */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--gray-900);
  border: 2px solid var(--gray-700);
  border-right: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--gray-500);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--coral);
  box-shadow: 0 0 10px var(--coral-glow-soft);
}

.waitlist-form button,
.btn-coral {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  background: var(--coral);
  color: var(--black);
  border: 2px solid var(--coral);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
  text-transform: uppercase;
}

.waitlist-form button:hover,
.btn-coral:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  box-shadow: 0 0 20px var(--coral-glow), 0 0 40px var(--coral-glow-soft);
}

.waitlist-form button:active,
.btn-coral:active {
  transform: scale(0.97);
}

.cta-subtext {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

/* ===== SECTION SHARED ===== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: 0.35em;
  color: var(--coral);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 48px;
  color: var(--white);
}

.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), transparent);
  box-shadow: 0 0 8px var(--coral-glow-soft);
  margin-bottom: 60px;
}

/* ===== WHAT IT DOES — 01/02/03 SCHEMATIC ===== */
.what-it-does {
  background: var(--black);
  overflow: hidden;
}

/* -- Schematic Container -- */
.steps-schematic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* -- SVG Wire Layer -- */
.steps-wires {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.wire-particle {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(255,79,56,0.8));
}

/* -- Step Card -- */
.step-card {
  position: relative;
  z-index: 2;
}

/* Staggered vertical offset for diagonal momentum */
.step-card-1 { margin-top: 0; }
.step-card-2 { margin-top: 60px; }
.step-card-3 { margin-top: 120px; }

/* -- Watermark Numbers -- */
.step-watermark {
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: var(--font-display);
  font-size: clamp(160px, 18vw, 260px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 79, 56, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.02em;
}

/* -- Card Inner (the visible bordered container) -- */
.step-card-inner {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 79, 56, 0.25);
  background: linear-gradient(
    135deg,
    rgba(255, 79, 56, 0.03) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 79, 56, 0.02) 100%
  );
  padding: 28px 24px 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

/* Clipped corner accent mark */
.step-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(225deg, var(--coral) 0%, var(--coral) 50%, transparent 50%);
  opacity: 0.4;
  z-index: 2;
  transition: opacity 0.3s;
}

/* Scan line animation overlay */
.step-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 45%,
    rgba(255, 79, 56, 0.04) 50%,
    transparent 55%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: scanLine 4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.step-card:hover .step-card-inner {
  border-color: rgba(255, 79, 56, 0.6);
  box-shadow:
    0 0 20px rgba(255, 79, 56, 0.15),
    0 0 60px rgba(255, 79, 56, 0.05),
    inset 0 0 30px rgba(255, 79, 56, 0.03);
}

.step-card:hover .step-card-inner::before {
  opacity: 0.8;
}

.step-card:hover .step-watermark {
  -webkit-text-stroke: 1px rgba(255, 79, 56, 0.12);
}

@keyframes scanLine {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

/* -- Step Header (index + icon) -- */
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step-index {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 80px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coral);
  text-shadow: 0 0 30px var(--coral-glow-faint);
  user-select: none;
  position: relative;
}

/* Glowing duplicate behind the index number */
.step-index::after {
  content: attr(data-index);
  position: absolute;
  top: 0;
  left: 0;
  -webkit-text-stroke: 2px var(--coral);
  color: transparent;
  filter: blur(10px);
  opacity: 0.3;
  pointer-events: none;
}

.step-card-1 .step-index::after { content: '01'; }
.step-card-2 .step-index::after { content: '02'; }
.step-card-3 .step-index::after { content: '03'; }

.step-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  box-shadow: 0 0 12px var(--coral-glow-faint), inset 0 0 8px rgba(255, 79, 56, 0.05);
  transition: box-shadow 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.step-card:hover .step-icon {
  box-shadow: 0 0 20px var(--coral-glow-soft), inset 0 0 12px rgba(255, 79, 56, 0.1);
  transform: scale(1.05);
}

.step-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--coral);
  fill: none;
  stroke-linecap: square;
}

/* -- Voltage Bar (horizontal accent) -- */
.step-voltage-bar {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--coral) 0%,
    var(--coral) 30%,
    transparent 30%,
    transparent 35%,
    var(--coral) 35%,
    var(--coral) 50%,
    transparent 50%,
    transparent 55%,
    var(--coral) 55%,
    var(--coral) 70%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  animation: voltageShift 3s linear infinite;
}

@keyframes voltageShift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* -- Step Label & Desc -- */
.step-label {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 20px rgba(255, 79, 56, 0.1);
}

.step-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-300);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

/* -- Status Terminal Indicator -- */
.step-terminal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 79, 56, 0.1);
  position: relative;
  z-index: 1;
}

.step-terminal-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  display: inline-block;
  animation: terminalBlink 2s step-end infinite;
}

.step-terminal-dot--active {
  background: var(--coral);
  box-shadow: 0 0 6px var(--coral-glow), 0 0 12px var(--coral-glow-soft);
  animation: terminalPulse 1.5s ease-in-out infinite;
}

.step-terminal-dot--sent {
  background: var(--coral);
  animation: terminalBlink 3s step-end infinite;
  animation-delay: 1s;
}

.step-terminal-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--coral);
  opacity: 0.5;
}

@keyframes terminalBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.2; }
}

@keyframes terminalPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* ===== WHY IT MATTERS ===== */
.why-it-matters {
  background: var(--gray-900);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--black);
  border-left: 4px solid var(--coral);
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.2s;
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 4px;
  height: 100%;
  background: var(--coral);
  box-shadow: 0 0 0px var(--coral-glow);
  transition: box-shadow 0.3s;
}

.value-card:hover {
  transform: translateX(6px);
}

.value-card:hover::before {
  box-shadow: 0 0 12px var(--coral-glow), 0 0 30px var(--coral-glow-soft);
}

.value-card-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 8px;
}

.value-card-body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.7;
}

/* ===== HOW IT WORKS — CAROUSEL ===== */
.how-it-works {
  background: var(--black);
}

/* Shared code-block styles (used by carousel cards) */
.code-block {
  padding: 56px 28px 28px;
  overflow-x: auto;
  background: var(--black);
}

.code-block pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-300);
  white-space: pre;
  tab-size: 2;
}

.code-block .c-comment { color: var(--gray-500); }
.code-block .c-key { color: var(--coral); }
.code-block .c-string { color: var(--gray-100); }
.code-block .c-value { color: #ffaa6b; }
.code-block .c-url { color: #ff8a70; }
.code-block .c-pipe { color: var(--coral); }
.code-block .c-indent { color: var(--gray-500); }

/* Carousel container */
.carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

/* Viewport holds all cards stacked via absolute positioning */
.carousel-viewport {
  position: relative;
  overflow: hidden;
}

/* Individual card */
.carousel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border: 2px solid var(--coral);
  background: var(--black);
  box-shadow: 0 0 20px var(--coral-glow-faint), 0 0 40px rgba(255, 79, 56, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  z-index: 1;
}

.carousel-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
  box-shadow: 0 0 25px var(--coral-glow-soft), 0 0 50px var(--coral-glow-faint);
}

.carousel-card.exit-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-60px);
}

.carousel-card.exit-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
}

/* Tab label on each card — warning-stripe aesthetic */
.carousel-tab {
  position: absolute;
  top: -1px;
  left: -1px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  padding: 8px 24px 8px 16px;
  color: var(--black);
  background: var(--warning-stripe);
  background-size: 16px 16px;
  z-index: 3;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  transition: box-shadow 0.4s ease;
}

.carousel-card.active .carousel-tab {
  box-shadow: 0 0 12px var(--coral-glow), 0 0 24px var(--coral-glow-soft);
}

.carousel-tab-text {
  background: var(--coral);
  padding: 4px 20px 4px 8px;
  display: inline-block;
  margin: -4px -24px -4px -8px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  font-weight: 500;
}

/* Navigation container */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--coral);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  background: var(--coral-dim);
  box-shadow: 0 0 8px var(--coral-glow-soft);
}

.carousel-dot.active {
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral-glow), 0 0 20px var(--coral-glow-soft);
  transform: scale(1.2);
}

/* Arrow buttons */
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-700);
  background: transparent;
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.carousel-arrow:hover {
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: 0 0 10px var(--coral-glow-soft);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 32px;
}

.footer-stripe {
  height: 4px;
  background: var(--warning-stripe);
  background-size: 16px 16px;
  margin-bottom: 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-links a:hover {
  color: var(--coral);
  text-shadow: 0 0 8px var(--coral-glow-soft);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps-schematic {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-card-1,
  .step-card-2,
  .step-card-3 {
    margin-top: 0;
  }

  .steps-wires {
    display: none;
  }

  .step-watermark {
    font-size: clamp(120px, 40vw, 200px);
  }

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

  .flow-diagram {
    flex-direction: column;
    gap: 0;
  }

  .flow-chain-dots {
    flex-direction: column;
    padding: 8px 0;
  }

  .flow-connector {
    width: 2px;
    height: 40px;
    min-width: unset;
    max-width: unset;
    min-height: 40px;
  }

  .flow-connector .pulse-dot {
    top: 0;
    left: -4px;
    animation: pulseFlowV 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1s;
  }

  .flow-connector ~ .flow-node ~ .flow-connector .pulse-dot {
    animation: pulseFlowVReverse 3.2s cubic-bezier(0.35, 0, 0.25, 1) infinite;
    animation-delay: 1.6s;
  }

  .flow-connector .connector-arrow {
    right: auto;
    bottom: -6px;
    top: auto;
    left: -5px;
    border-top: 6px solid transparent;
    border-bottom: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--coral);
  }

  @keyframes pulseFlowV {
    0% { top: -10px; opacity: 0; }
    5% { opacity: 0; }
    12% { opacity: 1; }
    75% { opacity: 0.9; }
    90% { opacity: 0.3; }
    100% { top: calc(100% - 16px); opacity: 0; }
  }

  @keyframes pulseFlowVReverse {
    0% { top: calc(100% - 16px); opacity: 0; }
    5% { opacity: 0; }
    12% { opacity: 1; }
    75% { opacity: 0.9; }
    90% { opacity: 0.3; }
    100% { top: -10px; opacity: 0; }
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 16px 40px;
  }

  .hero-tagline {
    padding: 8px 16px;
    font-size: 18px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input[type="email"] {
    border-right: 2px solid var(--gray-700);
    border-bottom: none;
  }

  .waitlist-form input[type="email"]:focus {
    border-color: var(--coral);
  }

  .flow-node-icon {
    width: 52px;
    height: 52px;
  }

  .flow-node-icon svg {
    width: 22px;
    height: 22px;
  }

  section {
    padding: 60px 0;
  }

  .code-block {
    padding: 52px 16px 16px;
  }

  .code-block pre {
    font-size: 11px;
  }

  .carousel {
    max-width: 100%;
  }

  .carousel-card .code-block {
    padding: 48px 12px 14px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== MICRO: SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--coral);
  box-shadow: 0 0 6px var(--coral-glow), 0 0 14px var(--coral-glow-soft);
  z-index: 9999;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ===== MICRO: HERO TITLE HOVER GLOW ===== */
.hero-title {
  transition: text-shadow 0.4s ease, filter 0.4s ease;
  cursor: default;
}

.hero-title:hover {
  text-shadow:
    0 0 30px var(--coral-glow),
    0 0 80px rgba(255, 79, 56, 0.5),
    0 0 160px rgba(255, 79, 56, 0.25),
    0 0 240px rgba(255, 79, 56, 0.15);
}

.hero-title:hover::after {
  opacity: 0.8;
  filter: blur(18px);
}

/* ===== MICRO: CTA BUTTON IDLE PULSE ===== */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0px var(--coral-glow-soft); }
  50% { box-shadow: 0 0 18px var(--coral-glow), 0 0 36px var(--coral-glow-soft); }
}

.waitlist-form button {
  animation: ctaPulse 3s ease-in-out infinite;
  animation-delay: 2s;
}

.waitlist-form button:hover {
  animation: none;
}

/* ===== MICRO: SECTION DIVIDER SHIMMER ===== */
@keyframes dividerScan {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.section-divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--coral-glow-faint) 15%,
    var(--coral) 50%,
    var(--coral-glow-faint) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: dividerScan 4s linear infinite;
}

/* ===== MICRO: FOOTER STRIPE SCROLL ===== */
@keyframes stripeScroll {
  0% { background-position: 0 0; }
  100% { background-position: 32px 0; }
}

.footer-stripe {
  animation: stripeScroll 1.5s linear infinite;
}

/* ===== MICRO: LINK UNDERLINES (SLIDE FROM LEFT) ===== */
.footer-links a {
  position: relative;
  overflow: hidden;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--coral);
  box-shadow: 0 0 4px var(--coral-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* Also apply to the footer copyright link */
.footer-copy a {
  position: relative;
  overflow: hidden;
}

.footer-copy a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--coral);
  box-shadow: 0 0 4px var(--coral-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-copy a:hover::after {
  transform: scaleX(1);
}

/* ===== MICRO: CURSOR TRAIL (desktop only, added by JS) ===== */
.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 56, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--coral);
}

/* ===== ANIMATION ON SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
