:root {
  --bg-base: #1e2530;
  --bg-surface: #262f3d;
  --text-primary: #ffffff;
  --text-muted: #a1b0c0;
  --accent-primary: #a3e635;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-hard: 4px 4px 0 #0d1218;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  lang: en;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: Charter, Cambria, Georgia, serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bg-surface); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-top: 0; margin-bottom: 1.5rem; color: var(--text-muted); max-width: 72ch; }

.small-caps, .nav-link, .btn, .stat-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 600;
}

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

a:hover, a:focus-visible {
  opacity: 0.8;
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* Header & Nav */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

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

.nav-desktop a {
  color: var(--text-primary);
}

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

.nav-mobile-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-mobile-overlay {
  display: none;
  position: absolute;
  top: 100%;
  right: 5%;
  background: var(--bg-surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.nav-mobile-overlay.active {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #000000 !important;
  padding: 0.75rem 2rem;
  border: none;
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s var(--ease-kinetic), box-shadow 0.15s var(--ease-kinetic);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #0d1218;
}

/* Layout Engine */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-spacing {
  padding: 6rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-images {
  position: relative;
  height: 500px;
  width: 100%;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 0;
}

.hero-img-1 { width: 60%; height: 60%; top: 0; right: 0; z-index: 3; }
.hero-img-2 { width: 55%; height: 55%; bottom: 10%; left: 0; z-index: 2; }
.hero-img-3 { width: 50%; height: 50%; top: 20%; left: 20%; z-index: 1; opacity: 0.6; }

/* Grid Wrapper Fluid Engine */
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards (Borderless, flat, soft shadow) */
.card {
  background: var(--bg-surface);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-kinetic);
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* Tabbed Panels */
.tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--text-muted);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s, box-shadow 0.2s;
}

.tab-btn.active {
  color: var(--accent-primary);
  box-shadow: inset 0 -3px 0 var(--accent-primary);
}

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

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

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

/* Stat Strips */
.stat-strip {
  display: flex;
  justify-content: space-between;
  background: var(--bg-surface);
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  align-items: center;
  box-shadow: inset 4px 0 0 var(--accent-primary);
}

.stat-value {
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-primary);
}

/* Accordions */
.accordion {
  margin-bottom: 1rem;
}

.accordion-btn {
  width: 100%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.accordion-btn.active::after {
  content: '-';
}

.accordion-content {
  background: var(--bg-surface);
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-kinetic), padding 0.3s var(--ease-kinetic);
}

.accordion-content p { margin: 1.5rem 0; }

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

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

input, textarea, select {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
  padding: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: -1px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--accent-primary);
  font-family: system-ui, sans-serif;
  font-variant: small-caps;
}

/* Footer */
footer {
  background: var(--bg-surface);
  padding: 4rem 5% 2rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  font-family: system-ui, sans-serif;
  font-variant: small-caps;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

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

.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--bg-base);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-images { height: 400px; grid-row: 1; }
  .hero { padding-top: 6rem; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-mobile-btn { display: block; }
  .hero-img-1 { width: 70%; height: 70%; }
  h1 { font-size: 2.25rem; }
}

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