/* ============================
   AI 로봇 키우기 — Portfolio CSS
   Toss-Style Clean Minimal (Unified Light)
   ============================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
    /* === Colors — Toss Style (Light Only) === */
    --color-primary: #3182F6;
    --color-primary-dark: #1B64DA;
    --color-primary-light: #E8F3FF;
    --color-primary-bg: #F0F6FF;

    --color-bg-white: #FFFFFF;
    --color-bg-gray: #F9FAFB;
    --color-bg-light: #F2F4F6;

    --color-text-heading: #191F28;
    --color-text-body: #333D4B;
    --color-text-sub: #6B7684;
    --color-text-muted: #8B95A1;
    --color-text-disabled: #B0B8C1;

    --color-border: #E5E8EB;
    --color-border-light: #F2F4F6;

    --color-green: #34C759;
    --color-orange: #FF9500;
    --color-red: #FF3B30;

    /* === Typography === */
    --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* === Spacing === */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 120px;

    /* === Border Radius === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* === Shadows === */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* === Layout === */
    --max-width: 1140px;
    --nav-height: 60px;

    /* === Transition === */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--color-bg-white);
    color: var(--color-text-body);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================
   히어로 섹션
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: linear-gradient(180deg, var(--color-primary-bg) 0%, var(--color-bg-white) 100%);
    padding-bottom: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(49, 130, 246, 0.07) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-bg-grid {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 860px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary-light);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--font-sans);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-accent {
    display: block;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--color-text-heading);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.title-sub {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-text-sub);
    letter-spacing: 0;
    text-transform: none;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--color-text-sub);
    line-height: 1.8;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 28px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.meta-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.meta-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.status-active {
    color: var(--color-green) !important;
}

.status-complete {
    color: var(--color-primary) !important;
}

/* === 히어로 연락처 === */
.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.contact-btn, .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-body);
    box-shadow: var(--shadow-sm);
}

.contact-btn {
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: rgba(49, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-btn i, .contact-item i {
    width: 18px;
    height: 18px;
}

/* ============================
   히어로 영상 플레이어
   ============================ */
.hero-video-wrapper {
    margin-top: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-video-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    background: #000;
}

.hero-video-container:hover {
    box-shadow: 0 20px 60px rgba(49, 130, 246, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(49, 130, 246, 0.25);
}

/* === 썸네일 (초기 상태) === */
.hero-video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* 재생 중이면 썸네일 완전히 제거 */
.hero-video-container.playing .hero-video-thumbnail {
    display: none;
}

/* === 비디오 === */
.hero-video {
    display: none;
    width: 100%;
    height: auto;
}

/* 재생 중이면 비디오 표시 — 네이티브 컨트롤 온전히 노출 */
.hero-video-container.playing .hero-video {
    display: block;
}

/* === 재생 버튼 오버레이 === */
.hero-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.hero-video-play-btn svg {
    margin-left: 3px;
}

.hero-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 32px rgba(49, 130, 246, 0.35);
}

/* 재생 중이면 재생 버튼 완전히 제거 */
.hero-video-container.playing .hero-video-play-btn {
    display: none;
}

/* === 라벨 === */
.hero-video-label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-heading);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.hero-video-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 재생 중이면 라벨 완전히 제거 */
.hero-video-container.playing .hero-video-label {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--color-text-disabled);
    font-weight: 600;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   스티키 네비게이션
   ============================ */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 var(--space-lg);
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 18px 18px;
    color: var(--color-text-sub);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-text-heading);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.nav-github {
    margin-left: auto; /* 우측으로 밀어냅니다 */
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
    font-weight: 600;
}

.nav-github i,
.nav-github svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.nav-github:hover {
    color: var(--color-text-heading);
}

/* ============================
   섹션 공통 (통일 라이트 톤)
   ============================ */
.section {
    padding: var(--space-5xl) 0;
}

/* 흰색/연그레이 교차 */
.section:nth-child(odd) {
    background: var(--color-bg-white);
}

.section:nth-child(even) {
    background: var(--color-bg-gray);
}

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

.section-header {
    margin-bottom: 3.5rem;
    position: relative;
}

.section-number {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    padding: 4px 14px;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text-heading);
    line-height: 1.25;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

