:root {
  color-scheme: dark;
  --bg: #07090b;
  --panel: #11161b;
  --panel-strong: #171e24;
  --text: #f7f7f3;
  --muted: #bbc3ca;
  --line: rgba(255, 255, 255, 0.16);
  --red: #e31b23;
  --red-dark: #9f1218;
  --steel: #8fa3b3;
  --gold: #f0b94b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

button,
input,
select {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__scrim {
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.95) 0%, rgba(7, 9, 11, 0.64) 42%, rgba(7, 9, 11, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.2) 45%, rgba(7, 9, 11, 0.18) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(5rem, 16vw, 11.5rem);
  line-height: 0.78;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.35;
}

.signup {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(200px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: rgba(12, 16, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hidden {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: #0a0d10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

button,
.button-link {
  min-height: 48px;
  padding: 0 20px;
  color: white;
  background: var(--red);
  border: 0;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(227, 27, 35, 0.26);
}

button:hover,
.button-link:hover {
  background: #ff2630;
}

.signup__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.intro,
.contributors,
.final-cta {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.section-copy p:not(.eyebrow),
.final-cta p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats div,
.mission article {
  background: var(--panel);
}

.stats div {
  min-height: 190px;
  padding: 24px;
}

.stats strong {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 2.2rem;
  line-height: 1;
}

.stats span,
.mission p {
  color: var(--muted);
  line-height: 1.5;
}

.mission {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission article {
  min-height: 260px;
  padding: 34px;
}

.mission span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--steel);
  font-weight: 900;
}

.contributors {
  display: grid;
  gap: 28px;
}

.contributors img {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.contributors .section-copy {
  max-width: 920px;
}

.contribution-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(15, 18, 21, 0.92), rgba(8, 10, 12, 0.96)),
    var(--panel);
  border: 1px solid rgba(227, 27, 35, 0.55);
  border-radius: 8px;
}

.panel-heading,
.box-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-heading span,
.box-heading span {
  height: 1px;
  background: var(--red);
}

.panel-heading h3,
.box-heading h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--red);
}

.build-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.build-steps article,
.contribution-box,
.mini-cards article {
  border: 1px solid rgba(227, 27, 35, 0.76);
  border-radius: 6px;
  background: rgba(7, 9, 11, 0.7);
}

.build-steps article {
  position: relative;
  min-height: 300px;
  padding: 16px 14px 18px;
}

.build-steps article:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 96px;
  right: -13px;
  z-index: 1;
  color: var(--red);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 20px;
  color: white;
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.build-steps h4,
.contribution-box h4,
.mini-cards h5 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.build-steps h4 {
  font-size: 1rem;
}

.build-steps p,
.mini-cards p,
.contribution-box p,
.join-box li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.build-steps p {
  margin-bottom: 10px;
}

.icon,
.mini-icon {
  position: relative;
  margin-bottom: 16px;
  color: var(--red);
}

.icon {
  width: 58px;
  height: 58px;
}

.icon::before,
.icon::after,
.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.icon-tools::before {
  width: 46px;
  height: 10px;
  left: 6px;
  top: 23px;
  border-top: 4px solid;
  border-bottom: 4px solid;
  transform: rotate(45deg);
}

.icon-tools::after {
  width: 42px;
  height: 42px;
  left: 8px;
  top: 8px;
  border: 4px solid;
  border-radius: 50%;
  clip-path: polygon(0 0, 48% 0, 48% 100%, 0 100%);
  transform: rotate(-45deg);
}

.icon-gear::before {
  inset: 4px;
  border: 5px solid;
  border-radius: 50%;
  box-shadow: 0 -12px 0 -5px currentColor, 0 12px 0 -5px currentColor, 12px 0 0 -5px currentColor, -12px 0 0 -5px currentColor;
}

.icon-gear::after {
  width: 18px;
  height: 18px;
  left: 20px;
  top: 20px;
  border: 4px solid;
  border-radius: 50%;
}

.icon-shield::before {
  width: 42px;
  height: 48px;
  left: 8px;
  top: 3px;
  border: 4px solid;
  border-radius: 4px 4px 24px 24px;
  clip-path: polygon(50% 0, 100% 16%, 86% 78%, 50% 100%, 14% 78%, 0 16%);
}

.icon-shield::after {
  width: 20px;
  height: 10px;
  left: 20px;
  top: 23px;
  border-left: 4px solid;
  border-bottom: 4px solid;
  transform: rotate(-45deg);
}

.icon-upload::before {
  width: 50px;
  height: 30px;
  left: 4px;
  top: 20px;
  border: 4px solid;
  border-radius: 26px;
}

.icon-upload::after {
  width: 20px;
  height: 20px;
  left: 19px;
  top: 15px;
  border-left: 4px solid;
  border-top: 4px solid;
  transform: rotate(45deg);
}

.icon-group::before {
  width: 42px;
  height: 24px;
  left: 8px;
  bottom: 4px;
  border: 4px solid;
  border-radius: 24px 24px 4px 4px;
}

.icon-group::after {
  width: 44px;
  height: 18px;
  left: 7px;
  top: 8px;
  border-top: 4px solid;
  border-radius: 50%;
  box-shadow: -15px 15px 0 -8px currentColor, 15px 15px 0 -8px currentColor;
}

.contribution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.contribution-box {
  padding: 18px;
}

.contribution-box--wide,
.impact-box {
  grid-column: span 1;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mini-cards article {
  min-height: 150px;
  padding: 14px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.35);
}

.mini-icon {
  width: 42px;
  height: 42px;
  margin-left: auto;
  margin-right: auto;
}

.mini-code::before {
  width: 26px;
  height: 26px;
  left: 8px;
  top: 8px;
  border-left: 4px solid;
  border-bottom: 4px solid;
  transform: rotate(45deg);
}

.mini-code::after {
  width: 26px;
  height: 26px;
  right: 8px;
  top: 8px;
  border-right: 4px solid;
  border-top: 4px solid;
  transform: rotate(45deg);
}

.mini-hardware::before {
  inset: 7px;
  border: 3px solid;
}

.mini-hardware::after {
  inset: 14px;
  border: 3px solid;
  box-shadow: 0 -13px 0 -5px currentColor, 0 13px 0 -5px currentColor, 13px 0 0 -5px currentColor, -13px 0 0 -5px currentColor;
}

.mini-docs::before {
  width: 26px;
  height: 32px;
  left: 8px;
  top: 4px;
  border: 3px solid;
}

.mini-docs::after {
  width: 18px;
  height: 3px;
  left: 14px;
  top: 14px;
  background: currentColor;
  box-shadow: 0 7px currentColor, 0 14px currentColor;
}

.mini-testing::before {
  width: 24px;
  height: 30px;
  left: 9px;
  top: 7px;
  border: 3px solid;
  border-top: 0;
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 100%, 0 100%, 35% 35%);
}

.mini-community::before {
  width: 34px;
  height: 24px;
  left: 4px;
  top: 10px;
  border: 3px solid;
  border-radius: 50% 50% 6px 6px;
}

.join-box ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.join-box {
  grid-column: 1 / -1;
  text-align: center;
}

.join-box li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0;
  text-align: left;
}

