/* ============================
   굴러가유 알 — 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-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;
}

.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-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: 720px;
    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 var(--ease-out),
                transform 0.4s var(--ease-out),
                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 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-video {
    width: 100%;
    height: auto;
    display: none;
    background: #000;
}

.hero-video-container.playing .hero-video-thumbnail,
.hero-video-container.playing .hero-video-play-btn,
.hero-video-container.playing .hero-video-label {
    display: none;
}

.hero-video-container.playing .hero-video {
    display: block;
}

.hero-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: var(--color-primary);
    transition: all var(--transition-normal);
    z-index: 2;
}

.hero-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 32px rgba(49, 130, 246, 0.2);
}

.hero-video-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-body);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease 1s both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-text-muted), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: 4px;
    height: var(--nav-height);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-sub);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

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

.nav-github {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-sub);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-github:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.nav-github i {
    width: 16px;
    height: 16px;
}

/* ============================
   섹션 공통
   ============================ */
.section {
    padding: var(--space-4xl) 0;
}

.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: var(--space-3xl);
    text-align: center;
}

.section-number {
    display: inline-block;
    padding: 6px 20px;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-sub);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================
   파트별 게임 플레이 (Feature Grid)
   ============================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.feature-card video {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--color-border);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: var(--space-lg) var(--space-lg) var(--space-sm);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    margin: 0 var(--space-lg) var(--space-lg);
}

/* ============================
   역할(Role) 카드 그리드
   ============================ */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.role-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

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

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

.role-icon i {
    width: 24px;
    height: 24px;
}

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

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

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

.role-files code {
    padding: 4px 10px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-text-sub);
    border: 1px solid var(--color-border-light);
}

/* ============================
   피쳐 / 게임플레이 카드
   ============================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.feature-card video {
    width: 100%;
    height: auto;
    display: block;
}

.feature-card-body {
    padding: var(--space-xl);
}

.feature-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.feature-card-body p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

/* ============================
   아키텍처 다이어그램
   ============================ */
.arch-diagram-wrap {
    overflow-x: auto;
    padding: var(--space-md) 0;
    scrollbar-width: thin;
}

.arch-diagram-svg {
    width: 100%;
    min-width: 900px;
    height: auto;
}

.arch-node {
    cursor: pointer;
    transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.arch-node:hover {
    opacity: 0.85;
    filter: brightness(1.05);
}

/* ============================
   카드 공통 (content-card)
   ============================ */
.content-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-xl);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-normal);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.content-card h3 i {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.content-card p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* ============================
   아키텍처 흐름 설명
   ============================ */
.arch-flow-explanation {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.arch-flow-explanation h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xl);
}

.arch-flow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.arch-flow-step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.arch-step-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid;
}

.arch-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

.arch-step-content p {
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

.arch-step-content code {
    padding: 2px 8px;
    background: var(--color-bg-light);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border-light);
}

/* ============================
   서비스 레지스트리
   ============================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

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

.service-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.3px;
}

.service-badge.infra {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.service-badge.nurture {
    background: rgba(52, 199, 89, 0.12);
    color: #34C759;
}

.service-badge.running {
    background: rgba(255, 149, 0, 0.12);
    color: #FF9500;
}

.service-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
}

.service-card p {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* ============================
   육성 시스템 흐름도
   ============================ */
.nurture-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding: var(--space-md) 0;
}

.nurture-step {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    flex: 1 1 120px;
}

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

.step-number {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0 auto var(--space-sm);
}

.nurture-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

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

.nurture-step code {
    padding: 1px 6px;
    background: var(--color-bg-light);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-primary);
}

.flow-connector {
    font-size: 1.5rem;
    color: var(--color-text-disabled);
    font-weight: 300;
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    flex: 0 0 auto;
}

/* ============================
   갤러리 (스크린샷)
   ============================ */
.nurture-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.ingame-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

.nurture-gallery-item, .ingame-gallery-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.nurture-gallery-item:hover, .ingame-gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.nurture-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(49, 130, 246, 0.9);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.nurture-gallery-item {
    position: relative;
}

