/* ===== v0.2 overrides (2026-11-24) — 11/20 브레인스토밍 피드백 반영 =====
   Loaded after site.css on every page. Desktop-first tuning, brand logo,
   Invest in Korea hero, terminal motion section, open-data blocks, sign-in. */

@media (min-width: 1200px) { :root { --container: 1280px; } }

/* ---------- Brand logo (shared drive: 맨데이터로고.png) ---------- */
.c-logo.has-img { gap: 0; height: auto; }
.c-logo.has-img img { display: block; height: 30px; width: auto; }
.c-footer .c-logo.has-img img { height: 28px; }
.c-logo.has-img .mark { display: none; }

/* header: sign-in link */
.hdr-signin { color: inherit; text-decoration: none; font: var(--t-btn); padding: 8px 6px; opacity: .85; }
.hdr-signin:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1080px) { .hdr-signin { display: none; } }
.c-nav .dd .dd-note { display: block; font: var(--t-caption); color: var(--muted); padding: 2px 12px 8px; }
.tag-onreq { margin-left: 6px; font: 500 11px/1 var(--font-mono); padding: 3px 6px; border-radius: 4px; border: 1px solid currentColor; opacity: .7; }

/* ---------- HERO: Invest in Korea ---------- */
.hero-ik { position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 0 !important; overflow: hidden; color: #F5F4F0; background: #0b0d14; }
.hero-ik::before { display: none; }
.hero-ik .bg { position: absolute; inset: 0; background-image: url("img/hero-gwanghwamun.jpg"), url("img/hero-gwanghwamun.svg"); background-size: cover; background-position: center 60%, 74% 100%; transform: scale(1.06); animation: ikZoom 18s ease-out forwards; }
.hero-ik .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,13,.86) 0%, rgba(8,9,13,.55) 45%, rgba(8,9,13,.15) 100%), linear-gradient(0deg, rgba(8,9,13,.9) 0%, rgba(8,9,13,0) 45%); }
.hero-ik .grid-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(245,244,240,.10) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%); }
.hero-ik > .inner { position: relative; width: 100%; box-sizing: border-box; padding-top: calc(var(--header-h) + 96px); padding-bottom: 0; }
.hero-ik .eyebrow { display: inline-flex; align-items: center; gap: 10px; font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--brand); opacity: 0; animation: ikFade .6s .1s ease forwards; }
.hero-ik .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hero-ik h1.ik-main { font: 700 104px/1.0 var(--font-head); letter-spacing: -0.035em; margin: 20px 0 0; max-width: none; transform-origin: left bottom; opacity: 0; animation: ikIn .9s .2s cubic-bezier(.2,.7,.2,1) forwards, ikShrink .8s 1.5s cubic-bezier(.6,0,.2,1) forwards; }
.hero-ik h1.ik-main .accent { color: var(--brand); }
.hero-ik .ik-sub { font: 500 34px/1.25 var(--font-head); letter-spacing: -0.015em; margin: 14px 0 0; max-width: 24ch; color: #F5F4F0; opacity: 0; transform: translateY(18px); animation: ikUp .7s 1.9s ease forwards; }
.hero-ik .ik-desc { font: var(--t-lead); color: rgba(245,244,240,.78); max-width: 58ch; margin: 18px 0 28px; opacity: 0; animation: ikUp .7s 2.2s ease forwards; }
.hero-ik .btn-row { opacity: 0; animation: ikUp .7s 2.4s ease forwards; }
.hero-ik .c-btn--secondary { color: #F5F4F0; border-color: rgba(245,244,240,.7); }
.hero-ik .c-btn--secondary:hover { background: #F5F4F0; color: #111; }
@keyframes ikIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ikShrink { from { font-size: 104px; } to { font-size: 72px; } }
@keyframes ikUp { to { opacity: 1; transform: none; } }
@keyframes ikFade { to { opacity: 1; } }
@keyframes ikZoom { to { transform: scale(1); } }

/* ticker tape at bottom of hero */
.ik-tape { position: relative; margin-top: 64px; border-top: 1px solid rgba(245,244,240,.14); background: rgba(8,9,13,.55); backdrop-filter: blur(6px); overflow: hidden; white-space: nowrap; font: 500 13px/1 var(--font-mono); color: rgba(245,244,240,.85); }
.ik-tape .track { display: inline-flex; gap: 40px; padding: 14px 0; animation: tape 48s linear infinite; }
.ik-tape .it { display: inline-flex; gap: 10px; align-items: baseline; }
.ik-tape .it b { color: #F5F4F0; font-weight: 600; }
.ik-tape .up { color: #4ADE80; } .ik-tape .dn { color: #F87171; }
.ik-tape .src { color: var(--brand); }
.ik-tape .flag { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 16px 0 40px; background: linear-gradient(90deg, rgba(8,9,13,0), rgba(8,9,13,.95) 30%); font: 500 11px/1 var(--font-mono); color: rgba(245,244,240,.55); text-transform: uppercase; letter-spacing: .06em; }
@keyframes tape { to { transform: translateX(-50%); } }

@media (max-width: 800px) {
  .hero-ik h1.ik-main { font-size: 60px; animation: ikIn .9s .2s ease forwards; }
  .hero-ik .ik-sub { font-size: 24px; }
  .hero-ik > .inner { padding-top: calc(var(--header-h) + 56px); }
}

/* ---------- TERMINAL motion section (Terminal X reference) ---------- */
.term-sec { background: #0b0c10; color: #F5F4F0; padding: 112px 0; position: relative; overflow: hidden; }
.term-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 30%, rgba(247,127,22,.14), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(15,111,122,.18), transparent 70%); pointer-events: none; }
.term-sec .inner { position: relative; }
.term-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.term-copy .label { color: var(--brand); }
.term-copy h2 { font: 700 46px/1.1 var(--font-head); letter-spacing: -0.02em; margin: 14px 0 18px; }
.term-copy p { color: rgba(245,244,240,.72); font: var(--t-lead); }
.term-copy ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.term-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: rgba(245,244,240,.86); }
.term-copy li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 2px; background: var(--brand); }
.term-copy .c-btn--secondary { color: #F5F4F0; border-color: rgba(245,244,240,.6); }
.term-copy .c-btn--secondary:hover { background: #F5F4F0; color: #111; }

.term { background: #111318; border: 1px solid #262a33; border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; font-family: var(--font-mono); }
.term .tbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #22252d; background: #0e1015; }
.term .tbar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3039; }
.term .tbar i:first-child { background: #F77F16; }
.term .tbar .ttl { margin-left: 8px; font-size: 12px; color: #8b909c; }
.term .tbar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #8b909c; text-transform: uppercase; letter-spacing: .06em; }
.term .tbar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.term .tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid #22252d; }
.term .tabs button { all: unset; cursor: pointer; font-size: 12px; color: #8b909c; padding: 8px 12px; border-radius: 6px 6px 0 0; }
.term .tabs button[aria-selected="true"] { color: #F5F4F0; background: #181b22; box-shadow: inset 0 -2px 0 var(--brand); }
.term .body { padding: 20px 22px 22px; min-height: 452px; display: grid; gap: 16px; align-content: start; background: #181b22; }
.term .ask { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #0f1116; border: 1px solid #2a2e38; border-radius: 10px; font-size: 14px; color: #F5F4F0; line-height: 1.5; min-height: 46px; }
.term .ask .pr { color: var(--brand); flex: none; }
.term .ask .caret { display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term .steps { display: grid; gap: 6px; font-size: 12.5px; color: #9aa0ad; min-height: 96px; }
.term .steps div { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.term .steps div.on { opacity: 1; transform: none; }
.term .steps .ic { width: 14px; flex: none; color: #F77F16; }
.term .steps div.done .ic { color: #4ADE80; }
.term .steps em { font-style: normal; color: #d6d9e0; }
.term .out { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; opacity: 0; transition: opacity .4s; }
.term .out.on { opacity: 1; }
.term .chart { background: #0f1116; border: 1px solid #2a2e38; border-radius: 10px; padding: 12px 12px 6px; }
.term .chart .cap { display: flex; justify-content: space-between; font-size: 11px; color: #8b909c; margin-bottom: 4px; }
.term .chart svg { width: 100%; height: 170px; display: block; }
.term .chart .ln { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-dasharray: 600; stroke-dashoffset: 600; }
.term .out.on .chart .ln { animation: draw 1.8s .1s ease forwards; }
.term .chart .ln2 { fill: none; stroke: #6fb7c0; stroke-width: 1.6; stroke-dasharray: 4 4; opacity: 0; }
.term .out.on .chart .ln2 { animation: fadeIn .6s 1.2s forwards; }
.term .chart .bar { fill: #2b3a40; transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); }
.term .out.on .chart .bar { animation: grow .6s ease forwards; }
.term .chart .band { fill: rgba(247,127,22,.14); opacity: 0; }
.term .out.on .chart .band { animation: fadeIn .8s 1.4s forwards; }
.term .chart .ax { fill: #6b7080; font-size: 9px; font-family: var(--font-mono); }
.term .chart .gl { stroke: #23262e; stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes fadeIn { to { opacity: 1; } }
.term .kpis { display: grid; gap: 10px; align-content: start; }
.term .kpi { background: #0f1116; border: 1px solid #2a2e38; border-radius: 10px; padding: 10px 12px; }
.term .kpi small { display: block; font-size: 10.5px; color: #8b909c; text-transform: uppercase; letter-spacing: .05em; }
.term .kpi b { display: block; margin-top: 4px; font: 600 22px/1.1 var(--font-mono); color: #F5F4F0; }
.term .kpi b.pos { color: #4ADE80; }
.term .kpi span { font-size: 11px; color: #8b909c; }
.term .foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #6b7080; border-top: 1px dashed #2a2e38; padding-top: 10px; }
.term .foot b { color: #9aa0ad; font-weight: 500; }
@media (max-width: 1000px) { .term-grid { grid-template-columns: 1fr; gap: 40px; } .term-copy h2 { font-size: 34px; } }
@media (max-width: 560px) { .term .out { grid-template-columns: 1fr; } .term .body { min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-ik *, .hero-ik .bg, .ik-tape .track, .term * { animation: none !important; transition: none !important; }
  .hero-ik .eyebrow, .hero-ik h1.ik-main, .hero-ik .ik-sub, .hero-ik .ik-desc, .hero-ik .btn-row { opacity: 1; transform: none; }
  .hero-ik h1.ik-main { font-size: 72px; }
  .term .chart .ln { stroke-dashoffset: 0; } .term .chart .bar { transform: none; } .term .chart .ln2, .term .chart .band { opacity: 1; }
}

/* ---------- Open data block ---------- */
.open-sec .grid.g3 .c-card { display: flex; flex-direction: column; }
.open-sec .c-card .k { font: 500 12px/1 var(--font-mono); color: var(--brand-deep); text-transform: uppercase; letter-spacing: .06em; }
.open-sec .c-card h3 { margin-top: 10px; }
.open-sec .c-card .foot { margin-top: auto; padding-top: 16px; }
.open-note { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-md, 10px); color: var(--fg-2); }
.lock { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-mono); color: var(--muted); }

/* ---------- MCP strip (demoted) ---------- */
.mcp-strip { padding: 40px 0; border-top: 1px solid var(--line); }
.mcp-strip .row { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mcp-strip p { margin: 0; color: var(--fg-2); max-width: 70ch; }
.mcp-strip b { color: var(--fg); }

/* ---------- K500 layout table ---------- */
.layout-files { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.layout-files nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; }
.layout-files nav button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 8px; font: 500 14px/1.2 var(--font-mono); color: var(--fg-2); }
.layout-files nav button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-deep); }
.layout-files nav small { display: block; font: var(--t-caption); color: var(--muted); margin-top: 3px; font-family: var(--font-body); }
.layout-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.layout-tbl th, .layout-tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.layout-tbl th { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.layout-tbl td:first-child { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.layout-tbl td:nth-child(2) { font-family: var(--font-mono); color: var(--cool); white-space: nowrap; font-size: 13px; }
@media (max-width: 800px) { .layout-files { grid-template-columns: 1fr; } .layout-files nav { position: static; grid-auto-flow: column; overflow: auto; } }

/* ---------- Sign-in page ---------- */
.signin-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.signin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.signin-card .tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.signin-card .tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 8px; font: var(--t-btn); color: var(--muted); }
.signin-card .tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--fg); }
.signin-card label { display: grid; gap: 6px; font: 500 14px/1.3 var(--font-body); margin-bottom: 14px; }
.signin-card input, .signin-card select { font: var(--t-body); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); }
.signin-card .hint { font: var(--t-small); color: var(--muted); }
.signin-card .err { color: var(--error); font: var(--t-small); display: none; }
.signin-card.is-err .err { display: block; }
.signin-perks { list-style: none; padding: 0; display: grid; gap: 14px; }
.signin-perks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.signin-perks li::before { content: "✓"; color: var(--brand-deep); font-weight: 700; }
@media (max-width: 900px) { .signin-wrap { grid-template-columns: 1fr; } }

/* sample gate on product pages */
.gate { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.gate p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- BI Guidelines v1 (Feb 2025) color application — 2026-11-24 ---------- */
/* Main gradient (#F77F16 → #F5A623): CTA band, hero accent word, eyebrow rule */
.c-cta { background: var(--brand-gradient); }
.hero-ik h1.ik-main .accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ik .eyebrow::before { background: var(--brand-gradient); }
.term .tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--brand); }
.c-btn--primary:hover { background: var(--brand-hover); }

/* ---------- Background palette matched to terminal-x.ai — 2026-11-24 ---------- */
/* light: #F5F3F0 page · #FBFAF8 cards · #E8E4DF alt   dark: teal #0C2B28 · raised #163834 */
.hero-ik { background: #0C2B28; }
.hero-ik .shade { background: linear-gradient(90deg, rgba(12,43,40,.88) 0%, rgba(12,43,40,.55) 45%, rgba(12,43,40,.12) 100%), linear-gradient(0deg, rgba(12,43,40,.92) 0%, rgba(12,43,40,0) 45%); }
.ik-tape { background: rgba(12,43,40,.6); }
.ik-tape .flag { background: linear-gradient(90deg, rgba(12,43,40,0), rgba(12,43,40,.95) 30%); }
.term-sec { background: #0C2B28; }
.term-sec::before { background: radial-gradient(60% 50% at 80% 30%, rgba(247,127,22,.12), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(175,195,192,.10), transparent 70%); }
.term { background: #082320; border-color: rgba(245,243,240,.12); }
.term .tbar { background: #071f1c; border-color: rgba(245,243,240,.10); }
.term .tabs { border-color: rgba(245,243,240,.10); }
.term .tabs button[aria-selected="true"], .term .body { background: #0f302c; }
.term .ask, .term .chart, .term .kpi { background: #0a2724; border-color: rgba(245,243,240,.12); }
.term .chart .gl { stroke: rgba(245,243,240,.08); }
.term .chart .bar { fill: #2f5550; }
.term .foot { border-color: rgba(245,243,240,.14); }
.c-header .hdr-signin { color: var(--fg); }
