/* ============================================================
   운명의 카드 — 랜딩 페이지
   토큰은 DESIGN_SYSTEM.md 를 단일 출처로 한다.
   ============================================================ */

:root {
  /* color */
  --bg-deep: #0b0c18;
  --bg-base: #0f1020;
  --surface: #191a2e;
  --surface-elevated: #23243d;
  --text-primary: #f7f2e8;
  --text-secondary: #bcb7c9;
  --text-tertiary: #8b86a0;
  --gold: #d7b46a;
  --violet: #8e7cc3;
  --success: #79a98b;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* domain */
  --seed: #7fa88c;
  --path: #7c9cc3;
  --bond: #c38fa6;
  --flame: #d79a6a;
  --shadow: #8e7cc3;
  --gate: #d7b46a;

  /* space (density 4 = standard) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* motion — 진입은 감속, 퇴장은 가속. 퇴장은 진입의 75% 길이로 둔다. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --dur-micro: 200ms;
  --dur-exit: 180ms;
  --dur-enter: 240ms;

  --font-display: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.32;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-deep);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ------------------------------------------------------------ background */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.aurora::before {
  width: 68vw;
  height: 68vw;
  top: -20vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(142, 124, 195, 0.22), transparent 70%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.aurora::after {
  width: 58vw;
  height: 58vw;
  bottom: -18vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(215, 180, 106, 0.14), transparent 70%);
  animation: drift-b 32s var(--ease) infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(6vw, 4vh, 0);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-5vw, -4vh, 0);
  }
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
}

.brand svg {
  flex: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-nav a.text-link {
  display: none;
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-micro) var(--ease);
}

.header-nav a.text-link:hover {
  color: var(--text-primary);
}

@media (min-width: 860px) {
  .header-nav a.text-link {
    display: inline-block;
  }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-micro) var(--ease),
    background-color var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 8px 28px rgba(215, 180, 106, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(215, 180, 106, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------------------------------------ sections */

section {
  padding-block: var(--space-16);
}

/* 스티키 헤더가 앵커 이동 후 제목을 가리지 않도록 여유를 둔다. */
section[id],
#main {
  scroll-margin-top: 84px;
}

@media (min-width: 860px) {
  section {
    padding-block: 96px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-head {
  max-width: 620px;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  font-size: clamp(24px, 4.4vw, 34px);
}

.section-head p {
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

/* ------------------------------------------------------------ hero */

.hero {
  padding-top: var(--space-12);
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
}

.hero h1 {
  font-size: clamp(32px, 6.4vw, 52px);
  line-height: 1.28;
}

.hero .lede {
  margin-top: var(--space-6);
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13px;
}

.hero-meta strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: block;
  font-size: 20px;
  font-family: var(--font-display);
}

/* card fan */

.card-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  perspective: 1200px;
}

.card-fan .fate-card {
  position: absolute;
  width: 150px;
  transition: transform 420ms var(--ease);
}

.card-fan .fate-card:nth-child(1) {
  transform: rotate(-13deg) translate(-186px, 26px);
}

.card-fan .fate-card:nth-child(2) {
  transform: rotate(-4.5deg) translate(-62px, -6px);
}

.card-fan .fate-card:nth-child(3) {
  transform: rotate(4.5deg) translate(62px, -6px);
}

.card-fan .fate-card:nth-child(4) {
  transform: rotate(13deg) translate(186px, 26px);
}

.card-fan:hover .fate-card:nth-child(1) {
  transform: rotate(-16deg) translate(-204px, 16px);
}

.card-fan:hover .fate-card:nth-child(4) {
  transform: rotate(16deg) translate(204px, 16px);
}

@media (max-width: 900px) {
  .card-fan .fate-card:nth-child(1) {
    transform: rotate(-13deg) translate(-150px, 22px);
  }
  .card-fan .fate-card:nth-child(2) {
    transform: rotate(-4.5deg) translate(-50px, -6px);
  }
  .card-fan .fate-card:nth-child(3) {
    transform: rotate(4.5deg) translate(50px, -6px);
  }
  .card-fan .fate-card:nth-child(4) {
    transform: rotate(13deg) translate(150px, 22px);
  }
}

@media (max-width: 560px) {
  .card-fan .fate-card {
    width: 112px;
  }
  .card-fan .fate-card:nth-child(1) {
    transform: rotate(-13deg) translate(-114px, 20px);
  }
  .card-fan .fate-card:nth-child(2) {
    transform: rotate(-4.5deg) translate(-38px, -5px);
  }
  .card-fan .fate-card:nth-child(3) {
    transform: rotate(4.5deg) translate(38px, -5px);
  }
  .card-fan .fate-card:nth-child(4) {
    transform: rotate(13deg) translate(114px, 20px);
  }
}

/* ------------------------------------------------------------ fate card */

.fate-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-color, var(--border-strong));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--card-color, var(--violet)) 20%, transparent) 0%,
      var(--surface) 55%,
      var(--bg-deep) 100%
    );
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fate-card .domain-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--card-color, var(--gold));
}