/* ============================
   역할 그리드
   ============================ */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.role-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.role-card:hover::before {
    opacity: 1;
}

.role-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.role-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.role-card h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-text-heading);
}

.role-card p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.role-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.role-files code {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.role-files code.clickable-code {
    cursor: pointer;
    position: relative;
    padding-right: 26px;
    border: 1.5px solid rgba(49, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(49, 130, 246, 0.12) 0%, rgba(49, 130, 246, 0.06) 100%);
    box-shadow: 0 1px 4px rgba(49, 130, 246, 0.1);
    animation: subtleAttention 3s ease-in-out infinite;
}

@keyframes subtleAttention {
    0%, 100% { box-shadow: 0 1px 4px rgba(49, 130, 246, 0.1); }
    50% { box-shadow: 0 2px 10px rgba(49, 130, 246, 0.2); }
}

.role-files code.clickable-code::after {
    content: '';
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233182F6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.role-files code.clickable-code:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 246, 0.35);
    animation: none;
}

.role-files code.clickable-code:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.team-note {
    background: rgba(52, 199, 89, 0.05);
    border: 1px solid rgba(52, 199, 89, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.team-note h4 {
    color: var(--color-green);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-note p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

/* ============================
   아키텍처 다이어그램 (프리미엄 라이트)
   ============================ */
.arch-overview {
    margin-bottom: 3rem;
}

.arch-diagram {
    background: linear-gradient(135deg, #FAFBFD 0%, #F5F7FA 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.arch-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #60A5FA, var(--color-green));
}

.arch-layer {
    width: 100%;
    text-align: center;
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.arch-layer:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.arch-layer-top {
    background: rgba(52, 199, 89, 0.06);
    border-color: rgba(52, 199, 89, 0.18);
    border-left: 3px solid rgba(52, 199, 89, 0.5);
}

.arch-layer-mid {
    background: rgba(49, 130, 246, 0.05);
    border-color: rgba(49, 130, 246, 0.18);
    border-left: 3px solid rgba(49, 130, 246, 0.4);
}

.arch-layer-bottom {
    background: rgba(49, 130, 246, 0.08);
    border-color: rgba(49, 130, 246, 0.2);
    border-left: 3px solid rgba(49, 130, 246, 0.6);
}

.arch-layer-data {
    background: rgba(255, 149, 0, 0.05);
    border-color: rgba(255, 149, 0, 0.18);
    border-left: 3px solid rgba(255, 149, 0, 0.5);
}

.arch-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.arch-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.arch-node {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.arch-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.arch-node.ui {
    background: rgba(52, 199, 89, 0.1);
    color: #1B8A3A;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.arch-node.gameplay {
    background: rgba(49, 130, 246, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(49, 130, 246, 0.2);
}

.arch-node.service {
    background: rgba(49, 130, 246, 0.12);
    color: var(--color-primary-dark);
    border: 1px solid rgba(49, 130, 246, 0.28);
}

.arch-node.data {
    background: rgba(255, 149, 0, 0.08);
    color: #CC7700;
    border: 1px solid rgba(255, 149, 0, 0.22);
}

.arch-arrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-disabled);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================
   디테일 카드 그리드 (프리미엄 라이트)
   ============================ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.detail-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), rgba(49, 130, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 12px 40px rgba(49, 130, 246, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    border-color: rgba(49, 130, 246, 0.15);
}

.detail-card:hover::before {
    opacity: 1;
}

.detail-card.card-wide {
    grid-column: span 1;
}

.detail-card.card-primary {
    grid-column: 1 / -1;
    border-color: rgba(49, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(49, 130, 246, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.detail-card.card-primary::before {
    background: linear-gradient(180deg, var(--color-primary), var(--color-green));
    opacity: 1;
}

.detail-card h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 코드 Peek 버튼 (프리미엄 — 눈에 띄는 CTA) */
.code-peek-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #3182F6 0%, #5BA0FA 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin-left: auto;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(49, 130, 246, 0.3);
    animation: peekBtnGlow 3s ease-in-out infinite;
}

@keyframes peekBtnGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(49, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(49, 130, 246, 0.45); }
}

.code-peek-btn svg {
    flex-shrink: 0;
}

.code-peek-btn:hover {
    background: linear-gradient(135deg, #1B64DA 0%, #3182F6 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 130, 246, 0.45);
    animation: none;
}

.code-peek-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(49, 130, 246, 0.3);
    animation: none;
}

.detail-card p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* 코드 블록 — 자동 줄바꿈으로 오버플로우 방지 */
pre {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

pre code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-body);
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 6px;
}

/* 기능 목록 */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: var(--color-bg-gray);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
    transition: background var(--transition-fast);
}

.feature:hover {
    background: var(--color-bg-light);
}

.feature strong {
    font-size: 0.88rem;
    color: var(--color-text-heading);
    font-weight: 600;
}

.feature span {
    font-size: 0.82rem;
    color: var(--color-text-sub);
}

/* 기술 하이라이트 */
.tech-highlight {
    background: var(--color-primary-bg);
    border: 1px solid rgba(49, 130, 246, 0.12);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.tech-highlight h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.tech-highlight ul {
    list-style: none;
    padding: 0;
}

.tech-highlight li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text-sub);
}

.tech-highlight li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.tech-highlight li strong {
    color: var(--color-text-heading);
}

/* ============================
   전투 흐름 다이어그램 (라이트)
   ============================ */
.combat-flow {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.combat-flow h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-heading);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.flow-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.flow-node {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid;
    transition: transform var(--transition-fast);
}

.flow-node:hover {
    transform: scale(1.05);
}

.flow-start {
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.flow-active {
    background: rgba(52, 199, 89, 0.08);
    color: #1B8A3A;
    border-color: rgba(52, 199, 89, 0.25);
}

.flow-fight {
    background: rgba(255, 59, 48, 0.06);
    color: #CC2F26;
    border-color: rgba(255, 59, 48, 0.2);
}

.flow-transition {
    background: rgba(255, 149, 0, 0.06);
    color: #CC7700;
    border-color: rgba(255, 149, 0, 0.2);
}

.flow-arrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-disabled);
}

/* ============================
   전투 갤러리
   ============================ */
.combat-gallery {
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-main {
    grid-row: span 2;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ============================
   SO 기반 에디터 섹션
   ============================ */
.combat-editor-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.section-highlight-banner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(49, 130, 246, 0.06) 0%, rgba(52, 199, 89, 0.04) 100%);
    border: 1px solid rgba(49, 130, 246, 0.15);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.section-highlight-banner .banner-icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    flex-shrink: 0;
    stroke-width: 1.5;
}

.section-highlight-banner h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0.3rem;
}

.section-highlight-banner p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin: 0;
}

.outline-banner {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%);
    border-color: rgba(147, 51, 234, 0.15);
    border-left-color: #9333EA;
}

