:root {
  color-scheme: dark;
  --bg: #0f0d0a;
  --bg-warm: #181410;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F0E8;
  --text-muted: rgba(245, 240, 232, 0.68);
  --accent: #E8A84C;
  --accent-soft: rgba(232, 168, 76, 0.22);
  --accent-subtle: #4A6741;
  --shadow-deep: 0 38px 90px rgba(0, 0, 0, 0.48);
  --radius-xl: 36px;
  --radius-lg: 26px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(232, 168, 76, 0.13), transparent 52%),
    linear-gradient(180deg, #1a1612 0%, var(--bg) 50%);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "Hiragino Sans",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.38;
  z-index: 0;
}

.ambient-left {
  width: 52vw;
  height: 52vw;
  left: -18vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(232, 168, 76, 0.26), transparent 68%);
}

.ambient-right {
  width: 36vw;
  height: 36vw;
  right: -10vw;
  top: 22vw;
  background: radial-gradient(circle, rgba(139, 156, 117, 0.18), transparent 66%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 128px);
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 26px 0 0;
  max-width: 460px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 2;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 184px;
  padding: 17px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.store-button:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.14);
}

.store-button.is-primary {
  background: linear-gradient(145deg, rgba(232, 168, 76, 0.32), rgba(232, 168, 76, 0.14));
  border-color: rgba(232, 168, 76, 0.32);
}

.store-button.is-disabled {
  cursor: default;
  opacity: 0.58;
}

.store-button.is-disabled:hover {
  transform: none;
}

.store-label {
  font-size: 15px;
  font-weight: 700;
}

.store-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.store-note {
  margin: 16px 0 0;
  color: rgba(245, 240, 232, 0.48);
  font-size: 12px;
  line-height: 1.7;
}

.hero-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.device-frame {
  position: relative;
  width: min(324px, 100%);
  padding: 12px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 62%),
    rgba(22, 19, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    var(--shadow-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateY(-2deg) rotateX(1deg);
  transform-style: preserve-3d;
}

.device-camera {
  width: 96px;
  height: 24px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #8a8679;
  aspect-ratio: 9 / 19;
}

.screen-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    url("./assets/hedgehog-poster.png") center center / cover no-repeat;
  transform: scale(1.18);
  filter: blur(32px) saturate(0.65);
  opacity: 0.38;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  padding: 26px 22px 30px;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  z-index: 1;
}

.scene-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.scene-shadow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 42px;
  background: rgba(72, 66, 56, 0.24);
  filter: blur(32px);
  transform: translateY(20px);
}

.scene-frame {
  position: relative;
  width: 172px;
  aspect-ratio: 1;
  overflow: hidden;
  clip-path: polygon(50% 0%, 91% 25%, 91% 75%, 50% 100%, 9% 75%, 9% 25%);
  border-radius: 20px;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.09),
    0 0 0 12px rgba(0, 0, 0, 0.03);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 14px;
}

.timer-readout {
  color: rgba(255, 255, 255, 0.9);
  font-family:
    "SF Pro Rounded",
    "SF Pro Display",
    ui-rounded,
    system-ui,
    sans-serif;
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.end-button {
  min-width: 126px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 122, 118, 0.68);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bgm-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(28, 24, 20, 0.86);
  color: rgba(245, 240, 232, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.bgm-fab:hover {
  transform: translateY(-2px);
}

.bgm-fab svg {
  width: 18px;
  height: 18px;
}

.bgm-fab.is-active {
  background: rgba(232, 168, 76, 0.18);
  border-color: rgba(232, 168, 76, 0.32);
}

.hero-cta-mobile {
  display: none;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100vw - 32px, 640px);
    padding-top: 32px;
    padding-bottom: 100px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .lead {
    max-width: none;
  }

  .cta-row--desktop,
  .store-note--desktop {
    display: none;
  }

  .hero-cta-mobile {
    display: block;
    text-align: center;
  }

  .hero-cta-mobile .cta-row {
    justify-content: center;
  }

  .hero-cta-mobile .store-note {
    max-width: 400px;
    margin-inline: auto;
    margin-top: 14px;
  }

  .device-frame {
    width: min(306px, 100%);
    transform: none;
  }

  .bgm-fab {
    right: 16px;
    bottom: 18px;
    padding: 12px 18px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100vw - 24px);
    padding-bottom: 96px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
  }

  .store-button {
    min-width: auto;
  }

  .device-frame {
    width: min(288px, 100%);
    padding: 10px;
  }

  .screen-overlay {
    padding: 22px 18px 26px;
  }

  .scene-frame {
    width: 160px;
  }

  .timer-readout {
    font-size: 52px;
  }

  .bgm-fab {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}
