:root {
  --bg: #0e1116;
  --panel: #151a21;
  --panel-2: #1b222c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #edf2f8;
  --muted: #aab4c0;
  --soft: #778391;
  --green: #69d292;
  --blue: #6aa9ff;
  --cyan: #64d8e7;
  --amber: #f0c36a;
  --red: #ff7d7d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(35, 45, 59, 0.72) 0, rgba(14, 17, 22, 0) 420px),
    radial-gradient(circle at 18% 0%, rgba(100, 216, 231, 0.14), transparent 360px),
    radial-gradient(circle at 82% 10%, rgba(105, 210, 146, 0.12), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 22, 0.84);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(105, 210, 146, 0.95), rgba(100, 216, 231, 0.52)),
    linear-gradient(45deg, transparent 46%, rgba(14, 17, 22, 0.35) 47%, rgba(14, 17, 22, 0.35) 53%, transparent 54%);
  box-shadow: 0 0 0 1px rgba(105, 210, 146, 0.18), 0 10px 30px rgba(100, 216, 231, 0.18);
}

nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

nav a {
  padding: 8px 0;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

.hero,
.section,
.page-hero,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 70px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.25fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  border: 1px solid rgba(100, 216, 231, 0.22);
  background: rgba(100, 216, 231, 0.07);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(105, 210, 146, 0.9);
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy,
.lead,
.section-head p,
.page-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-copy,
.page-copy {
  max-width: 660px;
  color: #c5ced8;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.button.primary {
  border-color: rgba(105, 210, 146, 0.54);
  background: linear-gradient(135deg, rgba(105, 210, 146, 0.96), rgba(100, 216, 231, 0.86));
  color: #061015;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #10151d;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-gif-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(100, 216, 231, 0.13), rgba(105, 210, 146, 0.06)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    #10151d;
}

.hero-gif-slot .hero-gif {
  height: 100%;
  aspect-ratio: auto;
  background: transparent;
}

.hero-gif-slot.is-placeholder .hero-gif {
  opacity: 0;
}

.hero-gif-placeholder {
  position: absolute;
  inset: 18px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed rgba(100, 216, 231, 0.55);
  border-radius: 7px;
  color: #dcefff;
  text-align: center;
  pointer-events: none;
}

.hero-gif-slot.is-placeholder .hero-gif-placeholder {
  display: grid;
}

.hero-gif-placeholder strong {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.hero-gif-placeholder small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(21, 26, 33, 0.9);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -2px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.stat-terrain {
  color: var(--green);
}

.stat-place {
  color: var(--cyan);
}

.stat-dungeon {
  color: var(--amber);
}

.stat-export {
  color: var(--blue);
}

.stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.22;
}

.stat span,
.card p,
.feature p,
.callout p,
.detail p,
.mini p {
  color: var(--muted);
  font-size: 14px;
}

.stat span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 220px;
  line-height: 1.45;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.intro-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--intro-delay, 0ms);
}

.hero .shot.intro-item,
.page-hero .shot.intro-item {
  transform: perspective(1200px) translateY(22px) scale(0.985);
}

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

.hero .shot.intro-item.is-visible,
.page-hero .shot.intro-item.is-visible {
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1);
}

@media (hover: hover) {
  .stat:hover,
  .card:hover,
  .image-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 216, 231, 0.3);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
      rgba(21, 26, 33, 0.94);
  }

  .card:hover {
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
  }

  .stat:hover .stat-icon img,
  .image-tile:hover img,
  .card:hover img {
    transform: scale(1.035);
  }
}

.section {
  padding: 78px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

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

.card,
.feature,
.callout,
.detail,
.mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 220ms ease;
}

.card-body,
.feature,
.callout,
.detail,
.mini {
  padding: 20px;
}

.tag {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 18px;
}

.page-hero {
  padding: 54px 0 28px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(500px, 1fr);
  gap: 34px;
  align-items: center;
}

.page-kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 14px;
}

.page-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #d5dee9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.focus-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.86);
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.focus-line {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--text);
}

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

.point-list {
  display: grid;
  gap: 10px;
}

.point {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 13px;
}

.point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.point span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  padding: 14px;
}

.flow-item small {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 800;
}

.flow-item strong {
  display: block;
  font-size: 14px;
}

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

.image-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.9);
  cursor: zoom-in;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.image-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 220ms ease;
}

.image-tile span {
  display: block;
  padding: 12px 13px;
  color: #d8e0e9;
  font-size: 13px;
  font-weight: 650;
}

.page-hero .shot {
  cursor: zoom-in;
}

.hero .shot {
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.hero .shot.is-depth-active {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.page-hero .shot:focus-visible,
.image-tile:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 26px;
  background: rgba(4, 7, 10, 0.82);
  backdrop-filter: blur(16px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-panel {
  position: relative;
  width: min(1180px, 100%);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #080c11;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.lightbox-caption {
  margin-top: 12px;
  color: #eef4fb;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.78);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(100, 216, 231, 0.6);
  background: rgba(21, 30, 39, 0.92);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 12, 17, 0.72);
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(100, 216, 231, 0.6);
  background: rgba(21, 30, 39, 0.92);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-nav[hidden] {
  display: none;
}

.compact {
  padding-top: 34px;
}

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

.wide {
  grid-column: 1 / -1;
}

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

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

li + li {
  margin-top: 8px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.next-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 16px;
  color: var(--text);
  font-weight: 750;
}

.next-links small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}

.swap-guide {
  margin-top: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

code {
  color: #dbe8f8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  padding: 2px 5px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

footer {
  padding: 70px 0 36px;
  color: var(--soft);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-grid,
  .section-head,
  .detail-grid,
  .showcase-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .stats,
  .card-grid,
  .image-strip,
  .feature-list,
  .flow-strip,
  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar-inner,
  .hero,
  .stats,
  .section,
  .page-hero,
  footer {
    width: min(100% - 28px, var(--max));
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

    .stats,
    .card-grid,
    .image-strip,
    .feature-list,
    .flow-strip,
    .next-links {
      grid-template-columns: 1fr;
    }

  .stat {
    min-height: auto;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-caption {
    font-size: 13px;
  }
}

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

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

  .intro-item,
  .hero .shot.intro-item,
  .hero .shot.intro-item.is-visible,
  .page-hero .shot.intro-item,
  .page-hero .shot.intro-item.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero .shot {
    transform: none;
  }
}
