:root {
  --bg-deep: #14080a;
  --bg-mid: #2a0f14;
  --ink: #f6ebe6;
  --ink-soft: #c9b0a8;
  --brand: #e50914;
  --brand-hot: #ff2a36;
  --gold: #e8c27a;
  --line: rgba(246, 235, 230, 0.14);
  --field: rgba(20, 8, 10, 0.55);
  --ok: #7dcea0;
  --err: #ff8a7a;
  --radius: 14px;
  --font-brand: "Bebas Neue", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(229, 9, 20, 0.34), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(232, 194, 122, 0.12), transparent 55%),
    linear-gradient(165deg, #1c0a0e 0%, #0d0608 45%, #190910 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-a {
  width: 42vw;
  height: 42vw;
  left: -8vw;
  top: 18vh;
  background: rgba(229, 9, 20, 0.28);
}

.glow-b {
  width: 28vw;
  height: 28vw;
  right: -4vw;
  bottom: 8vh;
  background: rgba(232, 194, 122, 0.16);
  animation-delay: -4s;
}

.reel {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 48px,
      rgba(255, 255, 255, 0.015) 48px,
      rgba(255, 255, 255, 0.015) 50px
    );
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  opacity: 0.5;
}

.grain {
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: soft-light;
  animation: grain-shift 1.2s steps(2) infinite;
}

.stage {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 0 4rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  text-align: center;
  margin-bottom: 2.25rem;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--brand);
  text-shadow:
    0 0 40px rgba(229, 9, 20, 0.35),
    0 8px 0 rgba(0, 0, 0, 0.25);
  animation: brand-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand h1 {
  margin: 0.85rem 0 0.55rem;
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
}

.lede {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 500;
}

.request-form {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    rgba(10, 4, 6, 0.55);
  backdrop-filter: blur(10px);
  animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.field legend {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.optional {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
  opacity: 0.8;
}

.media-type {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.type-option {
  position: relative;
  cursor: pointer;
}

.type-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.type-option span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.type-option input:checked + span {
  border-color: var(--brand-hot);
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.35);
}

.type-option input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.type-option:hover span {
  transform: translateY(-1px);
}

.optional-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .optional-grid {
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
  }
}

input[type="text"],
input[type="url"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input::placeholder {
  color: rgba(201, 176, 168, 0.55);
}

input:hover {
  border-color: rgba(246, 235, 230, 0.28);
}

input:focus {
  border-color: rgba(232, 194, 122, 0.7);
  box-shadow: 0 0 0 3px rgba(232, 194, 122, 0.15);
  background: rgba(20, 8, 10, 0.75);
}

.submit {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brand-hot), var(--brand));
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.28);
}

.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-ok {
  background: rgba(125, 206, 160, 0.12);
  color: var(--ok);
  border: 1px solid rgba(125, 206, 160, 0.28);
}

.form-status.is-err {
  background: rgba(255, 138, 122, 0.1);
  color: var(--err);
  border: 1px solid rgba(255, 138, 122, 0.28);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    letter-spacing: 0.18em;
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    letter-spacing: 0.04em;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(2vw, -2vh, 0);
  }
}

@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1.5%, 1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
