:root {
  --bg: #0b0f0e;
  --bg-soft: #101715;
  --surface: #111816;
  --surface-raised: #161f1c;
  --surface-strong: #1b2622;
  --surface-tint: #13211d;
  --ink: #f3f7f3;
  --muted: #a8b6ae;
  --muted-soft: #7d8b84;
  --line: rgba(229, 242, 233, 0.12);
  --line-strong: rgba(229, 242, 233, 0.2);
  --soot: #080c0b;
  --green: #2bb596;
  --green-dark: #123d35;
  --amber: #e1ad5f;
  --amber-dark: #8f5a24;
  --blue: #7da5c8;
  --code-bg: rgba(225, 173, 95, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(22, 31, 28, 0.96) 0, rgba(11, 15, 14, 0.98) 430px),
    linear-gradient(90deg, rgba(43, 181, 150, 0.09), transparent 38%, rgba(225, 173, 95, 0.08)),
    var(--bg);
  font-family:
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Noto Sans KR",
    system-ui,
    sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0, transparent 68%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 19, 17, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topbar:hover {
  border-color: rgba(43, 181, 150, 0.24);
  background: rgba(13, 19, 17, 0.88);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 178px;
  text-decoration: none;
}

.brand-avatar,
.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgba(43, 181, 150, 0.08);
  object-fit: cover;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.brand:hover .brand-avatar {
  box-shadow: 0 0 0 4px rgba(43, 181, 150, 0.18), 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.nav a.active,
.nav a:hover {
  color: #06100d;
  border-color: rgba(43, 181, 150, 0.4);
  background: var(--green);
}

.nav a:hover {
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.hero,
.guide-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 22, 0.82);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero {
  display: grid;
  gap: 18px;
  min-height: 292px;
  align-content: center;
  overflow: hidden;
  padding: 46px;
  border-color: rgba(43, 181, 150, 0.22);
  background:
    linear-gradient(135deg, rgba(21, 34, 30, 0.98), rgba(13, 19, 17, 0.98) 54%, rgba(20, 23, 18, 0.98)),
    var(--surface);
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(43, 181, 150, 0.8), rgba(225, 173, 95, 0.7), transparent);
}

.hero::after,
.guide-section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    radial-gradient(
      520px circle at var(--spot-x, 50%) var(--spot-y, 0%),
      rgba(43, 181, 150, 0.14),
      rgba(225, 173, 95, 0.06) 34%,
      transparent 68%
    );
  transition: opacity 0.22s ease;
}

.hero > *,
.guide-section > * {
  position: relative;
  z-index: 1;
}

