/* ==========================================================
   WIA Geulsalim — Main Stylesheet
   We're Geulsalim · 우리들의 글살림 · 弘益人間
   ========================================================== */

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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #141824;
    --bg-card: #1e2332;
    --bg-card-2: #252c3f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-gold: #fbbf24;     /* 글살림 — 따뜻한 금색 (생명) */
    --accent-jade: #10b981;     /* 살림 — 생명·복원 (녹색) */
    --accent-violet: #8b5cf6;   /* 지식·문화 */
    --accent-ocean: #0ea5e9;    /* 글로벌 */
    --accent-rose: #ec4899;     /* 멀티모달 */

    --border: #334155;
    --border-soft: rgba(148, 163, 184, 0.12);
    --max-width: 1200px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 32px rgba(251, 191, 36, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

em { font-style: normal; color: var(--accent-gold); }
.num-hi { color: var(--accent-gold); font-weight: 900; }

/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0.82) 55%, rgba(10,14,26,0.94) 100%),
        url('/assets/images/hero-bg.jpg') center/cover no-repeat,
        linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(251, 191, 36, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; width: 100%; }

.hero-badge {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 8px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent-gold);
    margin-bottom: 36px;
}
.badge-divider { color: var(--text-muted); }

.hero-title {
    font-size: clamp(64px, 11vw, 140px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 18px;
}
.hero-title .title-ko {
    display: block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-jade) 60%, var(--accent-ocean) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .title-en {
    display: block;
    font-size: 0.3em;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-tagline {
    font-size: clamp(18px, 2.7vw, 28px);
    color: var(--text-primary);
    max-width: 820px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-jade));
    color: #0a0e1a;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(251, 191, 36, 0.35); }
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.hero-philosophy {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 36px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    margin-bottom: 36px;
}
.hero-philosophy .han {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent-violet);
    letter-spacing: 0.12em;
}
.hero-philosophy .ko {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-quote {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 36px;
    background: rgba(14, 165, 233, 0.07);
    border-left: 4px solid var(--accent-ocean);
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.hero-quote p {
    font-size: 19px;
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.55;
    letter-spacing: -0.005em;
}
.hero-quote .quote-ko {
    color: var(--accent-gold);
    font-size: 20px;
    font-weight: 500;
}
.hero-quote .quote-by {
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    display: block;
    margin-top: 10px;
    letter-spacing: 0.2px;
}
@media (max-width: 720px) {
    .hero-quote { padding: 22px 22px; }
    .hero-quote p { font-size: 16px; }
    .hero-quote .quote-ko { font-size: 17px; }
}

/* ============================================
   GENERAL SECTION
   ============================================ */
section:not(.hero) {
    padding: 100px 0;
    border-top: 1px solid var(--border-soft);
    position: relative;
}
section h2 {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.25;
}
.section-lead {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SECTION 2: PROBLEM
   ============================================ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}
.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.problem-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose));
    opacity: 0.6;
}
.problem-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); }
.card-icon { font-size: 34px; margin-bottom: 14px; }
.problem-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.card-stat {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1;
}
.problem-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.problem-callout {
    text-align: center;
    font-size: 22px;
    color: var(--accent-gold);
    font-weight: 700;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 28px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    line-height: 1.5;
}
@media (max-width: 720px) {
    .problem-callout { font-size: 18px; padding: 20px 22px; }
}
.problem-callout u { text-decoration-color: var(--accent-gold); text-underline-offset: 4px; }

/* ============================================
   SECTION 3: SOLUTION (Pipeline)
   ============================================ */
.pipeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 28px;
}
.pipeline-step {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 22px 18px;
    position: relative;
    transition: all 0.3s;
}
.pipeline-step[data-color="restore"]   { border-top: 3px solid var(--accent-ocean); }
.pipeline-step[data-color="structure"] { border-top: 3px solid var(--accent-jade); }
.pipeline-step[data-color="transform"] { border-top: 3px solid var(--accent-gold); }
.pipeline-step[data-color="deliver"]   { border-top: 3px solid var(--accent-rose); }
.pipeline-step:hover { background: var(--bg-card-2); transform: translateY(-3px); }
.step-num {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.pipeline-step h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.pipeline-step p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
    min-height: 72px;
}
.step-demo {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    transition: all 0.25s;
}
.step-demo:hover { background: var(--accent-gold); color: #0a0e1a; }
.pipeline-arrow {
    font-size: 22px;
    color: var(--accent-gold);
    align-self: center;
    opacity: 0.7;
}
.pipeline-footnote {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   SECTION 4: PROOF
   ============================================ */
.proof-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 56px;
}
@media (max-width: 720px) {
    .proof-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 22px 12px;
    text-align: center;
    transition: all 0.3s;
}
.stat-card:hover {
    background: var(--bg-card-2);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}
.stat-card .num {
    font-size: 38px;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
    display: inline-block;
    line-height: 1;
}
.stat-card .unit {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-left: 1px;
}
.stat-card .label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.proof-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}
.proof-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.service-card {
    display: block;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    position: relative;
}
.service-card:hover {
    background: var(--bg-card-2);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}