.outline-banner .banner-icon {
    color: #9333EA;
}

/* 패턴 예시 */
.pattern-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.pattern-example {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.pattern-example:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

.pattern-name {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-text-heading);
    min-width: 5em;
}

.pattern-dots {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 2px;
}

/* 에디터 스크린샷 */
.editor-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.editor-screenshot {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.editor-screenshot:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    border-color: var(--color-primary);
}

/* 카드 내 인라인 이미지 */
.card-inline-image {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.card-inline-image:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

/* ============================
   몬스터 종류별 비주얼
   ============================ */
.monster-types-showcase {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.monster-types-showcase > h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.monster-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.monster-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    text-align: center;
}

.monster-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.monster-type-card img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.monster-type-label {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.monster-type-label.normal {
    background: rgba(49, 130, 246, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(49, 130, 246, 0.2);
}

.monster-type-label.elite {
    background: rgba(255, 149, 0, 0.08);
    color: #CC7700;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.monster-type-label.boss {
    background: rgba(255, 59, 48, 0.08);
    color: #CC2F26;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.monster-type-desc {
    font-size: 0.82rem;
    color: var(--color-text-sub);
}

/* ============================
   아웃라인 파이프라인
   ============================ */
.combat-outline-section {
    margin: 2.5rem 0;
}

.outline-pipeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.outline-step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
    min-width: 200px;
    padding: 1.2rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.outline-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(147, 51, 234, 0.25);
}

.outline-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333EA, #EC4899);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.outline-step-content h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0.3rem;
}

.outline-step-content p {
    font-size: 0.82rem;
    color: var(--color-text-sub);
    line-height: 1.5;
    margin: 0;
}

.outline-arrow {
    display: flex;
    align-items: center;
    color: #9333EA;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================
   스킬 시스템 (라이트)
   ============================ */
.skill-flow {
    margin-bottom: 2rem;
}

.skill-state-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.skill-state {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    border: 2px solid;
    transition: transform var(--transition-fast);
}

.skill-state:hover {
    transform: scale(1.05);
}

.skill-state.locked {
    background: rgba(139, 149, 161, 0.08);
    color: var(--color-text-muted);
    border-color: rgba(139, 149, 161, 0.2);
}

.skill-state.unlockable {
    background: rgba(49, 130, 246, 0.06);
    color: var(--color-primary);
    border-color: rgba(49, 130, 246, 0.25);
}

.skill-state.researching {
    background: rgba(255, 149, 0, 0.06);
    color: #CC7700;
    border-color: rgba(255, 149, 0, 0.25);
}

.skill-state.unlocked {
    background: rgba(52, 199, 89, 0.06);
    color: #1B8A3A;
    border-color: rgba(52, 199, 89, 0.25);
}

.skill-arrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.enum-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.enum-item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
}

.code-block-highlight {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.code-block-highlight h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ============================
   스킬 히어로 쇼케이스 (대형 스크린샷)
   ============================ */
.skill-hero-showcase {
    margin-bottom: 2rem;
}

.skill-hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(49, 130, 246, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

.skill-hero-image-wrapper:hover {
    box-shadow: 0 16px 48px rgba(49, 130, 246, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    border-color: rgba(49, 130, 246, 0.2);
}

.skill-hero-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-hero-image-wrapper:hover .skill-hero-img {
    transform: scale(1.02);
}

.skill-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
}

.skill-hero-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ============================
   스킬 데이터 쇼케이스 (CSV → 노드 배치)
   ============================ */
.skill-data-showcase {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.skill-data-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-data-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-heading);
    padding: 4px 12px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    width: fit-content;
}

.skill-data-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.skill-data-img:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    border-color: var(--color-primary);
}

.skill-data-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.6;
}

