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

:root {
  --purple: #7c4dff;
  --purple-dark: #651fff;
  --bg: #0d1117;
  --bg-card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --green: #00c853;
  --red: #ff1744;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover { background: var(--purple-dark); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--text-muted); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
  width: 100%;
  text-align: center;
}

.btn-outline:hover { background: rgba(124, 77, 255, 0.1); }

.btn-nav {
  background: var(--purple);
  color: #fff;
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Header / Hero */
header {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #0d1117 0%, #1a1040 50%, #0d1117 100%);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #b388ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Demo section */
.demo {
  background: var(--bg-card);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.demo-header {
  background: #21262d;
  padding: 12px 20px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--purple);
}

.demo-header .badge {
  background: var(--purple);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: sans-serif;
  margin-left: 8px;
}

.demo-body {
  padding: 20px;
}

.demo-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.demo-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.demo-price .red { color: var(--red); font-size: 0.85rem; }

.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-field {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 10px;
  background: #21262d;
  border-radius: 6px;
}

.demo-field strong {
  color: var(--text);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.demo-sentiment {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.demo-sentiment.bearish { background: rgba(255, 23, 68, 0.15); color: var(--red); }
.demo-sentiment.bullish { background: rgba(0, 200, 83, 0.15); color: var(--green); }

.demo-summary {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.demo-section {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-section strong { color: var(--text); }

.demo-section ul {
  margin: 4px 0 0 16px;
  font-size: 0.8rem;
}

.premium-demo { border-color: var(--purple); }

/* Commands */
.commands {
  background: var(--bg-card);
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.command-group h3 {
  font-size: 1rem;
  color: var(--purple);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.command {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 8px;
}

.command code {
  background: #21262d;
  color: var(--purple);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.command span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Pricing */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-card {
  text-align: center;
  padding: 36px 28px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.08) 0%, var(--bg-card) 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 16px 0 4px;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid #21262d;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.pricing-card li strong { color: var(--text); }

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.pricing-card.featured .btn { background: var(--purple); color: #fff; border: none; }

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  background: var(--bg-card);
  transition: background 0.2s;
}

summary:hover { background: #21262d; }

details p {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--text); }

.footer-legal {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-legal p { margin-bottom: 4px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .demo-grid { grid-template-columns: 1fr; }
  .command-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
  .footer-links { justify-content: center; }
  .nav-links a:not(.btn-nav) { display: none; }
}
