:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #1f1f1f;
  --text: #eaecef;
  --muted: #848e9c;
  --green: #0ecb81;
  --red: #f6465d;
  --yellow: #f0b90b;
  --sidebar-w: 200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
}

.mono { font-family: "JetBrains Mono", monospace; }
.up { color: var(--green); }
.down { color: var(--red); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 0;
  z-index: 100;
}

.sidebar .logo { display: block; padding: 0 20px 24px; }
.sidebar .logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68px;
  height: auto;
  object-fit: contain;
}

.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid transparent;
}

.sidebar nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.sidebar nav a.active { color: var(--yellow); border-left-color: var(--yellow); background: rgba(240,185,11,0.06); }

.main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 76px;
  padding: 16px 28px;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-trade {
  display: inline-block;
  padding: 8px 18px;
  background: var(--yellow);
  color: #181a20;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
}

.btn-app {
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.btn-app:hover { border-color: var(--yellow); color: var(--yellow); }

.topbar .cta-pair { gap: 12px; }

.topbar .btn-trade,
.topbar .btn-app {
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 8px;
}

.topbar .btn-trade {
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.45), 0 8px 22px rgba(240, 185, 11, 0.28);
}

.topbar .btn-trade:hover {
  background: #ffd24a;
}

.topbar .btn-app {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(240, 185, 11, 0.1);
}

.topbar .btn-app:hover {
  background: var(--yellow);
  color: #181a20;
}

.cta-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard { flex: 1; padding: 24px; }

.ambience {
  margin-bottom: 8px;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 20px;
}

.page-intro h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-intro p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.page-crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-crumb a {
  color: var(--yellow);
}

.page-crumb a:hover {
  text-decoration: underline;
}

.footer-track a[aria-current="page"] {
  color: var(--yellow);
}

.edu-cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ambience-video {
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.ambience-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terminal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th { color: var(--muted); font-weight: 500; background: rgba(0,0,0,0.3); }

.conversion-stack {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.content-block {
  margin-bottom: 40px;
  max-width: 960px;
}

.content-block h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.content-block > .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.step-list li {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-list h3 { font-size: 16px; margin-bottom: 8px; }
.step-list p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

.trust-list {
  margin: 0 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
}

.trust-list li { margin-bottom: 8px; }

.fee-table { margin-bottom: 8px; }
.fee-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

.risk-banner {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(246, 70, 93, 0.45);
  background: rgba(246, 70, 93, 0.08);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.trust-links { display: flex; gap: 16px; font-size: 13px; }
.trust-links a { color: var(--yellow); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card h3 { margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; min-height: 3.5em; }

.risk-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.edu-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edu-card h3 { font-size: 15px; margin-bottom: 8px; }
.edu-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.edu-prose p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 72ch;
}

.footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-track {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-track a:hover { color: var(--text); }
.footer-track span { margin-left: auto; }

@media (max-width: 1024px) {
  .page-intro h1 { font-size: 24px; }
}

@media (max-width: 900px) {
  .product-grid,
  .edu-cards,
  .edu-cards-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    display: block;
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 12px;
  }
  .sidebar nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--yellow);
  }
  .main-wrap { margin-left: 0; }
  .cta-pair { width: 100%; }
  .cta-pair .btn-trade,
  .cta-pair .btn-app { flex: 1; text-align: center; }
  .topbar-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}