/* ============================
   FoW 피처 리스트
   ============================ */
.skill-visual-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.skill-visual-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: var(--color-bg-gray);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.skill-visual-feature:hover {
    background: var(--color-bg-light);
    border-color: var(--color-border);
    transform: translateX(4px);
}

.skill-visual-feature-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.skill-visual-feature strong {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-heading);
    font-weight: 700;
    margin-bottom: 2px;
}

.skill-visual-feature span {
    font-size: 0.82rem;
    color: var(--color-text-sub);
    line-height: 1.5;
}

/* ============================
   스킬 상태 이미지 갤러리
   ============================ */
.skill-states-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.skill-state-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.skill-state-preview:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(49, 130, 246, 0.25);
}

.skill-state-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    background: var(--color-bg-gray);
    padding: 0.5rem;
    transition: transform 0.4s ease;
}

.skill-state-preview:hover .skill-state-img {
    transform: scale(1.03);
}

.skill-state-preview-label {
    display: block;
    padding: 6px 12px;
    background: var(--color-bg-gray);
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-sub);
    text-align: center;
}

/* ============================
   스킬 UI 상태 목록
   ============================ */
.skill-ui-states-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.8rem;
}

.skill-ui-state-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: var(--color-text-sub);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.skill-ui-state-item:hover {
    background: var(--color-bg-gray);
}

.skill-ui-state-item strong {
    color: var(--color-text-heading);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.skill-ui-state-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ============================
   스킬 기술 하이라이트 스트립
   ============================ */
.skill-tech-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-tech-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1.2rem 1.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.skill-tech-item:hover {
    box-shadow: 0 8px 24px rgba(49, 130, 246, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
    border-color: rgba(49, 130, 246, 0.2);
}

.skill-tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(52, 199, 89, 0.06));
    color: var(--color-primary);
}

.skill-tech-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-heading);
    font-weight: 700;
    margin-bottom: 4px;
}