.service-card.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(16, 185, 129, 0.06));
    border-color: rgba(251, 191, 36, 0.3);
}
.service-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-jade);
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 0 10px var(--accent-jade);
    animation: dotPulse 2s infinite;
}
.service-dot.gold { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.service-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}
.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   SECTION 5: STANDARDS
   ============================================ */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.standard-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px 22px 22px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}
.standard-badge:hover {
    transform: translateY(-4px);
    border-color: var(--accent-jade);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}
.std-ribbon {
    position: absolute;
    top: 0; right: 0;
    background: var(--accent-jade);
    color: #0a0e1a;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    letter-spacing: 1px;
    border-bottom-left-radius: 8px;
}
.standard-badge h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 16px 0 6px;
    letter-spacing: -0.01em;
}
.std-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}
.std-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.standards-footnote {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.7;
}
.standards-footnote strong { color: var(--text-secondary); font-weight: 600; }

/* ============================================
   SECTION 6: VISION (Timeline)
   ============================================ */
.global-map {
    max-width: 960px;
    margin: 0 auto 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.global-map .zoomable {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    transition: transform 0.4s ease;
}
.global-map .zoomable:hover { transform: scale(1.01); }
.global-map .zoomable:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: -3px;
}
.global-map img {
    display: block;
    width: 100%;
    height: auto;
}
.zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(10, 14, 26, 0.78);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    transition: background 0.25s;
}
.global-map .zoomable:hover .zoom-hint {
    background: rgba(251, 191, 36, 0.95);
    color: #0a0e1a;
}

/* ---------- Image zoom dialog (lightbox) ---------- */
dialog.img-zoom {
    margin: auto;
    padding: 0;
    max-width: 98vw;
    max-height: 96vh;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    overflow: visible;
    color: #fff;
}
dialog.img-zoom::backdrop {
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
dialog.img-zoom[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: zoomIn 0.25s ease-out;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.img-zoom-img {
    display: block;
    max-width: 95vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    background: #0a0e1a;
}
.img-zoom-caption {
    max-width: 95vw;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.55;
    padding: 0 12px;
}
.img-zoom-caption:empty { display: none; }
.img-zoom-close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-zoom-close:hover,
.img-zoom-close:focus-visible {
    background: var(--accent-gold);
    color: #0a0e1a;
    transform: rotate(90deg);
    outline: none;
}
.global-map figcaption {
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-soft);
    line-height: 1.55;
}

.vision-timeline {
    list-style: none;
    max-width: 820px;
    margin: 0 auto 48px;
    position: relative;
    padding: 0;
}
.vision-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 120px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-jade), var(--accent-violet));
    opacity: 0.35;
}
.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 32px;
    padding: 18px 0;
    position: relative;
    align-items: start;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 114px;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 2;
}
.timeline-item.highlight::before {
    background: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}
.timeline-date {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    padding-top: 24px;
    letter-spacing: 0.5px;
}
.timeline-body {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: all 0.3s;
}
.timeline-item.highlight .timeline-body {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(16, 185, 129, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}
.timeline-body:hover { border-color: var(--accent-jade); transform: translateX(4px); }
.timeline-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.timeline-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.vision-quote {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 32px;
    background: rgba(139, 92, 246, 0.08);
    border-left: 4px solid var(--accent-violet);
    border-radius: var(--radius);
    text-align: center;
}
.vision-quote p {
    font-size: 16px;
    color: #e0e7ff;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}
.vision-quote .quote-by {
    font-size: 13px;
    color: var(--accent-violet);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-style: normal;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 56px 0 56px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 13px;
}
.footer-orgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}
.footer-org-label {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.footer-org-name {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 6px;
}
.footer-org p {
    margin-bottom: 4px;
    line-height: 1.55;
    color: var(--text-secondary);
}
.footer-copy {
    text-align: center;
    margin-bottom: 4px;
    color: var(--text-muted);
}
.footer-links {
    margin-top: 18px;
    text-align: center;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 4px;
}
.footer-links a:hover { color: var(--accent-gold); }

@media (max-width: 720px) {
    .footer-orgs { grid-template-columns: 1fr; gap: 22px; padding-bottom: 22px; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .pipeline {
        grid-template-columns: 1fr;
    }
    .pipeline-arrow {
        transform: rotate(90deg);
        margin: 4px 0;
        justify-self: center;
    }
    .pipeline-step p { min-height: auto; }
}

@media (max-width: 768px) {
    section:not(.hero) { padding: 72px 0; }
    .container { padding: 0 18px; }
    .hero { padding: 60px 0 40px; }
    .hero-cta { flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
    .btn { justify-content: center; }
    .problem-grid,
    .proof-stats,
    .proof-services,
    .standards-grid {
        grid-template-columns: 1fr;
    }
    .vision-timeline::before { left: 18px; }
    .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 40px; }
    .timeline-item::before { left: 12px; top: 22px; }
    .timeline-date { text-align: left; padding-top: 0; font-size: 13px; }
    .hero-quote { text-align: left; }
}