.join-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.impact-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.impact-box div {
  padding: 18px;
  border-right: 1px solid rgba(227, 27, 35, 0.55);
}

.impact-box div:last-child {
  border-right: 0;
}

.impact-box strong {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.quote-box {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  margin: 0;
  border-color: rgba(227, 27, 35, 0.76);
}

.quote-box p {
  position: relative;
  width: fit-content;
  max-width: 620px;
  margin: 0 auto 14px;
  padding-left: 24px;
}

.quote-box p::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -8px;
  color: var(--red);
  font-size: 3rem;
  line-height: 1;
}

.quote-box cite {
  color: var(--red);
  font-style: normal;
}

.text-link {
  color: var(--text);
  font-weight: 800;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.final-cta {
  padding-top: 32px;
  text-align: center;
}

.final-cta h2,
.final-cta p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.button-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.95), rgba(7, 9, 11, 0.42)),
    url("assets/fe-b1-hero-warehouse.png") center / cover;
}

.thanks-card {
  width: min(760px, 100%);
  padding: clamp(28px, 7vw, 72px);
  background: rgba(7, 9, 11, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.thanks-card h1 {
  font-size: clamp(3rem, 10vw, 7rem);
}

.thanks-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero {
    min-height: 860px;
  }

  .hero__image {
    object-position: 72% center;
  }

  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.78) 48%, rgba(7, 9, 11, 0.18) 100%),
      linear-gradient(90deg, rgba(7, 9, 11, 0.72) 0%, rgba(7, 9, 11, 0.18) 100%);
  }

  .signup,
  .intro {
    grid-template-columns: 1fr;
  }

  .stats,
  .mission {
    grid-template-columns: 1fr 1fr;
  }

  .contribution-grid,
  .impact-box {
    grid-template-columns: 1fr 1fr;
  }

  .contribution-box--wide,
  .impact-box {
    grid-column: 1 / -1;
  }

  .build-steps article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 820px;
  }

  .hero__content,
  .intro,
  .contributors,
  .final-cta {
    width: min(100% - 28px, 1120px);
  }

  .hero__content {
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(4.6rem, 25vw, 7.2rem);
  }

  .signup {
    padding: 10px;
  }

  .stats,
  .mission,
  .contribution-grid,
  .impact-box {
    grid-template-columns: 1fr;
  }

  .build-steps,
  .mini-cards {
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .build-steps {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
  }

  .mini-cards {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
  }

  .build-steps article,
  .mini-cards article {
    scroll-snap-align: start;
  }

  .mission article,
  .stats div {
    min-height: auto;
  }

  .contribution-panel {
    padding: 14px;
  }

  .panel-heading,
  .box-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .build-steps article {
    min-height: auto;
  }

  .impact-box div {
    border-right: 0;
    border-bottom: 1px solid rgba(227, 27, 35, 0.55);
  }

  .impact-box div:last-child {
    border-bottom: 0;
  }
}
