:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #141418;
  --bg-elevated: #1a1a20;
  --text-primary: #f2f3f5;
  --text-muted: #c0c4cc;
  --accent-primary: #dc2626;
  --accent-hover: #b91c1c;
  --border-subtle: #24242c;
  --shadow-idle: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.65);
  --font-stack: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --line-height: 1.7;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: var(--line-height);
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
p:last-child {
  margin-bottom: 0;
}

strong {
  color: #ffffff;
}

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

/* Underline Growth Links */
.link-expand {
  display: inline-block;
  color: var(--text-primary);
  position: relative;
  font-weight: 600;
  padding-bottom: 2px;
}
.link-expand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease-in-out;
}
.link-expand:hover::after,
.link-expand:focus::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Slim Header & Dropdown Navigation */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 100;
}
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.brand-logo-svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-primary);
  flex-shrink: 0;
}

.nav-split-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.32rem 0.8rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-header:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* 3-Dot Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: #ffffff;
  padding: 0.25rem;
  cursor: pointer;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mobile-toggle:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-muted);
}
.mobile-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.bento-tile {
  background-color: var(--bg-surface);
  padding: 2rem;
  box-shadow: var(--shadow-idle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }

/* Hero Bento Pattern */
.hero-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2.5rem;
}
.hero-media {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.hero-floating-card {
  position: absolute;
  bottom: -20px;
  right: 2rem;
  background-color: var(--bg-surface);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lift);
  border-left: 4px solid var(--accent-primary);
  max-width: 460px;
}
.hero-floating-card h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.fact-list {
  list-style: none;
}
.fact-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fact-list li::before {
  content: "■";
  color: var(--accent-primary);
  font-size: 0.65rem;
}

/* Badge / Pills */
.tile-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

/* Main Container Layouts */
.main-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
}
.reading-column {
  max-width: 68ch;
  margin: 0 auto;
}
.legal-column {
  max-width: 760px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumb-trail {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.breadcrumb-separator {
  color: var(--accent-primary);
}

/* Data Matrix / Tables */
.table-scroll-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-idle);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.matrix-table th,
.matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.matrix-table th {
  background-color: var(--bg-elevated);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.matrix-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Stepped Lists & Checklists */
.custom-steps {
  list-style: none;
  counter-reset: custom-counter;
  margin: 1.5rem 0;
}
.custom-steps li {
  counter-increment: custom-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.custom-steps li::before {
  content: counter(custom-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.custom-checklist {
  list-style: none;
  margin: 1.5rem 0;
}
.custom-checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.custom-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* FAQ Details Native Component */
.faq-accordion {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-idle);
  transition: box-shadow 0.2s ease;
}
.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-summary::after {
  content: "−";
}
.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Section Dividers */
.section-boundary {
  margin: 4rem 0 2rem;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}
.section-header h2 {
  margin-bottom: 0;
}

/* Forms & Draft Tool */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.form-control {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 0;
}
.form-control:focus {
  border-color: var(--accent-primary);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
.draft-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn-secondary {
  background-color: var(--bg-elevated);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.btn-secondary:hover {
  border-color: var(--text-muted);
}
.draft-output {
  margin-top: 1.5rem;
  background-color: var(--bg-canvas);
  border: 1px dashed var(--border-subtle);
  padding: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col-desc {
  grid-column: span 5;
}
.footer-col-nav {
  grid-column: span 4;
}
.footer-col-legal {
  grid-column: span 3;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-list a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.text-accent { color: var(--accent-primary); }

/* Responsive Queries */
@media (max-width: 1024px) {
  .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4 {
    grid-column: span 6;
  }
  .footer-col-desc { grid-column: span 12; }
  .footer-col-nav { grid-column: span 6; }
  .footer-col-legal { grid-column: span 6; }
}

@media (max-width: 768px) {
  .hero-floating-card {
    position: static;
    margin-top: -1rem;
    max-width: 100%;
  }
  .bento-col-12, .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4 {
    grid-column: span 12;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-split-group {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 1.5rem;
    left: auto;
    width: 220px;
    max-width: calc(100vw - 3rem);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    flex-direction: column;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lift);
    z-index: 200;
  }
  .nav-split-group.active {
    display: flex;
  }
  .nav-split-group li {
    width: 100%;
  }
  .nav-split-group .nav-link {
    display: block;
    width: 100%;
    padding: 0.4rem 0;
  }
  .nav-split-group .btn-header {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.45rem 0.75rem;
  }
  .footer-col-nav, .footer-col-legal {
    grid-column: span 12;
  }
}

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