/* ═══════════════════════════════════════════
   WEALTH.LAB — 부동산·주식·재테크 연구소
   글로벌 트렌드 디자인 (2026)
   ═══════════════════════════════════════════ */

:root {
    --bg: #0a0a0f;
    --bg-2: #11111a;
    --bg-card: #15151f;
    --bg-card-hover: #1c1c28;
    --text: #f5f5f7;
    --text-muted: #8e8e9b;
    --text-dim: #55555f;
    --accent: #00d9a3;
    --accent-2: #b794f6;
    --accent-3: #fbd38d;
    --red: #ef4444;
    --green: #00d9a3;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'ss01', 'ss02', 'cv11';
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Background Effects ── */
.noise {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mesh-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
}
.mesh-bg div {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}
.mesh-1 { width: 500px; height: 500px; top: -100px; left: -100px; background: radial-gradient(circle, #00d9a3 0%, transparent 70%); }
.mesh-2 { width: 600px; height: 600px; top: 40%; right: -200px; background: radial-gradient(circle, #b794f6 0%, transparent 70%); }
.mesh-3 { width: 400px; height: 400px; bottom: -100px; left: 30%; background: radial-gradient(circle, #fbd38d 0%, transparent 70%); opacity: 0.15; }

/* ── Navigation ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 32px;
    backdrop-filter: blur(20px) saturate(1.5);
    background: rgba(10,10,15,0.7);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    font-size: 1.5rem; color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
}
.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.brand-accent { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 10px 20px; border-radius: 100px;
    border: 1px solid var(--border-hover);
    font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav-cta span { transition: transform 0.2s; }
.nav-cta:hover span { transform: translateX(3px); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav { padding: 16px 20px; }
}

/* ── Hero ── */
.hero {
    position: relative; z-index: 2;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 32px 80px;
}
.hero-inner { max-width: 1400px; margin: 0 auto; width: 100%; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    background: rgba(0,217,163,0.08);
    border: 1px solid rgba(0,217,163,0.2);
    font-size: 0.72rem; font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 32px;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem; color: var(--text-muted);
    max-width: 540px; line-height: 1.7;
    margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 12px; margin-bottom: 80px; flex-wrap: wrap; }
.cta-primary {
    padding: 14px 26px; border-radius: 100px;
    background: var(--text); color: var(--bg);
    font-size: 0.9rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.cta-primary:hover { background: var(--accent); transform: translateY(-2px); }
.cta-primary span { transition: transform 0.2s; }
.cta-primary:hover span { transform: translateX(4px); }

.cta-ghost {
    padding: 14px 26px; border-radius: 100px;
    border: 1px solid var(--border-hover);
    font-size: 0.9rem; font-weight: 600;
    transition: all 0.2s;
}
.cta-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }

/* ── Hero Stats Bar ── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.stat {
    padding: 20px 24px;
    background: rgba(21,21,31,0.6);
}
.stat-label {
    font-size: 0.68rem; color: var(--text-dim);
    font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem; font-weight: 600;
    display: flex; align-items: baseline; gap: 10px;
}
.stat-up { font-size: 0.72rem; color: var(--green); font-weight: 500; }
.stat-down { font-size: 0.72rem; color: var(--red); font-weight: 500; }

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section Layout ── */
section { position: relative; z-index: 2; }
.section-head {
    max-width: 1400px; margin: 0 auto 60px;
    padding: 0 32px;
}
.section-label {
    font-size: 0.72rem; color: var(--accent);
    font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* ── Research / Bento ── */
.research { padding: 120px 0; }

.bento {
    max-width: 1400px; margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 16px;
}
.bento-card {
    grid-column: span 4;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex; flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.bento-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(0,217,163,0.06), transparent 50%);
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }

.bento-lg { grid-column: span 8; }
.bento-wide { grid-column: span 8; }
.bento-dark {
    background: linear-gradient(135deg, #00d9a3 0%, #00a478 100%);
    color: #0a0a0f;
    border: none;
}
.bento-dark .card-desc { color: rgba(10,10,15,0.7); }

.card-icon {
    font-size: 2rem; margin-bottom: 20px;
    filter: saturate(1.2);
}
.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem; font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.card-desc {
    font-size: 0.92rem; color: var(--text-muted);
    line-height: 1.6; flex: 1;
}
.card-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 20px;
}
.card-tags span {
    font-size: 0.7rem; font-weight: 600;
    padding: 5px 12px; border-radius: 100px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}
.bento-dark .card-tags span {
    background: rgba(10,10,15,0.15);
    color: rgba(10,10,15,0.8);
}

.card-stat { margin-top: auto; padding-top: 20px; }
.stat-big {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem; font-weight: 700;
    line-height: 1; letter-spacing: -0.03em;
}
.stat-sub {
    font-size: 0.8rem; margin-top: 4px;
    opacity: 0.7;
}

.card-meta {
    display: flex; align-items: center; gap: 8px;
    margin-top: 20px;
    font-size: 0.78rem; color: var(--text-dim);
}
.card-meta .dot { color: var(--text-dim); }

@media (max-width: 968px) {
    .bento-card, .bento-lg, .bento-wide { grid-column: span 12; }
}

/* ── Insights ── */
.insights { padding: 120px 0; background: var(--bg-2); }

.insight-list {
    max-width: 1000px; margin: 0 auto;
    padding: 0 32px;
    display: flex; flex-direction: column;
}
.insight-row {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: padding 0.3s;
}
.insight-row:hover { padding-left: 16px; }
.insight-row:last-child { border-bottom: none; }

.insight-meta {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.insight-tag {
    font-size: 0.65rem; font-weight: 800;
    padding: 4px 10px; border-radius: 4px;
    letter-spacing: 0.1em;
}
.tag-real { background: rgba(0,217,163,0.15); color: var(--accent); }
.tag-stock { background: rgba(183,148,246,0.15); color: var(--accent-2); }
.tag-macro { background: rgba(251,211,141,0.15); color: var(--accent-3); }
.tag-wealth { background: rgba(239,68,68,0.15); color: var(--red); }
.insight-date { font-size: 0.78rem; color: var(--text-dim); }

.insight-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}
.insight-excerpt {
    font-size: 0.95rem; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 14px;
    max-width: 780px;
}
.insight-link {
    font-size: 0.82rem; font-weight: 600;
    color: var(--accent);
}

/* ── Method ── */
.method { padding: 120px 0; }
.method-grid {
    max-width: 1400px; margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
}
.method-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.method-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem; font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.method-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.method-card p {
    font-size: 0.88rem; color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .method-grid { grid-template-columns: 1fr; }
}

/* ── CTA Section ── */
.cta-section {
    padding: 140px 32px;
    text-align: center;
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,217,163,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.cta-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.cta-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-desc {
    font-size: 1.05rem; color: var(--text-muted);
    margin-bottom: 36px;
}
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
    padding: 60px 32px 40px;
    border-top: 1px solid var(--border);
    position: relative; z-index: 2;
    background: var(--bg);
}
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: var(--text-dim);
}
.footer-meta .dot { color: var(--text-dim); }
.footer-disc {
    font-size: 0.72rem; color: var(--text-dim);
    line-height: 1.6;
    max-width: 720px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

@media (max-width: 540px) {
    .hero { padding: 100px 20px 60px; }
    .section-head, .insight-list, .method-grid, .bento { padding-left: 20px; padding-right: 20px; }
    .cta-section { padding: 100px 20px; }
}