.skill-tech-item span {
    font-size: 0.82rem;
    color: var(--color-text-sub);
    line-height: 1.55;
}

/* ============================
   스탯 테이블
   ============================ */
.stat-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-category h5 {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.stat-items span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-gray);
    color: var(--color-text-sub);
    font-size: 0.78rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

/* ============================
   데이터 파이프라인 (라이트)
   ============================ */
.pipeline-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.pipeline-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pipeline-icon {
    font-size: 2rem;
}

.pipeline-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.pipeline-detail {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.pipeline-arrow {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* CSV → SO 변환 예시 */
.data-conversion-showcase {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.data-conversion-showcase > h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-desc {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.conversion-pairs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.conversion-pair {
    padding: 1.2rem 1.5rem;
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.conversion-pair:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(49, 130, 246, 0.25);
}

.conversion-label {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversion-badge {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.conversion-images {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.conversion-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conversion-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.csv-tag {
    background: rgba(52, 199, 89, 0.1);
    color: #1B8A3A;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.so-tag {
    background: rgba(49, 130, 246, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(49, 130, 246, 0.2);
}

.conversion-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.conversion-img:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    border-color: var(--color-primary);
}

.conversion-arrow-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.6;
}

/* 테이블 개요 (라이트) */
.table-overview {
    margin-bottom: 2rem;
}

.table-overview h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-text-heading);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.8rem;
}

.table-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    background: var(--color-bg-white);
}

.table-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.table-item.my-table {
    border-color: rgba(49, 130, 246, 0.2);
    background: var(--color-primary-bg);
}

.table-item.my-table:hover {
    border-color: rgba(49, 130, 246, 0.4);
}

.table-item.other-table {
    border-color: var(--color-border);
    opacity: 0.6;
}

.table-name {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.table-key {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-primary);
}

.table-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ============================
   에디터 툴 테이블
   ============================ */
.editor-tools-list {
    margin-top: 2rem;
}

.editor-tools-list h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-text-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.tools-table th {
    padding: 12px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    background: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
}

.tools-table td {
    padding: 12px 18px;
    font-size: 0.85rem;
    color: var(--color-text-sub);
    border-bottom: 1px solid var(--color-border);
}

.tools-table tr:last-child td {
    border-bottom: none;
}

.tools-table tr:hover td {
    background: var(--color-bg-gray);
}

/* ============================
   클래스 다이어그램 (SVG 기반)
   ============================ */
.diagram-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.diagram-tab {
    padding: 10px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg-white);
    color: var(--color-text-sub);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.diagram-tab:hover {
    border-color: rgba(49, 130, 246, 0.3);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.diagram-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(49, 130, 246, 0.3);
}

.svg-diagram-viewport {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    min-height: 420px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.svg-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.svg-diagram-container svg {
    max-width: 100%;
    height: auto;
}

/* ============================
   기술 스택
   ============================ */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.tech-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tech-item h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0.3rem;
}

.tech-item p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ============================
   프로젝트 구조 및 협업
   ============================ */
.collab-section {
    margin-bottom: 2rem;
}

.collab-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.collab-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.collab-icon svg,
.collab-icon i {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.collab-header h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0.25rem;
}

.collab-header p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.collab-header p code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 4px;
    font-weight: 500;
}

/* Git 히스토리 이미지 그리드 */
.git-history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.git-history-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a2e;
}

.git-history-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(49, 130, 246, 0.3);
}

.git-history-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.git-history-img:hover {
    opacity: 0.9;
}

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

/* 폴더 트리 */
.folder-tree {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow-x: auto;
}

.folder-tree pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--color-text-sub);
}

/* ============================
   푸터 (소프트)
   ============================ */
