@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

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

:root {
  --bg: #0e0b1a;
  --surface: #16122a;
  --card: #1f1a35;
  --violet: #9c6ff7;
  --violet-light: #b589ff;
  --text: #ede8ff;
  --text-muted: #9990c0;
  --border: #2e2850;
  --gold: #f7c948;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ── */
.cosmos-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.cosmos-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 11, 26, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.cosmos-header__band {
  padding: 16px 0;
  display: flex;
  align-items: center;
}
.cosmos-brand__link {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--violet-light);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.cosmos-brand__link:hover { color: #ffffff; }

/* ── HERO ── */
.cosmos-hero {
  padding: 80px 0 64px;
  background: radial-gradient(ellipse at 60% 0%, #1a1140 0%, var(--bg) 60%);
}
.cosmos-hero__wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.cosmos-hero__content {}
.cosmos-hero__h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.cosmos-hero__h1 span { color: var(--violet-light); }
.cosmos-hero__intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.cosmos-hero__warning {
  font-size: 0.85rem;
  color: #6a6290;
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.cta-anchor {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 7px;
  transition: background 0.2s, transform 0.2s;
}
.cta-anchor:hover {
  background: var(--violet-light);
  transform: translateY(-2px);
}

/* ── STAT BEACON ── */
.stat-beacon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 0 32px rgba(156, 111, 247, 0.08);
}
.stat-beacon__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.stat-beacon__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--violet-light);
  margin-bottom: 14px;
  line-height: 1.4;
}
.stat-beacon__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── BROKERS GRID SECTION ── */
.brokers-grid-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.grid-header {
  margin-bottom: 36px;
}
.grid-header__h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.grid-header__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
}

/* ── BROKER CELLS ── */
.broker-cell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.broker-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.broker-cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 36px rgba(156, 111, 247, 0.15);
}
.cell-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.cell-inner {
  padding: 52px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.cell-visuals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cell-logo { max-height: 48px; width: auto; }
.cell-stars { max-height: 20px; }
.cell-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.88rem;
}
.stat-chip__key { color: var(--text-muted); font-weight: 600; }
.stat-chip__val { color: var(--gold); font-weight: 800; }

.cell-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feature-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.feature-line__dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cell-btn-wrap {
  margin-top: auto;
}
.cell-btn {
  display: block;
  text-align: center;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 7px;
  transition: background 0.2s;
}
.cell-btn:hover { background: var(--violet-light); }

/* ── FAQ ── */
.faq-module {
  padding: 60px 0;
  background: #0b0917;
}
.faq-module__h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
}
.faq-module__list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-panel {
  border-bottom: 1px solid var(--border);
}
.faq-panel__trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 16px;
  text-align: left;
  font-family: inherit;
}
.faq-panel__query {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.faq-panel__symbol {
  width: 24px;
  height: 24px;
  border: 2px solid var(--violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
.faq-panel--active .faq-panel__symbol {
  background: var(--violet);
  color: #fff;
  transform: rotate(45deg);
}
.faq-panel__response {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 0;
}
.faq-panel--active .faq-panel__response {
  padding-bottom: 18px;
}

/* ── FOOTER ── */
.cosmos-footer {
  background: #06050f;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  color: var(--text-muted);
}
.cosmos-footer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.cosmos-footer__brand-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--violet);
}
.cosmos-footer__affiliates {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cosmos-footer__aff-img { height: 32px; width: auto; opacity: 0.6; }
.cosmos-footer__aff-link:hover .cosmos-footer__aff-img { opacity: 1; }
.cosmos-footer__risks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.risk-column {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #6a6290;
}
.cosmos-footer__base {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cosmos-footer__base-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cosmos-footer__base-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.cosmos-footer__base-link:hover { color: var(--violet-light); }
.cosmos-footer__base-copy {
  font-size: 0.82rem;
  color: #4a4270;
}

/* ── LEGAL PAGES ── */
.legal-canvas {
  padding: 70px 0;
  min-height: 60vh;
}
.legal-canvas__shell { max-width: 800px; }
.legal-canvas__h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--violet);
}
.legal-section { margin-bottom: 28px; }
.legal-section__h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--violet-light);
  margin-bottom: 8px;
}
.legal-section__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.legal-section__body a {
  color: var(--violet-light);
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .broker-cell-grid { grid-template-columns: repeat(2, 1fr); }
  .cosmos-hero__wrapper { grid-template-columns: 1fr 280px; gap: 24px; }
}
@media (max-width: 768px) {
  .cosmos-hero__wrapper { grid-template-columns: 1fr; }
  .broker-cell-grid { grid-template-columns: 1fr; }
  .cosmos-footer__head { flex-direction: column; align-items: flex-start; }
  .cosmos-footer__base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cosmos-shell { padding: 0 16px; }
  .cosmos-footer__base-nav { flex-direction: column; gap: 8px; }
}