.fate-card .domain-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.fate-card .glyph {
  flex: 1;
  display: grid;
  place-items: center;
}

.fate-card .card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-primary);
}

.fate-card .card-flow {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* 일러스트가 들어간 카드 — 이미지 위에 라벨을 얹는다 */

/* position 은 .fate-card 에서 이미 정한다.
   여기서 다시 선언하면 .card-fan .fate-card 의 absolute 를 덮어써 팬 배치가 깨진다. */
.fate-card.has-art {
  overflow: hidden;
  padding: 0;
  background: var(--surface);
}

.fate-card.has-art .card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 이미지가 로드되면 그 위에 덮이므로 대체 글리프는 자연스럽게 가려진다 */
.fate-card.has-art .fallback-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.fate-card.has-art .card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 12, 24, 0.55) 0%,
    rgba(11, 12, 24, 0) 34%,
    rgba(11, 12, 24, 0) 52%,
    rgba(11, 12, 24, 0.9) 100%
  );
}

.fate-card.has-art .domain-tag,
.fate-card.has-art .card-meta {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
}

.fate-card.has-art .domain-tag {
  top: var(--space-4);
}

.fate-card.has-art .card-meta {
  bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-back {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(140deg, var(--surface-elevated), var(--surface));
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------ demo */

.demo-panel {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (min-width: 860px) {
  .demo-panel {
    grid-template-columns: 220px 1fr;
    gap: var(--space-12);
    align-items: center;
    padding: var(--space-12);
  }
}

.demo-stage {
  justify-self: center;
  width: 100%;
  max-width: 220px;
}

.demo-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  /* button 기본 색이 상속을 끊어 카드 이름 대비가 떨어진다. */
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  -webkit-tap-highlight-color: transparent;
  /* 카드 뒤집기가 평면으로 눌려 보이지 않게 원근을 준다. */
  perspective: 1000px;
}

/* 카드 면은 항상 같은 자리를 차지한다. 뒷면과 앞면 모두 2:3 이라 교체해도 밀리지 않는다.
   면의 transform 은 뒤집기 애니메이션 전용이다. 호버/프레스는 버튼이 맡아
   두 transform 이 서로를 덮어쓰지 않게 한다. */
.demo-card-button {
  transition: transform var(--dur-micro) var(--ease-out-quint);
}

.demo-card-button:hover {
  transform: translateY(-3px);
}

.demo-card-button:active {
  transform: scale(0.97);
}

.demo-card-button[aria-busy='true'] {
  cursor: progress;
}

/* 화면에서만 숨기고 스크린 리더에는 남긴다. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.demo-result h3 {
  font-size: 22px;
}

.demo-result .demo-meta {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.demo-result p.body {
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

.demo-action {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(215, 180, 106, 0.34);
  background: rgba(215, 180, 106, 0.09);
}

.demo-action .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.demo-action p {
  margin-top: var(--space-2);
  color: var(--text-primary);
}

.demo-action--violet {
  border-color: rgba(142, 124, 195, 0.4);
  background: rgba(142, 124, 195, 0.09);
}

.demo-action--violet .label {
  color: var(--violet);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.demo-note {
  margin-top: var(--space-4);
  font-size: 12px;
  color: var(--text-tertiary);
}

.demo-empty {
  color: var(--text-secondary);
}

/* ------------------------------------------------------------ grids */

.grid {
  display: grid;
  gap: var(--space-4);
}

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

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-6 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 19px;
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
}

.card .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: var(--space-3);
}

.domain-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.domain-card {
  position: relative;
}

