:root {
  color-scheme: dark;
  --bg-1: #07070b;
  --bg-2: #0b0f1c;
  --bg-3: #111529;
  --glow-a: rgba(114, 90, 255, 0.35);
  --glow-b: rgba(0, 201, 255, 0.28);
  --glow-c: rgba(255, 118, 117, 0.25);
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --accent-1: #7f5bff;
  --accent-2: #2bd7ff;
  --accent-3: #ff7a85;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-pill: 999px;
  --radius-card: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-3), var(--bg-1));
}

body {
  overflow: hidden;
}

.page.light {
  --bg-1: #f5f6fb;
  --bg-2: #eef1f8;
  --bg-3: #e6ebf6;
  --glow-a: rgba(120, 118, 255, 0.25);
  --glow-b: rgba(0, 170, 255, 0.22);
  --glow-c: rgba(255, 152, 152, 0.2);
  --text: #141a2b;
  --muted: rgba(20, 26, 43, 0.7);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(20, 26, 43, 0.12);
  --accent-1: #4b46ff;
  --accent-2: #00a2ff;
  --accent-3: #ff7a85;
  --shadow: 0 24px 60px rgba(15, 20, 35, 0.15);
}

.page.light .hero {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 26, 43, 0.08);
}

.page.light .title {
  color: #141a2b;
  text-shadow: 0 0 12px rgba(20, 26, 43, 0.2);
}

.page.light .badge {
  color: rgba(20, 26, 43, 0.8);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.6);
}

.page.light .btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid rgba(20, 26, 43, 0.15);
  box-shadow: 0 12px 24px rgba(15, 20, 35, 0.12);
}

.page.light .scroll-hint,
.page.light .disclaimer {
  color: rgba(20, 26, 43, 0.55);
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
  background: linear-gradient(140deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.65;
  animation: floatGlow 24s ease-in-out infinite;
}

.bg::before {
  background: radial-gradient(circle at 30% 30%, var(--glow-a), transparent 70%);
  top: -10vmax;
  left: -12vmax;
}

.bg::after {
  background: radial-gradient(circle at 30% 30%, var(--glow-b), transparent 70%);
  bottom: -14vmax;
  right: -12vmax;
  animation-delay: -8s;
}

.page::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 70% 20%, var(--glow-c), transparent 60%);
  filter: blur(60px);
  opacity: 0.55;
  animation: floatGlowAlt 32s ease-in-out infinite;
  z-index: 0;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}

.marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 8px 0 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  min-width: max-content;
  animation: marqueeLeft 28s linear infinite;
}

.marquee-item {
  min-width: clamp(160px, 22vw, 220px);
  height: clamp(120px, 18vw, 160px);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.page.light .marquee-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(20, 26, 43, 0.12);
  color: rgba(20, 26, 43, 0.7);
}

.theme-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.theme-icon {
  font-size: 1rem;
}

.hero {
  padding: 36px 24px 28px;
  border-radius: var(--radius-card);
  background: rgba(10, 12, 24, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.badge {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(130, 140, 255, 0.35);
}

.catchphrase {
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  margin: 0 0 10px;
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.description {
  font-size: clamp(0.98rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 42ch;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-width: min(280px, 80vw);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(82, 140, 255, 0.35), 0 0 20px rgba(98, 184, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(82, 140, 255, 0.45), 0 0 30px rgba(98, 184, 255, 0.45);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeIn 2s ease;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
}

.disclaimer {
  position: absolute;
  bottom: 18px;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
  padding: 0 16px;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4vmax, 2vmax) scale(1.05);
  }
}

@keyframes floatGlowAlt {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3vmax, 3vmax) scale(1.08);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 52px 64px 44px;
  }

  .actions {
    flex-direction: row;
  }

  .btn {
    min-width: 220px;
  }
}

@media (max-width: 480px) {
  .page {
    padding-top: 56px;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
  }

  .hero {
    padding: 28px 20px 24px;
  }

  .scroll-hint {
    letter-spacing: 0.2em;
  }

  .marquee {
    gap: 12px;
  }

  .marquee-track {
    gap: 12px;
  }
}
