:root {
  color-scheme: dark;
  --pad-top: clamp(3.2rem, 8vw, 6.5rem);
  --pad-side: clamp(1.8rem, 5.5vw, 4.5rem);
  --pad-bottom: 0;
  --pad-after: calc(var(--panel-gap) * 0.25);
  --gap-hero-content: clamp(15vh, 11vw, 20vh);
  --panel-gap: clamp(16vh, 12vw, 22vh);
  --content-panel-padding: clamp(2.2rem, 6vw, 3.8rem);
  --content-panel-gap: clamp(1.8rem, 4vw, 3rem);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 220vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #dfe8ff;
  background-color: #050e16;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.overlay-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 14, 22, 0.6) 0%,
    rgba(5, 14, 22, 0.1) 50%,
    rgba(5, 14, 22, 0.8) 100%
  );
}

main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: var(--pad-top) var(--pad-side) var(--pad-bottom);
}

main::after {
  content: "";
  display: block;
  height: var(--pad-after);
}

.arrow-cue {
  position: fixed;
  top: clamp(1.5rem, 6vw, 4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  color: rgba(223, 232, 255, 0.84);
  mix-blend-mode: screen;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  transition: opacity 0.35s ease;
}

.arrow-cue svg {
  width: clamp(1.8rem, 6vw, 2.6rem);
  height: auto;
  animation: floatArrow 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(64, 146, 255, 0.45));
}

@keyframes floatArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

.arrow-cue.hide {
  opacity: 0;
}

.hero {
  min-height: clamp(520px, 78vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.6rem;
  margin-bottom: var(--gap-hero-content);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  max-width: 18ch;
  line-height: 1.05;
}

.hero .lead {
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  max-width: 48ch;
  line-height: 1.65;
  color: rgba(223, 232, 255, 0.82);
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  color: #050e16;
  background: linear-gradient(135deg, #52f6c5 0%, #3fa8ff 100%);
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(63, 168, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(82, 246, 197, 0.4);
}

.content-panel {
  margin-top: var(--panel-gap);
  display: grid;
  gap: var(--content-panel-gap);
  backdrop-filter: blur(18px);
  background: linear-gradient(
    145deg,
    rgba(9, 25, 41, 0.78),
    rgba(8, 22, 38, 0.44)
  );
  padding: var(--content-panel-padding);
  border-radius: 1.8rem;
  border: 1px solid rgba(75, 130, 255, 0.2);
  box-shadow: 0 40px 120px rgba(16, 47, 92, 0.28);
}

body.layout-buffered {
  --pad-bottom: clamp(26vh, 20vw, 44vh);
  --pad-after: clamp(44vh, 28vw, 62vh);
}

/* Layout variants: add the class on <body> to switch spacing presets. */
body.layout-relaxed-panel {
  --panel-gap: clamp(22vh, 16vw, 30vh);
  --content-panel-padding: clamp(3.4rem, 7vw, 4.9rem);
  --content-panel-gap: clamp(2.4rem, 5vw, 3.6rem);
}

.content-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
}

.content-panel p {
  margin: 0;
  line-height: 1.7;
  color: rgba(223, 232, 255, 0.8);
}

.details-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.details-card {
  padding: 1.6rem 1.8rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(80, 143, 255, 0.24);
  background: linear-gradient(
    145deg,
    rgba(26, 48, 79, 0.64),
    rgba(18, 36, 60, 0.36)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.details-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: rgba(212, 230, 255, 0.92);
  text-transform: uppercase;
}

.details-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(223, 232, 255, 0.75);
}

.steps-list {
  counter-reset: steps;
  display: grid;
  gap: 1.4rem;
}

.steps-list li {
  list-style: none;
  position: relative;
  padding-left: 2.8rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(223, 232, 255, 0.82);
}

.steps-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #050e16;
  background: linear-gradient(135deg, #52f6c5 0%, #3fa8ff 100%);
  box-shadow: 0 10px 30px rgba(63, 168, 255, 0.35);
}

.cta-secondary {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(223, 232, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.cta-secondary svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 640px) {
  .arrow-cue {
    top: 1.2rem;
  }

  .hero {
    min-height: 88vh;
  }

  .content-panel {
    margin-top: 6vh;
  }
}
