/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-border: #2a2a2a;
  --color-text: #e8e8e8;
  --color-text-muted: #888;
  --color-accent: #6c5ce7;
  --color-accent-hover: #7f71ed;
  --color-highlight-bg: rgba(108, 92, 231, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --max-width: 900px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero .subheadline {
  font-size: 20px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero .btn {
  margin: 0 8px 12px;
}

/* Section shared */
section {
  padding: 100px 0;
}
section:nth-child(even) {
  background: var(--color-surface);
}
h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 60px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--color-accent);
}
.features:nth-child(even) .feature-card {
  background: var(--color-bg);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
}
.testimonial-card .quote {
  font-size: 17px;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-card .attribution {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
}

/* Compatibility */
.compat-list {
  max-width: 700px;
  margin: 0 auto;
}
.compat-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
  background: var(--color-surface);
}
.compat-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.compat-item p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  font-weight: 600;
}
th.highlight, td.highlight {
  color: var(--color-accent);
  font-weight: 600;
}
tr:hover td {
  background: var(--color-highlight-bg);
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-item summary:hover {
  background: var(--color-highlight-bg);
}
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item p {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 0;
}
.cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
}
.cta p {
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}
.cta .btn {
  margin-bottom: 24px;
}
.fine-print {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  font-style: italic;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
footer p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: 80px 0 60px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero .subheadline {
    font-size: 17px;
  }
  section {
    padding: 70px 0;
  }
  h2 {
    font-size: 28px;
  }
  .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .feature-grid, .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 60px 0 50px;
  }
  .hero .eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .hero h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
  .hero .subheadline {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .hero .btn {
    display: block;
    margin: 0 0 12px;
    text-align: center;
  }

  /* Sections */
  section {
    padding: 56px 0;
  }
  h2 {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  /* Features */
  .feature-card {
    padding: 24px;
  }
  .feature-card h3 {
    font-size: 18px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 24px;
  }
  .testimonial-card .quote {
    font-size: 16px;
  }

  /* Compatibility */
  .compat-item {
    padding: 20px;
  }
  .compat-item h3 {
    font-size: 16px;
  }

  /* Comparison table — card layout on mobile */
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    position: absolute;
    left: -9999px;
  }
  tr {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--color-surface);
  }
  /* First td in each row is the feature name — style as heading */
  td[data-label="Feature"] {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    padding: 0 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
  }
  td[data-label="Feature"]::before {
    display: none;
  }
  td {
    padding: 6px 0;
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
    gap: 4px;
  }
  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 13px;
    flex-shrink: 0;
  }
  td.highlight {
    color: var(--color-accent);
  }
  tr:hover td {
    background: none;
  }

  /* FAQ */
  .faq-item summary {
    padding: 16px 20px;
    font-size: 16px;
  }
  .faq-item p {
    padding: 0 20px 16px;
    font-size: 14px;
  }

  /* CTA */
  .cta {
    padding: 60px 0;
  }
  .cta h2 {
    font-size: 24px;
  }
  .cta p {
    font-size: 16px;
  }
  .cta .btn {
    display: block;
    text-align: center;
  }
}
