:root {
  --ink: #f7fbff;
  --muted: #9dafc6;
  --night: #050816;
  --panel: rgba(12, 19, 42, 0.78);
  --panel-solid: #0c132a;
  --line: rgba(151, 224, 255, 0.16);
  --cyan: #69e6ff;
  --mint: #6ff7bf;
  --gold: #ffd66b;
  --violet: #a78bfa;
  --danger: #ff9b9b;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 6%, rgba(105, 230, 255, 0.13), transparent 26rem),
    radial-gradient(circle at 8% 34%, rgba(167, 139, 250, 0.12), transparent 30rem),
    linear-gradient(180deg, #071126 0%, var(--night) 46%, #030510 100%);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

a:hover {
  color: var(--cyan);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #050816;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(151, 224, 255, 0.08);
  background: rgba(5, 8, 22, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner,
.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(105, 230, 255, 0.5);
  border-radius: 12px 17px 12px 17px;
  background: linear-gradient(145deg, rgba(105, 230, 255, 0.2), rgba(167, 139, 250, 0.28));
  box-shadow: inset 0 0 20px rgba(105, 230, 255, 0.1), 0 0 28px rgba(105, 230, 255, 0.12);
  transform: rotate(-7deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  width: 17px;
  height: 17px;
  border: 3px solid var(--cyan);
  border-top-color: var(--gold);
}

.brand-mark::after {
  width: 6px;
  height: 6px;
  background: var(--ink);
  box-shadow: 0 -13px 0 -1px var(--gold);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(105, 230, 255, 0.1);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(72px, 11vw, 136px);
}

.eyebrow,
.status-pill,
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(105, 230, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  padding: 8px 12px;
}

.eyebrow::before,
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

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

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(3.3rem, 8vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--mint) 46%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 630px;
  color: #c1cde0;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions,
.platforms,
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(105, 230, 255, 0.5);
}

.button.primary {
  color: #04101b;
  border-color: transparent;
  background: linear-gradient(110deg, var(--cyan), var(--mint));
  box-shadow: 0 15px 36px rgba(105, 230, 255, 0.17);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.045);
}

.platforms {
  margin-top: 24px;
}

.platform-pill {
  color: var(--muted);
  letter-spacing: 0;
  background: transparent;
}

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

.orbit {
  position: absolute;
  width: min(94%, 510px);
  aspect-ratio: 1;
  border: 1px solid rgba(105, 230, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(105, 230, 255, 0.08);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.17);
}

.orbit::before {
  inset: 12%;
}

.orbit::after {
  inset: 27%;
}

.game-card {
  position: relative;
  z-index: 2;
  width: min(88%, 390px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(105, 230, 255, 0.24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 214, 107, 0.16), transparent 24%),
    linear-gradient(180deg, #1b4b91 0%, #1f79b0 38%, #9ce7f7 100%);
  box-shadow: var(--shadow), inset 0 0 50px rgba(255, 255, 255, 0.07);
  transform: rotate(2deg);
}

.game-card::before {
  content: "WORLD #1";
  position: absolute;
  top: 22px;
  left: 24px;
  color: white;
  font-size: 1.16rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.game-card::after {
  content: "UP";
  position: absolute;
  top: 23px;
  right: 24px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.climber {
  position: absolute;
  z-index: 3;
  left: 52%;
  top: 37%;
  width: 62px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 12px 28px rgba(5, 8, 22, 0.28), 0 -20px 0 -13px var(--gold);
}

.climber::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10204a;
  box-shadow: 20px 0 #10204a;
}

.climber::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 12px;
  width: 22px;
  height: 9px;
  border-bottom: 3px solid #10204a;
  border-radius: 50%;
}

.trail {
  position: absolute;
  z-index: 2;
  left: 36%;
  top: 46%;
  width: 110px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.7), var(--cyan));
  transform: rotate(-24deg);
  filter: blur(1px);
}

.ledge {
  position: absolute;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9f8ff, #7e71e7);
  box-shadow: 0 7px 14px rgba(18, 24, 82, 0.25);
}

.ledge.one { width: 120px; left: 12%; bottom: 16%; }
.ledge.two { width: 150px; right: 8%; bottom: 31%; }
.ledge.three { width: 105px; left: 9%; bottom: 47%; }
.ledge.four { width: 132px; right: 10%; top: 25%; }

.world-rank {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 13px;
  color: white;
  background: rgba(5, 8, 22, 0.52);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 850;
}

.section {
  padding-block: clamp(76px, 10vw, 124px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2,
.legal-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-heading p,
.legal-hero p {
  color: var(--muted);
}

.feature-grid,
.link-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.link-card,
.support-card,
.legal-content,
.notice-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 26, 55, 0.8), rgba(8, 13, 31, 0.76));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.feature-card,
.link-card,
.support-card {
  padding: 25px;
}

.feature-number {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card h3,
.link-card h3,
.support-card h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.feature-card p,
.link-card p,
.support-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.link-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  color: var(--ink);
  transform: translateY(-4px);
  border-color: rgba(105, 230, 255, 0.38);
}

.link-card .arrow {
  color: var(--cyan);
  font-weight: 900;
}

.launch-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid rgba(105, 230, 255, 0.22);
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(105, 230, 255, 0.12), rgba(167, 139, 250, 0.13));
}