.hero:hover,
.guide-section:hover {
  border-color: rgba(43, 181, 150, 0.36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.hero.spotlight-on::after,
.guide-section.spotlight-on::before,
.hero:hover::after,
.guide-section:hover::before {
  opacity: 1;
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
summary,
code {
  min-width: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  color: var(--ink);
  font-size: 64px;
  line-height: 1.06;
  word-break: keep-all;
}

h2 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
}

.hero p,
.guide-section p,
.guide-section li {
  color: var(--muted);
  line-height: 1.78;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  min-width: 0;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-links a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(43, 181, 150, 0.14), rgba(225, 173, 95, 0.08)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(229, 242, 233, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.hero-links a:hover {
  background:
    linear-gradient(135deg, rgba(43, 181, 150, 0.22), rgba(225, 173, 95, 0.12)),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(229, 242, 233, 0.26);
  transform: translateY(-2px);
}

.hero-links span {
  color: var(--muted);
  font-size: 13px;
}

.hero-links strong {
  color: #f6fbf7;
  font-size: 15px;
}

.guide-section {
  margin-top: 16px;
  padding: 34px;
}

.guide-section h2 + p {
  margin-top: 16px;
}

.guide-section ul,
.guide-section ol {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 24px;
}

.guide-section strong {
  color: #dce8e2;
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid rgba(225, 173, 95, 0.22);
  border-radius: 6px;
  color: #f0c987;
  background: var(--code-bg);
  font-family: inherit;
  font-weight: 900;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.command,
.permission-card,
.image-slot,
.prize-example div,
.faq-list details,
.flow-line span,
.final-flow span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.command-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.command {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 11px 12px;
  background: rgba(8, 12, 11, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.command code {
  margin: 0;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(43, 181, 150, 0.28);
  border-radius: 8px;
  color: #07110e;
  background: var(--green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.copy-button:hover {
  background: #43caaa;
  box-shadow: 0 10px 24px rgba(43, 181, 150, 0.22);
  transform: translateY(-1px);
}

.command:hover {
  border-color: rgba(225, 173, 95, 0.24);
  background: rgba(19, 33, 29, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.14);
  transform: translateX(2px);
}

.command:hover code {
  border-color: rgba(225, 173, 95, 0.36);
  background: rgba(225, 173, 95, 0.18);
}

.guide-image-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}

.guide-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 13, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.guide-image img {
  display: block;
  width: 100%;
  height: clamp(260px, 31vw, 430px);
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-strong);
  transition: border-color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.guide-image figcaption {
  margin-top: 6px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.guide-image:hover {
  border-color: rgba(43, 181, 150, 0.3);
  background: rgba(14, 22, 20, 0.88);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.guide-image:hover img {
  border-color: rgba(43, 181, 150, 0.34);
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.012);
}

.guide-image--single {
  margin: 18px auto 0;
  max-width: 760px;
}

.guide-image--single img {
  height: auto;
  object-fit: contain;
}

.guide-image-stack--product {
  align-items: start;
}

.guide-image--fit {
  grid-template-rows: auto auto;
}

.guide-image--fit img {
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.image-slot {
  display: grid;
  gap: 8px;
  min-height: 150px;
  margin-top: 16px;
  place-items: center;
  padding: 22px;
  text-align: center;
  background: var(--surface-tint);
}

.image-slot strong {
  color: var(--blue);
  font-size: 14px;
}

.image-slot span {
  color: var(--muted);
  font-weight: 900;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.flow-line,
.final-flow,
.prize-example {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

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

.flow-line span,
.final-flow span {
  display: grid;
  min-height: 70px;
  place-items: center;
  padding: 12px;
  color: #c8eee3;
  font-weight: 900;
  text-align: center;
  background: rgba(19, 33, 29, 0.78);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.flow-line span:hover,
.final-flow span:hover {
  border-color: rgba(43, 181, 150, 0.3);
  background: rgba(28, 52, 45, 0.82);
  transform: translateY(-1px);
}

.prize-example {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prize-example div {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 16px;
  background: rgba(19, 33, 29, 0.78);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.prize-example div:hover {
  border-color: rgba(225, 173, 95, 0.28);
  background: rgba(35, 42, 29, 0.88);
  transform: translateY(-1px);
}

.prize-example span {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 900;
}

.prize-example strong {
  color: var(--ink);
  font-size: 24px;
}

.permission-card {
  margin-top: 14px;
  padding: 18px;
  color: #c8eee3;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, rgba(43, 181, 150, 0.16), rgba(225, 173, 95, 0.09));
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.role-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 33, 29, 0.78);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.role-grid > div:hover {
  border-color: rgba(43, 181, 150, 0.28);
  background: rgba(22, 40, 35, 0.86);
  transform: translateY(-1px);
}

.role-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #c8eee3;
  font-size: 16px;
}

.role-grid ul {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  padding: 18px;
  background: rgba(8, 12, 11, 0.48);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.faq-list details:hover {
  border-color: rgba(43, 181, 150, 0.24);
  background: rgba(19, 33, 29, 0.72);
  transform: translateY(-1px);
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.final-section {
  border-color: rgba(43, 181, 150, 0.28);
  color: #fff;
  background: linear-gradient(135deg, #103a32, #101513 62%, #241a10);
}

.final-section p,
.final-section li {
  color: rgba(238, 246, 241, 0.82);
}

.final-section .final-flow span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 16px 6px;
  color: var(--muted-soft);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(320px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(8, 12, 11, 0.94);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero:hover,
  .guide-section:hover,
  .command:hover,
  .guide-image:hover,
  .flow-line span:hover,
  .final-flow span:hover,
  .prize-example div:hover,
  .role-grid > div:hover,
  .faq-list details:hover,
  .nav a:hover,
  .brand:hover .brand-avatar,
  .copy-button:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .flow-line,
  .final-flow,
  .image-grid,
  .guide-image-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .hero,
  .guide-section {
    padding: 24px;
    border-radius: 8px;
  }

  .hero {
    min-height: 260px;
  }

  h1 {
    font-size: 32px;
    max-width: 8em;
  }

  h2 {
    max-width: 10em;
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .nav {
    display: grid;
    width: 100%;
    justify-content: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a {
    display: block;
    min-width: 0;
    text-align: center;
  }

  .command {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .flow-line,
  .final-flow,
  .prize-example,
  .image-grid,
  .guide-image-stack,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .guide-image img {
    height: clamp(220px, 64vw, 330px);
  }

  .guide-image--single img {
    height: auto;
  }

  .guide-image--fit img {
    height: auto;
  }

  .footer {
    flex-direction: column;
  }
}
