:root {
  --brand: #4a5cf0;
  --brand-dark: #3644c9;
  --bg: #f6f7fb;
  --text: #191f2c;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e7e9f0;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Pretendard", "Noto Sans KR", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); flex-shrink: 0; }
nav.main { display: flex; gap: 16px; flex-wrap: nowrap; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { color: var(--muted); font-size: 15px; white-space: nowrap; flex-shrink: 0; }
nav.main a.active, nav.main a:hover { color: var(--text); font-weight: 600; }

.hero { text-align: center; padding: 80px 20px 56px; background: linear-gradient(180deg,#eef0ff 0%, var(--bg) 100%); }
.hero .tag { color: var(--brand); font-weight: 600; letter-spacing: .05em; }
.hero h1 { font-size: 40px; margin: 12px 0 16px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 24px; border-radius: 10px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }

section { padding: 48px 0; }
h2.section-title { font-size: 26px; text-align: center; margin-bottom: 32px; }

.grid { display: grid; gap: 16px; }
.grid.exchanges { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.exchange { text-align: center; }
.badge-logo { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.rate { font-size: 30px; font-weight: 800; color: var(--brand); margin: 6px 0 2px; }
.rate-sub { color: var(--muted); font-size: 13px; }
.card.exchange .btn { margin-top: 14px; padding: 9px 18px; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { display: inline-block; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }

.ticker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; }
.ticker a { display: flex; gap: 12px; padding: 10px 20px; color: var(--text); border-bottom: 1px solid var(--line); font-size: 15px; }
.ticker a:last-child { border-bottom: 0; }
.ticker .src { color: var(--brand); font-weight: 600; white-space: nowrap; font-size: 13px; padding-top: 2px; }
.ticker a:hover { background: #f2f4ff; }

table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.compare th, table.compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
table.compare th { background: #f0f2fa; font-weight: 600; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }

.notice-placeholder { background: #fff8e1; border: 1px dashed #d8b400; border-radius: 10px; padding: 12px 16px; color: #7a6200; font-size: 13px; margin: 16px 0; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 13px; text-align: center; }

form.calc { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
form.calc label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
form.calc input, form.calc select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
#calc-result { text-align: center; margin-top: 24px; font-size: 18px; }
#calc-result strong { color: var(--brand); font-size: 28px; display: block; }

/* ==== tethermax 감성 자체 구현 (2026-10) ==== */
.hero-gradient {
  background: linear-gradient(160deg, #eef4ff 0%, #dbe9ff 45%, #f6f9ff 100%);
  padding: 72px 0 96px;
}
.hero-kicker { font-weight: 700; color: #1f4fd8; letter-spacing: 0.4px; }
.hero-title { font-size: 44px; font-weight: 800; line-height: 1.2; color: #111; margin: 14px 0 18px; }
.hero-title .accent { color: #1f4fd8; }
.hero-sub { color: #445; font-size: 17px; max-width: 560px; }
.accent { color: #1f4fd8; }
.muted { color: var(--muted, #889); font-size: 13px; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: -56px; position: relative; z-index: 2; }
.stat-card { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 6px 24px rgba(30, 60, 150, 0.08); }
.stat-card .num { font-size: 30px; font-weight: 800; color: #1f4fd8; }
.stat-card .cap { color: #778; font-size: 13px; margin-top: 4px; }

.pill { display: inline-block; background: #1f4fd8; color: #fff; font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px solid #eef; }
.calc-row.big { font-size: 19px; border-bottom: none; padding-top: 16px; }
.calc-row strong.accent { font-size: 24px; }
#calc-result { margin-top: 18px; background: #fff; border-radius: 14px; padding: 8px 18px; box-shadow: 0 4px 18px rgba(30,60,150,0.06); text-align: left; }
select, input[type=number] { width: 100%; padding: 12px 14px; border: 1px solid #dde3f0; border-radius: 10px; font-size: 15px; background: #fff; }
form.calc label { font-weight: 600; margin: 14px 0 6px; display: block; color: #334; }
.payback-hero { font-size: 64px; font-weight: 800; color: #1f4fd8; }
.payback-hero small { font-size: 28px; }

/* ===== 속보 페이지 ===== */
.news-hero { padding-bottom: 48px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.news-container { max-width: 860px; }
.news-date-banner { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; font-weight: 700; margin-bottom: 28px; }
.news-date-banner::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--brand), #7aa5ff); flex: none; }
.news-timeline { position: relative; padding-left: 4px; }
.news-day { position: sticky; top: 76px; z-index: 2; display: inline-block; background: #eef3ff; color: var(--brand); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin: 20px 0 14px 74px; }
.news-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-time { flex: none; width: 56px; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.news-body { position: relative; padding-left: 20px; border-left: 2px solid #dbe6ff; }
.news-body::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px #eef3ff; }
.news-title { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.45; }
.news-title:hover { color: var(--brand); }
.news-summary { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.src-pill { background: #eef3ff; color: var(--brand); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.news-origin { font-size: 12px; color: var(--muted); text-decoration: none; }
.news-origin:hover { color: var(--brand); }
.news-sentinel { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 8px; }
.news-empty { text-align: center; color: var(--muted); padding: 40px 0; }
@media (max-width: 640px) {
  .news-day { margin-left: 0; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-time { width: auto; text-align: left; }
}

/* 속보 필터 탭 */
.news-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.news-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.news-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 거래소 공지 문서형 */
.notice-list { display: flex; flex-direction: column; gap: 18px; }
.notice-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.notice-date { color: var(--muted); font-size: 13px; font-weight: 600; }
.notice-title { display: block; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.45; margin-bottom: 10px; }
.notice-title:hover { color: var(--brand); }
.notice-summary { color: var(--ink); font-size: 14.5px; line-height: 1.7; margin: 8px 0; }
.notice-excerpt { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--brand); background: #f6f9ff; color: var(--muted); font-size: 13px; line-height: 1.6; border-radius: 0 8px 8px 0; word-break: break-word; }

/* 언어 선택 */
.lang-select { margin-left: auto; flex-shrink: 0; width: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 640px) { .lang-select { margin-left: 6px; padding: 4px 6px; font-size: 12px; } }
