/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0b0b0f;
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

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

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

code {
  font-family: 'DM Mono', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
}

/* === UTILITY === */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6366f1;
  margin-bottom: 0.75rem;
}

section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #f4f4f5;
}

.section-desc {
  font-size: 1rem;
  color: #a1a1aa;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  color: #f4f4f5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #f4f4f5;
}

.nav-gh {
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.8125rem !important;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  color: #818cf8;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fafafa;
}

.hero h1 .highlight {
  color: #6366f1;
}

.hero-sub {
  font-size: 1.0625rem;
  color: #a1a1aa;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-sub code {
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  color: #818cf8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: #6366f1;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.stat {
  flex: 1;
  padding: 1rem 1.25rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f4f4f5;
  font-family: 'DM Mono', monospace;
}

.stat-label {
  display: block;
  font-size: 0.6875rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* === OVERVIEW === */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.overview-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.overview-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.card-icon {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6366f1;
  margin-bottom: 0.75rem;
}

.overview-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f4f4f5;
}

.overview-card p {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.6;
}

.overview-card code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* === INSTALL === */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.step-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6366f1;
  min-width: 2rem;
  line-height: 1.5;
}

.step-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #f4f4f5;
}

.step-content p {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
}

.step-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: #71717a;
}

.code-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.code-block code {
  font-size: 0.8125rem;
  color: #a1a1aa;
}

/* === PILLARS === */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pillar-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.pillar-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.pillar-icon {
  color: #6366f1;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f4f4f5;
}

.pillar-card p {
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.pillar-stat {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  color: #6366f1;
  letter-spacing: 0.02em;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.feature-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  color: #52525b;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f4f4f5;
}

.feature-card p {
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.65;
}

.feature-card code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* === HOW IT WORKS === */
.steps-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.flow-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6366f1;
  margin-bottom: 0.75rem;
}

.flow-step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f4f4f5;
}

.flow-step p {
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.6;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding-top: 1.5rem;
  color: #52525b;
}

/* === COMPARISON === */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table thead th {
  font-weight: 600;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .row-label {
  color: #a1a1aa;
  font-weight: 500;
}

.comparison-table .highlight-col {
  color: #818cf8;
  font-weight: 500;
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f4f4f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: #52525b;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.7;
}

.faq-item code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* === PRIMARY SOURCES === */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.source-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
}

.source-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.03);
}

.source-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #f4f4f5;
}

.source-card p {
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.source-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  color: #6366f1;
}

/* === FOOTER === */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: #71717a;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #a1a1aa;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #52525b;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  section {
    padding: 3rem 1.25rem;
  }

  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .stat {
    min-width: 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .overview-grid,
  .features-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .steps-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
    min-width: unset;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8125rem;
  }

  h2 {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.625rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stat {
    min-width: 100%;
  }
}
