/* =============================================
   MAIN PAGE (INDEX) — Biton Exchange Template
   Binance/Upbit Style · PC + Mobile + Dark Mode
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Page background for index */
.is-index {
  background: #f5f6fa;
}

/* ========================
   HERO SECTION (v3 — canvas animation + light theme)
   ======================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  padding: 80px 0 0;
  background: #f8f9fb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Grid background */
.hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* Glow effects */
.hero-glow {
  position: absolute; top: -80px; left: 15%;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-glow2 {
  position: absolute; bottom: -40px; right: 10%;
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Canvas chart */
.hero-canvas {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 0;
}

/* Hero body & text */
.hero-body {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center;
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 48px;
}
.hero-text { max-width: 520px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: #3b82f6;
  letter-spacing: 1.8px; margin-bottom: 14px;
  opacity: 0; animation: heroFadeUp 0.6s ease forwards;
}
.hero-badge .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 10px #22c55e;
  animation: heroBlink 2.5s ease infinite;
}
@keyframes heroBlink { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.hero-h1 {
  font-family: 'Outfit', 'Pretendard', sans-serif;
  font-size: 52px; font-weight: 800;
  line-height: 1.12; letter-spacing: -1.5px;
  color: #111827;
  margin-bottom: 20px;
  opacity: 0; animation: heroFadeUp 0.6s ease 0.1s forwards;
}
.hero-h1 .grad {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 15px; line-height: 1.75;
  color: #6b7280;
  margin-bottom: 36px;
  word-break: keep-all;
  opacity: 0; animation: heroFadeUp 0.6s ease 0.2s forwards;
}
.hero-cta {
  display: flex; gap: 12px;
  margin-bottom: 36px;
  opacity: 0; animation: heroFadeUp 0.6s ease 0.3s forwards;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 14px 30px; border-radius: 10px;
  border: none; cursor: pointer;
  background: #3b82f6; color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,0.25);
  text-decoration: none; transition: all .25s;
}
.btn-hero-primary:hover {
  background: #2563eb; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.3);
}
.btn-hero-primary svg { transition: transform .2s; }
.btn-hero-primary:hover svg { transform: translateX(3px); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 14px 30px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08); cursor: pointer;
  background: rgba(0,0,0,0.04); color: #374151;
  text-decoration: none; transition: all .25s;
}
.btn-hero-ghost:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: #1f2937;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ticker bar */
.ticker-bar {
  position: relative; z-index: 2;
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  padding: 11px 0;
  overflow: hidden;
  margin-top: auto;
}
.ticker-track {
  display: flex; gap: 44px;
  animation: heroScroll 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.ticker-item .t-name { font-size: 12px; font-weight: 600; color: #6b7280; }
.ticker-item .t-price { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: #111827; }
.ticker-item .t-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; }
.ticker-item .t-pct.up { color: #22c55e; }
.ticker-item .t-pct.down { color: #ef4444; }

@keyframes heroScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================
   NOTICE BAR
   ======================== */
.notice-bar {
  background: #fff;
  border-bottom: 1px solid #eaecef;
}
.notice-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 24px;
  gap: 12px;
  font-size: 13px;
}
.notice-badge {
  background: #3b82f6;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.notice-text {
  flex: 1;
  color: #474d57;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-text a {
  color: inherit;
  text-decoration: none;
}
.notice-text a:hover {
  color: #1e2329;
}
.notice-date {
  color: #848e9c;
  font-size: 12px;
  white-space: nowrap;
}
.notice-more {
  color: #848e9c;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}
.notice-more:hover {
  color: #3b82f6;
}

/* ========================
   LIVE MARKET TABLE
   ======================== */
.market-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #0ecb81;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(14,203,129,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(14,203,129,0); }
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.market-table thead th {
  text-align: left;
  padding: 14px 20px;
  color: #848e9c;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid #eaecef;
  background: #fafafa;
}
.market-table thead th:last-child {
  text-align: right;
}
.market-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  vertical-align: middle;
}
.market-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}
.market-table tbody tr:hover {
  background: #f8f9ff;
}
.market-table tbody tr:last-child td {
  border-bottom: none;
}

/* Coin cell */
.coin-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.coin-name {
  font-weight: 600;
  font-size: 14px;
}
.coin-pair {
  font-size: 12px;
  color: #848e9c;
}

/* Price / Change / Volume */
.price-cell {
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.change-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  min-width: 80px;
  text-align: center;
}
.change-badge.up {
  background: #0ecb81;
}
.change-badge.down {
  background: #f6465d;
}
.high-low {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #474d57;
}
.volume-cell {
  font-size: 13px;
  color: #474d57;
  font-variant-numeric: tabular-nums;
}
.trade-btn {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.trade-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* Price flash animations */
@keyframes mktFlashUp {
  0% { background: rgba(14,203,129,0.12); }
  100% { background: transparent; }
}
@keyframes mktFlashDown {
  0% { background: rgba(246,70,93,0.12); }
  100% { background: transparent; }
}
.mkt-flash-up {
  animation: mktFlashUp 0.6s ease-out;
}
.mkt-flash-down {
  animation: mktFlashDown 0.6s ease-out;
}

/* ========================
   MARKET TREND
   ======================== */
.trend-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}
.sec-ico-trend { color: #3b82f6; }
.trend-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trend-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.trend-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.trend-card-coin {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trend-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.trend-card-name {
  font-weight: 600;
  font-size: 14px;
}
.trend-card-change {
  font-size: 13px;
  font-weight: 600;
}
.trend-card-change.up {
  color: #0ecb81;
}
.trend-card-change.down {
  color: #f6465d;
}
.trend-card-price {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.trend-card-sub {
  font-size: 12px;
  color: #848e9c;
}
.trend-chart {
  height: 100px;
  margin-top: 8px;
}

/* ========================
   INTRO SECTION (features showcase)
   ======================== */
.intro-section {
  background: #f8f9fb;
  padding: 80px 24px;
  overflow: hidden;
  border-top: 1px solid #eef0f3;
}
.intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* -- left column -- */
.intro-text { flex: 0 0 420px; }
.intro-subnav { display: flex; gap: 24px; margin-bottom: 48px; }
.intro-subnav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #9ca3af;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.intro-subnav a:hover { color: #4b5563; }
.intro-subnav a.on { color: #1a1d23; font-weight: 700; border-bottom-color: #1a1d23; }

.intro-title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1d23;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.intro-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #6b7280;
  margin-bottom: 36px;
  word-break: keep-all;
}
.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.intro-cta:hover { background: #1d4ed8; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.3); }
.intro-cta svg { transition: transform .2s; }
.intro-cta:hover svg { transform: translateX(3px); }

.intro-tab { display: none; }
.intro-tab.on { display: block; }

/* -- right column -- */
.intro-visual {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-end;
}

/* -- card common -- */
.icard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  padding: 24px;
  width: 320px;
}
.icard__hd {
  font-size: 16px;
  font-weight: 700;
  color: #1a1d23;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -- futures card -- */
.ifp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
}
.ifp:last-child { border-bottom: none; }
.ifp__l { display: flex; align-items: center; gap: 10px; }
.ifp__ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.ifp__ico.btc { background: linear-gradient(135deg,#f59e0b,#f97316); }
.ifp__ico.eth { background: linear-gradient(135deg,#6366f1,#818cf8); }
.ifp__ico.sol { background: linear-gradient(135deg,#14b8a6,#2dd4bf); }
.ifp__ico.xrp { background: linear-gradient(135deg,#64748b,#94a3b8); }
.ifp__ico.doge { background: linear-gradient(135deg,#eab308,#facc15); }
.ifp__name { font-size: 13px; font-weight: 700; color: #1a1d23; }
.ifp__sub { font-size: 10px; color: #9ca3af; font-weight: 500; }
.ifp__r { display: flex; align-items: center; gap: 8px; }
.ifp__lev {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  background: #dbeafe; color: #2563eb;
}
.ifp__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; color: #1a1d23; text-align: right;
}
.ifp__chg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; text-align: right;
}
.ifp__chg.up { color: #10b981; }
.ifp__chg.dn { color: #ef4444; }

/* -- fee card -- */
.ifee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ifee-item { background: #f9fafb; border-radius: 10px; padding: 16px; text-align: center; }
.ifee-item.hl { background: linear-gradient(135deg,#eff6ff,#dbeafe); border: 1px solid #bfdbfe; }
.ifee-lbl { font-size: 11px; color: #9ca3af; font-weight: 500; margin-bottom: 6px; }
.ifee-val { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: #1a1d23; }
.ifee-unit { font-size: 11px; color: #6b7280; margin-top: 2px; }

/* -- security card -- */
.isec-list { display: flex; flex-direction: column; gap: 14px; }
.isec-row { display: flex; align-items: center; gap: 12px; }
.isec-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.isec-ico.bl { background: #dbeafe; }
.isec-ico.gr { background: #d1fae5; }
.isec-ico.pu { background: #ede9fe; }
.isec-ico.am { background: #fef3c7; }
.isec-tt { font-size: 13px; font-weight: 700; color: #1a1d23; }
.isec-ds { font-size: 11px; color: #9ca3af; line-height: 1.4; }

/* -- phone preview -- */
.iphone {
  width: 220px;
  background: #0d1117;
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  position: relative;
  top: 50px;
  flex-shrink: 0;
}
.iphone__in { background: #161b22; border-radius: 18px; overflow: hidden; }
.iph-top {
  background: linear-gradient(135deg,#1a1f2e,#0d1117);
  padding: 18px 14px 14px; text-align: center;
}
.iph-brand { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.iph-tag { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); line-height: 1.5; }
.iph-coin {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 12px auto 0; overflow: hidden;
}
.iph-coin img { width: 100%; height: 100%; }
.iph-body { padding: 14px; }
.iph-pair { font-size: 10px; color: rgba(255,255,255,.35); }
.iph-price { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: #fff; }
.iph-chg { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; color: #10b981; }
.iph-order { margin-top: 8px; }
.iph-tabs { display: flex; margin-bottom: 10px; }
.iph-tab { flex: 1; text-align: center; font-size: 10px; font-weight: 700; padding: 6px 0; }
.iph-tab.long { background: #10b981; color: #fff; border-radius: 6px 0 0 6px; }
.iph-tab.short { background: #2a2f3a; color: #6b7280; border-radius: 0 6px 6px 0; }
.iph-input {
  background: #1e2330; border-radius: 6px; padding: 8px 10px;
  margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center;
}
.iph-input__lbl { font-size: 9px; color: rgba(255,255,255,.35); }
.iph-input__val { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8); }
.iph-lev { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.iph-lev__btn { font-size: 9px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: #1e2330; color: rgba(255,255,255,.4); }
.iph-lev__btn.on { background: #2563eb; color: #fff; }
.iph-go {
  width: 100%; padding: 10px;
  background: #10b981; border: none; border-radius: 8px;
  font-size: 11px; font-weight: 700; color: #fff; font-family: inherit; margin-top: 6px;
}
.iph-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06);
}
.iph-stat { text-align: center; }
.iph-stat__lbl { font-size: 8px; color: rgba(255,255,255,.25); margin-bottom: 2px; }
.iph-stat__val { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.7); }

/* -- intro dark mode -- */
:root[data-theme="dark"] .intro-section { background: #0f1218; border-top-color: #1e2329; }
:root[data-theme="dark"] .intro-subnav a { color: #6b7280; }
:root[data-theme="dark"] .intro-subnav a:hover { color: #9ca3af; }
:root[data-theme="dark"] .intro-subnav a.on { color: #eaecef; border-bottom-color: #eaecef; }
:root[data-theme="dark"] .intro-title { color: #eaecef; }
:root[data-theme="dark"] .intro-desc { color: rgba(255,255,255,.55); }
:root[data-theme="dark"] .icard { background: #1e2329; box-shadow: none; }
:root[data-theme="dark"] .icard__hd { color: #eaecef; }
:root[data-theme="dark"] .ifp { border-bottom-color: #2b3139; }
:root[data-theme="dark"] .ifp__name,
:root[data-theme="dark"] .ifp__price { color: #eaecef; }
:root[data-theme="dark"] .ifp__lev { background: rgba(37,99,235,.2); }
:root[data-theme="dark"] .ifee-item { background: #181a20; }
:root[data-theme="dark"] .ifee-item.hl { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.25); }
:root[data-theme="dark"] .ifee-val { color: #eaecef; }
:root[data-theme="dark"] .isec-tt { color: #eaecef; }
:root[data-theme="dark"] .isec-ico.bl { background: rgba(59,130,246,.15); }
:root[data-theme="dark"] .isec-ico.gr { background: rgba(16,185,129,.15); }
:root[data-theme="dark"] .isec-ico.pu { background: rgba(139,92,246,.15); }
:root[data-theme="dark"] .isec-ico.am { background: rgba(245,158,11,.15); }

/* -- intro responsive -- */
@media (max-width: 1024px) {
  .intro-section { padding: 60px 20px; }
  .intro-inner { flex-direction: column; gap: 48px; }
  .intro-text { flex: none; width: 100%; text-align: center; }
  .intro-subnav { justify-content: center; }
  .intro-visual { justify-content: center; }
  .iphone { top: 0; }
}
@media (max-width: 640px) {
  .intro-section { padding: 48px 16px; }
  .intro-visual { flex-direction: column; align-items: center; }
  .icard { width: 100%; max-width: 360px; }
  .iphone { display: none; }
  .intro-title { font-size: 28px; }
  .intro-subnav { gap: 16px; }
  .intro-subnav a { font-size: 13px; }
}

/* ========================
   WHY BITON
   ======================== */
.why-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  padding: 64px 24px;
}
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.why-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #1e2329;
  margin: 0 0 8px;
}
.why-subtitle {
  text-align: center;
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 48px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item {
  padding: 0 20px;
  text-align: left;
  border-left: 3px solid #3b82f6;
}
.why-number {
  font-size: 36px;
  font-weight: 800;
  color: #3b82f6;
  opacity: 0.3;
  margin-bottom: 8px;
  line-height: 1;
}
.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e2329;
  margin: 0 0 8px;
}
.why-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
  word-break: keep-all;
}

/* ========================
   DARK MODE — Index Page
   ======================== */
:root[data-theme="dark"] .is-index {
  background: #0b0e11;
}

/* Hero dark */
:root[data-theme="dark"] .hero { background: #0a0e1a; }
:root[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
}
:root[data-theme="dark"] .hero-glow {
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
}
:root[data-theme="dark"] .hero-glow2 {
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
}
:root[data-theme="dark"] .hero-badge { color: #60a5fa; }
:root[data-theme="dark"] .hero-h1 { color: #fff; }
:root[data-theme="dark"] .hero-h1 .grad {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
:root[data-theme="dark"] .hero-desc { color: #64748b; }
:root[data-theme="dark"] .btn-hero-ghost {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #94a3b8;
}
:root[data-theme="dark"] .btn-hero-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #e2e8f0;
}
:root[data-theme="dark"] .ticker-bar {
  border-top-color: rgba(255,255,255,0.06);
  background: rgba(10,14,26,0.8);
}
:root[data-theme="dark"] .ticker-item .t-name { color: #94a3b8; }
:root[data-theme="dark"] .ticker-item .t-price { color: #e2e8f0; }

/* Notice bar dark */
:root[data-theme="dark"] .notice-bar {
  background: #1e2329;
  border-bottom-color: #2b3139;
}
:root[data-theme="dark"] .notice-badge {
  background: #2563eb;
}
:root[data-theme="dark"] .notice-text {
  color: rgba(255,255,255,0.7);
}
:root[data-theme="dark"] .notice-text a {
  color: rgba(255,255,255,0.7);
}
:root[data-theme="dark"] .notice-text a:hover {
  color: #fff;
}
:root[data-theme="dark"] .notice-date {
  color: rgba(255,255,255,0.4);
}
:root[data-theme="dark"] .notice-more {
  color: rgba(255,255,255,0.4);
}

/* Market dark */
:root[data-theme="dark"] .market-section .section-title {
  color: #fff;
}
:root[data-theme="dark"] .market-table {
  background: #1e2329;
  box-shadow: none;
}
:root[data-theme="dark"] .market-table thead th {
  background: #181a20;
  color: rgba(255,255,255,0.5);
  border-bottom-color: #2b3139;
}
:root[data-theme="dark"] .market-table tbody td {
  border-bottom-color: #2b3139;
  color: rgba(255,255,255,0.9);
}
:root[data-theme="dark"] .market-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}
:root[data-theme="dark"] .coin-pair {
  color: rgba(255,255,255,0.4);
}
:root[data-theme="dark"] .high-low,
:root[data-theme="dark"] .volume-cell {
  color: rgba(255,255,255,0.6);
}

/* Trend dark */
:root[data-theme="dark"] .trend-section .section-title {
  color: #fff;
}
:root[data-theme="dark"] .trend-card {
  background: #1e2329;
  box-shadow: none;
}
:root[data-theme="dark"] .trend-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] .trend-card-price {
  color: #fff;
}
:root[data-theme="dark"] .trend-card-sub {
  color: rgba(255,255,255,0.4);
}

/* Why Biton dark */
:root[data-theme="dark"] .why-section {
  background: linear-gradient(180deg, #0b0e11 0%, #131722 100%);
}
:root[data-theme="dark"] .why-title {
  color: #eaecef;
}
:root[data-theme="dark"] .why-subtitle {
  color: rgba(255,255,255,0.45);
}
:root[data-theme="dark"] .why-item {
  border-left-color: #60a5fa;
}
:root[data-theme="dark"] .why-number {
  color: #60a5fa;
}
:root[data-theme="dark"] .why-item h3 {
  color: #eaecef;
}
:root[data-theme="dark"] .why-item p {
  color: rgba(255,255,255,0.5);
}

/* ========================
   MOBILE RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  /* Hero */
  .hero { min-height: auto; padding: 60px 0 0; }
  .hero-body { padding: 0 24px 40px; }
  .hero-h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-desc { font-size: 14px; }
  .hero-cta { flex-direction: column; margin-bottom: 28px; }
  .btn-hero-primary, .btn-hero-ghost { text-align: center; justify-content: center; }

  /* Notice */
  .notice-inner {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Market */
  .market-section {
    padding: 16px 12px;
  }
  .section-title {
    font-size: 16px;
  }
  .market-table {
    border-radius: 8px;
  }
  .market-table thead {
    display: none;
  }
  .market-table tbody tr {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
  }
  .market-table tbody tr:last-child {
    border-bottom: none;
  }
  .market-table tbody td {
    padding: 0;
    border-bottom: none;
  }
  .market-table tbody td.hide-mobile {
    display: none;
  }
  /* Left: coin name — fill remaining space */
  .market-table tbody td:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .coin-cell {
    gap: 10px;
  }
  .coin-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .coin-name {
    font-size: 14px;
    font-weight: 600;
  }
  .coin-pair {
    font-size: 11px;
  }
  /* Center: price — fixed width column */
  .price-cell {
    flex: 0 0 100px;
    width: 100px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    margin-right: 14px;
  }
  /* Right: change badge — fixed width column */
  .market-table tbody td:nth-child(3) {
    flex: 0 0 70px;
    width: 70px;
    margin-right: 4px;
  }
  .change-badge {
    display: block;
    width: 100%;
    padding: 4px 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  td:has(.trade-btn) {
    display: none;
  }

  /* Trend */
  .trend-section {
    padding: 32px 12px 20px;
  }
  .trend-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .trend-card {
    padding: 14px;
  }
  .trend-card-price {
    font-size: 16px;
  }
  .trend-chart {
    height: 70px;
  }

  /* Why Biton */
  .why-section {
    padding: 40px 16px;
  }
  .why-title {
    font-size: 24px;
  }
  .why-subtitle {
    margin-bottom: 32px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Dark mode mobile table border */
@media (max-width: 768px) {
  :root[data-theme="dark"] .market-table tbody tr {
    border-bottom-color: #2b3139;
  }
}
