:root {
  --blue: #5bcffb;
  --blue-deep: #087ca7;
  --pink: #f5a9b8;
  --pink-deep: #c75675;
  --ink: #17212a;
  --muted: #53616d;
  --paper: #fffafc;
  --white: #ffffff;
  --line: rgba(23, 33, 42, 0.12);
  --shadow: 0 24px 80px rgba(23, 33, 42, 0.16);
  color-scheme: light;
  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;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.page-shell {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: min(780px, 92svh);
  display: grid;
  align-items: end;
  padding: 28px;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.42)),
    url("6e05683d-078f-4b59-99d1-1f80ad9b359d.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(0deg, var(--paper), rgba(255, 250, 252, 0));
}

.hero__content {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 76px) 0 clamp(56px, 8vw, 96px);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 11vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: #26323c;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  line-height: 1.5;
}

.hero__actions,
.join {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(8, 124, 167, 0.35);
  outline-offset: 3px;
}

.button--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 42, 0.24);
}

.button--primary:hover {
  background: #24313d;
}

.button--secondary {
  border-color: rgba(23, 33, 42, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.intro,
.rules,
.join,
.matrix {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: clamp(44px, 9vw, 92px) 0;
}

.intro p,
.notice p,
.rule-list {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.intro p {
  max-width: 690px;
  margin-bottom: 0;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notice h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.notice p:last-child {
  margin-bottom: 0;
}

.rules {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: clamp(44px, 9vw, 92px) 0;
}

.section-heading {
  position: sticky;
  top: 24px;
  align-self: start;
}

.rule-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rule-list li {
  counter-increment: rules;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.rule-list li::before {
  content: counter(rules, decimal-leading-zero);
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.join {
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: clamp(36px, 8vw, 72px) 0 clamp(28px, 6vw, 48px);
}

.join h2 {
  margin-bottom: 12px;
}

.join p:not(.eyebrow),
.matrix p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.matrix {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 6vw, 48px) 0 clamp(54px, 10vw, 96px);
}

.matrix h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 760px;
    padding: 20px;
  }

  .hero__background {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 252, 0.9)),
      url("6e05683d-078f-4b59-99d1-1f80ad9b359d.png") center / cover;
  }

  .hero__actions,
  .join {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .section-heading {
    position: static;
  }

  .rule-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .rule-list li::before {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
