/* ═══════════════════════════════════════════════════════
   SLEEPING TRADE — Global Design System
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --black: #000000;
  --near: #080808;
  --s1: #0f0f0f;
  --s2: #141414;
  --s3: #1a1a1a;
  --s4: #202020;
  --b: rgba(255,255,255,0.07);
  --bm: rgba(255,255,255,0.12);
  --bb: rgba(255,255,255,0.20);
  --w: #ffffff;
  --ow: #e8e8e8;
  --mu: #6b6b6b;
  --dim: #3a3a3a;
  --ac: #c8ff00;
  --acd: rgba(200,255,0,0.08);
  --acb: rgba(200,255,0,0.20);
  --gr: #00c853;
  --rd: #ff3d3d;
  --bl: #4d9fff;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ow);
  background: var(--black);
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────── */

h1 {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--w);
}

h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--w);
}

h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--w);
}

h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.125rem;
  color: var(--w);
}

p { color: var(--mu); max-width: 640px; }

.label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac);
}

.label-muted {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mu);
}

.mono { font-family: var(--mono); }

.green { color: var(--gr); }
.red { color: var(--rd); }
.accent { color: var(--ac); }

/* ── Layout ──────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
}

section + section {
  border-top: 1px solid var(--b);
}

/* ── Navigation ──────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0,0,0,0.75);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--b);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--w);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-logo span { color: var(--ac); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--mu);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--w);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--w);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -2.5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--w);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-menu a.active { color: var(--ac); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .nav-actions .btn { display: none; }
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ac);
  color: var(--black);
}
.btn-primary:hover { background: #d4ff33; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--w);
  border: 1px solid var(--bm);
}
.btn-ghost:hover { border-color: var(--bb); background: var(--b); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }

/* ── Cards ───────────────────────────────────────── */

.card {
  background: var(--s1);
  border: 1px solid var(--b);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s;
}

.card:hover { border-color: var(--bm); }

.card-dark {
  background: var(--near);
  border: 1px solid var(--b);
  border-radius: 12px;
  padding: 32px;
}

/* ── Stat Tiles ──────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
  border-radius: 12px;
  overflow: hidden;
}

.stat-tile {
  background: var(--s1);
  padding: 28px 24px;
  text-align: center;
}

.stat-tile .stat-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--w);
  margin-bottom: 4px;
}

.stat-tile .stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mu);
}

/* ── Tables ──────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mu);
  border-bottom: 1px solid var(--bm);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--b);
  color: var(--ow);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table .mono-cell {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
}

.hero-short {
  min-height: auto;
  padding-top: 160px;
  padding-bottom: 80px;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid-bg {
  position: absolute;
  inset: 0;
  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);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-eyebrow {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 24px; }

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--mu);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Grid Backgrounds ────────────────────────────── */

.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Ticker ──────────────────────────────────────── */

.ticker-wrap {
  border-top: 1px solid var(--b);
  border-bottom: 1px solid var(--b);
  overflow: hidden;
  background: var(--near);
  height: 48px;
  position: relative;
}

.ticker-status {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--s1);
  border-right: 1px solid var(--b);
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mu);
  white-space: nowrap;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mu);
}

.ticker-dot.live {
  background: var(--gr);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 140px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.ticker-symbol { color: var(--w); font-weight: 600; }
.ticker-price { color: var(--ow); }
.ticker-change { font-size: 0.75rem; }

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

/* ── Footer ──────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--b);
  padding: 80px 0 40px;
  background: var(--near);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--mu);
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--w); }

.footer-bottom {
  border-top: 1px solid var(--b);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--dim);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Forms ────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mu);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--s2);
  border: 1px solid var(--b);
  border-radius: 6px;
  color: var(--w);
  font-family: var(--sans);
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--ac);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dim);
}

.form-textarea { min-height: 140px; resize: vertical; }
.form-select { cursor: pointer; appearance: none; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show { display: block; }

.form-error {
  color: var(--rd);
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* ── FAQ Accordion ───────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--b);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--w);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--mu);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--ac);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--mu);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Pricing Toggle ──────────────────────────────── */

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.pricing-toggle span { font-size: 0.875rem; color: var(--mu); }
.pricing-toggle span.active { color: var(--w); font-weight: 600; }

.toggle-track {
  width: 48px;
  height: 26px;
  background: var(--s4);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--bm);
  transition: background 0.3s;
}

.toggle-track.active { background: var(--ac); border-color: var(--ac); }

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: var(--w);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.toggle-track.active .toggle-thumb { transform: translateX(22px); }

/* ── Blog ────────────────────────────────────────── */