.nurture-gallery-img, .ingame-img-wrap {
    overflow: hidden;
    background: var(--color-bg-light);
}

.nurture-gallery-img img, .ingame-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s var(--ease-out);
}

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

.nurture-gallery-caption, .ingame-caption {
    padding: var(--space-lg);
}

.nurture-gallery-caption h4, .ingame-caption h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nurture-gallery-caption h4 i, .ingame-caption h4 i {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.nurture-gallery-caption p, .ingame-caption p {
    font-size: 0.88rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

.nurture-gallery-caption code, .ingame-caption code {
    padding: 1px 6px;
    background: var(--color-bg-light);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border-light);
}

/* ============================
   데이터 파이프라인
   ============================ */
.highlight-banner {
    background: linear-gradient(135deg, var(--color-primary-bg), rgba(49, 130, 246, 0.06));
    border: 1px solid rgba(49, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.highlight-banner-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.highlight-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

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

.highlight-icon i {
    width: 22px;
    height: 22px;
}

.highlight-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

.highlight-item p {
    font-size: 0.88rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

.highlight-item code {
    padding: 1px 6px;
    background: rgba(49, 130, 246, 0.08);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
}

/* 파이프라인 흐름 */
.pipeline-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: nowrap;
    padding: var(--space-md) 0;
    overflow-x: auto;
}

.pipeline-step {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 120px;
    flex: 0 1 160px;
    text-align: center;
    transition: all var(--transition-normal);
}

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

.highlight-pipeline-step {
    border-color: rgba(49, 130, 246, 0.3);
    background: var(--color-primary-light);
}

.pipeline-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.pipeline-icon i {
    width: 28px;
    height: 28px;
}

.pipeline-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

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

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--color-text-disabled);
    font-weight: 300;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    flex-shrink: 0;
}

/* 테이블 갤러리 */
.table-gallery {
    display: grid;
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .table-gallery[style] {
        grid-template-columns: 1fr !important;
    }
}

.table-gallery-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.table-gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.table-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.table-gallery-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.table-gallery-item p {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

/* ============================
   코드 블록
   ============================ */
.code-block, pre {
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: #e2e8f0;
    scrollbar-width: thin;
    white-space: pre;
}

code {
    font-family: var(--font-mono);
}

.code-block .keyword { color: #c084fc; }
.code-block .type { color: #67e8f9; }
.code-block .method { color: #fbbf24; }
.code-block .string { color: #86efac; }
.code-block .comment { color: #64748b; font-style: italic; }

/* ============================
   카드 컨테이너 (2열)
   ============================ */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
}

.card-container .card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.card-container .card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.card-container .card p {
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

.card-container .card ul {
    list-style: none;
    padding: 0;
}

.card-container .card ul li {
    position: relative;
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    border-bottom: 1px solid var(--color-border-light);
}

.card-container .card ul li:last-child {
    border-bottom: none;
}

.card-container .card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.card-container .card ul li strong {
    color: var(--color-text-heading);
    font-weight: 600;
}

.card-container .card ul li code {
    padding: 1px 6px;
    background: var(--color-bg-light);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border-light);
}

/* ============================
   다국어 (Localization)
   ============================ */
.localization-coverage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.loc-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

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

.loc-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.loc-item p {
    font-size: 0.88rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.loc-item code {
    padding: 1px 6px;
    background: var(--color-bg-light);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border-light);
}

/* ============================
   Git 터미널
   ============================ */
.git-terminal {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-y: auto;
    scrollbar-width: thin;
}

.git-terminal pre {
    background: transparent;
    border: none;
    padding: 0;
}

.git-terminal code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    color: #94a3b8;
    white-space: pre-wrap;
    word-break: break-all;
}

.git-stats {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
}

.git-stats li {
    padding: var(--space-sm) 0;
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    border-bottom: 1px solid var(--color-border-light);
}

.git-stats li:last-child {
    border-bottom: none;
}

.commit-stat strong {
    font-family: var(--font-mono);
    color: var(--color-primary);
}

/* ============================
   푸터 (AI로봇키우기 스타일)
   ============================ */
.footer {
    padding: 3rem 2rem;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

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

.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;
    flex-wrap: wrap;
}

.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);
}

.footer-sub {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

/* ============================
   팝업 모달
   ============================ */
.arch-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.arch-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.arch-popup-modal {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s var(--ease-out);
    scrollbar-width: thin;
}

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

.arch-popup-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text-sub);
    transition: all var(--transition-fast);
}

.arch-popup-close:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.arch-popup-header {
    margin-bottom: var(--space-md);
}

.arch-popup-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.arch-popup-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.arch-popup-header h3 i {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.arch-popup-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.arch-popup-code {
    margin-bottom: var(--space-lg);
}

.arch-popup-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.arch-popup-detail-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--color-bg-gray);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.detail-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    font-size: 1rem;
}

.detail-icon i {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* ============================
   Scroll to Top 버튼
   ============================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 50;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    color: var(--color-text-sub);
}

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

.scroll-to-top:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================
   애니메이션
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* Fade-in Observer */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   반응형 (모바일)
   ============================ */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--space-4xl) 0 var(--space-2xl);
    }

    .hero-content {
        padding: var(--space-md);
    }

    .title-accent {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .meta-item {
        width: 100%;
        max-width: 300px;
        flex-direction: row;
        gap: var(--space-md);
    }

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

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

    .section {
        padding: var(--space-3xl) 0;
    }

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

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

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

    .card-container {
        grid-template-columns: 1fr;
    }

    .nurture-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-connector {
        padding-top: 0;
        justify-content: center;
        transform: rotate(90deg);
    }

    .pipeline-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .pipeline-arrow {
        padding-top: 0;
        justify-content: center;
        transform: rotate(90deg);
    }

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

    .localization-coverage {
        grid-template-columns: 1fr;
    }

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

    .scroll-indicator {
        display: none;
    }

    .highlight-banner-inner {
        grid-template-columns: 1fr;
    }

    .arch-popup-modal {
        width: 95%;
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 16px;
    }

    .title-accent {
        font-size: 1.8rem;
    }

    .meta-item {
        padding: 10px 20px;
    }

    .content-card {
        padding: var(--space-lg);
    }

    .nurture-step {
        min-width: auto;
    }

    .pipeline-step {
        min-width: auto;
    }
}

