:root {
  --bg: #f4f1e8;
  --paper: #fffdf6;
  --ink: #121516;
  --muted: #59635e;
  --line: rgba(18, 21, 22, 0.16);
  --dark: #121516;
  --dark-2: #1a211f;
  --light: #f8f5ec;
  --accent: #1767e8;
  --mint: #58c88f;
  --yellow: #f0c95a;
  --radius: 8px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(244, 241, 232, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  border-radius: 7px;
}

.brand-mark::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 3px solid var(--bg);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  color: #38413d;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--accent);
  border-bottom-color: currentColor;
}

main {
  overflow: hidden;
}

section {
  scroll-margin-top: 80px;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 64px;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.closing h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 102px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: #303a35;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.38;
  font-weight: 780;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--bg);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.light {
  border-color: var(--light);
}

.button.primary.light {
  color: var(--ink);
  background: var(--light);
}

.button.secondary.light {
  color: var(--light);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(362px, 88vw);
  min-height: 620px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 32px;
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 92px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 0 0 12px 12px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.room-title {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.room-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.room-title strong {
  font-size: 27px;
}

.room-scene {
  margin-top: 18px;
  padding: 18px;
  background: #e9ece4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.object.locker {
  display: block;
  width: 92px;
  height: 112px;
  margin: 0 auto 16px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(18, 21, 22, 0.2) 49% 51%, transparent 52%),
    var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 6px;
}

.room-scene p {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.room-scene em {
  display: block;
  margin-top: 10px;
  color: #725022;
  font-style: normal;
  font-weight: 900;
}

.choice-stack {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.choice-stack button {
  min-height: 46px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
}

.choice-stack button:first-child {
  color: var(--ink);
  background: #f4efe1;
  border: 1px solid var(--line);
}

.choice-stack button:nth-child(2) {
  background: var(--ink);
}

.choice-stack button:nth-child(3) {
  color: var(--ink);
  background: #e5f4ea;
  border: 1px solid rgba(88, 200, 143, 0.45);
}

.chat-line {
  margin-top: 16px;
  padding: 14px;
  background: #f6f2e8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chat-line span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.chat-line p {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 750;
}

.intro,
.rooms-section,
.together-section,
.room-section,
.keep-section,
.play-section,
.creator-section,
.safety-section,
.beta-section,
.closing {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.band-dark {
  color: var(--light);
  background: var(--dark);
}

.band-muted {
  background: #ebe6d8;
}

.band-dark .section-kicker {
  color: var(--mint);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 1080px;
}

.section-head h2,
.closing h2 {
  font-size: clamp(34px, 5.2vw, 74px);
  line-height: 1.08;
}

.section-head p:not(.section-kicker) {
  margin: 0;
  max-width: 780px;
  color: #43504a;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.55;
  font-weight: 720;
}

.band-dark .section-head p:not(.section-kicker) {
  color: #d8ded8;
}

.room-card-grid,
.split-scene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(34px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.room-card,
.split-scene article {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  padding: 26px;
  background: var(--dark-2);
}

.split-scene {
  background: var(--line);
  border-color: var(--line);
}

.split-scene article {
  background: var(--paper);
}

.room-card span,
.split-scene span,
.beta-card span {
  display: block;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.split-scene span {
  color: var(--accent);
}

.room-card strong,
.split-scene strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.room-card p,
.split-scene p {
  margin: 24px 0 0;
  color: #d8ded8;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 720;
}

.split-scene p {
  color: #45514b;
}

.step-list,
.play-grid,
.safety-grid,
.feature-list {
  display: grid;
  gap: 1px;
  margin: clamp(34px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-list li,
.safety-grid article {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  background: var(--dark-2);
}

.step-list span,
.feature-list span,
.play-grid span,
.safety-grid span,
.build-list span,
.creator-card span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.band-dark .step-list span,
.band-dark .safety-grid span {
  color: var(--mint);
}

.step-list strong,
.safety-grid strong {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
}

.room-layout,
.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(34px, 5vw, 64px);
  align-items: stretch;
}

.room-visual {
  min-height: 520px;
  display: grid;
  gap: 14px;
  grid-template-rows: 1fr 0.82fr;
}

.wall {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.shelf span {
  min-height: 170px;
  display: grid;
  place-items: end center;
  padding: 18px;
  text-align: center;
  color: var(--ink);
  background: #e9ece4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
}

.shelf span:nth-child(2) {
  background: #dbe8f8;
}

.shelf span:nth-child(3) {
  background: #f2ddd8;
}

.guestbook strong {
  display: block;
  font-size: 24px;
}

.guestbook p {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #3d4742;
  font-size: 17px;
  font-weight: 750;
}

.feature-list {
  margin: 0;
  border-color: var(--line);
  background: var(--line);
}

.feature-list article,
.play-grid article {
  min-height: 168px;
  padding: 24px;
  background: var(--paper);
}

.feature-list strong,
.play-grid strong,
.build-list strong,
.creator-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.18;
}

.feature-list p,
.play-grid p,
.creator-card p {
  margin: 18px 0 0;
  color: #45514b;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}

.play-grid,
.safety-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: var(--line);
  background: var(--line);
}

.creator-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
}

.build-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.build-list li {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  background: var(--paper);
}

.creator-card {
  display: grid;
  align-content: center;
  padding: 30px;
  background: var(--ink);
  color: var(--light);
  border-radius: var(--radius);
}

.creator-card p {
  color: #d8ded8;
}

.beta-section .section-head p:not(.section-kicker) {
  color: #d8ded8;
}

.beta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 5vw, 52px);
}

.safety-grid article {
  background: var(--dark-2);
}

.closing {
  min-height: 72svh;
  display: grid;
  align-content: center;
  color: var(--light);
  background: var(--dark);
}

.closing .section-kicker {
  color: var(--mint);
}

.closing-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d8ded8;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.45;
  font-weight: 760;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: reveal-up 520ms ease both;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .hero,
  .room-layout,
  .creator-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 640px;
  }

  .step-list,
  .room-card-grid,
  .split-scene,
  .play-grid,
  .safety-grid,
  .build-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 60px;
  }

  .brand {
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 82px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 590px;
  }

  .phone {
    width: min(330px, 92vw);
    min-height: 558px;
    border-width: 4px;
  }

  .intro,
  .rooms-section,
  .together-section,
  .room-section,
  .keep-section,
  .play-section,
  .creator-section,
  .safety-section,
  .beta-section,
  .closing {
    padding-block: 64px;
  }

  .section-head h2,
  .closing h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .step-list,
  .room-card-grid,
  .split-scene,
  .play-grid,
  .safety-grid,
  .build-list {
    grid-template-columns: 1fr;
  }

  .step-list li,
  .room-card,
  .split-scene article,
  .safety-grid article,
  .build-list li,
  .feature-list article,
  .play-grid article {
    min-height: auto;
    gap: 28px;
  }

  .room-visual {
    min-height: auto;
  }

  .shelf {
    grid-template-columns: 1fr;
  }

  .shelf span {
    min-height: 92px;
    place-items: center start;
    text-align: left;
  }
}
