:root {
  color-scheme: dark;

  --bg: #080a12;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #aab0c5;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #8ea7ff;
  --accent-2: #c7d2ff;

  --yellow-text: #ffe08a;
  --yellow-line: rgba(255, 224, 138, 0.34);
  --yellow-bg: rgba(255, 224, 138, 0.10);

  --green-text: #9ff3b4;
  --green-line: rgba(159, 243, 180, 0.40);
  --green-bg: rgba(159, 243, 180, 0.13);

  --orange-text: #ffbd7a;
  --orange-line: rgba(255, 189, 122, 0.40);
  --orange-bg: rgba(255, 189, 122, 0.12);

  --red-text: #ff8f8f;
  --red-line: rgba(255, 143, 143, 0.40);
  --red-bg: rgba(255, 143, 143, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(142, 167, 255, 0.28), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(177, 120, 255, 0.20), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(90, 210, 255, 0.12), transparent 34%),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.wrap {
  width: min(960px, 100%);
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent-2);
  font-size: 13px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

/* Discord area */

.discord-section {
  display: grid;
  justify-items: center;
  gap: 24px;
  margin: 30px auto 0;
}

.discord-speech {
  position: relative;
  width: fit-content;
  max-width: min(560px, 100%);
  padding: 14px 22px;
  color: #151827;
  opacity: 0.94;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.22));
}

.discord-speech::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #f6f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.discord-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  z-index: 0;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  background: #f6f8ff;
  border-bottom-right-radius: 4px;
}

.discord-speech p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(21, 24, 39, 0.78);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 650;
  word-break: keep-all;
  text-align: center;
}

.discord-bubble {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 17px 9px 10px;
  border: 1px solid rgba(142, 167, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.96), rgba(142, 167, 255, 0.86));
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(88, 101, 242, 0.22);
  transition:
    transform 140ms ease,
    filter 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.discord-bubble:hover {
  transform: scale(1.035);
  filter: brightness(1.08);
  border-color: rgba(199, 210, 255, 0.52);
  box-shadow: 0 20px 54px rgba(88, 101, 242, 0.28);
}

.discord-bubble[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.82;
  pointer-events: none;
}

.discord-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  flex: 0 0 auto;
}

.discord-icon img {
  width: 17px;
  height: 17px;
  display: block;
  object-fit: contain;
}

.discord-text {
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  padding: 22px;
  min-height: 100%;
}

.client-card {
  display: flex;
  flex-direction: column;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  word-break: keep-all;
}

.card .download-status {
  margin: 0;
}

.actions {
  display: grid;
  gap: 10px;
}

.client-card .actions {
  margin-top: 0;
}

/* Buttons */

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.button:hover {
  transform: scale(1.035);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.button.primary {
  background: linear-gradient(135deg, rgba(142, 167, 255, 0.95), rgba(199, 210, 255, 0.9));
  color: #101426;
  border-color: transparent;
}

.button.download-windows {
  background: linear-gradient(135deg, rgba(0, 120, 215, 0.90), rgba(92, 173, 255, 0.78));
  color: #ffffff;
  border-color: rgba(92, 173, 255, 0.34);
}

.button.download-mac-arm64 {
  background: linear-gradient(135deg, rgba(164, 120, 255, 0.88), rgba(255, 176, 228, 0.74));
  color: #ffffff;
  border-color: rgba(255, 176, 228, 0.34);
}

.button.download-mac-x64 {
  background: linear-gradient(135deg, rgba(230, 234, 242, 0.805), rgba(170, 180, 198, 0.78));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
}

.button.download-windows:not(.disabled):hover,
.button.download-mac-arm64:not(.disabled):hover,
.button.download-mac-x64:not(.disabled):hover {
  transform: scale(1.035);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

.button.loading {
  opacity: 0.78;
}

.button.disabled,
.button.download-windows.disabled,
.button.download-apple.disabled,
.button.download-intel.disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.10);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  filter: none;
}

.arrow {
  opacity: 0.75;
  white-space: nowrap;
}

/* Download status */

.download-status-wrap {
  display: flex;
  justify-content: center;
  min-height: 28px;
  margin-top: 14px;
  padding-top: 0;
}

.download-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  word-break: keep-all;
  text-align: center;
  opacity: 0.96;
}

.download-status.pending {
  color: var(--yellow-text);
  border-color: var(--yellow-line);
  background: var(--yellow-bg);
}

.download-status.success {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  color: var(--green-text);
  border-color: var(--green-line);
  background: var(--green-bg);
  font-size: 15px;
  font-weight: 900;
}

.download-status.warning {
  color: var(--orange-text);
  border-color: var(--orange-line);
  background: var(--orange-bg);
}

.download-status.error {
  color: var(--red-text);
  border-color: var(--red-line);
  background: var(--red-bg);
}

/* Footer */

.notice {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Mobile */

@media (max-width: 820px) {
  body {
    padding: 24px 14px;
  }

  .subtitle {
    font-size: 15px;
  }

  .discord-section {
    margin-top: 24px;
  }

  .discord-speech {
    padding: 13px 15px;
    border-radius: 20px;
  }

  .discord-speech p {
    font-size: 12px;
  }

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

  .card {
    padding: 20px;
  }
}
