:root {
  --bg: #0e1120;
  --surface: #161a2e;
  --surface-2: #1d2240;
  --line: #2a3152;
  --text: #eef1fa;
  --text-2: #c3c9de;
  --muted: #a3abc7;
  --blue: #3d7bff;
  --gold: #ffc94a;
  --cyan: #5ce1ff;
  --red: #ff5a6e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
}

.display {
  font-family: "Black Han Sans", sans-serif;
  font-weight: 400;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 상단 바 */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.nav nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav nav a {
  color: var(--text-2);
  text-decoration: none;
}

/* 첫 화면 */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 40%, rgba(92, 225, 255, 0.18), transparent 55%), linear-gradient(#151b3d, var(--bg));
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  text-shadow: 0 0 24px rgba(92, 225, 255, 0.35);
}

.hero .en {
  margin: 10px 0 18px;
  letter-spacing: 0.45em;
  color: var(--cyan);
  font-weight: 700;
}

.hero p.lead {
  margin: 0 0 24px;
  font-size: 19px;
  color: var(--text-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.badge small {
  color: var(--muted);
  font-weight: 500;
}

.phone {
  justify-self: center;
  width: min(300px, 80vw);
  border-radius: 36px;
  border: 8px solid #2a3152;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
}

/* 게미 말풍선 */
.gemi {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 28px 0 0;
}

.gemi img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  animation: hover 2.4s ease-in-out infinite;
}

.gemi p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #e9fbff;
  color: #10233a;
  font-weight: 600;
  font-size: 15px;
}

/* 기능 */
section.block {
  padding: 72px 0;
}

section.block h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

section.block .sub {
  margin: 0 0 32px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature b {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.feature span {
  color: var(--text-2);
  font-size: 14px;
}

.feature .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  flex: none;
  width: 220px;
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.shots figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}

.how {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.how li {
  list-style: none;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

.how li b {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.how li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

/* 문서 페이지 */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.doc h1 {
  font-size: 34px;
  margin: 0 0 6px;
}

.doc h2 {
  margin-top: 36px;
  font-size: 20px;
  color: var(--cyan);
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc .meta {
  color: var(--muted);
  font-size: 14px;
}

.doc .box {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer a {
  color: var(--text-2);
  margin-right: 14px;
}

@keyframes hover {
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .how {
    grid-template-columns: 1fr 1fr;
  }
  .nav nav a.hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gemi img {
    animation: none;
  }
}
