* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e4e8ee;
  --line-blue: rgba(69, 179, 231, 0.4);
  --text: #0f1522;
  --muted: #5f6b7d;
  --blue: #45b3e7;
  --sky: #7cc8f0;
  --blue-deep: #1f6ea8;
  --navy: #0c1f33;
  --navy-2: #122b45;
  --blue-soft: rgba(69, 179, 231, 0.09);
  --font: 'Noto Sans KR', 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

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

/* ── CUSTOM CURSOR ── */

@media (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: block;
  }
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(12, 31, 51, 0.35);
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--spring), height 0.2s var(--spring), background 0.2s;
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(69, 179, 231, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--spring), height 0.25s var(--spring), border-color 0.25s, background 0.25s, opacity 0.3s;
  opacity: 0;
}

body.cursor-on .cursor-dot,
body.cursor-on .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-dot {
  width: 4px;
  height: 4px;
}

body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(69, 179, 231, 0.9);
  background: rgba(69, 179, 231, 0.07);
}

body.cursor-down .cursor-ring {
  width: 28px;
  height: 28px;
  border-color: var(--blue);
  background: rgba(69, 179, 231, 0.16);
}

::selection {
  background: rgba(69, 179, 231, 0.3);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #c9d8ea;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── TOP BAR ── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  pointer-events: none;
}

.topbar-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: drop-shadow(0 6px 16px rgba(69, 179, 231, 0.3));
  pointer-events: auto;
  transition: transform 0.35s var(--spring);
}

.topbar-logo:hover {
  transform: scale(1.07) rotate(-4deg);
}

.bgm-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  pointer-events: auto;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--spring);
}

.bgm-btn:hover {
  border-color: var(--line-blue);
  color: var(--blue-deep);
  transform: translateY(-2px);
}

.bgm-btn:active {
  transform: scale(0.92);
}

.bgm-btn svg {
  width: 19px;
  height: 19px;
}

.bgm-btn .icon-mute {
  display: none;
}

.bgm-btn.muted .icon-sound {
  display: none;
}

.bgm-btn.muted .icon-mute {
  display: block;
}

.bgm-btn.playing {
  color: var(--blue-deep);
}

/* ── HERO ── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 20px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(69, 179, 231, 0.06), transparent 45%),
    radial-gradient(600px 400px at 50% 30%, rgba(69, 179, 231, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue-deep);
  margin-bottom: 26px;
  animation: fadeUp 0.9s var(--ease) both;
}

.title {
  font-weight: 900;
  font-size: clamp(40px, 7.5vw, 80px);
  line-height: 1.22;
  letter-spacing: -2px;
  margin-bottom: 22px;
  animation: fadeUp 0.9s var(--ease) 0.1s both;
}

.title-mark {
  position: relative;
  color: var(--blue-deep);
  white-space: nowrap;
}

.title-mark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  opacity: 0.28;
  z-index: -1;
  border-radius: 3px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sub {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 42px;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}

.hero-foot {
  margin-top: 56px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #a3b0c0;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), border-color 0.3s, background 0.3s;
  will-change: transform;
}

.btn:active {
  transform: scale(0.95);
}

.btn-copy {
  background: var(--navy);
  color: #ffffff;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 10px 28px rgba(12, 31, 51, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}

.btn-copy:hover::before {
  transform: translateX(130%);
}

.btn-copy:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(12, 31, 51, 0.32);
}

.btn-ip {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
  padding-right: 16px;
  color: #ffffff;
}

.btn-copy-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #04121e;
  font-size: 14px;
  font-weight: 900;
  border-radius: calc(var(--radius) - 2px);
  transition: background 0.3s;
}

.btn-copy-box.copied {
  background: #4ade80;
}

.btn-copy-box::before {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn-copy-box.copied::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn-discord {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 14px 22px;
  gap: 10px;
}

.btn-discord:hover {
  border-color: var(--line-blue);
  transform: translateY(-3px);
}

.btn-dc-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #5865f2;
  border-radius: 6px;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.35s var(--spring);
}

.btn-discord:hover .btn-dc-icon {
  transform: rotate(-8deg) scale(1.08);
}

.btn-dc-icon svg {
  width: 17px;
  height: 17px;
}

.btn-dc-text {
  font-weight: 700;
}

.btn-white {
  background: #ffffff;
  color: var(--blue-deep);
  padding: 13px 26px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 40, 80, 0.3);
}

.btn-white:hover {
  transform: translateY(-3px);
}

/* ── SECTIONS ── */

section {
  position: relative;
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-no {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-head h2 {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  letter-spacing: -1px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}

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

/* ── ABOUT ── */

.about {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.35s var(--spring), border-color 0.3s, box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-blue);
  box-shadow: 0 16px 38px rgba(30, 70, 110, 0.09);
}

.card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 14px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--blue-soft);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: transform 0.35s var(--spring);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-6deg);
}

.card h3 {
  font-weight: 900;
  font-size: 16.5px;
  margin-bottom: 7px;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ── STEPS ── */

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 250px;
  text-align: center;
  padding: 0 18px;
}

.step-num {
  display: block;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(69, 179, 231, 0.6);
  margin-bottom: 12px;
}

.step h3 {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
}

.step-line {
  flex: 0 0 70px;
  height: 1.5px;
  background: var(--line-blue);
  margin-top: 18px;
}

/* ── INFO ── */

.info {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-card {
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: 0 28px 70px rgba(12, 31, 51, 0.35);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 80% 0%, rgba(69, 179, 231, 0.22), transparent 65%);
  pointer-events: none;
}

.info-ip-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
}

.info-ip {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 1.5px;
  color: #ffffff;
}

.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: transform 0.35s var(--spring), background 0.3s;
}

.ip-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.ip-copy:active {
  transform: scale(0.93);
}

.ip-copy svg {
  width: 15px;
  height: 15px;
}

.info-row {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.info-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-key {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
}

.info-val {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

/* ── CTA ── */

.cta {
  padding-bottom: 90px;
}

.cta-inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(69, 179, 231, 0.09), transparent 65%);
  pointer-events: none;
}

.cta-inner h2 {
  position: relative;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.4;
  letter-spacing: -1px;
  margin-bottom: 30px;
}

.cta-inner .btn {
  position: relative;
  z-index: 2;
}

/* ── MODAL ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 36, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  min-width: min(340px, 90vw);
  padding: 44px 40px 52px;
  text-align: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 30px 80px rgba(5, 15, 35, 0.45);
  overflow: hidden;
  transform: scale(0.88) translateY(14px);
  transition: transform 0.4s var(--spring);
}

.modal-overlay.open .modal-card {
  transform: none;
}

.modal-icon {
  font-size: 42px;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.modal-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.modal-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.modal-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.modal-overlay.open .modal-bar span {
  width: 100%;
  transition: width 3s linear;
}

/* ── FOOTER ── */

.footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
}

.footer-name {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--blue-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9aa7b8;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer-credit {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: #aab6c5;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .step {
    max-width: none;
  }

  .step-line {
    flex: none;
    width: 1.5px;
    height: 34px;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  section {
    padding: 80px 0;
  }

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

  .actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    width: 100%;
  }

  .btn-copy {
    justify-content: space-between;
    padding-left: 20px;
  }

  .info-card {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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