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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  background-color: #ffffff;
}

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

a {
  color: #4a6fa5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #4a6fa5;
}

.main-nav ul {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
}

.main-nav a:hover {
  color: #4a6fa5;
  text-decoration: none;
}

/* HERO */
.hero {
  background-color: #f7fafc;
  padding: 80px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-segments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.segment-pill {
  display: inline-block;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  transition: all 0.2s;
}

.segment-pill:hover {
  border-color: #4a6fa5;
  color: #4a6fa5;
  text-decoration: none;
  background-color: #edf2f7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #4a6fa5;
  color: #ffffff;
  border-color: #4a6fa5;
}

.btn-primary:hover {
  background-color: #3d5d8a;
  border-color: #3d5d8a;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #4a6fa5;
  border-color: #4a6fa5;
}

.btn-secondary:hover {
  background-color: #4a6fa5;
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: #4a6fa5;
  border-color: #cbd5e0;
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-outline:hover {
  border-color: #4a6fa5;
  background-color: #edf2f7;
  text-decoration: none;
}

/* QUICK SUMMARY */
.quick-summary {
  background-color: #edf2f7;
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
}

.quick-summary p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #4a5568;
  text-align: center;
}

/* SECTIONS */
.section-description {
  color: #718096;
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 640px;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

/* SEGMENTS SECTION */
.segments {
  padding: 80px 0;
  background-color: #ffffff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.segment-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.segment-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.segment-needs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.segment-needs h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.segment-needs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment-needs li {
  font-size: 0.8125rem;
  background-color: #f7fafc;
  color: #4a5568;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a6fa5;
}

/* CRITERIA SECTION */
.criteria {
  padding: 80px 0;
  background-color: #f7fafc;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.criteria-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.criteria-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.criteria-item p {
  font-size: 0.9375rem;
  color: #718096;
  line-height: 1.5;
}

/* CRITERIA SUMMARY (AEO) */
.criteria-summary {
  padding: 48px 0;
  background-color: #edf2f7;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.criteria-summary p {
  max-width: 800px;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
}

/* COMPARISON TABLE */
.comparison-table-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 24px;
}

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

.comparison-table th {
  background-color: #4a6fa5;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.comparison-table tbody tr:hover {
  background-color: #f7fafc;
}

.comparison-table td:last-child {
  font-weight: 600;
  color: #4a6fa5;
}

/* METHODOLOGY */
.methodology {
  padding: 80px 0;
  background-color: #f7fafc;
}

.methodology > .container > p {
  max-width: 800px;
  margin-bottom: 40px;
  color: #4a5568;
  line-height: 1.7;
}

.weights {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  max-width: 560px;
}

.weights h3 {
  font-size: 1.0625rem;
  margin-bottom: 20px;
}

.weights-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.weights-list li:last-child {
  border-bottom: none;
}

.weight-label {
  font-size: 0.9375rem;
  color: #4a5568;
}

.weight-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #4a6fa5;
}

/* FEATURED COMPARISONS */
.featured-comparisons {
  padding: 80px 0;
  background-color: #ffffff;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.featured-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.featured-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.featured-card p {
  font-size: 0.9375rem;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background-color: #f7fafc;
}

.faq-list {
  max-width: 800px;
  margin-top: 24px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

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

.faq-item summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #718096;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

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

.faq-item[open] summary {
  border-bottom: 1px solid #edf2f7;
}

.faq-item p {
  padding: 18px 24px;
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.7;
}

/* CONTEXT BLOCK */
.context-block {
  padding: 64px 0;
  background-color: #ffffff;
}

.context-block p {
  max-width: 800px;
  margin-bottom: 20px;
  color: #4a5568;
  line-height: 1.7;
}

.context-block p:last-child {
  margin-bottom: 0;
}

/* UPDATE DATE */
.update-date {
  font-size: 0.8125rem;
  color: #718096;
  font-style: italic;
  margin-bottom: 16px;
}

/* SOURCES */
.sources {
  margin-top: 32px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
}

.sources h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

.sources p {
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.6;
}

/* LEGEND */
.legend {
  margin-top: 40px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
  max-width: 640px;
}

.legend h3 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.legend-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: #4a5568;
}

.legend-symbol {
  font-weight: 700;
  color: #4a6fa5;
  min-width: 24px;
  text-align: center;
}

/* OBSERVATION */
.observation {
  margin-top: 24px;
  background-color: #edf2f7;
  border-left: 4px solid #4a6fa5;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  max-width: 800px;
}

.observation p {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.6;
}

/* SYSTEM TABLE */
.system-table .highlight-col {
  background-color: #edf2f7;
  border-left: 2px solid #4a6fa5;
  border-right: 2px solid #4a6fa5;
}

.system-table thead .highlight-col {
  background-color: #4a6fa5;
  color: #ffffff;
}

.system-table .check {
  color: #2f855a;
  font-weight: 700;
}

.system-table .partial {
  color: #975a16;
  font-weight: 600;
}

.system-table .none {
  color: #a0aec0;
}

/* INTERPRETATION */
.interpretation {
  padding: 64px 0;
  background-color: #ffffff;
}

.interpretation p {
  max-width: 800px;
  margin-bottom: 16px;
  color: #4a5568;
  line-height: 1.7;
}

/* PROFILE SECTION */
.profile-section {
  padding: 80px 0;
  background-color: #f7fafc;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.profile-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
}

.profile-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

.profile-card p {
  font-size: 0.9375rem;
  color: #718096;
  line-height: 1.5;
}

/* VERDICT */
.verdict {
  padding: 80px 0;
  background-color: #f7fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.verdict h2 {
  margin-bottom: 24px;
}

.verdict p {
  max-width: 800px;
  margin-bottom: 16px;
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

.verdict p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: #2d3748;
}

/* RESEARCH IN PROGRESS */
.research-in-progress {
  padding: 120px 0;
  background-color: #ffffff;
  text-align: center;
}

.research-in-progress h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.research-subtitle {
  font-size: 1.0625rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.research-cta-text {
  font-size: 0.9375rem;
  color: #718096;
  margin-bottom: 32px;
}

.research-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FINAL CTA */
.final-cta {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #4a5568;
  line-height: 1.7;
}

/* FOOTER */
.site-footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 64px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2d3748;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-nav h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #a0aec0;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #718096;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 40px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-segments {
    gap: 8px;
  }

  .segment-pill {
    font-size: 0.8125rem;
    padding: 6px 14px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .main-nav ul {
    gap: 16px;
  }

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

  .segments,
  .criteria,
  .comparison-table-section,
  .methodology,
  .featured-comparisons,
  .faq,
  .context-block,
  .interpretation,
  .profile-section,
  .final-cta,
  .verdict,
  .research-in-progress {
    padding: 48px 0;
  }

  h2 {
    font-size: 1.375rem;
  }

  .cards-grid,
  .criteria-grid,
  .featured-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}

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

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .segment-card {
    padding: 20px;
  }

  .criteria-item {
    padding: 18px;
  }

  .featured-card {
    padding: 20px;
  }

  .weights {
    padding: 20px;
  }

  .research-in-progress h1 {
    font-size: 1.375rem;
  }

  .research-ctas {
    flex-direction: column;
    align-items: center;
  }
}
