:root {
  --bg: #071018;
  --bg2: #0c1822;
  --panel: rgba(16, 28, 40, 0.82);
  --line: rgba(140, 170, 195, 0.18);
  --text: #e8f0f6;
  --muted: #8ea3b5;
  --accent: #2bb0a6;
  --accent2: #3d8bfd;
  --tg: #2aabee;
  --good: #3dd68c;
  --warn: #f0b429;
  --bad: #ff5c7a;
  --radius: 18px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(43, 176, 166, 0.18), transparent 55%),
    radial-gradient(700px 420px at 90% 8%, rgba(61, 139, 253, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg2) 45%, #08131c);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 24, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  font-family: var(--display);
  font-weight: 700; letter-spacing: -0.03em;
  font-size: 1.15rem; display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800;
}
.nav-links { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px;
  font: inherit; font-weight: 650; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-tg {
  background: var(--tg); color: #fff;
  box-shadow: 0 10px 30px rgba(42, 171, 238, 0.28);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-accent { background: var(--accent); color: #04201e; }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px;
  padding: 56px 0 36px; align-items: center;
}
.eyebrow {
  color: var(--accent); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 16px;
}
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.55; max-width: 34rem; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 0.9rem;
}
.trust span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); margin-right: 8px; vertical-align: middle; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.panel h2 { margin: 0 0 12px; font-size: 1rem; font-family: var(--display); }
.feed { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.feed-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 14px; border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  animation: rise .45s ease both;
}
.feed-item:hover { border-color: var(--line); background: rgba(255,255,255,0.04); }
.pill {
  font-size: 0.72rem; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: rgba(43,176,166,.15); color: var(--accent);
}
.pill.sell { background: rgba(61,139,253,.15); color: #7eb6ff; }
.meta { color: var(--muted); font-size: 0.8rem; }
.amount { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.amount small { display: block; color: var(--muted); font-weight: 500; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 48px 0; }
.section h2 {
  font-family: var(--display); letter-spacing: -0.03em;
  font-size: clamp(1.45rem, 2.5vw, 2rem); margin: 0 0 8px;
}
.section .sub { color: var(--muted); margin: 0 0 22px; max-width: 40rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: rgba(12, 24, 34, 0.65);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(43,176,166,.35); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-family: var(--display); }
.card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.step .n {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(43,176,166,.15); color: var(--accent); font-weight: 800; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 0.98rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blog-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  background: var(--panel); min-height: 160px; display: flex; flex-direction: column;
}
.blog-card .tag { color: var(--accent); font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.blog-card h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.3; flex: 1; }
.blog-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.article { max-width: 760px; margin: 0 auto; padding: 40px 0 64px; }
.article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.article .meta { margin-bottom: 24px; }
.prose { line-height: 1.7; color: #d5e2ec; }
.prose h2 { margin-top: 1.6em; font-family: var(--display); letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

.footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.float-tg {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--tg); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(42,171,238,.4);
  transition: transform .18s ease;
}
.float-tg:hover { transform: scale(1.06); }
.float-tg svg { width: 28px; height: 28px; fill: currentColor; }

.lang-switch { display: inline-flex; gap: 8px; margin-left: 6px; }
.lang-switch a {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 8px;
}
.lang-switch a.active, .lang-switch a:hover {
  color: var(--text); border-color: rgba(43,176,166,.45); background: rgba(43,176,166,.12);
}

.pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  justify-content: center; margin-top: 28px;
}
.pager .page {
  min-width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); color: var(--muted);
}
.pager .page.current, .pager .page:hover {
  color: var(--text); border-color: rgba(43,176,166,.45); background: rgba(43,176,166,.12);
}

.reading-time { color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.lede { font-size: 1.12rem; line-height: 1.55; }
.callout {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  background: rgba(43,176,166,.08); margin: 18px 0;
}
.table-wrap { overflow-x: auto; margin: 18px 0; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: rgba(12,24,34,.65); border: 1px solid var(--line); border-radius: 12px;
}
table.compare th, table.compare td {
  padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
table.compare th { color: var(--muted); font-weight: 650; }
.diagram { margin: 20px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12,24,34,.5); }
.diagram figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.chart-box {
  margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(12,24,34,.55);
}
.chart-title { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.quiz-box, .scenario-tabs {
  margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(16,28,40,.75);
}
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quiz-actions button, .tab-row button {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit;
}
.quiz-actions button:hover, .tab-row button:hover, .tab-row button.active {
  border-color: rgba(43,176,166,.5); background: rgba(43,176,166,.12);
}
.quiz-result.ok { color: var(--good); }
.quiz-result.bad { color: var(--bad); }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.scenario-pane { display: none; color: var(--muted); line-height: 1.55; }
.scenario-pane.active { display: block; }
.checklist { line-height: 1.7; }
.cta-line {
  margin-top: 24px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(42,171,238,.35); background: rgba(42,171,238,.08);
}

@media (max-width: 900px) {
  .hero, .grid-3, .steps, .blog-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.lang-switch a) { display: none; }
  .nav-links .lang-switch { display: inline-flex; }
}
