:root {
  color-scheme: light;
  --page-bg: #eef3f8;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --text: #172033;
  --muted: #5f6d7e;
  --line: #d9e2ec;
  --button-bg: #1467ff;
  --button-bg-hover: #0d58df;
  --button-bg-active: #0b48b8;
  --button-shadow: rgba(20, 103, 255, 0.34);
  --button-ring: rgba(20, 103, 255, 0.28);
  --button-text: #ffffff;
  --admin-bg: #0f766e;
  --admin-bg-hover: #0b625c;
  --admin-bg-active: #084d49;
  --admin-shadow: rgba(15, 118, 110, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(20, 103, 255, 0.08), rgba(15, 118, 110, 0.08)),
    var(--page-bg);
  color: var(--text);
}

.page-shell {
  width: min(100%, 1120px);
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 48px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 34px;
}

.hero-copy {
  padding: 8px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0f766e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: keep-all;
}

h2 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.summary {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  word-break: keep-all;
}

.summary.compact {
  margin-bottom: 0;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.file-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.download-button {
  width: min(100%, 380px);
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, var(--button-bg), var(--button-bg-hover));
  color: var(--button-text);
  box-shadow:
    0 18px 34px -16px var(--button-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
  background: linear-gradient(180deg, #1e71ff, var(--button-bg-hover));
  box-shadow:
    0 24px 44px -18px var(--button-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.download-button:active,
.download-button.is-downloading {
  background: linear-gradient(180deg, var(--button-bg-hover), var(--button-bg-active));
  box-shadow:
    0 14px 28px -18px var(--button-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(1px);
}

.download-button:focus-visible {
  outline: 5px solid var(--button-ring);
  outline-offset: 5px;
}

.admin-button {
  width: min(100%, 320px);
  background: linear-gradient(180deg, var(--admin-bg), var(--admin-bg-hover));
  box-shadow:
    0 18px 34px -16px var(--admin-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 21px;
}

.admin-button:hover {
  background: linear-gradient(180deg, #12847b, var(--admin-bg-hover));
  box-shadow:
    0 24px 44px -18px var(--admin-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.admin-button:active,
.admin-button.is-downloading {
  background: linear-gradient(180deg, var(--admin-bg-hover), var(--admin-bg-active));
  box-shadow:
    0 14px 28px -18px var(--admin-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.download-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.download-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-guide {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px -42px rgba(23, 32, 51, 0.34);
}

.guide-item {
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(217, 226, 236, 0.76);
  border-radius: 8px;
  background: var(--surface);
}

.guide-number {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--button-bg);
  font-size: 18px;
  font-weight: 900;
}

.guide-item strong {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.2;
}

.guide-item span:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.admin-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px -44px var(--admin-shadow);
}

.admin-download[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .page-shell {
    justify-content: flex-start;
    padding-top: 34px;
  }

  .hero,
  .admin-download {
    grid-template-columns: 1fr;
  }

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

  .summary {
    margin-bottom: 28px;
    font-size: 18px;
  }

  .download-button {
    width: 100%;
    min-height: 74px;
    font-size: 22px;
  }

  .download-icon {
    width: 30px;
    height: 30px;
  }

  .quick-guide {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 18px;
  }

  .download-button {
    font-size: 20px;
  }

  .guide-item {
    padding: 15px;
  }
}
