@charset "UTF-8";

:root {
  --page: #f7f8fa;
  --white: #fff;
  --ink: #191f28;
  --text: #4e5968;
  --muted: #6b7684;
  --line: #e5e8eb;
  --blue: #3182f6;
  --blue-hover: #1b64da;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.6 var(--font); letter-spacing: -.3px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.page-width { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; transform: translateY(-180%); padding: 12px 20px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 48px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 19px; font-weight: 800; letter-spacing: -.6px; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; }
.brand-mark svg { width: 26px; height: 26px; }
.market-nav { display: flex; align-self: stretch; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; font-weight: 600; }
.market-nav a { display: flex; align-items: center; height: 100%; white-space: nowrap; border-bottom: 2px solid transparent; padding-top: 2px; }
.market-nav a:hover, .market-nav a.is-active { color: var(--ink); border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dashboard-link { color: var(--text); }
.dashboard-link span { margin-left: 4px; }
.login-link { padding: 8px 15px; border-radius: 8px; background: #f2f4f6; color: var(--text); }
.login-link:hover { background: var(--line); }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 54px 48px; }
.eyebrow { margin-bottom: 10px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.hero h1 { font-size: clamp(32px, 3vw, 40px); line-height: 1.35; letter-spacing: -1.5px; font-weight: 750; word-break: keep-all; }
.hero-description { margin-top: 12px; color: var(--muted); font-size: 16px; word-break: keep-all; }
.hero-link { display: inline-flex; align-items: center; gap: 20px; flex-shrink: 0; padding: 12px 18px; border-radius: 10px; background: #e8f1ff; color: #1b64da; font-size: 14px; font-weight: 600; }
.hero-link:hover { background: #dbeaff; }
.ticker-band { background: var(--white); border-block: 1px solid var(--line); }
.market-content { padding-top: 44px; }
.market-section { margin-bottom: 56px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: -.8px; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 14px; word-break: keep-all; }
.coin-selector { display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 5px; border-radius: 12px; background: #eceff3; }
.coin-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.coin-button:hover { color: var(--ink); background: #f7f8fa; }
.coin-button.is-active { background: var(--white); color: var(--ink); }
.coin-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 14px; font-weight: 500; }
.bitcoin { background: #fff1db; color: #bf7610; }
.ethereum { background: #eceffc; color: #6676b8; }
.solana { background: #e9f5f1; color: #228d72; }
.xrp { background: #e5e8eb; color: #4e5968; }

.chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.widget-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 17px 22px; border-bottom: 1px solid #f2f4f6; }
.card-heading h3 { font-size: 15px; font-weight: 650; line-height: 1.5; }
.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.small-label { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; text-align: right; }
.text-link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.text-link:hover { color: var(--blue); }
.analysis-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card-footnote { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #f2f4f6; padding: 12px 22px; color: var(--muted); font-size: 11px; }
.section-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.market-legend, .market-legend>span { display: flex; align-items: center; gap: 7px; }
.market-legend { gap: 18px; color: var(--muted); font-size: 12px; }
.legend-square { width: 8px; height: 8px; border-radius: 2px; }
.legend-square.positive { background: #26a69a; }
.legend-square.negative { background: #ef5350; }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.insight-caption { min-height: 66px; padding: 15px 20px; border-top: 1px solid #f2f4f6; color: var(--muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.trade-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border-radius: var(--radius); background: #edf3fc; }
.trade-cta h2 { font-size: 22px; letter-spacing: -.6px; }
.trade-cta p { margin-top: 6px; color: var(--text); font-size: 14px; word-break: keep-all; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; flex-shrink: 0; min-height: 48px; padding: 12px 20px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.primary-button:hover { background: var(--blue-hover); }
.market-disclaimer { margin: 20px 0 44px; color: var(--muted); font-size: 12px; line-height: 1.9; word-break: keep-all; }
.noscript-message { margin-bottom: 32px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.noscript-message a { color: var(--blue); text-decoration: underline; }

.market-widget { position: relative; min-width: 0; }
.widget-frame { position: relative; overflow: hidden; background: var(--white); }
.widget-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; visibility: hidden; }
.market-widget.is-loaded .widget-frame iframe { opacity: 1; visibility: visible; }
.widget-placeholder { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; background: var(--white); color: var(--muted); font-size: 13px; }
.market-widget.is-loaded .widget-placeholder { display: none; }
.widget-spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: widget-spin .9s linear infinite; }
@keyframes widget-spin { to { transform: rotate(360deg); } }
.tradingview-widget-copyright { min-height: 26px; padding: 3px 12px 5px; background: var(--white); color: var(--muted); font-size: 10px; line-height: 18px; text-align: center; }
.tradingview-widget-copyright a { color: #5a79a5; }
.tradingview-widget-copyright a:hover { text-decoration: underline; }
.ticker-widget .widget-frame { height: 54px; }
.ticker-widget .widget-placeholder { flex-direction: row; gap: 10px; }
.ticker-widget .widget-spinner { width: 16px; height: 16px; }
.chart-widget .widget-frame { height: 568px; }
.symbol-widget .widget-frame { height: 101px; }
.technical-widget .widget-frame { height: 400px; }
.heatmap-widget .widget-frame { height: 480px; }
.screener-widget .widget-frame { height: 520px; }
.insight-widget .widget-frame { height: 460px; }
.widget-fallback { position: absolute; inset: 0 0 26px; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 20px; background: #f9fafb; color: var(--muted); font-size: 12px; text-align: center; word-break: keep-all; }
.widget-fallback strong { color: var(--text); font-size: 14px; font-weight: 600; }
.fallback-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.fallback-actions a { color: #1b64da; font-size: 12px; }
.widget-retry { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--text); font-size: 12px; }
.widget-retry:hover { background: #f2f4f6; }
.market-widget.is-error .widget-placeholder { display: none; }
.market-widget.is-error .widget-frame iframe { opacity: 0; visibility: hidden; }
.ticker-widget .widget-fallback { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; padding: 8px; }
.ticker-widget .widget-fallback strong { font-size: 12px; }
.ticker-widget .widget-fallback>span { display: none; }
.ticker-widget .fallback-actions { margin: 0; }
.ticker-widget .widget-retry { min-height: 32px; padding: 4px 10px; }

.site-footer { padding: 32px 0 24px; border-top: 1px solid var(--line); background: #f2f4f6; color: var(--muted); font-size: 12px; line-height: 1.9; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.footer-brand { color: var(--text); font-size: 16px; font-weight: 750; letter-spacing: -.3px; }
.back-to-top { display: inline-flex; align-items: center; gap: 12px; }
.company-info p, .company-english p { overflow-wrap: anywhere; }
.company-info a:hover, .company-english a:hover { text-decoration: underline; }
.footer-divider { margin: 0 8px; color: #b0b8c1; }
.company-english { margin-top: 12px; font-size: 11px; }
.company-english summary { width: fit-content; cursor: pointer; }
.company-english[open] summary { margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 1100px) {
  .header-inner { gap: 28px; }
  .market-nav { gap: 24px; }
  .header-actions { gap: 16px; }
  .chart-layout { grid-template-columns: minmax(0, 1fr); }
  .chart-widget .widget-frame { height: 520px; }
  .analysis-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .technical-widget .widget-frame { height: 400px; }
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-card { grid-column: 1 / -1; }
  .calendar-card .widget-frame { height: 360px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 126px; }
  .page-width { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 64px; }
  .brand { margin-block: 16px; font-size: 17px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .header-actions { gap: 14px; font-size: 12px; }
  .dashboard-link { display: none; }
  .header-actions.is-signed-in .dashboard-link { display: inline-flex; }
  .login-link { padding: 7px 13px; }
  .market-nav { order: 3; flex: 0 0 100%; gap: 28px; height: 44px; font-size: 14px; }
  .market-nav a { padding: 0 0 10px; }
  .hero { display: block; padding-block: 32px; }
  .eyebrow { margin-bottom: 9px; font-size: 11px; }
  .hero h1 { font-size: 30px; letter-spacing: -1.1px; }
  .hero-description { max-width: 320px; margin-top: 10px; font-size: 14px; line-height: 1.8; }
  .hero-link { margin-top: 20px; padding: 9px 14px; font-size: 13px; }
  .ticker-band>.page-width { width: 100%; }
  .market-content { padding-top: 30px; }
  .market-section { margin-bottom: 40px; }
  .section-heading { flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 13px; line-height: 1.8; }
  .coin-selector { width: 100%; }
  .coin-button { flex: 1; min-height: 42px; padding: 8px 5px; font-size: 12px; }
  .chart-layout, .analysis-column, .insights-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-heading { min-height: 58px; padding: 16px; gap: 10px; }
  .card-heading h3 { font-size: 14px; }
  .card-title { gap: 8px; }
  .small-label { font-size: 11px; }
  .text-link { font-size: 12px; }
  .card-footnote { padding: 11px 16px; font-size: 10px; }
  .chart-widget .widget-frame { height: 440px; }
  .symbol-widget .widget-frame { height: 101px; }
  .technical-widget .widget-frame { height: 400px; }
  .heatmap-widget .widget-frame { height: 400px; }
  .screener-widget .widget-frame { height: 480px; }
  .insight-widget .widget-frame, .calendar-card .widget-frame { height: 440px; }
  .calendar-card { grid-column: auto; }
  .insight-caption { min-height: 0; padding: 14px 16px; }
  .section-note { font-size: 11px; }
  .trade-cta { display: block; padding: 24px; }
  .trade-cta h2 { font-size: 20px; }
  .trade-cta p { font-size: 13px; line-height: 1.8; }
  .primary-button { margin-top: 20px; font-size: 13px; }
  .market-disclaimer { margin-block: 18px 32px; font-size: 11px; }
  .site-footer { padding-top: 26px; font-size: 11px; }
  .footer-top { margin-bottom: 16px; }
  .footer-brand { font-size: 15px; }
  .footer-divider { margin-inline: 4px; }
  .footer-bottom { flex-wrap: wrap; gap: 4px; font-size: 10px; }
}

@media (max-width: 360px) {
  .page-width { width: calc(100% - 32px); }
  .brand { font-size: 15px; }
  .hero h1 { font-size: 27px; }
  .coin-dot { width: 18px; height: 18px; font-size: 12px; }
  .coin-button { gap: 5px; }
  .card-heading { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
