:root {
  color: #f6f8fb;
  background: #07100f;
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #8d9d99;
  --mint: #76e1bd;
  --blue: #86b9ff;
  --violet: #b7a4ff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(71, 207, 163, 0.18), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(77, 116, 199, 0.14), transparent 30%),
    linear-gradient(160deg, #081312 0%, #070b0d 56%, #0a0d14 100%);
}

body::before {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

.shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 108px) 0 32px;
}

.hero { max-width: 760px; }

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(118, 225, 189, 0.4);
  border-radius: 15px;
  color: #06110e;
  background: linear-gradient(145deg, #a8f3da, #4bcaa0);
  box-shadow: 0 18px 50px rgba(71, 207, 163, 0.16);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.eyebrow, .card-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 610px;
  margin: 0;
  color: #a6b4b0;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.service-grid {
  display: grid;
  margin-top: clamp(48px, 8vw, 86px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 25, 26, 0.72);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  backdrop-filter: blur(16px);
}

.service-card::after {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--card-glow);
  content: "";
  filter: blur(12px);
  opacity: 0.18;
}

.service-card:hover, .service-card:focus-visible {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
  background: rgba(23, 34, 35, 0.92);
  transform: translateY(-7px);
}

.service-card.share { --card-glow: var(--mint); }
.service-card.whitelist { --card-glow: var(--blue); }
.service-card.studio { --card-glow: var(--violet); }
.service-card.admin { --card-glow: var(--blue); }

.card-index { color: rgba(255, 255, 255, 0.28); font-size: 0.76rem; font-weight: 800; }
.card-badge { position: absolute; top: 22px; right: 22px; padding: 6px 8px; border-radius: 999px; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.08em; }
.card-badge.public { color: var(--mint); background: rgba(118, 225, 189, 0.1); }
.card-badge.secure { color: var(--blue); background: rgba(134, 185, 255, 0.1); }
.card-badge.owner { color: var(--violet); background: rgba(183, 164, 255, 0.1); }

.service-card h2 { margin: 9px 0 12px; font-size: 1.6rem; letter-spacing: -0.04em; }
.service-card p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.service-card.whitelist .card-kicker { color: var(--blue); }
.service-card.studio .card-kicker { color: var(--violet); }
.service-card.admin .card-kicker { color: var(--blue); }
.card-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #dfe8e5; font-size: 0.82rem; font-weight: 800; }
.card-link span { font-size: 1.1rem; transition: transform 180ms ease; }
.service-card:hover .card-link span { transform: translateX(4px); }

footer { display: flex; margin-top: 32px; align-items: center; gap: 8px; color: #71807d; font-size: 0.72rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(118, 225, 189, 0.7); }

.subpage { display: grid; min-height: 100vh; place-items: center; }
.subpage-card { width: min(560px, calc(100% - 36px)); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: rgba(16, 25, 26, 0.86); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32); }
.subpage-card h1 { margin: 15px 0 12px; font-size: clamp(2rem, 7vw, 3.4rem); }
.subpage-card > p { margin: 0 0 25px; color: var(--muted); line-height: 1.7; }
.actions { display: grid; gap: 10px; }
.button { display: flex; min-height: 50px; padding: 0 17px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; font-size: 0.87rem; font-weight: 800; }
.button.primary { border: 0; color: #06110e; background: linear-gradient(135deg, #91edce, #4dcca3); }
.back-link { display: inline-block; margin-top: 23px; color: #8fa09b; font-size: 0.8rem; }

@media (max-width: 820px) {
  .service-grid, .service-grid.two { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1180px); padding-top: 36px; }
  .service-card { padding: 22px; border-radius: 18px; }
  .subpage-card { padding: 28px 22px; }
}