.footer {
    padding: 3rem 2rem;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 0.3rem;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

.footer-contact, .footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-sub);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-contact {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact i, .footer-item i {
    width: 16px;
    height: 16px;
}

.footer-contact:hover {
    color: var(--color-primary);
}

.footer-update {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ============================
   이미지 라이트박스
   ============================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.show .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ============================
   2열 상세 그리드
   ============================ */
.detail-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ============================
   반응형
   ============================ */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .detail-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

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

    .detail-grid,
    .detail-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
    }

    .arch-diagram {
        padding: 1rem;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .flow-diagram,
    .skill-state-diagram {
        flex-direction: column;
    }

    .flow-arrow,
    .skill-arrow {
        transform: rotate(90deg);
    }

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

    .gallery-main {
        grid-row: auto;
    }

    .monster-type-grid {
        grid-template-columns: 1fr;
    }

    .outline-pipeline {
        flex-direction: column;
    }

    .outline-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }

    .editor-screenshots {
        grid-template-columns: 1fr;
    }

    .conversion-images {
        grid-template-columns: 1fr;
    }

    .conversion-arrow-vertical {
        transform: rotate(90deg);
    }

    .section-highlight-banner {
        flex-direction: column;
        text-align: center;
    }

    .stat-table {
        grid-template-columns: 1fr;
    }

    .tools-table {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .skill-tech-strip {
        grid-template-columns: 1fr;
    }

    .skill-data-showcase {
        grid-template-columns: 1fr;
    }

    .skill-data-arrow {
        transform: rotate(90deg);
    }

    .skill-hero-img {
        max-height: 320px;
    }

    .skill-hero-overlay {
        padding: 1.2rem;
    }

    .skill-states-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 0;
    }

    .section-inner {
        padding: 0 var(--space-md);
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .skill-hero-img {
        max-height: 240px;
    }

    .skill-hero-caption {
        font-size: 0.8rem;
    }
}

/* 스크롤바 커스텀 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-disabled);
}

/* ============================
   코드 미리보기 모달 (리디자인)
   ============================ */
.code-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.code-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.code-modal {
    width: min(92vw, 760px);
    max-height: 88vh;
    background: var(--color-bg-white);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(30px) scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.code-modal-overlay.active .code-modal {
    transform: translateY(0) scale(1);
}

/* 모달 헤더 */
.code-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2.2rem 1.2rem;
    border-bottom: none;
    gap: 1rem;
}

.code-modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: linear-gradient(135deg, #E8F3FF, #D4EAFF);
    border: 1px solid rgba(49, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
}

.code-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.15);
    border: 1px solid rgba(49, 130, 246, 0.1);
    flex-shrink: 0;
}

.code-modal-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

.code-modal-desc {
    font-size: 0.92rem;
    color: var(--color-text-sub);
    margin: 0;
    line-height: 1.6;
    padding-right: 1rem;
}

.code-modal-desc strong {
    color: var(--color-text-heading);
    font-weight: 700;
}

.code-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-gray);
    color: var(--color-text-sub);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.code-modal-close:hover {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.3);
    color: var(--color-red);
    transform: rotate(90deg);
}

/* 모달 바디 */
.code-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.code-modal-body pre {
    margin: 0 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    background: #FAFAFD;
    overflow: auto;
    max-height: 45vh;
}

.code-modal-body pre code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.75;
    color: var(--color-text-body);
    white-space: pre;
    tab-size: 4;
}

/* 구문 강조 */
.code-modal-body pre code .kw {
    color: #0070F3;
    font-weight: 600;
}

.code-modal-body pre code .type {
    color: #2DA44E;
}

.code-modal-body pre code .str {
    color: #953800;
}

.code-modal-body pre code .comment {
    color: #8B949E;
    font-style: italic;
}

.code-modal-body pre code .num {
    color: #CF222E;
}

/* 하이라이트 아이템 (하단) */
.code-modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1.2rem 1.6rem 2rem;
    margin-top: 0.5rem;
}

.code-modal-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-bg-gray);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.code-modal-highlight-item:hover {
    background: var(--color-bg-light);
    border-color: rgba(49, 130, 246, 0.2);
    transform: translateX(4px);
}

.code-modal-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

.highlight-lucide-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.code-modal-highlight-text {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.5;
}

.code-modal-highlight-text code {
    font-size: 0.78rem;
    padding: 1px 6px;
}

/* ============================
   Lucide Icons — h3 인라인 아이콘
   ============================ */
.h3-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
    stroke-width: 1.8;
    margin-right: 8px;
}

/* Pipeline 아이콘 SVG */
.pipeline-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* ============================
   맨 위로 가기 버튼
   ============================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-sub);
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(49, 130, 246, 0.3);
}

.scroll-to-top svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}