:root {
  /* Dynamic Palette: Journey Ledger (Strictly No Blue) */
  --bg-base: #1e2530;
  --bg-surface: #2b323a;
  --bg-surface-translucent: rgba(43, 50, 58, 0.85);
  --text-primary: #ffffff;
  --text-muted: #a0a6ae;
  --accent-lime: #a3e635;
  --accent-lime-hover: #bef264;
  --danger-red: #ef4444;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --glass-backdrop: blur(12px) saturate(150%);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Background Gradients */
.bg-gradient-radial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(163, 230, 53, 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 2rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.5rem; }

p { margin-bottom: 1.25rem; font-size: 1.1rem; color: var(--text-muted); }
strong { color: var(--text-primary); }
a { color: var(--accent-lime); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-lime-hover); text-decoration: underline; }

/* Header & Nav */
.header-wrapper {
  position: relative; 
  width: 100%;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.tagline {
  background-color: var(--bg-base);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.25rem 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-lime);
}

.desktop-nav {
  display: none;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}

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

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

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

/* Layout Core */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-wrapper {
  max-width: 72ch;
  margin: 0 auto;
}

/* Split Sections */
.split-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 6rem 0;
  align-items: center;
}

.split-section.reverse {
  flex-direction: column;
}

.split-text {
  flex: 1;
}

.split-image {
  flex: 1;
  width: 100%;
}

.split-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 4px;
  box-shadow: var(--shadow-elevation);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero img.bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.floating-panel {
  background: var(--bg-surface-translucent);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  box-shadow: var(--shadow-elevation);
}

.panel-item h4 {
  color: var(--accent-lime);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.panel-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-lime);
  color: var(--bg-base);
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s var(--ease-kinetic), background-color 0.3s;
}

.btn:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Cards & Panels */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-surface);
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-kinetic);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation);
}

.source-note {
  background: var(--bg-surface-translucent);
  backdrop-filter: var(--glass-backdrop);
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent-lime);
  margin: 2rem 0;
  font-size: 0.95rem;
}

.source-note h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Checklists */
.checklist {
  list-style: none;
  margin: 2rem 0;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-lime);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

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

th {
  background: var(--bg-base);
  font-weight: 800;
  color: var(--accent-lime);
}

/* Contact Workspace */
.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.workspace-form, .workspace-draft {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent-lime);
  outline-offset: -1px;
}

.workspace-draft pre {
  background: var(--bg-base);
  padding: 1.5rem;
  border-radius: 4px;
  white-space: pre-wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 200px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.draft-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.footer-col ul a {
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--accent-lime);
}

.freshness-reminder {
  background: var(--bg-base);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border-left: 3px solid var(--accent-lime);
  margin-bottom: 2rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-row a {
  color: var(--text-muted);
  margin-left: 1rem;
}

.legal-row a:hover {
  color: var(--accent-lime);
}

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

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

/* Media Queries */
@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .split-section {
    flex-direction: row;
  }
  .split-section.reverse {
    flex-direction: row-reverse;
  }
  .workspace {
    grid-template-columns: 1fr 1fr;
  }
}

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