.launch-panel::after {
  content: "#1";
  position: absolute;
  right: -20px;
  bottom: -80px;
  color: rgba(255, 255, 255, 0.045);
  font-size: 14rem;
  font-weight: 950;
  line-height: 1;
}

.launch-panel h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.launch-panel p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
}

.launch-badge {
  position: relative;
  z-index: 1;
  justify-self: end;
  padding: 18px 20px;
  border: 1px solid rgba(255, 214, 107, 0.34);
  border-radius: 18px;
  color: var(--gold);
  background: rgba(255, 214, 107, 0.07);
  font-weight: 900;
  text-align: center;
}

.legal-hero {
  padding: clamp(72px, 10vw, 120px) 0 44px;
}

.legal-hero .updated {
  display: block;
  margin-top: 16px;
  color: #7f91a9;
  font-size: 0.86rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
  padding-bottom: 100px;
}

.legal-content {
  padding: clamp(24px, 5vw, 54px);
}

.legal-content section + section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  color: #bac7d9;
}

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

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 610px;
  background: rgba(2, 5, 16, 0.24);
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  color: var(--ink) !important;
  background: rgba(105, 230, 255, 0.055);
}

tr:last-child td {
  border-bottom: 0;
}

.legal-nav {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 14, 33, 0.74);
}

.legal-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.legal-nav a {
  display: block;
  padding: 7px 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.notice-box {
  margin: 22px 0;
  padding: 20px;
  border-color: rgba(255, 214, 107, 0.28);
  background: rgba(255, 214, 107, 0.055);
}

.notice-box strong {
  color: var(--gold);
}

.notice-box.danger {
  border-color: rgba(255, 155, 155, 0.26);
  background: rgba(255, 155, 155, 0.05);
}

.notice-box.danger strong {
  color: var(--danger);
}

.contact-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-line a,
.legal-content a:not(.button),
.support-card a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(105, 230, 255, 0.35);
  text-underline-offset: 3px;
}

.delete-steps {
  counter-reset: delete-step;
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.delete-steps li {
  counter-increment: delete-step;
  position: relative;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.delete-steps li::before {
  content: counter(delete-step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #04101b;
  background: var(--cyan);
  font-weight: 950;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(151, 224, 255, 0.09);
  background: rgba(3, 5, 16, 0.65);
}

.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding: 34px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.83rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 84px;
  }

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

  .game-visual {
    min-height: 520px;
  }

  .feature-grid,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .shell,
  .footer-inner {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 68px;
  }

  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(6, 10, 26, 0.98);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    min-height: auto;
    padding-block: 68px 84px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.3rem);
  }

  .game-visual {
    min-height: 470px;
  }

  .game-card {
    min-height: 440px;
  }

  .feature-grid,
  .link-grid,
  .support-grid,
  .launch-panel {
    grid-template-columns: 1fr;
  }

  .launch-badge {
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-content {
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  .game-visual {
    min-height: 410px;
  }

  .game-card {
    width: 94%;
    min-height: 390px;
    border-radius: 26px;
  }

  .climber {
    width: 54px;
  }
}

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

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111827;
    background: white;
  }

  body::before,
  .site-header,
  .site-footer,
  .legal-nav {
    display: none;
  }

  .legal-content {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .legal-content p,
  .legal-content li,
  .legal-content td,
  .legal-content th {
    color: #1f2937;
  }
}
