:root {
  /* Dynamic Palette: Slate base & Vibrant Lime accents (Strictly No Blue) */
  --bg-canvas: #1e2530;
  --bg-surface: #2a3342;
  --bg-surface-hover: #374151;
  --text-primary: #ffffff;
  --text-muted: #9ca3af;
  --accent-primary: #a3e635;
  --accent-secondary: #bef264;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.3);
  
  /* Typography */
  --font-headings: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
  
  /* Geometry & Physics */
  --border-radius: 4px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-none: none !important;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-kinetic);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* Header & Brand (Strictly Left-Aligned) */
.site-header {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  position: relative; /* Moves out of view on scroll */
}

.header-logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
}

.brand-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

.header-nav-row {
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 5%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2.5rem;
  border-radius: 9999px; /* Pill shape */
  border: none;
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), background-color 0.3s var(--ease-kinetic);
  box-shadow: var(--shadow-none);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: var(--bg-canvas);
}

/* Background Pattern */
.bg-pattern {
  background-image: 
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 5%;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(30,37,48,0.4) 0%, rgba(30,37,48,0.9) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Massive Lead Block */
.lead-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
  text-align: left;
}

.lead-block h2 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.lead-block p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 72ch;
}

/* Dense Two-Column Grid */
.grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.dense-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-none);
  transition: border-color 0.3s var(--ease-kinetic), background-color 0.3s var(--ease-kinetic);
}

.grid-card:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-surface-hover);
}

.grid-card img {
  width: 100%;
  height: 250px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Forms & Tools */
.tool-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}

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

label {
  display: block;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-body);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Content Pages */
.page-header {
  padding: 6rem 5% 3rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 3rem;
  color: var(--accent-primary);
}

.content-wrapper {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 5%;
}

.content-wrapper h2 {
  margin-top: 3rem;
  font-size: 1.8rem;
}

.content-wrapper p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.content-wrapper ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-muted);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  text-align: left;
}

th {
  background-color: var(--bg-surface);
  font-family: var(--font-headings);
  text-transform: uppercase;
}

.table-wrapper {
  overflow-x: auto;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 4rem 5% 2rem;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-logo {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 1rem;
}

.footer-nav-cols {
  display: flex;
  gap: 4rem;
}

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

.footer-nav-col li {
  margin-bottom: 0.75rem;
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav-col a:hover {
  color: var(--text-primary);
}

.footer-contact {
  text-align: right;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Breakpoints */
@media (max-width: 1024px) {
  .dense-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-nav-row {
    display: none;
    flex-direction: column;
    padding: 0;
  }
  
  .header-nav-row.is-open {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-contact {
    text-align: left;
  }
  
  .footer-nav-cols {
    flex-direction: column;
    gap: 2rem;
  }
  
  .lead-block p {
    font-size: 1.2rem;
  }
}

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