/* DeepLink 메인 v2 — 다크 게이밍 테마 (내용은 기존 index.html 그대로) */
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Noto+Sans+KR:wght@400;500;700;900&family=Saira+Condensed:wght@600;700;800&display=swap');

:root {
    --bg: #07090b;
    --surface: #0e1215;
    --surface-2: #13181c;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eef1f3;
    --muted: #a1aab2;
    --brand: #00c764;
    --neon: #00ff85;
    --display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    --num: 'Saira Condensed', 'Noto Sans KR', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    word-break: keep-all;
    background: var(--bg);
    color: var(--text);
}

.text-brand { color: var(--neon); }
.font-display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.font-num { font-family: var(--num); }

/* ---------- 버튼 ---------- */
.btn-neon {
    background: var(--neon);
    color: #04140b;
    font-weight: 900;
    border-radius: 9999px;
    transition: transform .2s ease, background .2s ease;
}

.btn-neon:hover { transform: translateY(-2px); background: #4dffa8; }

.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, .7);
    color: #fff;
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    font-weight: 700;
    transition: background .2s ease;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 헤더 ---------- */
.site-header {
    background: rgba(7, 9, 11, .62);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.site-header .logo { filter: brightness(0) invert(1); }
.site-header nav a { color: #e5e7eb; }
.site-header nav a:hover { color: var(--neon); }

.site-header .search {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-2);
    color: #fff;
}

.site-header .search::placeholder { color: #9ca3af; }

#mobile-menu { background: #0b0e10; border-color: var(--line); }
#mobile-menu a { color: #e5e7eb; }

/* ---------- 3D 히어로 ---------- */
.hero-track { height: 320vh; position: relative; background: #000; }

.hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- 배경: 딥링크 PC방 로그인 화면 (실제 PC방 잠금화면 구성) ---------- */
.pc-client {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr clamp(280px, 23%, 380px);
    grid-template-rows: 1fr 40px;
    background: linear-gradient(160deg, #8a4ce6 0%, #6b56d8 38%, #3b62bd 70%, #1a6d99 100%);
    filter: blur(var(--client-blur, 0px)) brightness(var(--client-bright, 1));
    transform: scale(var(--client-scale, 1));
    transform-origin: 50% 45%;
    overflow: hidden;
    color: #fff;
}

.pc-main { position: relative; padding: 96px 3.5% 22px; display: flex; flex-direction: column; }

.pc-seat {
    position: absolute;
    top: 92px;
    left: 2.2%;
    background: #0c0c12;
    font-family: var(--num);
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    padding: 7px 12px;
}

.pc-brand { position: absolute; top: 100px; right: 3%; height: 26px; filter: brightness(0) invert(1); }

.pc-guides {
    margin: auto 0 34px;
    display: grid;
    grid-template-columns: 1fr 2.1fr;
    gap: 12px;
    width: min(44%, 520px);
}

.pc-guide h4 {
    background: #121218;
    color: #ffcf3a;
    text-align: center;
    font-weight: 900;
    font-size: 15px;
    padding: 6px 0;
    border: 2px solid #ffcf3a;
    border-bottom: 0;
}

.pc-shots { display: flex; gap: 10px; background: rgba(255, 255, 255, .1); }
.pc-shots figure { flex: 1; aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf3; }
.pc-shots img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

.pc-guide > p, .pc-steps { background: rgba(14, 12, 34, .72); padding: 8px 10px; }
.pc-guide > p, .pc-steps p { font-size: 12px; line-height: 1.55; font-weight: 700; }
.pc-guide em, .pc-steps em { font-style: normal; color: #ffcf3a; }
.pc-steps { display: flex; gap: 10px; }
.pc-steps p { margin: 0; }
.pc-steps p { flex: 1; }

/* QR 로그인 일러스트: 모니터의 QR 을 폰으로 스캔 */
.pc-illust {
    position: relative;
    background: linear-gradient(180deg, #46b7ff, #2b8fe0) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-mon {
    width: 46%;
    aspect-ratio: 4 / 3;
    background: #f4f6fb;
    border: 5px solid #1d2433;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-mon img { width: 55% !important; height: auto !important; }

.pc-hand {
    position: absolute;
    right: 18%;
    bottom: 6%;
    width: 22%;
    aspect-ratio: 9 / 16;
    background: #1d2433;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}

.pc-foot { position: absolute; left: 2.2%; bottom: 10px; font-size: 11px; color: #fff; line-height: 1.5; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* 오른쪽 세로 패널 */
.pc-side {
    padding: 92px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background:
        radial-gradient(80% 50% at 70% 20%, rgba(255, 120, 230, .45), transparent 70%),
        radial-gradient(70% 60% at 20% 90%, rgba(120, 90, 255, .5), transparent 70%),
        linear-gradient(180deg, #b25cf0, #8a4fe0);
}

.pc-card {
    border-radius: 14px;
    padding: 14px;
    background: rgba(30, 22, 60, .78);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}

.pc-card-title { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pc-card-title i { color: #8fd3ff; }

.pc-notice { font-size: 11px; line-height: 1.6; color: #fff; border-right: 3px solid rgba(255, 255, 255, .35); padding-right: 8px; }
.pc-small { font-size: 10.5px; line-height: 1.55; color: #fff; }

.pc-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-games img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pc-games figcaption { font-size: 10px; font-weight: 700; text-align: center; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pc-install { display: flex; gap: 12px; align-items: center; background: #1361c9; }
.pc-install img { width: 76px; height: 76px; border-radius: 6px; flex-shrink: 0; }
.pc-install .pc-card-title i { color: #fff; }

.pc-taskbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: rgba(20, 22, 34, .82);
    backdrop-filter: blur(8px);
    color: #e5e7eb;
}

.pc-win { width: 34px; height: 30px; display: flex; align-items: center; justify-content: center; color: #6cb6ff; }
.pc-task-app { height: 30px; padding: 0 10px; display: flex; align-items: center; border-radius: 4px; background: rgba(255, 255, 255, .08); border-bottom: 2px solid #6cb6ff; }
.pc-task-app img { height: 12px; filter: brightness(0) invert(1); }
.pc-tray { margin-left: auto; font-size: 12px; color: #f3f4f6; display: flex; align-items: center; gap: 10px; }
.pc-tray #pcClock { font-family: var(--num); font-weight: 700; font-size: 14px; }

@media (max-width: 1100px) {
    .pc-guides { grid-template-columns: 1fr; width: min(100%, 520px); }
    .pc-guide-1 { display: none; }
}

/* 모바일: 오른쪽 패널을 아래로, 안내 카드는 숨김 */
@media (max-width: 767px) {
    .pc-client { grid-template-columns: 1fr; grid-template-rows: 1fr auto 40px; }
    .pc-guides, .pc-foot { display: none; }
    .pc-brand { top: 82px; height: 20px; }
    .pc-seat { top: 76px; font-size: 20px; }
    .pc-side { padding: 0 14px 14px; background: none; }
    .pc-side { display: none; }
}

/* 첫 문구는 왼쪽 영역 가운데 / 모바일은 위쪽만 어둡게 */
@media (min-width: 768px) {
    .hero-copy[data-step="0"] { right: clamp(280px, 23%, 380px); }
}

@media (max-width: 767px) {
    .hero-stage::after { background: linear-gradient(to bottom, rgba(6, 6, 14, .75) 0%, rgba(6, 6, 14, .4) 45%, rgba(0, 0, 0, 0) 70%) !important; }
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(42% 46% at 33% 34%, rgba(6, 6, 14, .72) 0%, rgba(6, 6, 14, .35) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: var(--vignette, 1);
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 35%, rgba(0, 0, 0, 0) 60%);
    opacity: var(--shade, 0);
}

.screen-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
}

.hero-copy a { pointer-events: auto; }
.hero-copy[data-active="false"] { opacity: 0; transform: translateY(20px); }
.hero-copy[data-active="false"] a { pointer-events: none; }

.hero-title {
    font-family: var(--display);
    color: #fff;
    line-height: 1.08;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .55);
}

.hero-sub { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.hero-kicker { color: var(--neon); font-weight: 700; }

.scroll-hint {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--num);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .35em;
    color: rgba(255, 255, 255, .8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: opacity .3s;
}

.scroll-hint span {
    width: 1px;
    height: 34px;
    background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
    animation: drip 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes drip {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

.no-webgl #scene { display: none; }
.no-webgl .hero-copy[data-step="0"] { opacity: 1; }

/* ---------- 공통 섹션 ---------- */
.sec { position: relative; padding: 112px 0; }
.sec-head { margin-bottom: 48px; }

.sec-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    color: #fff;
}

.sec-desc { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.label {
    font-family: var(--num);
    font-weight: 700;
    letter-spacing: .18em;
    font-size: 13px;
    color: var(--neon);
    text-transform: uppercase;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
}

/* ---------- 미디어 ---------- */
.media-tile {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line-2);
    background: #000;
    aspect-ratio: 16 / 9;
}

.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--num);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
}

.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 9999px; background: #ff3b3b; }

/* ---------- 순위 티커 ---------- */
.rank-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(0, 255, 133, .08), rgba(0, 255, 133, 0) 40%);
}

#game-rank-list span.text-gray-700 { color: #e5e7eb !important; }
#game-rank-list span.italic { color: var(--neon) !important; font-family: var(--num); font-size: 1.25rem; }

.fade-in { animation: fadeIn .5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- GPU 스펙 카드 ---------- */
.spec {
    position: relative;
    overflow: hidden;
    padding: 26px;
    transition: transform .25s ease, border-color .25s ease;
}

.spec:hover { transform: translateY(-4px); border-color: rgba(0, 255, 133, .45); }

.spec::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(0, 255, 133, .14), transparent 70%);
}

.spec-tier {
    font-family: var(--num);
    font-weight: 700;
    letter-spacing: .14em;
    font-size: 12px;
    color: var(--muted);
}

.spec-name {
    font-family: var(--num);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
}

.meter { height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform 1s ease; }

.price-big { font-family: var(--num); font-weight: 800; font-size: 2.2rem; line-height: 1; color: #fff; }

/* ---------- 원격제어 배너 ---------- */
.remote-band {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(0, 255, 133, .25);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(0, 255, 133, .16), transparent 60%),
        var(--surface);
}

/* ---------- Why ---------- */
.why {
    padding: 28px;
    transition: border-color .25s ease, background .25s ease;
}

.why:hover { border-color: rgba(0, 255, 133, .35); background: var(--surface-2); }

.why-no {
    font-family: var(--num);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(0, 255, 133, .1);
    color: var(--neon);
}

/* ---------- 라이선스 ---------- */
.plan { padding: 32px; }
.plan-premium { border-color: rgba(0, 255, 133, .5); background: linear-gradient(180deg, rgba(0, 255, 133, .08), rgba(0, 255, 133, 0) 45%), var(--surface); }
.plan li { display: flex; gap: 10px; align-items: center; color: #d1d5db; }
.plan li i { color: var(--neon); font-size: 13px; }

/* ---------- 인터페이스 ---------- */
.device {
    background: #000;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}

.device img { border-radius: 15px; width: 100%; }

/* ---------- 블로그 (스크립트가 흰 카드로 그리므로 다크로 덮어씀) ---------- */
.blog-scroll-container { cursor: default; user-select: none; overflow: hidden; }
.blog-scroll-container.can-scroll { cursor: grab; }
.blog-scroll-container.can-scroll:active { cursor: grabbing; }
.blog-scroll-track { will-change: transform; display: flex; gap: 1rem; }
#blogScrollTrack > a { background: var(--surface) !important; border-color: var(--line) !important; }
#blogScrollTrack > a p { color: #cbd2d8 !important; }

/* ---------- 서비스 / FAQ ---------- */
.svc { padding: 24px; }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 22px 4px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--neon); transition: transform .25s ease; margin-top: 4px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; line-height: 1.75; }

/* ---------- 마지막 CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background: #000;
    border: 1px solid var(--line-2);
}

.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2)); }
.cta > div { position: relative; z-index: 1; }

/* ---------- 푸터 ---------- */
.site-footer { background: #050607; border-top: 1px solid var(--line); }
.site-footer .logo { filter: brightness(0) invert(1); opacity: .8; }

/* ---------- 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
    .scroll-hint span, .fade-in { animation: none; }
    .meter > i { transition: none; }
}
