/* 메인 */
:root {
    --color-border: #2d2d2d; /* 메인 보더 컬러 */
}

body {
    margin: 0;
    font-family: D2Coding, "D2 coding", monospace;
    background-color: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 60px;
}

/* VSCode 네비게이션 바 */
.site-header {
    position: fixed;
    width: 100%;
    background-color: rgba(35, 35, 35, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tabs-container {
    display: flex;
    margin-top: 4px;
    margin-left: 1px;
}

.tab {
    background-color: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid #2f2f2f;
    border-bottom: none;
    padding: 8px 16px;
    position: relative;
    cursor: pointer;
    margin-left: -1px;
}

.tab:hover,
.tab.active {
    background-color: rgba(41, 41, 41, 0.5);
    backdrop-filter: blur(10px);
}

.tab.active {
    border-top: dodgerblue 1px solid;
}

.tab-text {
    font-size: 0.9em;
    color: #cccccc;
}

.tab-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    margin-top: -2px;
}

.tab-link {
    text-decoration: none;
    color: inherit;
}

/* 텍스트 */
a {
    color: dodgerblue;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.subtitle {
    color: dodgerblue;
    text-align: center;
    font-size: 40px;
    margin: 20px 0;
    margin-top: 60px;
}

/* 랜딩 */
.hero {
    padding: 100px 0 60px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
}

.btn {
    background-color: dodgerblue;
    color: #fff;
    padding: 15px 30px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* CTA 버튼 영역 */
.cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    background-color: dodgerblue;
    color: #fff;
    padding: 16px 32px;
    font-size: 1.1em;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1a7fd4;
}

/* 텍스트 링크 스타일 (강조 없음) */
.btn-text-link {
    color: #888;
    text-decoration: none;
    font-size: 1em;
    display: inline-block;
    padding: 8px;
}

.btn-text-link:hover {
    color: #aaa;
    text-decoration: underline;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.feature {
    flex: 1 1 45%;
    background-color: #202020;
    padding: 5px 19px;
    border: 1px solid var(--color-border);
}

.feature h3 {
    color: dodgerblue;
    margin-bottom: 10px;
}

.feature-link {
    font-size: 0.9em;
    margin-top: 12px;
}

.feature-link a {
    margin-right: 8px;
}

.testimonial {
    margin-top: 60px;
    text-align: center;
    font-size: 1.1em;
    font-style: italic;
    position: relative;
}

.testimonial .quote-mark {
    font-size: 5em;
    color: dodgerblue;
    line-height: 1;
    margin-bottom: -40px;
}

.testimonial p {
    margin: 0;
    font-size: 1.6em;
}

.hero > p:nth-child(2) {
    padding-bottom: 80px;
}

.testimonial .quote-author {
    margin-top: 20px;
    font-style: normal;
    color: #ccc;
}

.hero-screenshot {
    margin-top: 120px;
    perspective: 800px;
}

/* 영상 탭 */
.video-tabs {
    display: flex;
    gap: 0;
}

.video-tab {
    background-color: #202020;
    border: 1px solid var(--color-border);
    border-bottom: none;
    padding: 12px 24px;
    color: #888;
    cursor: pointer;
    font-family: D2Coding, "D2 coding", monospace;
    font-size: 14px;
    margin-left: -1px;
    width: 100%;
}

.video-tab:first-child {
    margin-left: 0;
}

.video-tab:hover {
    background-color: rgba(41, 41, 41, 0.5);
    color: #ccc;
}

.video-tab.active {
    background-color: rgba(41, 41, 41, 0.8);
    color: dodgerblue;
    border-top: 2px solid dodgerblue;
    padding-top: 11px;
}

/* 영상 컨테이너 */
.video-container {
    position: relative;
    width: calc(100% - 2px);
    border: 1px solid var(--color-border);
}

.video-container video {
    width: 100%;
    display: block;
}

.footer {
    margin-top: 100px;
    padding: 40px 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
    background-color: rgba(15, 15, 15, 0.5);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 20px;
}

.footer a {
    margin: 0 10px;
    color: #888;
}

.footer a:hover {
    color: dodgerblue;
}

.glow-text {
    background: linear-gradient(120deg, #1e90ff, #1e90ff, #94d4ff, #1e90ff, #1e90ff);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* 가격 */
.pricing-cards {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    margin-top: -60px;
}

.pricing-card {
    background: #202020;
    border: 1px solid var(--color-border);
    padding: 40px;
    flex: 1;
    padding-top: 20px;
}

.price-amount {
    font-size: 3em;
    color: dodgerblue;
    margin: 40px 0;
}

.feature-check {
    color: #4ade80;
}

/* 가격 카드 버튼 */
.pricing-buttons {
    margin-top: 20px;
}

.pricing-buttons .btn {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.pricing-buttons .btn-text-link {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

/* 다운로드 페이지 */
.download-options {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-info {
    margin-top: 60px;
    color: #888;
}

/* 업데이트 페이지 레이아웃 */
.update-layout {
    display: flex;
    gap: 40px;
    padding: 100px 0 60px;
}

.update-download {
    flex: 1;
    min-width: 0;
}

.update-download h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.update-download p {
    font-size: 1.3em;
}

.update-notes {
    width: 400px;
    min-width: 400px;
    background-color: #202020;
    border: 1px solid var(--color-border);
    padding: 30px;
    align-self: flex-start;
}

.update-notes h2 {
    font-size: 1.5em;
    color: dodgerblue;
    margin-top: 0;
    margin-bottom: 24px;
}

.update-note-item {
    margin-bottom: 32px;
}

.update-note-item:last-child {
    margin-bottom: 0;
}

.update-note-version {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.update-note-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 12px;
}

.update-note-list {
    margin: 0;
    padding-left: 20px;
    color: #bbb;
}

.update-note-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.update-note-loading {
    color: #888;
    text-align: center;
    padding: 20px;
}

.update-note-error {
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* 반응형 - 업데이트 페이지 */
@media (max-width: 900px) {
    .update-layout {
        flex-direction: column;
    }

    .update-notes {
        width: 100%;
        min-width: auto;
    }
}

/* 이미지 박스 */
.image-boxes-container {
    display: flex;
    gap: 20px;
}

.image-box {
    flex: 1;
    background-color: #202020;
    border: 1px solid var(--color-border);
    padding: 5px 19px;
}

.image-box img {
    width: calc(100% + 38px);
    height: 200px;
    object-fit: cover;
    margin: -5px -19px 0 -19px;
    cursor: zoom-in;
}

.image-box h3 {
    color: dodgerblue;
}

/* 이미지 모달 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.image-modal img {
    margin: 5% auto;
    display: block;
    max-width: 70%;
    max-height: 70%;
}

.image-modal span {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* 언어 변경 알림창 */
.language-alert {
    background: dodgerblue;
    display: none;
    z-index: 99;
}

.language-alert.show {
    display: block;
    position: fixed;
    top: 48px;
    width: 100%;
}

.language-alert-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.language-alert-text {
    font-size: 16px;
    color: white;
    flex: 1;
    font-weight: 500;
}

.language-alert-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-language-switch {
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 14px;
}

.btn-language-switch:hover {
    background: #3a3a3a;
    border-color: #555;
}

@media (max-width: 768px) {
    .language-alert-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .language-alert-text {
        font-size: 13px;
    }

    .language-alert-actions {
        width: 100%;
        justify-content: center;
    }
}

/* 가이드 페이지 레이아웃 */
.guide-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
    min-height: calc(100vh - 200px);
}

/* 사이드바 */
.guide-sidebar {
    width: 260px;
    min-width: 260px;
    border-right: 1px solid var(--color-border);
    padding: 20px;
    position: sticky;
    top: 60px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: block;
    padding: 8px 12px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav a.active {
    color: dodgerblue;
    border-left-color: dodgerblue;
    background: rgba(30, 144, 255, 0.1);
}

.sidebar-lang-switch {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.sidebar-lang-switch a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--color-border);
}

.sidebar-lang-switch a:hover,
.sidebar-lang-switch a.active {
    color: #fff;
    border-color: dodgerblue;
}

/* 가이드 콘텐츠 영역 */
.guide-content {
    flex: 1;
    padding: 40px;
    max-width: 800px;
}

.guide-content h1 {
    font-size: 2.2em;
    margin-bottom: 16px;
    color: #fff;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.guide-content h2 {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 16px;
    color: dodgerblue;
}

.guide-content h3 {
    font-size: 1.3em;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #ddd;
}

.guide-content p {
    color: #bbb;
    margin-bottom: 16px;
    line-height: 1.8;
}

.guide-content ul,
.guide-content ol {
    color: #bbb;
    margin-bottom: 16px;
    padding-left: 24px;
}

.guide-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* 코드 블록 */
.guide-content code {
    background: #1a1a1a;
    padding: 2px 6px;
    font-family: D2Coding, monospace;
    font-size: 0.9em;
    color: #e06c75;
}

.guide-content pre {
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.guide-content pre code {
    padding: 0;
    background: none;
    color: #abb2bf;
}

/* 인용구 */
.guide-content blockquote {
    border-left: 3px solid dodgerblue;
    margin: 20px 0;
    padding: 12px 20px;
    background: rgba(30, 144, 255, 0.1);
    color: #ccc;
}

.guide-content blockquote p {
    margin: 0;
}

/* 이미지 */
.guide-content img {
    max-width: 100%;
    border: 1px solid var(--color-border);
    margin: 20px 0;
}

/* 테이블 */
.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.guide-content th,
.guide-content td {
    border: 1px solid var(--color-border);
    padding: 12px;
    text-align: left;
}

.guide-content th {
    background: #1a1a1a;
    color: #fff;
}

.guide-content td {
    color: #bbb;
}

/* 알림 박스 */
.guide-note {
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid dodgerblue;
    padding: 16px;
    margin: 20px 0;
}

.guide-note-title {
    font-weight: bold;
    color: dodgerblue;
    margin-bottom: 8px;
}

.guide-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    padding: 16px;
    margin: 20px 0;
}

.guide-warning-title {
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 8px;
}

/* 페이지 네비게이션 */
.guide-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.guide-nav a {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    color: #ccc;
    text-decoration: none;
    max-width: 45%;
}

.guide-nav a:hover {
    border-color: dodgerblue;
    color: dodgerblue;
}

.guide-nav-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.guide-nav-title {
    font-size: 14px;
}

/* 로드맵 */
.roadmap {
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    direction: rtl;
    /* Firefox 스크롤바 */
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

/* Chrome, Safari, Edge 스크롤바 */
.roadmap::-webkit-scrollbar {
    height: 6px;
}

.roadmap::-webkit-scrollbar-track {
    background: transparent;
}

.roadmap::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.roadmap::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.roadmap-description-text {
    text-align: center;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 30px;
    direction: ltr;
}

.roadmap-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    position: relative;
    padding-top: 30px;
    min-width: max-content;
    direction: ltr;
}

/* 가로 타임라인 선 (배경) */
.roadmap-container::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
}

/* 완료된 구간 타임라인 (파란색) */
.roadmap-container::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 350px;
    left: 0;
    height: 2px;
    background: dodgerblue;
}

.roadmap-item {
    position: relative;
    padding: 16px;
    background: #202020;
    border: 1px solid var(--color-border);
    width: 200px;
    min-width: 200px;
    margin-right: -1px;
}

.roadmap-item:first-child {
    margin-right: 0;
}

/* 타임라인 위의 체크포인트 */
.roadmap-item::before {
    content: "✓";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    z-index: 1;
}

.roadmap-item.completed::before {
    background: dodgerblue;
    color: #fff;
}

.roadmap-item.upcoming::before {
    content: "";
    background: #222;
}

.roadmap-version {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.roadmap-date {
    font-size: 0.8em;
    color: #555;
    margin-bottom: 12px;
}

.roadmap-description {
    color: #999;
    font-size: 0.9em;
    line-height: 1.6;
}

.roadmap-features {
    margin: 12px 0 0 0;
    padding-left: 18px;
    color: #888;
    font-size: 0.85em;
}

.roadmap-features li {
    margin-bottom: 6px;
}

/* Upcoming 박스 스타일 */
.roadmap-item.upcoming {
    border-color: #333;
}

.roadmap-item.upcoming .roadmap-version {
    color: #888;
}

/* Typeform 임베드 여백 */
.roadmap-item [data-tf-live] {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .roadmap-container {
        flex-direction: column;
        padding-top: 0;
        padding-left: 30px;
    }

    .roadmap-container::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 10px;
        right: auto;
    }

    .roadmap-item::before {
        left: -24px;
        top: 20px;
        transform: none;
    }
}

/* 반응형 */
@media (max-width: 900px) {
    .guide-layout {
        flex-direction: column;
    }

    .guide-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .guide-content {
        padding: 20px;
    }
}
