:root {
  --max: 650px;
  --text: #111;
  --muted: #8a8a8a;
  --card: #f3f3f3;
  --shot: #6f6f6f;
  --font: "Momo Trust Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 28px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 14px;
  font-weight: 600;
}

.suggest {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.suggest:hover {
  color: var(--text);
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0 0 20px;
  white-space: nowrap;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 400;
}

.sub span {
  display: block;
  white-space: nowrap;
}

.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px 12px 16px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn:hover {
  opacity: 0.88;
}

.chrome {
  display: block;
  flex: 0 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 72px;
  width: 100%;
  margin-top: 100px;
}

.shot-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1000px, 100vw - 40px);
  max-width: 1000px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.shot-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 600px;
  aspect-ratio: 1000 / 600;
  overflow: hidden;
  border-radius: 18px;
  background: var(--shot);
}

.shot {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  border-radius: 0;
  object-fit: cover;
  cursor: pointer;
  position: absolute;
  inset: -2.5%;
  width: 105%;
  height: 105%;
  max-width: none;
}

.shot::-webkit-media-controls,
.shot::-webkit-media-controls-enclosure {
  display: none !important;
}

.shot-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 0;
}

.shot-wrap:hover .shot-toggle,
.shot-wrap:focus-within .shot-toggle {
  opacity: 1;
  pointer-events: auto;
}

.shot-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

.shot-toggle .icon-play {
  display: none;
}

.shot-toggle.is-paused .icon-play {
  display: block;
}

.shot-toggle.is-paused .icon-pause {
  display: none;
}

.features {
  margin: 0;
}

.features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 14px;
}

.features li {
  text-align: center;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  background: var(--card);
  border-radius: 16px;
  color: #111;
}

.card svg {
  width: 26px;
  height: 26px;
}

.features p {
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

footer {
  margin-top: 80px;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 13px;
  color: #b0b0b0;
  font-weight: 400;
}


@media (max-height: 1099px), (max-width: 749px) {
  .hero h1 {
    font-size: 24px;
  }

  .sub {
    font-size: 16px;
  }

  .btn {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hero-row {
    align-items: center;
  }

  .sub span {
    white-space: normal;
  }

  .hero h1 {
    white-space: normal;
  }

  .shot-wrap {
    height: auto;
    aspect-ratio: 1000 / 600;
  }

  .shot {
    height: 100%;
  }

  .shot-slot {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }

  .features ul {
    grid-template-columns: 1fr;
  }
}

@media (min-height: 1350px) {
  .page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 100px;
  }

  .stack {
    margin-top: auto;
    margin-bottom: auto;
  }

  footer {
    /* page gap is 100px; keep at least 80px under features */
    margin-top: 0;
    padding-bottom: 8px;
  }
}

.arcade {
  color: inherit;
  text-decoration: none;
}

.arcade:hover {
  color: #000;
  text-decoration: underline;
}

button.suggest {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}

button.suggest:hover {
  color: var(--text);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.modal-x {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #9a9a9a;
  cursor: pointer;
  padding: 0;
}
.modal-x svg {
  display: block;
  width: 20px;
  height: 20px;
}
.modal-x:hover {
  color: #111;
}

.field {
  display: block;
  width: 100%;
  border: 0;
  background: #f3f3f3;
  border-radius: 14px;
  padding: 16px 16px;
  margin: 0 0 12px;
  font: inherit;
  font-size: 16px;
  color: #111;
}

.field::placeholder {
  color: #b0b0b0;
}

.area {
  min-height: 150px;
  resize: vertical;
}

.submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.submit.is-done {
  background: #24BA4A;
}
