:root {
  --bg-canvas: #1e2530;
  --bg-surface: #293241;
  --bg-surface-hover: #343e52;
  --text-primary: #ffffff;
  --text-muted: #cbd5e1;
  --accent-primary: #a3e635;
  --accent-secondary: #bef264;
  --border-subtle: #3f4d63;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hard: 4px 4px 0px #000000;
  --shadow-elevation: 0 16px 36px -6px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 28px -4px rgba(163, 230, 53, 0.35);
}

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

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

/* Background Radial Bloom */
.radial-bloom {
  position: absolute;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.08) 0%, rgba(30, 37, 48, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.bloom-top { top: 100px; right: -150px; }
.bloom-mid { top: 1200px; left: -200px; }
.bloom-bottom { bottom: 300px; right: 5%; }

/* Layout Wrappers */
.site-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Floating Nav */
header.site-header {
  position: static;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.nav-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-hard);
}

.brand-link {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.brand-tag {
  background-color: var(--accent-primary);
  color: #000000;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  font-weight: 900;
}

.desktop-nav {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s var(--ease-kinetic);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-tray {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-top: 0.75rem;
  box-shadow: var(--shadow-hard);
}

.mobile-nav-tray.is-open {
  display: flex;
}

.mobile-nav-tray a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.lead-p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.accent-text {
  color: var(--accent-primary);
}

/* Buttons */
.btn-lime {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #000000;
  font-weight: 800;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 2px solid #000000;
  box-shadow: var(--shadow-hard);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s var(--ease-kinetic), box-shadow 0.15s var(--ease-kinetic);
}

.btn-lime:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Overlapping Hero Trios */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.hero-images-trio {
  position: relative;
  height: 380px;
}

.trio-img {
  position: absolute;
  width: 72%;
  height: 240px;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s var(--ease-kinetic);
}

.trio-1 {
  top: 0;
  left: 0;
  z-index: 1;
}

.trio-2 {
  top: 60px;
  right: 0;
  z-index: 2;
  transform: rotate(2deg);
}

.trio-3 {
  bottom: 0;
  left: 15%;
  z-index: 3;
  transform: rotate(-2deg);
  border-color: var(--accent-primary);
}

.hero-images-trio:hover .trio-img {
  transform: scale(1.02);
}

/* Alternating Split Story Sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin: 4.5rem 0;
}

.split-reverse .split-content {
  order: 2;
}

.split-reverse .split-media {
  order: 1;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-hard);
}

.media-chip {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  color: #000000;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  text-transform: uppercase;
}

/* Cards & Bento Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 3rem 0;
}

.top-weighted-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-kinetic);
}

.top-weighted-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.card-content h3 {
  margin-top: 0.25rem;
}

.spec-list {
  list-style: none;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-list span {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Interactive Calculator / Tools */
.interactive-tool-box {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-hard);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.tool-controls label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.tool-controls select,
.tool-controls input,
.tool-controls textarea {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  outline: none;
}

.tool-controls select:focus,
.tool-controls input:focus,
.tool-controls textarea:focus {
  border-color: var(--accent-primary);
}

.tool-display {
  background-color: var(--bg-canvas);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-highlight {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}

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

th {
  background-color: #171d26;
  color: var(--accent-primary);
  padding: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--border-subtle);
}

td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

/* Accordion FAQ */
.faq-deck {
  margin: 2.5rem 0;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  margin-bottom: 0.85rem;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.faq-item.is-active .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.is-active .faq-answer {
  display: block;
}

/* Long Form Narrative Blocks */
.editorial-body {
  max-width: 72ch;
  margin: 0 auto;
}

.editorial-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Cockpit Console Footer */
footer.site-footer {
  background-color: #151a22;
  border-top: 3px solid var(--border-subtle);
  margin-top: 5rem;
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-console-row1 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--accent-primary);
}

.footer-disclaimer-box {
  background-color: #1a202a;
  border-left: 2px solid var(--accent-primary);
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-console-row2 {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 1.25rem;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--accent-primary);
}

/* Animations */
.reveal-entry {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-images-trio {
    height: 320px;
    max-width: 500px;
    margin: 0 auto;
  }
  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-reverse .split-content {
    order: 1;
  }
  .split-reverse .split-media {
    order: 2;
  }
  .footer-console-row1 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-images-trio {
    display: none;
  }
  .footer-console-row2 {
    flex-direction: column;
    align-items: flex-start;
  }
}

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