/* ==========================================================================
   JUNHOME.KR — Linear / Vercel Inspired All-Dark Minimal Design System
   ========================================================================== */

:root {
    --bg-base: #08090a;
    --bg-elevated: #0e1015;
    --bg-card: rgba(255, 255, 255, 0.028);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --border-hairline: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);
    --border-accent: rgba(94, 106, 210, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #b4bcd0;
    --text-muted: #788296;
    --accent-primary: #ffffff;
    --accent-signal: #5e6ad2;
    --accent-cyan: #38bdf8;
    --accent-emerald: #10b981;
    --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-base) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.015em;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Vercel / Linear 스타일 아키텍처 그리드 배경 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* 상단 은은한 스포트라이트 광원 */
body::after {
    content: '';
    position: fixed;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 420px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.14) 0%, rgba(56, 189, 248, 0.05) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

main, nav, footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1160px !important;
}

/* 타이포그래피 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-top: 0;
}

.mono {
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    display: inline-block;
}

/* ==========================================================================
   Navigation Bar (Linear 56px Translucent Header)
   ========================================================================== */
.linear-navbar {
    height: 60px;
    background: rgba(8, 9, 10, 0.78) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-hairline);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
}

.linear-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13.5px;
}

.linear-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ffffff;
    color: #08090a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.linear-brand-sub {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.linear-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.linear-nav-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.linear-nav-link:hover,
.linear-nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.btn-linear-primary {
    background: #ffffff !important;
    color: #08090a !important;
    border: 1px solid #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 7px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-linear-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #08090a !important;
}

.btn-linear-ghost {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-hairline) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 7px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-linear-ghost:hover {
    border-color: var(--border-hover) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Hero & Command Bar
   ========================================================================== */
.linear-hero {
    padding: 128px 0 64px;
    border-bottom: 1px solid var(--border-hairline);
}

.hero-headline {
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-headline .muted-line {
    color: #9499a3;
}

.hero-subcopy {
    font-size: 16.5px;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.hero-subcopy strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Command Console (AI Digital Twin Input) */
.command-console {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    max-width: 760px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease;
}

.command-console:focus-within {
    border-color: rgba(255, 255, 255, 0.32);
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}

.command-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-prompt-char {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 15px;
    user-select: none;
}

.command-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--text-primary) !important;
    font-size: 15px;
    padding: 6px 0;
}

.command-input::placeholder {
    color: var(--text-muted);
}

.command-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-hairline);
}

.command-chip {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.command-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Bento Grid & Section Layouts
   ========================================================================== */
.linear-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border-hairline);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.section-title-lg {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 6px 0 0;
    color: #ffffff;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 14.5px;
    max-width: 560px;
    margin: 6px 0 0;
}

/* Bento Card (Single Layer, 1px Hairline, No Box-Nesting) */
.bento-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bento-card.clickable {
    cursor: pointer;
}

.bento-card:hover {
    border-color: var(--border-hover);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.018) 100%);
}

.bento-card.clickable:hover {
    transform: translateY(-2px);
}

.bento-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.bento-meta-accent {
    color: var(--text-secondary);
}

.bento-title {
    font-size: 17.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.bento-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.62;
    margin-bottom: 20px;
}

.bento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}

.bento-tokens {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bento-arrow {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.bento-card:hover .bento-arrow {
    transform: translateX(3px);
    color: #ffffff;
}

/* Metric Bento Cell */
.metric-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 650;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.metric-sub {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* Spec List (Engineering Philosophy & 5 Weapons — Zero nested boxes!) */
.spec-list {
    border-top: 1px solid var(--border-hairline);
}

.spec-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-hairline);
    align-items: flex-start;
}

.spec-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 2px;
    min-width: 28px;
}

.spec-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.spec-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.58;
}

/* Segmented Tab Control */
.segmented-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.segmented-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.segmented-tab:hover {
    color: var(--text-primary);
}

.segmented-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Brain Map Minimal Tokens */
.brain-token {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.brain-token:hover {
    border-color: var(--border-hover);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.brain-token-score {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* Press Media Card (Monochrome to Color on Hover) */
.press-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-hairline);
    filter: grayscale(85%) brightness(0.8);
    transition: filter 0.25s ease;
    margin-bottom: 14px;
}

.bento-card:hover .press-thumb {
    filter: grayscale(0%) brightness(1);
}

/* Linear Modal */
.linear-modal .modal-content {
    background: #0e1014 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px;
    color: var(--text-primary);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.linear-modal .modal-header {
    border-bottom: 1px solid var(--border-hairline);
    padding: 20px 26px;
}

.linear-modal .modal-body {
    padding: 26px;
}

.linear-modal .modal-footer {
    border-top: 1px solid var(--border-hairline);
    padding: 16px 26px;
}

.detail-block {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-hairline);
}

.detail-block:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Footer */
.linear-footer {
    padding: 36px 0;
    background: var(--bg-base);
    color: var(--text-muted);
    font-size: 13px;
}

/* Form Controls in Dark Modal */
.linear-input {
    background: #08090a !important;
    border: 1px solid var(--border-hairline) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 14px;
}

.linear-input:focus {
    border-color: var(--border-hover) !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .linear-hero {
        padding: 104px 0 48px;
    }
    .linear-section {
        padding: 48px 0;
    }
}


/* ==========================================================================
   3가지 핵심 스펙 카드 고가독성 구조화 리스트 (Structured Spec Breakdown)
   ========================================================================== */
.spec-card-lead {
    font-size: 13.5px;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.spec-point-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.spec-point-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.065);
    line-height: 1.45;
}

.spec-key {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.spec-val {
    font-size: 13.5px;
    color: #dce2f0;
}

.spec-val strong {
    color: #ffffff;
    font-weight: 600;
}
