:root {
  --bg: #111827;
  --accent: #06c5d4;
  --accent2: #8b5cf6;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --radius: 20px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(139, 92, 246, 0.22), transparent),
    radial-gradient(900px 500px at 100% 30%, rgba(6, 197, 212, 0.15), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

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

.corner-stack {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.corner-stack a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.corner-stack a:hover,
.corner-stack a:focus-visible {
  color: var(--accent);
}

main {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto 5rem;
  padding-top: 2rem;
}

.hero.collage-overlap {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: grid;
  align-items: end;
  margin-bottom: 4rem;
}

.hero-collage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
}

.hero-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.collage-back {
  width: 52%;
  top: 8%;
  right: -4%;
  height: 55%;
  opacity: 0.75;
}

.collage-mid {
  width: 46%;
  bottom: 10%;
  left: 4%;
  height: 48%;
  transform: rotate(-4deg);
}

.collage-front {
  width: 58%;
  top: 18%;
  left: 22%;
  height: 62%;
  transform: rotate(2deg);
  border: 1px solid rgba(6, 197, 212, 0.35);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.92) 35%);
  border-radius: 0 0 calc(var(--radius) + 8px) calc(var(--radius) + 8px);
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0;
  max-width: 36ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.intro {
  margin: 0;
  max-width: 52ch;
}

.muted {
  color: var(--muted);
}

.section-intro-left .section-head,
.section-intro-left > h2 {
  text-align: left;
}

.section-intro-center .section-head,
.section-intro-center > h2 {
  text-align: center;
  margin-inline: auto;
}

.section-intro-center .intro {
  margin-inline: auto;
}

.section-intro-right {
  text-align: right;
}

#flow {
  margin-bottom: 4.5rem;
}

.numbered-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.numbered-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.65);
}

.step-index {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  align-self: start;
}

.numbered-steps h3 {
  margin: 0;
  font-size: 1.1rem;
}

.numbered-steps p {
  margin: 0;
  grid-column: 2;
  color: var(--muted);
}

.screens-carousel {
  margin-bottom: 3.5rem;
}

.carousel-peek {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.carousel-slide {
  flex: 0 0 min(82%, 320px);
  scroll-snap-align: start;
  margin: 0;
}

.carousel-slide img {
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: #0f172a;
}

.carousel-slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.carousel-controls button {
  font-family: var(--mono);
  border: 1px solid rgba(6, 197, 212, 0.5);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.carousel-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-band {
  margin-bottom: 4rem;
}

.gallery-wide {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.9;
}

.legal-inline {
  margin-bottom: 2.5rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-inline h2 {
  margin-top: 0;
}

.legal-summary {
  margin: 0 0 1rem;
  max-width: 65ch;
}

.legal-expand summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent2);
}

.legal-body {
  margin-top: 1rem;
  color: var(--muted);
}

.legal-body p {
  margin: 0 0 0.85rem;
}

.site-foot {
  text-align: center;
  padding: 2rem 1rem 5.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .numbered-steps li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .step-index {
    grid-row: auto;
  }

  .numbered-steps p {
    grid-column: 1;
  }

  .carousel-slide {
    flex-basis: min(38%, 280px);
  }
}