:root {
  --paper: #f6f7f7;
  --ink: #171817;
  --muted: #777b7b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
button, input { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #dce0df; color: #111; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px 24px 26px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--paper);
}
.brand { display: block; width: 80px; flex: none; position: relative; z-index: 2; }
.brand img { width: 100%; height: 64px; object-fit: contain; }
.hero[data-logo-size="compact"] .brand { width: 68px; }
.hero[data-logo-size="compact"] .brand img { height: 54px; }
.hero[data-logo-size="original"] .brand { width: 92px; }
.hero[data-logo-size="original"] .brand img { height: 74px; }
.rules-link {
  position: absolute;
  z-index: 3;
  top: 51px;
  right: clamp(26px, 5vw, 76px);
  color: #3d4241;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid #aeb4b2;
  padding-bottom: 5px;
  transition: border-color .2s, color .2s;
}
.rules-link span { margin-left: 6px; font-size: 15px; font-weight: 400; }
.rules-link:hover { color: #111; border-color: #111; }
.hero-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-copy { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  max-width: 1080px;
  margin: 0 auto 22px;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(48px, 4.65vw, 66px);
  font-weight: 400;
  letter-spacing: -.016em;
  line-height: 1.1;
}
.notify-form { width: min(360px, calc(100vw - 36px)); margin: 0 auto; }
.notify-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid #d5d8d7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 32px #1718170d, inset 0 1px 0 #ffffff;
  transition: border-color .2s, box-shadow .2s;
}
.notify-control:focus-within { border-color: #8e9391; box-shadow: 0 12px 32px #17181712, 0 0 0 3px #1718170a; }
.notify-control input {
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.notify-control input::placeholder { color: #8b8f8e; }
.notify-button {
  min-width: 114px;
  height: 42px;
  padding: 0 21px;
  border: 1px solid #171817;
  border-radius: 999px;
  background: #171817;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff21, 0 6px 16px #1718171c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  transition: transform .2s, background .2s, opacity .2s;
}
.notify-button:hover { background: #2b2d2c; transform: translateY(-1px); }
.notify-button:disabled { cursor: wait; opacity: .72; transform: none; }
.notify-status { min-height: 16px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.notify-form.has-error .notify-status { color: #9a3d34; }
.notify-form.has-error .notify-control { border-color: #b96a62; }
.notify-form.is-complete .notify-control { border-color: #aeb3b1; }
.notify-form.is-complete .notify-button { background: #171817; opacity: 1; cursor: default; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand:focus-visible, .rules-link:focus-visible, .back-link:focus-visible { outline: 2px solid #8b908f; outline-offset: 4px; }
.notify-button:focus-visible { outline: 2px solid #8b908f; outline-offset: 3px; }

.product-stage {
  --box-height: min(56vh, 520px);
  position: relative;
  isolation: isolate;
  width: min(880px, 100%);
  min-height: calc(var(--box-height) + 28px);
  margin: 16px auto 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-glow {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: min(730px, 96%);
  height: 80%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff 0%, #f9fafa 34%, transparent 75%);
  filter: blur(18px);
}
.product-object {
  position: relative;
  z-index: 1;
  height: var(--box-height);
}
.box-render {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(18px 19px 12px #17191840) drop-shadow(38px 36px 28px #17191832);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s;
  animation: box-place 1.25s cubic-bezier(.22,.8,.2,1) .1s backwards;
}
.product-stage:hover .box-render {
  transform: translateY(-7px);
  filter: drop-shadow(20px 25px 16px #17191848) drop-shadow(42px 44px 32px #17191838);
}
@keyframes box-place {
  from { opacity: .65; transform: translateY(-30px) scale(.985); }
  68% { opacity: 1; transform: translateY(3px) scale(1.005); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.stage-shadow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -26px;
  width: 120%;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #12151480 0%, #12151442 36%, transparent 72%);
  filter: blur(14px);
  animation: shadow-place 1.25s cubic-bezier(.22,.8,.2,1) .1s backwards;
  transition: transform .5s, opacity .5s;
}
.product-stage:hover .stage-shadow { transform: translateX(-50%) scale(1.08); opacity: .72; }
@keyframes shadow-place {
  from { opacity: .2; transform: translateX(-50%) scale(.62); }
  68% { opacity: 1; transform: translateX(-50%) scale(1.04); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
.stage-shadow::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 15px;
  width: 48%;
  height: 24px;
  border-radius: 50%;
  background: #0d0f0e52;
  filter: blur(12px);
}

@media (max-width: 700px) {
  .hero { padding: 20px 18px 24px; }
  .brand { width: 72px; }
  .brand img { height: 57px; }
  .hero[data-logo-size="compact"] .brand { width: 60px; }
  .hero[data-logo-size="compact"] .brand img { height: 48px; }
  .hero[data-logo-size="original"] .brand { width: 86px; }
  .hero[data-logo-size="original"] .brand img { height: 68px; }
  .rules-link { top: 42px; right: 20px; font-size: 12px; }
  .hero h1 { font-size: clamp(35px, 8.3vw, 47px); letter-spacing: -.01em; line-height: 1.12; margin-bottom: 30px; }
  .notify-form { width: min(320px, calc(100vw - 48px)); }
  .notify-control { gap: 4px; padding: 4px; }
  .notify-control input { height: 38px; padding-left: 13px; font-size: 16px; }
  .notify-button { min-width: 102px; height: 38px; padding: 0 17px; font-size: 13px; }
  .notify-status { margin-top: 12px; }
  .product-stage { --box-height: clamp(340px, 45vh, 430px); min-height: calc(var(--box-height) + 45px); margin-top: 24px; }
  .stage-shadow { width: 130%; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 35px; }
  .product-stage { --box-height: clamp(330px, 45vh, 390px); }
}
@media (max-width: 360px) {
  .hero-content { justify-content: flex-start; padding-top: 24px; }
  .hero h1 { font-size: 27px; }
  .product-stage { --box-height: clamp(280px, 52vh, 330px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .box-render, .stage-shadow { animation: none; }
}