.blog-card {
  background: var(--s1);
  border: 1px solid var(--b);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.blog-card:hover { border-color: var(--bm); transform: translateY(-2px); }

.blog-card-img {
  width: 100%;
  height: 200px;
  background: var(--s3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body { padding: 24px; }

.blog-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--mu);
}

.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--acd);
  color: var(--ac);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--w);
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--mu);
  line-height: 1.6;
}

/* ── Article ─────────────────────────────────────── */

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 20px;
  max-width: none;
  color: var(--ow);
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--ow);
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-toc {
  background: var(--s1);
  border: 1px solid var(--b);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
}

.article-toc h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 12px;
}

.article-toc a {
  display: block;
  padding: 4px 0;
  color: var(--mu);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.article-toc a:hover { color: var(--ac); }

.pull-quote {
  border-left: 3px solid var(--ac);
  padding: 16px 24px;
  margin: 32px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--w);
  font-style: italic;
}

/* ── Scroll Reveal ───────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Comparison Table ────────────────────────────── */

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--b);
  text-align: center;
  font-size: 0.875rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table th {
  font-weight: 600;
  color: var(--w);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--s2);
}

.compare-table .check { color: var(--gr); }
.compare-table .cross { color: var(--rd); }

/* ── Pricing Cards ───────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
  border-radius: 16px;
  overflow: hidden;
}

.pricing-card {
  background: var(--s1);
  padding: 40px 32px;
  position: relative;
}

.pricing-card.featured {
  background: var(--s2);
  border-top: 2px solid var(--ac);
}

.pricing-card .plan-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--w);
  margin-bottom: 4px;
}

.pricing-card .plan-desc {
  font-size: 0.8125rem;
  color: var(--mu);
  margin-bottom: 24px;
}

.pricing-card .plan-price {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--w);
  margin-bottom: 4px;
}

.pricing-card .plan-period {
  font-size: 0.8125rem;
  color: var(--mu);
  margin-bottom: 32px;
}

.pricing-card .plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card .plan-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--ow);
  border-bottom: 1px solid var(--b);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card .plan-features li:last-child { border-bottom: none; }

.pricing-card .plan-features .included::before {
  content: '+';
  color: var(--gr);
  font-weight: 700;
  font-family: var(--mono);
}

.pricing-card .plan-features .excluded::before {
  content: '−';
  color: var(--dim);
  font-weight: 700;
  font-family: var(--mono);
}

.pricing-card .plan-features .excluded { color: var(--dim); }

.featured-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--ac);
  color: var(--black);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Team ────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.team-card { text-align: center; }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--s3);
  border: 2px solid var(--b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ac);
}

.team-card h4 { margin-bottom: 4px; }
.team-card .team-title {
  font-size: 0.8125rem;
  color: var(--ac);
  font-weight: 500;
  margin-bottom: 12px;
}
.team-card .team-bio {
  font-size: 0.8125rem;
  color: var(--mu);
  line-height: 1.6;
}

/* ── Timeline ────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--b);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--s3);
  border: 2px solid var(--ac);
}

.timeline-item h4 { margin-bottom: 4px; }
.timeline-item p { font-size: 0.875rem; }

/* ── Login Page ──────────────────────────────────── */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.login-box { max-width: 400px; width: 100%; }

.login-box h2 { margin-bottom: 8px; }
.login-box .coming-soon {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ac);
  margin-bottom: 24px;
}

/* ── Utilities ───────────────────────────────────── */

.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

/* ── Section Headers ─────────────────────────────── */

.section-header {
  margin-bottom: 64px;
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* ── Step Cards ──────────────────────────────────── */

.step-number {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ac);
  margin-bottom: 16px;
}

/* ── Chart Container ─────────────────────────────── */

.chart-container {
  background: var(--s1);
  border: 1px solid var(--b);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.chart-container canvas {
  width: 100% !important;
  height: 300px;
}

/* ── Market Dashboard ────────────────────────────── */

.market-card {
  background: var(--s1);
  border: 1px solid var(--b);
  border-radius: 8px;
  overflow: hidden;
}

.market-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--b);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.market-card-header h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mu);
}

.indices-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.index-tile {
  background: var(--s1);
  padding: 20px;
  text-align: center;
}

.index-tile .index-name {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 8px;
  font-weight: 600;
}

.index-tile .index-price {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w);
}

.index-tile .index-change {
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .indices-row { grid-template-columns: 1fr; }
}

/* ── Scrollbar ───────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

/* ── Selection ───────────────────────────────────── */
::selection { background: var(--acb); color: var(--w); }
