/* TITAN design proposal · 2026-10-26. No remote fonts or dependencies. */
:root {
  color-scheme: light;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --bg: #f5f7f8; --surface: #ffffff; --surface-soft: #eef3f4;
  --text: #172b35; --muted: #536874; --subtle: #647782;
  --border: #dbe4e7; --control-border: #788a93;
  --brand: #126557; --brand-hover: #0b4d43; --brand-soft: #e6f2ed;
  --on-brand: #ffffff; --up: #ba303e; --up-soft: #fff0f1;
  --down: #245fc1; --down-soft: #edf3ff; --flat: #596772;
  --focus: #245fc1; --notice-bg: #fff6df; --notice-text: #765211;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --text-xs: 12px; --text-sm: 13px; --text-base: 15px; --text-body: 16px;
  --text-lg: 18px; --text-xl: 22px; --text-h1: 30px; --text-price: 36px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px;
  --content-width: 1184px; --page-gutter: 16px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10191e; --surface: #17242b; --surface-soft: #20313a;
  --text: #eef4f5; --muted: #b2c2cb; --subtle: #a1b4bf;
  --border: #344953; --control-border: #8097a3;
  --brand: #8dd7bd; --brand-hover: #b1e9d3; --brand-soft: #193d35;
  --on-brand: #102d24; --up: #ff929d; --up-soft: #402931;
  --down: #93baff; --down-soft: #20324d; --flat: #b2bfc8;
  --focus: #a9c8ff; --notice-bg: #392f1c; --notice-text: #f1d18a;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; line-break: strict; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: var(--text-h1); font-weight: 750; line-height: 1.3; }
h2 { font-size: var(--text-xl); font-weight: 700; line-height: 1.4; }
h3 { font-size: var(--text-lg); font-weight: 650; line-height: 1.45; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button,input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a,button,input,summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--surface); z-index: 5; }
.skip:focus { top: 10px; }
.wrap { width: min(calc(100% - var(--page-gutter)*2), var(--content-width)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 16px; }
.wordmark { font-size: 25px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.wordmark small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.nav a[aria-current='page'] { color: var(--brand); box-shadow: inset 0 -2px var(--brand); }
.header-note { margin-left: auto; color: var(--muted); font-size: 12px; }
.demo-notice { color: var(--notice-text); background: var(--notice-bg); font-size: 12px; padding: 8px 12px; border-radius: var(--radius-sm); margin-block: 20px 16px; }
.ticker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.ticker-item { padding: 16px 24px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ticker-item + .ticker-item { border-left: 1px solid var(--border); }
.ticker-label { color: var(--muted); font-size: 12px; }
.ticker-value { font-size: 20px; font-weight: 700; }
.ticker-change { font-size: 13px; }
.num,.price,.ticker-value,.ticker-change { font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.unit,.change { white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--brand); margin-bottom: 12px; }
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; padding: 48px 0; align-items: center; }
.hero h1 { max-width: 16em; font-size: 40px; }
.hero .lead { max-width: 35em; margin-top: 16px; color: var(--muted); font-size: 16px; }
.hero-side { padding-left: 28px; border-left: 2px solid var(--border); }
.hero-side p { margin-block: 8px 16px; max-width: 35em; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 650; font-size: 14px; background: var(--brand); color: var(--on-brand); text-align: center; text-wrap: balance; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--brand); border-color: var(--control-border); }
.btn:disabled { background: var(--surface-soft); color: var(--muted); border-color: var(--border); }
.section { margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.section-head a { font-size: 13px; color: var(--brand); min-height: 44px; display: flex; align-items: center; }
.section-kicker { color: var(--muted); font-size: 13px; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: clip; }
.padded { padding: 24px; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.stock-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stock-layout > *, .split > *, .hero > * { min-width: 0; }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 5px; font-size: 12px; color: var(--muted); background: var(--surface-soft); }
.tag.accent { color: var(--brand); background: var(--brand-soft); }
.market-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.market-table caption { text-align: left; padding: 14px 20px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.market-table th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface-soft); text-align: right; padding: 10px 20px; }
.market-table td { text-align: right; padding: 16px 20px; border-top: 1px solid var(--border); }
.market-table th:first-child,.market-table td:first-child { text-align: left; }
.stock-name { font-weight: 650; } .stock-name small { font-weight: 400; color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.table-stock-link { display: inline-block; min-height: 44px; }
.row-label { display: none; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.feed li + li { border-top: 1px solid var(--border); }
.feed time { font-size: 12px; color: var(--muted); padding-top: 3px; }
.feed p { font-size: 14px; font-weight: 550; }
.feed small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.calendar-list { list-style: none; padding: 0; margin: 0; }
.calendar-list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.calendar-list li + li { border-top: 1px solid var(--border); }
.date-tile { display: flex; flex-direction: column; min-width: 48px; text-align: center; font-size: 11px; color: var(--muted); border-radius: 8px; background: var(--surface-soft); padding: 5px 10px; }
.date-tile strong { font-size: 22px; color: var(--text); line-height: 1.3; }
.calendar-list p { font-size: 14px; font-weight: 600; }
.calendar-list small { font-size: 12px; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.tool-card { background: var(--brand-soft); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border); }
.tool-card p { color: var(--muted); max-width: 35em; margin-block: 8px 20px; }
.tool-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--brand); border: 1px solid var(--brand); border-radius: 10px; font-size: 20px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form-row label { font-size: 13px; color: var(--muted); }
input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--control-border); border-radius: 8px; margin-top: 6px; }
.calc-result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; margin-block: 40px; }
.cta-band p { color: var(--muted); margin-top: 8px; max-width: 35em; font-size: 14px; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 12px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p { max-width: 65em; }
.breadcrumb { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-block: 24px 16px; }
.stock-header { padding: 28px; margin-bottom: 24px; }
.stock-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stock-identity h1 { margin-top: 8px; }
.price { font-size: var(--text-price); font-weight: 750; line-height: 1.3; margin-top: 20px; }
.price .currency { font-size: 18px; font-weight: 500; }
.price-change { margin-top: 6px; font-weight: 600; font-size: 15px; }
.timestamp { font-size: 12px; color: var(--muted); margin-top: 12px; }
.summary-copy { max-width: 35em; font-size: 16px; line-height: 1.8; margin-top: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; }
.metrics > div { padding: 20px; border-bottom: 1px solid var(--border); }
.metrics dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.metrics dd { margin: 0; font-size: 18px; font-weight: 650; }
.metrics > div:nth-last-child(-n+3) { border-bottom: 0; }
.range { margin-top: 24px; }
.range-track { height: 8px; border-radius: 99px; background: var(--surface-soft); position: relative; margin: 12px 8px; }
.range-fill { width: 60%; height: 100%; border-radius: 99px; background: var(--brand); }
.range-marker { position: absolute; left: 60%; top: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border: 4px solid var(--surface); border-radius: 50%; background: var(--brand); outline: 2px solid var(--brand); }
.range-labels { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.range-labels span:last-child { text-align: right; }
.range-labels strong { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.key-values { margin: 16px 0 0; }
.key-values > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.key-values dt { font-size: 13px; color: var(--muted); }
.key-values dd { margin: 0; font-weight: 600; text-align: right; }
.sidebar-cta { padding: 24px; background: var(--brand-soft); }
.sidebar-cta p { font-size: 14px; color: var(--muted); margin-block: 12px 20px; }
.sidebar-cta .btn { width: 100%; }
.related { padding: 0; list-style: none; margin: 16px 0 0; }
.related li { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--border); font-size: 14px; }
details + details { border-top: 1px solid var(--border); }
summary { padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 48px; }
details p { max-width: 35em; padding: 0 20px 20px; color: var(--muted); font-size: 14px; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; font-size: 12px; color: var(--muted); }
.preview-controls button { background: var(--surface); color: var(--text); border: 1px solid var(--control-border); border-radius: 6px; min-height: 44px; padding: 6px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 768px) { :root { --page-gutter: 32px; } }
@media (min-width: 1024px) { :root { --page-gutter: 48px; --text-price: 44px; --text-h1: 34px; } }
@media (max-width: 1279px) { #rank > .split { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1023px) {
  .header-note { display: none; } .header-inner { gap: 24px; }
  .hero { gap: 24px; } .hero h1 { font-size: 34px; }
  .stock-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 767px) {
  .header-inner { min-height: auto; padding-block: 20px 0; gap: 12px; }
  .wordmark { font-size: 24px; } .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav a { font-size: 13px; } .demo-notice { margin-top: 16px; }
  .ticker-item { padding: 12px 10px; gap: 2px; flex-direction: column; }
  .ticker-value { font-size: 16px; } .ticker-change { font-size: 12px; }
  .ticker-label { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-block: 32px; gap: 24px; }
  .hero h1 { font-size: 30px; max-width: 11em; }
  .hero-side { padding: 0; border: 0; } .hero-side h2 { font-size: 18px; }
  .hero-side p { font-size: 14px; }
  .hero .lead { font-size: 15px; }
  .split,.tool-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { margin-bottom: 24px; } h2 { font-size: 20px; }
  .section-head { gap: 8px; margin-bottom: 12px; }
  .section-head a { font-size: 12px; flex-shrink: 0; }
  .padded,.stock-header,.sidebar-cta { padding: 20px; }
  .market-table,.market-table tbody { display: block; }
  .market-table caption { display: block; }
  .market-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .market-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 20px; gap: 8px 16px; }
  .market-table tbody tr + tr { border-top: 1px solid var(--border); }
  .market-table td { display: block; border: 0; padding: 0; font-size: 14px; text-align: right; }
  .market-table td:first-child { grid-column: 1; grid-row: 1 / 3; }
  .market-table td:last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; }
  .row-label { display: inline; color: var(--muted); margin-right: 6px; font-size: 11px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics > div { padding: 16px; } .metrics dd { font-size: 17px; }
  .metrics > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
  .cta-band { align-items: stretch; flex-direction: column; padding: 24px; gap: 20px; margin-block: 32px; }
  .tool-card { padding: 24px; } .form-row { gap: 12px; }
  .footer-top { flex-direction: column; }
  .stock-identity { align-items: flex-start; } .stock-identity > .tag { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* 로고: 라이트/다크 전환 */
.wordmark { display: inline-flex; align-items: center; }
.logo { height: 30px; width: auto; display: block; }
.logo-dark { display: none; }
:root[data-theme='dark'] .logo-light { display: none; }
:root[data-theme='dark'] .logo-dark { display: block; }
