:root {
  --bg:        #09090f;
  --bg-card:   #11111a;
  --bg-soft:   #181824;
  --border:    #23232f;
  --border-lt: #2c2c3a;
  --text:      #e9e9f2;
  --text-dim:  #9a9ab0;
  --text-soft: #6b6b7f;
  --accent:    #7c5cff;
  --accent-2:  #22d3ee;
  --accent-pink: #f472b6;
  --green:     #22c55e;
  --radius:    14px;
  --radius-sm: 8px;
  --max:       1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter var", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.15), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(34, 211, 238, 0.08), transparent 70%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(9, 9, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
nav.top-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.top-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
nav.top-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5b3ff0 100%);
  color: #fff;
  box-shadow: 0 6px 24px -6px rgba(124, 92, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px -6px rgba(124, 92, 255, 0.7);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-lt);
  color: var(--text);
}
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ───── Hero ───── */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #fff 0%, #b4b4cd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero .cta-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ───── Sections ───── */
section.block {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
section.block h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
section.block .section-intro {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 40px;
  font-size: 16px;
}

/* ───── Platform grid (home) ───── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--text);
}
.platform-card .emoji {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.platform-card .meta { flex: 1; min-width: 0; }
.platform-card .meta .name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.platform-card .meta .sub {
  font-size: 12px;
  color: var(--text-soft);
}

/* ───── Feature cards ───── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ───── How it works steps ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 40px;
}
.step p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ───── FAQ ───── */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--border-lt); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dim);
}
.faq details[open] summary::after { content: '−'; }
.faq .answer {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

/* ───── Lists (chips) ───── */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ───── Big CTA ───── */
.cta-panel {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
}
.cta-panel h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.cta-panel p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ───── Related links (platform page) ───── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.related-grid a {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dim);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-grid a:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-soft);
}

/* ───── Two-col (hero + side) for platform page ───── */
.platform-hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .platform-hero { grid-template-columns: 1.3fr 1fr; gap: 48px; }
}
.platform-hero .eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.platform-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.platform-hero .lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
}
.platform-hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.platform-hero .side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.platform-hero .side h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
  font-weight: 600;
}
.platform-hero .side ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-hero .side li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.platform-hero .side li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ───── Footer ───── */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 72px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
.footer-top h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-top ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-top ul a:hover { color: var(--text); }
.footer-about { max-width: 340px; line-height: 1.6; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.disclaimer-box {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-top: 24px;
}

/* ───── Utility ───── */
.text-dim { color: var(--text-dim); }
.mb-24 { margin-bottom: 24px; }