.domain-card .domain-art {
  display: block;
  width: 100%;
  /* img 의 height 속성이 그대로 쓰이면 aspect-ratio 가 무시된다. */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 42%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
}

/* 대표 일러스트가 뜨면 글리프는 중복이므로 감춘다 */
.domain-card .domain-art + .glyph {
  display: none;
}

.domain-card .glyph {
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
}

.domain-card h3 {
  font-size: 17px;
}

.domain-card p {
  margin-top: var(--space-1);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ------------------------------------------------------------ screens */

.screens {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .screens {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* 아이폰 목업 — 세 대의 크기가 반드시 같아야 하므로
   내용 길이가 아니라 화면 비율(9:19.5)이 높이를 정한다. */

.phone {
  position: relative;
  max-width: 264px;
  margin-inline: auto;
  padding: 8px;
  border-radius: 46px;
  /* 티타늄 프레임 */
  background: linear-gradient(155deg, #43445e 0%, #191a2c 38%, #2f3048 70%, #141526 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* 측면 버튼 — 왼쪽 음량, 오른쪽 전원 */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #4a4b63, #2a2b40);
}

.phone::before {
  left: -2px;
  top: 108px;
  height: 56px;
}

.phone::after {
  right: -2px;
  top: 128px;
  height: 74px;
}

.phone-screen {
  position: relative;
  /* 아이폰 15/16 화면비. 내용과 무관하게 세 대가 같은 크기가 된다. */
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: linear-gradient(180deg, #12132a, var(--bg-deep));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 다이나믹 아일랜드 */
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: #000;
  z-index: 2;
}

.phone-statusbar {
  flex: none;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phone-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4) 0;
  overflow: hidden;
}

/* 홈 인디케이터 */
.phone-home {
  flex: none;
  width: 96px;
  height: 4px;
  margin: var(--space-3) auto var(--space-2);
  border-radius: var(--radius-pill);
  background: rgba(247, 242, 232, 0.55);
}

.phone-content .p-label {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.phone-content .p-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.phone-content .p-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.phone-content .p-surface {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-content .p-streak {
  border-color: rgba(215, 180, 106, 0.24);
}

.phone-content .p-question {
  border-color: rgba(142, 124, 195, 0.34);
  background: rgba(142, 124, 195, 0.08);
}

.phone-content .p-question .p-label {
  color: var(--violet);
}

.phone-content .p-cta {
  margin-top: auto;
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 12px;
  font-weight: 700;
}

.phone-content .p-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.screen-caption {
  margin-top: var(--space-4);
  text-align: center;
}

.screen-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
}

.screen-caption span {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ------------------------------------------------------------ promise */

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.promise-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
}

.promise-list svg {
  flex: none;
  margin-top: 3px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare caption {
  text-align: left;
  color: var(--text-tertiary);
  font-size: 13px;
  padding-bottom: var(--space-3);
}

.compare th,
.compare td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 13px;
}

.compare tbody th {
  color: var(--text-secondary);
  font-weight: 400;
}

.compare .mine {
  color: var(--gold);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------ signup */

.signup {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(215, 180, 106, 0.3);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(215, 180, 106, 0.1), transparent 60%),
    var(--surface);
  text-align: center;
}

@media (min-width: 760px) {
  .signup {
    padding: var(--space-16) var(--space-12);
  }
}

.signup h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.signup p {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
}

.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  flex: 1 1 280px;
  max-width: 360px;
}

.field label {
  font-size: 13px;
  color: var(--text-secondary);
}

.field input {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
}

.field input::placeholder {
  color: var(--text-tertiary);
}

.field input:focus-visible {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(215, 180, 106, 0.2);
}

.field .helper {
  font-size: 12px;
  color: var(--text-tertiary);
}

.field .error {
  font-size: 13px;
  color: #e59a9a;
  min-height: 1.4em;
}

.form-submit {
  align-self: flex-end;
  flex: 0 0 auto;
}

.form-status {
  margin-top: var(--space-4);
  font-size: 14px;
  min-height: 1.5em;
}

.form-status.ok {
  color: var(--success);
}

.form-status.warn {
  color: #e5c68a;
}

/* ------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-12);
  color: var(--text-tertiary);
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.disclaimer-box {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ------------------------------------------------------------ reveal */

/* JS 비활성 환경에서는 head 의 noscript 스타일이 이 값을 되돌린다. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ reduced motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
