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

:root {
  --bg: #06060b;
  --bg-alt: #0a0a13;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(34, 211, 238, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(34, 211, 238, 0.25);
  --text: #e6e6f0;
  --text-dim: #8a8a9e;
  --text-muted: #55556a;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-dim);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: -50%;
  background:
    radial-gradient(circle at 25% 30%, rgba(34, 211, 238, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 45%);
  animation: bgFloat 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -2%); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 3px;
}
.logo span { color: var(--cyan); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--cyan); }

.header-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #555;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn.active { background: rgba(34, 211, 238, 0.15); color: var(--cyan); }
.lang-btn:hover:not(.active) { color: #aaa; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
}
.hero-inner { max-width: 860px; text-align: center; }

.badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h1 .accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #06060b;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--cyan); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}
.stat { background: var(--bg); padding: 28px 20px; text-align: center; }
.stat-number { color: #fff; font-size: 2rem; font-weight: 800; }
.stat-number span { color: var(--cyan); }
.stat-label {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 6px;
}

/* Sections */
.section { position: relative; z-index: 1; padding: 100px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1120px; margin: 0 auto; }
.container.narrow { max-width: 800px; }

.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.card-icon { font-size: 28px; margin-bottom: 16px; }
.card p { font-size: 0.94rem; color: var(--text-dim); }

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
}
.platform:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.platform-icon { font-size: 32px; margin-bottom: 12px; color: var(--cyan); }
.platform-name { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.platform-handle { color: var(--text-muted); font-size: 12.5px; font-weight: 500; }

/* Prose */
.prose p { margin-bottom: 18px; font-size: 1rem; color: var(--text-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose .highlight { color: var(--cyan); font-weight: 600; }
.prose ul, .prose ol { margin: 18px 0; padding-left: 22px; }
.prose li { margin-bottom: 12px; color: var(--text-dim); }
.prose h3 { margin-top: 28px; margin-bottom: 12px; }
.prose code {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, 0.3); }
.prose strong { color: var(--text); font-weight: 600; }

.api-list { list-style: none; padding-left: 0; }
.api-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-dim); font-size: 0.94rem; }

/* Contact */
.contact { text-align: center; }
.contact-lead { margin-bottom: 16px; font-size: 1rem; }
.contact-email {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 16px 32px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: all 0.2s;
}
.contact-email:hover { background: rgba(34, 211, 238, 0.05); transform: translateY(-1px); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 32px 30px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 14px; display: inline-block; }
.footer-tag { font-size: 0.92rem; color: var(--text-muted); max-width: 320px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1120px;
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Legal pages */
.legal-page {
  position: relative;
  z-index: 1;
  padding: 140px 24px 80px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
  text-align: left;
}
.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 36px;
}
.legal-page section { margin-bottom: 32px; }
.legal-page section h2 {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 12px;
  color: #fff;
}
.legal-page section p, .legal-page section li { font-size: 0.98rem; color: var(--text-dim); }
.legal-page section ul { padding-left: 22px; margin: 10px 0; }
.legal-page section li { margin-bottom: 8px; }
.back-link {
  display: inline-block;
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 24px;
}
.back-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .hero { padding: 110px 20px 60px; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 70px 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-email { font-size: 1.1rem; padding: 14px 22px; }
}
