:root {
  --bg: #022C22;
  --surface: #044234;
  --surface-hover: #065b48;
  --accent: #ff6f59;
  --text: #e0f2f1;
  --text-muted: #8eb3ae;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1, h2, h3, h4, h5, h6, .brand, .tab-btn, .btn {
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Square images per brief */
}

/* Header & Nav */
.header-wrapper {
  position: relative;
  padding: 1rem;
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: rgba(4, 66, 52, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 9999px; /* Rounded ends per brief */
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--surface-hover);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Footer */
.footer-wrapper {
  padding: 1rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  background: var(--surface);
  border-radius: 9999px;
  padding: 2rem 3rem;
  text-align: center;
  border: 1px solid var(--surface-hover);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-radius: 0;
}

.btn:hover, .btn:focus-visible {
  box-shadow: 0 0 0 transparent;
  transform: translate(4px, 4px);
  color: var(--bg);
  outline: none;
}

.badge {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px; /* Round badges */
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.avatar {
  border-radius: 50%; /* Round avatars */
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Layout Blocks */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.copy-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-band {
  background: var(--accent);
  color: var(--bg);
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.hero-band h1, .hero-band h2 {
  color: var(--bg);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.band-accent {
  background: var(--accent);
  color: var(--bg);
  padding: 4rem 0;
  margin: 4rem 0;
}

.band-accent h2, .band-accent h3, .band-accent p {
  color: var(--bg);
}

.pull-up {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.grid-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.panel {
  background: rgba(4, 66, 52, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-hover);
  padding: 2rem;
  border-radius: 0; /* Square sections */
}

/* Stats & Progress */
.stat-strip {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--text-muted);
  padding: 0.75rem 0;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.stat-strip:last-child {
  border-bottom: none;
}

.progress-container {
  background: var(--bg);
  height: 12px;
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid var(--surface-hover);
}

.progress-bar {
  background: var(--accent);
  height: 100%;
}

/* Tabs */
.tabs {
  margin: 2rem 0;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--surface);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--text);
  border-bottom: 4px solid var(--accent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forms & Tables */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  font-family: "Arial Narrow", sans-serif;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--surface-hover);
  color: var(--text);
  font-family: inherit;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--surface-hover);
}

th {
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  color: var(--accent);
}

/* Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Exporter Tool Checkboxes */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.check-list input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

/* Media Queries */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0;
    flex-direction: column;
    border: 1px solid var(--text-muted);
    box-shadow: 4px 4px 0 var(--text);
  }
  nav.active {
    display: flex;
  }
  footer {
    border-radius: 0;
    padding: 2rem 1rem;
  }
  header {
    border-radius: 0;
  }
}

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