:root {
  color-scheme: dark;
  --bg: #081018;
  --bg-2: #0d1620;
  --surface: rgba(12, 18, 28, 0.76);
  --surface-strong: rgba(16, 24, 36, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f2f6f8;
  --muted: #acb8c4;
  --subtle: #798795;
  --accent: #e35b52;
  --accent-soft: rgba(227, 91, 82, 0.16);
  --accent-strong: #ff7a70;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(227, 91, 82, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 22%, rgba(111, 145, 181, 0.11), transparent 22rem),
    radial-gradient(circle at 82% 82%, rgba(53, 98, 136, 0.16), transparent 30rem),
    linear-gradient(180deg, #091019 0%, #070d14 100%);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  opacity: 0.22;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #27323d, #111820);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
}

.brand-name {
  font-size: 19px;
}

.brand-name span {
  color: var(--muted);
  font-weight: 500;
}

.status-pill {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid rgba(227, 91, 82, 0.24);
  background: var(--accent-soft);
  color: #f6c7c2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(227, 91, 82, 0.14);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 405px);
  gap: 68px;
  align-items: center;
  padding: 46px 0 74px;
}

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

.eyebrow {
  margin: 0 0 20px;
  color: #d57373;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.13;
  letter-spacing: -0.065em;
  font-weight: 740;
}

.hero-copy h1 strong {
  color: #d95a5a;
  font-weight: inherit;
}

.lede {
  max-width: 500px;
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.lede-secondary {
  color: var(--subtle);
  font-size: 14px;
  max-width: 480px;
  line-height: 1.65;
}

.value-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.value-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 0 4px rgba(227, 91, 82, 0.12);
  transform: translateY(-50%);
}

.showcase-panel {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.showcase-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.showcase-kicker {
  margin: 0 0 6px;
  color: #d98d87;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.showcase-panel__header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.showcase-note {
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.showcase {
  display: grid;
  gap: 6px;
}

.showcase-stage {
  position: relative;
  min-height: 540px;
  perspective: 1600px;
  perspective-origin: 50% 46%;
  overflow: visible;
  isolation: isolate;
}

.showcase-orbit {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.showcase-orbit__ring {
  position: absolute;
  inset: 12% 16%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(227, 91, 82, 0.08), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 68%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.18);
  transform: translateZ(-180px);
  opacity: 0.85;
  pointer-events: none;
}

.app-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 360px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    var(--surface-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: auto -36px -44px auto;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(227, 91, 82, 0.12);
  filter: blur(4px);
  pointer-events: none;
}

.app-card__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  flex: 0 0 auto;
}

.app-card__icon svg {
  width: 30px;
  height: 30px;
}

.app-card__badge {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-card__eyebrow {
  margin: 0 0 8px;
  color: #d9b0ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-card__title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.app-card__category {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.app-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  word-break: keep-all;
}

.app-card__summary-en {
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.62;
}

.app-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.app-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce3ea;
  font-size: 13px;
}

.app-card__features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 0 4px rgba(227, 91, 82, 0.12);
  flex: 0 0 auto;
}

.app-card__footer {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-card__slug {
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-card__action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(227, 91, 82, 0.28);
  background: rgba(227, 91, 82, 0.12);
  color: #f7c7c2;
  font-size: 13px;
  font-weight: 700;
}

.app-card[data-position="active"] {
  opacity: 1;
  z-index: 3;
  border-color: var(--border-strong);
  pointer-events: auto;
}

.app-card[data-position="next"] {
  opacity: 0.18;
  filter: blur(0.35px) saturate(0.92);
  z-index: 2;
  pointer-events: none;
}

.app-card[data-position="previous"] {
  opacity: 0.08;
  filter: blur(0.6px) saturate(0.9);
  z-index: 1;
  pointer-events: none;
}

.app-card[data-position="hidden"] {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.showcase-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-tab {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.showcase-tab:hover,
.showcase-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.showcase-tab[aria-selected="true"],
.showcase-tab[aria-pressed="true"] {
  border-color: rgba(227, 91, 82, 0.35);
  background: rgba(227, 91, 82, 0.12);
  color: #ffe0dd;
}

.showcase-tab__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.showcase-progress {
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.noscript-note {
  margin: 16px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
}

.footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--subtle);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__right {
  text-align: right;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 32px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
  }

  .showcase-stage {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 8px;
  }

  .page-shell {
    width: min(100% - 28px, 760px);
  }

  .hero-copy h1 {
    font-size: clamp(36px, 11vw, 54px);
    word-break: keep-all;
  }

  .lede {
    font-size: 16px;
  }

  .showcase-panel {
    padding: 18px;
  }

  .showcase-panel__header {
    flex-direction: column;
  }

  .showcase-note {
    text-align: left;
  }

  .showcase-stage {
    min-height: 510px;
  }

  .app-card {
    padding: 18px;
  }

  .app-card__title {
    font-size: 30px;
  }

  .footer {
    min-height: auto;
    padding: 18px 0 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__right {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .status-pill {
    padding: 0 11px;
    font-size: 12px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .showcase-stage {
    min-height: 550px;
  }

  .app-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .app-card,
  .app-card[data-position="active"],
  .app-card[data-position="next"],
  .app-card[data-position="previous"],
  .app-card[data-position="hidden"] {
    transition: none !important;
  }
}

@media (min-width: 901px) {
  .app-card[data-position="active"] {
    filter: none;
  }
}
