/* Revline DDU 소개·사용법·개인정보처리방침 사이트 공용 스타일 (앱과 같은 어두운 화면 + 빨간 강조색) */

@font-face {
  font-family: "Revline Digital";
  src: url("RevlineDigital-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0f1215;
  --bg-2: #161a1f;
  --card: #1c2127;
  --line: #2a3038;
  --text: #f2f3f5;
  --text-2: #a7adb6;
  --accent: #e3242f;
  --accent-2: #ff5a63;
  --green: #30d158;
  --radius: 14px;
  --digital: "Revline Digital", "Arial Black", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* 한국어는 어절 단위로 줄바꿈 */
  overflow-wrap: anywhere;
}

a { color: var(--accent-2); }
a:hover { color: #fff; }

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

/* 상단 막대 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 18, 21, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--digital); font-size: 18px; letter-spacing: 0.5px; white-space: nowrap; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.top nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--text);
}

/* 첫 화면 */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(227, 36, 47, 0.22) 0%, rgba(227, 36, 47, 0) 70%),
    linear-gradient(180deg, #161a1f 0%, var(--bg) 100%);
  text-align: center;
}
.hero img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 40px rgba(227, 36, 47, 0.35); }
.hero h1 {
  font-family: var(--digital); font-weight: 400;
  font-size: clamp(40px, 7vw, 68px); line-height: 1.1; margin: 22px 0 10px; letter-spacing: 1px;
}
.hero .tag { font-size: clamp(18px, 2.4vw, 22px); color: var(--text-2); max-width: 640px; margin: 0 auto; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-2); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--text-2); }
.soon { display: block; margin-top: 12px; font-size: 14px; color: var(--text-2); }

/* 스토어 버튼 (출시 전에는 흐리게 + "출시 예정") */
.stores { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #000; border: 1px solid #3a3f46; color: #fff; text-decoration: none; text-align: left;
}
.store:hover { border-color: #6b727c; color: #fff; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; color: #c9cdd3; letter-spacing: 0.2px; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }
.store.disabled { cursor: default; pointer-events: none; }
.store.disabled svg, .store.disabled span { opacity: 0.5; }
.badge-soon {
  position: absolute; top: -9px; right: -8px;
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #fff;
}

/* 첫 화면: 지원 게임 알약 */
.now-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0;
  padding: 6px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  background: rgba(48, 209, 88, 0.12); border: 1px solid rgba(48, 209, 88, 0.35); color: #d9f7e1;
}
.now-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* 로드맵: 첫 화면 바로 아래, 강조 카드 */
.roadmap { border-top: none; padding-top: 8px; }
.road-card {
  position: relative; overflow: hidden;
  padding: 34px 32px 30px; border-radius: 20px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(227, 36, 47, 0.22) 0%, rgba(227, 36, 47, 0) 60%),
    var(--card);
  border: 1px solid rgba(227, 36, 47, 0.45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.road-tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--accent); color: #fff;
}
.road-card h2::before { display: none; }
.road-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-item {
  background: rgba(15, 18, 21, 0.55); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.road-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px;
  background: rgba(227, 36, 47, 0.15); color: var(--accent-2);
}
.road-icon svg { width: 26px; height: 26px; }
.road-item h3 { margin: 0 0 6px; font-size: 18px; }
.road-item p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.road-cta { margin: 20px 0 0; color: var(--text); }

/* 구역 */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 {
  font-family: var(--digital); font-weight: 400; font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px; letter-spacing: 0.5px;
}
section h2::before {
  content: ""; display: inline-block; width: 5px; height: 0.8em; margin-right: 12px;
  background: var(--accent); border-radius: 3px; vertical-align: -0.05em;
}
.lead { color: var(--text-2); margin: 0 0 28px; max-width: 720px; }

/* 스크린샷: 넓은 화면은 격자, 좁은 화면은 옆으로 넘기기 */
.shots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line); background: #000; aspect-ratio: 2622 / 1206; object-fit: cover;
}
.shots figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.shots figcaption b { color: var(--text); font-weight: 600; }

/* 특징 카드 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* 데이터 유의사항 */
.note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid #ffd60a;
  border-radius: var(--radius); padding: 20px 24px;
}
.note .note-head { margin: 0 0 12px; color: var(--text); }
.note ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 15.5px; }
.note li { margin: 6px 0; }
.note li b { color: var(--text); }

/* 사용 방법 단계 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px 18px 74px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 16px;
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff;
  font-family: var(--digital); font-size: 20px; display: grid; place-items: center;
}
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.path {
  display: inline-block; font-size: 14.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px;
}

/* 제스처 표 */
.gestures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.gesture { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.gesture b { display: block; margin-bottom: 2px; }
.gesture span { color: var(--text-2); font-size: 14.5px; }

/* 자주 묻는 질문 */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--text-2); }
details[open] summary::after { content: "−"; }
details p, details ul { color: var(--text-2); margin: 10px 0 2px; font-size: 15.5px; }

/* 문서 (개인정보처리방침) */
.doc { padding: 56px 0 72px; }
.doc h1 { font-family: var(--digital); font-weight: 400; font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.doc .meta { color: var(--text-2); margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: #d6d9de; }
.doc .summary {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 8px;
}
.doc .summary p { margin: 0; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--text-2); font-weight: 600; }

/* 바닥글 */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--text-2); }
footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .top nav a:not(.lang) { display: none; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .road-grid { grid-template-columns: 1fr; }
  .gestures { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav a:not(.lang) { display: none; }
  .hero { padding: 64px 0 52px; }
  .grid { grid-template-columns: 1fr; }
  .road-card { padding: 26px 20px 22px; }
  .shots {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -20px; padding: 0 20px 6px;
  }
  .shots figure { flex: 0 0 86%; scroll-snap-align: center; }
  .steps li { padding-left: 66px; }
  .steps li::before { left: 16px; }
}
