:root {
  --bg: #0b0c0f;
  --bg-elev: #15171b;
  --text: #f4f4f4;
  --muted: #a5acb8;
  --accent: #ff5a00;
  --accent-soft: rgba(255, 90, 0, 0.2);
  --line: rgba(255, 255, 255, 0.12);
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-top: 4.25rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: block;
  padding: 0.55rem 0 0.35rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  transition: box-shadow 280ms ease, background-color 280ms ease, padding 280ms ease;
}

.logo {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(210px, 52vw);
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.56));
  transition: left 280ms ease, transform 280ms ease, width 280ms ease;
}

body.scrolled .site-header {
  padding: 0.4rem 0 0.24rem;
  background: rgba(10, 11, 14, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

body.scrolled .logo {
  left: 0.7rem;
  transform: translateX(0);
  width: min(150px, 36vw);
}

.hero,
.level-up {
  width: min(1200px, calc(100% - 2.25rem));
  margin: 0 auto;
}

.results {
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 9vh 0 8vh;
  text-align: center;
  display: grid;
  gap: 1rem;
}

.hero-kicker {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  margin: 0;
  letter-spacing: 0.02em;
}

h1 {
  display: grid;
  gap: 0;
  font-size: clamp(2.6rem, 10.2vw, 6.8rem);
  line-height: 0.88;
}

.hero-subtitle {
  margin: 0 auto;
  width: min(740px, 100%);
  color: #d2d6de;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
}

.cta {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(340px, 92vw);
  height: 64px;
  padding: 0 1.75rem;
  border-radius: 2px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.results {
  padding: 1.2rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.level-up h2,
.section-heading h2 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.9;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 5.6vw, 3.2rem);
}

.section-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  align-items: start;
}

.result-card {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  animation: rise 520ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.result-card img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  cursor: zoom-in;
}

.level-up {
  padding: 5rem 0 1.1rem;
  text-align: center;
}

.level-up p {
  color: #d2d6de;
  margin: 0.75rem auto 0.35rem;
  width: min(680px, 100%);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
}

.apply-form-wrap {
  width: min(1200px, calc(100% - 2.25rem));
  margin: 0 auto;
  padding: 0 0 7rem;
}

.apply-form-shell {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(10px);
  padding: clamp(1rem, 3vw, 2rem);
}

.apply-form-shell h2 {
  text-align: center;
  margin-bottom: 1.35rem;
}

.apply-form {
  display: grid;
  gap: 1rem;
}

.name-row {
  display: grid;
  gap: 1rem;
}

.line-input {
  display: grid;
  gap: 0.5rem;
}

.line-input > span {
  color: #f0f3f7;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.line-input em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95em;
}

.line-input input,
.line-input textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
  padding: 0.5rem 0 0.55rem;
  font: inherit;
  outline: none;
}

.line-input input::placeholder,
.line-input textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.line-input input:focus,
.line-input textarea:focus {
  border-bottom-color: #ffffff;
}

.line-input textarea {
  resize: vertical;
  min-height: 76px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e6e9ef;
  font-size: 1rem;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-submit {
  justify-self: center;
  margin-top: 0.35rem;
  min-width: min(340px, 92vw);
  height: 64px;
  border: 1px solid #ffffff;
  border-radius: 2px;
  background: transparent;
  color: #ffffff;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-submit:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: #a7acb8;
  font-size: 0.95rem;
  text-align: center;
}

.form-status[data-state='success'] {
  color: #ffffff;
}

.form-status[data-state='error'] {
  color: #ff8a5b;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 15, 18, 0.85);
  cursor: pointer;
  font-size: 1.2rem;
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .name-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1080px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
