:root {
  --accent: #7C5CFC;
  --accent2: #3AA6FF;
  --bg: #0b0b12;
  --bg-soft: #14141f;
  --card: #1a1a26;
  --text: #f3f3f7;
  --text-dim: #a5a5b8;
  --border: #2a2a3a;
  --radius: 20px;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.back-link {
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  transition: border-color .15s ease, color .15s ease;
}
.back-link:hover { border-color: var(--accent); color: var(--text); }

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  margin-bottom: 20px;
}

.app-name {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
}

.app-name-ko {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
  margin: 0 0 18px;
}

.tagline {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 auto 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #0b0b12;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .15s ease, opacity .15s ease;
}
.cta:active { transform: scale(0.97); }
.cta.disabled {
  background: var(--card);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge-platform {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

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

.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.5;
}

.features li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.footer {
  text-align: center;
  padding: 48px 0 24px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* Hub page */
.hub-title {
  font-size: 30px;
  font-weight: 800;
  margin: 8px 0 6px;
}
.hub-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.app-list {
  display: grid;
  gap: 16px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.app-card:hover { border-color: var(--card-accent, var(--accent)); transform: translateY(-1px); }

.app-card .app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0;
  flex-shrink: 0;
}

.app-card .meta { flex: 1; min-width: 0; }
.app-card .meta .name { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.app-card .meta .tag {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card .arrow {
  font-size: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  font-size: 14px;
}
