:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #292d34;
  --bg-surface-hover: #323740;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-tint: #0f3e3a;
  --accent-contrast: #0f172a;
  --border-subtle: #374151;
  --max-width: 1100px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.35rem; }

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

/* Header & Navigation */
.site-header {
  position: static;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-symbol {
  width: 28px;
  height: 28px;
  background-color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0d1117;
  font-size: 0.95rem;
}

.brand-title {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background-color: var(--bg-surface);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.nav-capsule a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-capsule a:hover,
.nav-capsule a.active {
  color: var(--accent-primary);
}

.nav-capsule .cta-nav {
  background-color: var(--accent-primary);
  color: var(--accent-contrast);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
}
.nav-capsule .cta-nav:hover {
  opacity: 0.9;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Horizontal Bands & Layout */
.band {
  width: 100%;
  padding: 4.5rem 1.5rem;
}

.band-dark {
  background-color: var(--bg-canvas);
}

.band-surface {
  background-color: var(--bg-surface);
}

.band-teal {
  background-color: var(--accent-tint);
  border-top: 1px solid rgba(20, 184, 166, 0.3);
  border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

.lane {
  max-width: var(--max-width);
  margin: 0 auto;
}

.lane-editorial {
  max-width: 70ch;
  margin: 0 auto;
}

/* Hero Section */
.hero-band {
  background-color: #0b2e2b;
  border-bottom: 2px solid var(--accent-primary);
  padding: 5rem 1.5rem 4.5rem;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.825rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 72ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-pill {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--accent-contrast);
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s;
}

.btn-pill:hover {
  transform: translateY(-2px);
  background-color: #2dd4bf;
  text-decoration: none;
}

.btn-pill-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  margin-left: 1rem;
}
.btn-pill-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Cards & Grid */
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #111418;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0px;
}

.card-badge {
  position: absolute;
  bottom: 0;
  left: 1rem;
  transform: translateY(50%);
  background-color: var(--accent-primary);
  color: #042f2e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0px;
}

.card-body {
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin-bottom: 0.75rem;
  color: #f3f4f6;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-meta {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #171a1e;
  color: #ffffff;
  font-family: Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(20, 184, 166, 0.04);
}

.metric-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0px;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #042f2e;
  color: #2dd4bf;
}

/* Interactive Quiz Component */
.interactive-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 0px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f3f4f6;
}

select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #1c1f24;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  border-radius: 0px;
}

select:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.tool-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: #162624;
  border-left: 4px solid var(--accent-primary);
  display: none;
}

.tool-output.visible {
  display: block;
}

/* Editorial Article Content */
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.quote-callout {
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-left: 3px solid var(--accent-primary);
  background-color: #20242b;
  font-family: Georgia, serif;
  font-style: italic;
  color: #f3f4f6;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-family: Georgia, serif;
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p {
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  max-height: 350px;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.2s;
}

/* Footer */
.site-footer {
  background-color: #121417;
  border-top: 2px solid var(--border-subtle);
  padding: 4rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-lane {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.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 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* Responsive Queries */
@media (max-width: 768px) {
  .nav-capsule {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .footer-lane {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-band {
    padding: 3.5rem 1.25rem 3rem;
  }
  .band {
    padding: 3rem 1.25rem;
  }
  .btn-pill-secondary {
    display: block;
    margin-left: 0;
    margin-top: 0.75rem;
    text-align: center;
  }
}

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