/* deepdiver.co.kr 공용 스타일 — 위쪽은 원래 메인 페이지의 스타일 그대로 */
:root {
  --bg-main: #050816;
  --bg-section: #0b1020;
  --bg-card: #111827;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.12);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

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

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden; /* 이미지 둥근 영역 안에 맞추기 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none; /* 기존 배경 제거 */
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.7);
}

.logo-mark img.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 동그란 영역에 크롭해서 넣기 */
}

nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav a {
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #60a5fa, #22c55e);
  transition: width 0.2s ease-out;
}

nav a:hover {
  color: #e5e7eb;
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.6);
  background: radial-gradient(circle at top left, rgba(59,130,246,0.32), transparent);
  font-size: 0.8rem;
  color: #dbeafe;
}

main {
  flex: 1;
}

section {
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.section-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 560px;
}

/* Hero */

.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.7);
  color: #e5e7eb;
  font-size: 0.78rem;
  margin-bottom: 1.1rem;
}

.hero-tag-pill {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.8);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(to right, #60a5fa, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #9ca3af;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric {
  min-width: 110px;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.metric-value span {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 0.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #22c55e);
  color: white;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
}

.hero-right {
  position: relative;
  padding: 1.8rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top left, #1e293b, #020617);
  border: 1px solid rgba(51,65,85,0.8);
  box-shadow: 0 26px 80px rgba(15,23,42,0.9);
  overflow: hidden;
}

.hero-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
}

.hero-right-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-right-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1.2rem;
}

.hero-list {
  list-style: none;
  font-size: 0.82rem;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 0.32rem;
  background: #60a5fa;
}

.hero-bottom-note {
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px dashed rgba(51,65,85,0.8);
  padding-top: 0.7rem;
  margin-top: 0.4rem;
}

/* Generic components */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: linear-gradient(
    145deg,
    rgba(15,23,42,0.96),
    rgba(15,23,42,0.96),
    rgba(15,23,42,0.96)
  );
  border-radius: 1.1rem;
  border: 1px solid rgba(30,64,175,0.4);
  padding: 1.2rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: radial-gradient(circle at top left, #60a5fa, transparent 55%);
  pointer-events: none;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  border: 1px solid rgba(148,163,184,0.6);
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

ul.bullet {
  list-style: none;
  font-size: 0.88rem;
  display: grid;
  gap: 0.4rem;
}

ul.bullet li {
  display: flex;
  gap: 0.4rem;
}

ul.bullet li::before {
  content: "•";
  color: #60a5fa;
  margin-top: -0.05rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  padding: 0.18rem 0.6rem;
  font-size: 0.74rem;
  color: #9ca3af;
  background: rgba(15,23,42,0.85);
}

.muted {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.highlight {
  background: rgba(37,99,235,0.14);
  border-radius: 999px;
  padding: 0.09rem 0.55rem;
  font-size: 0.76rem;
  border: 1px solid rgba(59,130,246,0.6);
}

.inline-accent {
  color: #bfdbfe;
  font-weight: 500;
}

.bordered {
  border-radius: 1rem;
  border: 1px solid rgba(55,65,81,0.9);
  padding: 1.1rem 1.25rem;
  background: rgba(15,23,42,0.75);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.table th,
.table td {
  border: 1px solid rgba(55,65,81,0.9);
  padding: 0.5rem 0.55rem;
  text-align: center;
}

.table th {
  background: rgba(15,23,42,0.95);
  font-weight: 500;
  color: #e5e7eb;
}

.table td {
  color: #d1d5db;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.5);
}

/* Footer */

footer {
  border-top: 1px solid rgba(15,23,42,0.9);
  background: #020617;
  padding: 1.5rem 1.25rem 2.5rem;
  color: #6b7280;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  header {
    position: fixed;
  }

  .hero {
    padding-top: 6.5rem;
  }


  nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-right {
    padding: 1.4rem;
  }

  section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== 여러 페이지로 나눈 뒤 더한 스타일 (위쪽은 원래 메인 페이지 스타일 그대로) ===== */

/* 위쪽 메뉴: 지금 보고 있는 메뉴 표시 */
nav a.active { color: #e5e7eb; }
nav a.active::after { width: 100%; }
a.logo { color: inherit; }

/* 모바일에서도 메뉴를 보여 준다 (원래는 숨김) — 로고 아래 한 줄로 */
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; row-gap: 0.35rem; }
  nav { display: flex; gap: 1rem; font-size: 0.85rem; }
  .hero { padding-top: 8rem; }
  body.sub main { padding-top: 5.5rem; }
}

/* ---------- 목록 (솔루션·게임 공용) ---------- */
.list { display: grid; gap: 1rem; }

.list-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(30, 64, 175, 0.4);
  background: rgba(15, 23, 42, 0.92);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.list-row::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: radial-gradient(circle at top left, var(--row-glow, #60a5fa), transparent 55%);
  pointer-events: none;
}
.list-row.game { --row-glow: #22c55e; }
.list-row:hover { border-color: rgba(96, 165, 250, 0.8); transform: translateY(-2px); }

.list-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}
/* 이미지가 없는 항목(솔루션)은 글자 배지 */
.list-icon.badge {
  background: radial-gradient(circle at 30% 20%, #3b82f6, #1e3a8a 60%, #0b1020);
  border: 1px solid rgba(96, 165, 250, 0.6);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: #e0f2fe;
}

.list-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.list-name small { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-left: 0.4rem; }
.list-kind { font-size: 0.78rem; color: #6b7280; margin: 0.1rem 0 0.45rem; }
.list-summary { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.6rem; }

.list-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; min-width: 150px; }
.list-actions .btn-primary, .list-actions .btn-ghost { justify-content: center; font-size: 0.85rem; padding: 0.55rem 1rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.status.live { background: rgba(22, 163, 74, 0.16); color: #bbf7d0; border: 1px solid rgba(34, 197, 94, 0.5); }
.status.soon { background: rgba(234, 179, 8, 0.12); color: #fde68a; border: 1px solid rgba(234, 179, 8, 0.5); }

.btn-disabled { opacity: 0.55; cursor: default; pointer-events: none; box-shadow: none; }

/* 메인의 사업 분야: 솔루션 / 게임 두 묶음 */
.biz-group + .biz-group { margin-top: 2.5rem; }
.biz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.biz-head h3 { font-size: 1.15rem; }
.biz-head a { font-size: 0.85rem; color: #93c5fd; }

/* ---------- 게임 소개 페이지 ---------- */
.game-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.game-hero-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.game-hero-head .list-icon { width: 88px; height: 88px; border-radius: 20px; }
.game-hero .hero-title { margin-bottom: 0.2rem; }
.game-hero .hero-title small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); }

.phone-shot {
  justify-self: center;
  width: min(300px, 80%);
  border-radius: 28px;
  border: 6px solid #0f172a;
  box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.9), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.shots { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.shots img { display: block; height: 460px; width: auto; border-radius: 18px; border: 1px solid rgba(51, 65, 85, 0.9); }
.shots figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.45rem; }

.feature-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }

@media (max-width: 900px) {
  .game-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 640px) {
  .list-row { grid-template-columns: 72px minmax(0, 1fr); gap: 0.9rem; }
  .list-icon { width: 72px; height: 72px; border-radius: 18px; }
  .list-icon.badge { font-size: 1.15rem; }
  .list-actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .list-actions > * { flex: 1; }
  .shots img { height: 380px; }
}
