/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #141E29; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:root {
  --gradient: linear-gradient(to right, #3CF0D3 0%, #5B9CE4 50%, #A36AEE 100%);
  --gradient-135: linear-gradient(135deg, #3CF1D3, #6193E6, #A36AEE);
  --card-bg: #223545;
  --panel-bg: #232B36;
  --border: #485F74;
  --muted: #A9A9A9;
  --muted2: #B6B6B6;
  --line: #415467;
}

.page {
  min-height: 100vh;
  background-color: #141E29;
  background-image: url('images/main-bg.png');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #465B6E;
}
.logo-desktop {
  display: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 36px;
}
.menu-toggle { width: 30px; height: 30px; }
.nav-links { display: none; list-style: none; flex: 1; justify-content: center; gap: 40px; font-size: 16px; }
.nav-links li.active { border-bottom: 2px solid #fff; }
.header-cta { display: flex; gap: 15px; }

@media (min-width: 1024px) {
  .site-header { padding: 24px 72px; }
  .logo-desktop { display: inline-block; }
  .menu-toggle { display: none; }
  .nav-links { display: flex; }
}
@media (min-width: 1280px) { .nav-links { gap: 80px; } }

.gradient-btn {
  background: var(--gradient);
  border-radius: 8px;
  padding: 2px;
  display: inline-flex;
  overflow: hidden;
}
.gradient-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #29343E;
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 16px;
}
.gradient-btn-inner img { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .gradient-btn-inner { gap: 16px; padding: 10px 16px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: #1a2530;
  border-bottom: 1px solid #465B6E;
}
.mobile-menu a { padding: 8px 0; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 20px 0;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-image {
  height: 480px;
  margin: 0 auto;
  object-fit: contain;
}
.hero-text { margin-top: 20px; }
.hero-brand {
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  display: inline;
}
.hero-desc { color: #fff; margin-top: 30px; line-height: 1.55; }
.hero-cta { margin-top: 30px; }

@media (min-width: 1024px) {
  .hero { padding: 60px 72px 0; display: flex; gap: 50px; align-items: center; justify-content: center; }
  .hero-image { flex: 1 1 50%; max-width: 500px; height: 600px; }
  .hero-text { flex: 1 1 50%; margin-top: 0; }
  .hero-brand, .hero-title { font-size: 40px; }
}

/* ---------- Ticker ---------- */
.ticker { margin-top: 100px; overflow-x: clip; display: none; position: relative; }
.ticker > div:first-child, .ticker > div:last-of-type, .ticker-line {
  height: 2px;
  background: linear-gradient(to right, #2C3945 0%, #8CC5E3 25%, #7B62D5 50%, #8CC5E3 75%, #2C3945 100%);
}
.ticker { transform: rotate(-4deg); }
.ticker-row {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  padding: 28px 0;
  color: #fff;
}
.ticker-row span { width: 200px; text-align: center; }
.ticker-row i { display: inline-block; width: 1px; height: 30px; background: #fff; }
.ticker-pill {
  position: absolute;
  bottom: 2px;
  width: 100px;
  height: 4px;
  border-radius: 9999px;
  background: var(--gradient);
  display: none;
}
@media (min-width: 1024px) { .ticker { display: block; } }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 24px 20px;
  max-width: 1400px;
  margin: 80px auto 0;
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); padding: 24px 72px; }
}
.feature-card {
  background: var(--gradient-135);
  padding: 2px;
  border-radius: 12px;
}
.feature-inner {
  background: var(--card-bg);
  border-radius: 10px;
  height: 100%;
  padding: 48px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-inner img { width: 50px; height: 50px; }
.feature-inner h2 {
  color: #fff;
  font-weight: 400;
  font-size: 24px;
  margin: 20px 0;
}
.feature-inner p { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq {
  padding: 24px 20px;
  max-width: 1400px;
  margin: 80px auto 0;
}
@media (min-width: 1024px) { .faq { padding: 24px 72px; } }
.faq h2 { font-size: 24px; font-weight: 700; text-align: center; }
.faq-list { margin-top: 20px; }
.faq-item { margin-top: 30px; }
.faq-q {
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--panel-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.faq-arrow {
  width: 12px;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-a {
  margin-top: 20px;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--panel-bg);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Community ---------- */
.community {
  padding: 24px 20px;
  max-width: 1400px;
  margin: 80px auto 0;
}
@media (min-width: 1024px) { .community { padding: 24px 72px; } }
.community-card { background: var(--gradient-135); padding: 2px; border-radius: 12px; }
.community-inner {
  background: var(--panel-bg);
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
}
.community-inner h2 { font-size: 24px; font-weight: 700; }
.community-inner p { color: var(--muted2); font-size: 12px; margin-top: 20px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  border-top: 2px solid var(--line);
  padding: 24px 20px;
  text-align: center;
}
@media (min-width: 1024px) { .site-footer { padding: 24px 72px; } }
.footer-tag { font-size: 12px; color: #fff; }
.footer-copy { font-size: 12px; color: var(--muted2); margin-top: 25px; }
.footer-links {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-links a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-page { background-image: none; }
.legal-content {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 24px 20px 60px;
  color: #D8DDE3;
  line-height: 1.75;
  font-size: 15px;
}
@media (min-width: 1024px) {
  .legal-content { padding: 24px 40px 80px; }
}
.legal-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2C3945;
}
.legal-content h3 { font-size: 17px; color: #fff; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.legal-content li {
  position: relative;
  padding: 6px 0 6px 22px;
  border-bottom: 1px dashed #2C3945;
}
.legal-content li::before {
  content: '';
  position: absolute;
  left: 4px; top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.legal-content li:last-child { border-bottom: 0; }
.legal-content a { color: #5BC6E4; text-decoration: underline; text-underline-offset: 2px; }