/* ============================
   유틸리티
   ============================ */
.padding-2rem {
    padding: var(--space-xl);
}

.section-desc {
    font-size: 1rem;
    color: var(--color-text-sub);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    text-align: center;
}

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

.tech-detail-list li {
    position: relative;
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    border-bottom: 1px solid var(--color-border-light);
}

.tech-detail-list li:last-child {
    border-bottom: none;
}

.tech-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.tech-detail-list li strong {
    color: var(--color-text-heading);
    font-weight: 600;
}

.tech-detail-list li code {
    padding: 1px 6px;
    background: var(--color-bg-light);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border-light);
}

.card-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* DB driven note */
.db-driven-note {
    padding: var(--space-lg);
    background: rgba(49, 130, 246, 0.04);
    border: 1px solid rgba(49, 130, 246, 0.15);
    border-radius: var(--radius-lg);
}

.db-driven-note h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.db-driven-note p {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Section tabs (legacy compat from app.js) */
.section-tab {
    display: none; /* handled by .nav-link */
}

/* Glass class removed - replaced by content-card */
.glass {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

/* ============================
   이미지 라이트박스 (확대 팝업)
   ============================ */
.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;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-out);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

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

/* 라이트박스 트리거 이미지 커서 */
.lightbox-trigger,
.nurture-gallery-img img,
.card-inline-image,
.table-gallery-item img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-trigger:hover,
.nurture-gallery-img img:hover,
.card-inline-image:hover,
.table-gallery-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}