:root {
    --bg: #080c12;
    --surface: #0e1420;
    --surface2: #141c2c;
    --border: #1e2a3a;
    --accent: #e46970;
    --accent2: #f7636b;
    --text: #e8f0fb;
    --text-dim: #4a6080;
    --text-mid: #7a96b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    cursor: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

img { -webkit-user-drag: none; }

/* 커스텀 마우스 커서 */
.cursor, .cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent);
    z-index: 9999;
    will-change: transform;
}
.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent);
    z-index: 9998;
    will-change: transform;
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0.5;
}
.cursor-ring.hover { width: 54px; height: 54px; opacity: 1; border-color: var(--accent2); }

@media (pointer: coarse) {
    .cursor, .cursor-ring { display: none; }
    body { cursor: auto; }
}

/* 디지털 노이즈 및 그리드 패턴 배경 효과 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9997;
    opacity: 0.4;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(rgba(77,158,247,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,158,247,0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* 네비게이션 상단 바 */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    border-bottom: 1px solid var(--border);
    background: rgba(8,12,18,0.9);
    backdrop-filter: blur(20px);
}
.nav-logo {
    font-family: 'Pretendard Variable', monospace;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    font-family: 'Pretendard Variable', monospace;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

section { position: relative; z-index: 1; }

/* 타이틀 단독 레이아웃 디자인 조정 */
#hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 180px 48px 40px;
}
.hero-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 0.6s 0.3s forwards;
}
.hero-name span { color: var(--accent); }

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 0 48px;
    position: relative;
}
.section-divider::before {
    content: attr(data-label);
    position: absolute;
    left: 0; top: -8px;
    font-family: 'Pretendard Variable', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.15em;
}

/* 🎯 피드 스트림 레이아웃 */
#feed { padding: 80px 48px 120px; }
.feed-stream {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.feed-card {
    background: var(--surface);
    padding: 40px 36px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.feed-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}
.feed-card:hover { border-color: var(--accent); }
.feed-card:hover::before { opacity: 0.04; }

.feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Pretendard Variable', monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}
.feed-category {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
}
.feed-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--text);
}
.feed-desc { 
    font-size: 15px; 
    color: var(--text-mid); 
    line-height: 1.75; 
    font-weight: 300; 
    word-break: break-all;
}
.feed-desc strong { color: var(--text); font-weight: 500; }

/* 이미지 링크 컨테이너 스타일링 */
.feed-img-wrap {
    margin-top: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface2);
}
.feed-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.feed-card:hover .feed-img {
    transform: scale(1.015);
}

footer {
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo { font-family: 'Pretendard Variable', monospace; font-size: 13px; color: var(--accent); }
.footer-copy { font-family: 'Pretendard Variable', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* 반응형 모바일 디자인 매칭 */
@media (max-width: 768px) {
    nav { padding: 14px 20px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 10px; }

    #hero {
        padding: 130px 20px 30px;
        min-height: unset;
    }
    .hero-name { font-size: clamp(38px, 10vw, 58px); }
    .section-divider { margin: 0 20px; }

    #feed { padding: 48px 20px 80px; }
    .feed-card { padding: 28px 20px; }
    .feed-card-title { font-size: 20px; margin-bottom: 12px; }
    .feed-desc { font-size: 14px; }
    .feed-img-wrap { margin-top: 18px; }

    footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}