/* style.css — Nexus Analytics Dark Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0A0C10;
  color: #E8EDF2;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Typography & container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, #3B82F6, #A855F7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid #1F242E;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
}

.logo-mark {
  font-size: 1.8rem;
  color: #3B82F6;
}

.logo-text span {
  font-weight: 500;
  color: #6C86A3;
  margin-left: 4px;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: #B4C2DA;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav-link.active {
  color: #3B82F6;
  border-bottom: 2px solid #3B82F6;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: white;
}

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

.btn-outline, .btn-primary, .btn-secondary {
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline {
  border: 1px solid #2D3748;
  color: #E2E8F0;
  background: transparent;
}

.btn-outline:hover {
  border-color: #3B82F6;
  background: rgba(59,130,246,0.1);
}

.btn-primary {
  background: #3B82F6;
  color: white;
  box-shadow: 0 2px 6px rgba(59,130,246,0.2);
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1F2937;
  color: #E2E8F0;
  border: 1px solid #2D3748;
}

.btn-secondary:hover {
  background: #2D3748;
}

.btn-large {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1.2;
}

.hero-badge {
  background: #1A1F2E;
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  color: #3B82F6;
  margin-bottom: 1.2rem;
  border: 1px solid #252E3F;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: #8CA3C2;
}

.hero-stats span {
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  margin-right: 4px;
}

.hero-visual {
  flex: 0.9;
}

.viz-card {
  background: #11151E;
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid #222835;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.4);
}

.viz-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.viz-header span {
  width: 10px;
  height: 10px;
  background: #2D3748;
  border-radius: 50%;
}

.viz-graph {
  position: relative;
  height: 100px;
  background: #0E121C;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.line1, .line2 {
  position: absolute;
  bottom: 20%;
  width: 90%;
  height: 2px;
  background: #3B82F6;
  opacity: 0.7;
}

.line1 {
  width: 70%;
  background: #A855F7;
  bottom: 40%;
}
.node {
  position: absolute;
  right: 10%;
  top: 60%;
  width: 12px;
  height: 12px;
  background: #F97316;
  border-radius: 50%;
  box-shadow: 0 0 6px #F97316;
}
.viz-metrics {
  font-family: monospace;
  font-size: 0.75rem;
  color: #6C86A3;
}

/* Feature cards */
.features, .testimonials {
  padding: 5rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #11151E;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid #202433;
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: #3B82F6;
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #A3B6D9;
  margin: 1rem 0;
}

.card-link {
  color: #3B82F6;
  font-weight: 500;
  margin-top: 1rem;
  cursor: default;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #0F131C;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid #232833;
}

.testimonial-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #D3E0F5;
  font-style: normal;
  line-height: 1.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  background: #1E2A3A;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-weight: 600;
  color: #3B82F6;
}
.author-name {
  font-weight: 600;
}
.author-title {
  font-size: 0.8rem;
  color: #8CA3C2;
}

/* Pricing page */
.pricing-hero {
  text-align: center;
  padding: 4rem 0 2rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.pricing-card {
  background: #11151E;
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid #232833;
  transition: all 0.2s;
  position: relative;
}
.pricing-card.popular {
  border: 1px solid #3B82F6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3);
}
.plan-badge {
  background: #3B82F6;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 60px;
  position: absolute;
  top: -12px;
  left: 2rem;
  font-weight: 600;
}
.plan-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #8CA3C2;
}
.plan-description {
  color: #9CB2D4;
  margin-bottom: 1.5rem;
}
.plan-features {
  list-style: none;
  margin: 1.5rem 0;
}
.plan-features li {
  margin: 0.75rem 0;
  color: #CAD2E6;
}
.plan-features .disabled {
  color: #4A5B7A;
  text-decoration: line-through;
}
.w-100 {
  display: block;
  text-align: center;
}
.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: #6C86A3;
  margin-bottom: 4rem;
}

/* Docs page layout */
.docs-main {
  padding: 2rem 0 4rem;
}
.docs-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 0 32px;
}
.docs-sidebar {
  position: relative;
}
.sidebar-sticky {
  position: sticky;
  top: 90px;
}
.docs-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.docs-sidebar ul {
  list-style: none;
}
.docs-sidebar li {
  margin: 1rem 0;
}
.docs-sidebar a {
  color: #B4C2DA;
  text-decoration: none;
}
.docs-sidebar a:hover {
  color: #3B82F6;
}
.docs-content section {
  margin-bottom: 3rem;
}
.code-block {
  background: #0E121C;
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 3px solid #3B82F6;
  overflow-x: auto;
}
code, pre {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.85rem;
  color: #D1D9F0;
}
/* Blog */
.blog-header {
  text-align: center;
  padding: 3rem 0 1rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 5rem;
}
.blog-card {
  background: #11151E;
  border-radius: 28px;
  padding: 1.8rem;
  border: 1px solid #202433;
  transition: 0.2s;
}
.blog-card:hover {
  border-color: #3B82F6;
}
.blog-card-meta {
  font-size: 0.75rem;
  color: #6C86A3;
  margin-bottom: 0.75rem;
}
.blog-author {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.5rem 0;
  color: #9CB2D4;
}
.blog-excerpt {
  margin: 1rem 0 1.2rem;
  color: #B4C6E0;
}
.read-more {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid #1A1E2A;
  padding: 3rem 0 0;
  margin-top: 2rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand .logo {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 3rem;
}
.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: #B4C2DA;
  text-decoration: none;
}
.footer-bottom {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #1A1E2A;
  text-align: center;
  font-size: 0.8rem;
  color: #6C86A3;
}
.footer-bottom a {
  color: #8CA3C2;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 800px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .main-nav {
    justify-content: center;
  }
  .nav-cta {
    justify-content: center;
  }
  .hero-grid {
    flex-direction: column;
  }
  h1 {
    font-size: 2.5rem;
  }
  .docs-container {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}