:root {
  --bg-canvas: #161b22;
  --bg-slate: #1e2530;
  --bg-surface: #293444;
  --bg-surface-elevated: #323f52;
  --bg-surface-hover: #3b4a60;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent-primary: #a3e635;
  --accent-secondary: #bef264;
  --accent-dark: #65a30d;
  --border-subtle: rgba(163, 230, 53, 0.18);
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-elevation: 0 16px 36px -6px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 24px -4px rgba(163, 230, 53, 0.35);
  --radius-card: 20px;
  --radius-pill: 9999px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
}
a:hover {
  color: var(--accent-secondary);
}

/* Typography */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; color: #e2e8f0; }
.lead { font-size: 1.15rem; line-height: 1.7; color: #f1f5f9; }
.text-muted { color: var(--text-muted); }
.badge-lime {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(163, 230, 53, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

/* Slender Utility Bar */
.ethics-topbar {
  background-color: #121720;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.45rem 1.25rem;
}
.ethics-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ethics-topbar a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ethics-topbar a:hover {
  color: var(--accent-primary);
}

/* Masthead Header */
.site-header {
  position: relative; /* Moves up on scroll */
  background-color: var(--bg-slate);
  border-bottom: 1px solid var(--border-glass);
  padding: 1.15rem 1.5rem;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a3e635 0%, #4d7c0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121720;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.3);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.brand-name span {
  color: var(--accent-primary);
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s var(--ease-kinetic);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.05);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-slate);
  border-bottom: 2px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
}
.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mobile-drawer .nav-link {
  font-size: 1.05rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Container & Layout Helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.reading-container {
  max-width: 72ch;
  margin: 0 auto;
}
.section-pad {
  padding: 4.5rem 0;
}
.section-diagonal {
  position: relative;
  clip-path: polygon(0 0, 100% 2.5vw, 100% 100%, 0 calc(100% - 2.5vw));
  margin: 2.5vw 0;
  padding: 5.5rem 0;
}
.bg-canvas { background-color: var(--bg-canvas); }
.bg-slate { background-color: var(--bg-slate); }
.bg-surface { background-color: var(--bg-surface); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #121720;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(163, 230, 53, 0.25);
  transition: transform 0.2s var(--ease-kinetic), box-shadow 0.2s var(--ease-kinetic), background-color 0.2s;
}
.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: #0b0f14;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.38);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s var(--ease-kinetic);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Alternating Split Grid */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  margin: 3.5rem 0;
}
.split-grid.reverse {
  direction: rtl;
}
.split-grid.reverse > * {
  direction: ltr;
}
.split-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  background-color: var(--bg-surface);
}
.split-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-kinetic);
}
.split-media:hover img {
  transform: scale(1.03);
}
.split-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(18, 23, 32, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
}

/* Feature Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.review-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.score-pill {
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  background-color: rgba(163, 230, 53, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
}

/* Benchmark Tables & Spec Matrices */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  border: 1px solid var(--border-glass);
}
table.bench-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
table.bench-table th {
  background-color: #1e2530;
  color: var(--text-primary);
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
table.bench-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}
table.bench-table tr:hover td {
  background-color: rgba(163, 230, 53, 0.04);
}
.val-positive { color: var(--accent-primary); font-weight: 600; }
.val-negative { color: #f87171; font-weight: 600; }

/* Score Estimator & Tool Block */
.tool-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
  margin: 2.5rem 0;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-control, select.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background-color: #1a222c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.2);
}
.results-display {
  background-color: #161b22;
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--accent-primary);
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: #e2e8f0;
}

/* FAQ Accordion Elements */
.faq-item {
  background-color: var(--bg-surface);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--accent-primary);
}
.faq-question .indicator {
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.25s var(--ease-kinetic);
}
.faq-item.active .indicator {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Footer Section */
.site-footer {
  background-color: #0f141a;
  border-top: 1px solid var(--border-glass);
  padding: 4.5rem 0 2.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.65rem;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-legal-tag {
  color: var(--text-subtle);
  line-height: 1.5;
}

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .split-grid, .split-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  .split-media img {
    height: 280px;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-pad {
    padding: 3rem 0;
  }
  .section-diagonal {
    clip-path: none;
    margin: 1.5rem 0;
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
