:root {
  /* Dynamic Palette: Emerald Glow (Strictly No Blue) */
  --bg-base: #1c1f24;
  --bg-surface: #272a30;
  --bg-surface-hover: #33373f;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #10b981;
  --accent-dark: #059669;
  --border-subtle: rgba(229, 231, 235, 0.1);
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 40px -4px rgba(16, 185, 129, 0.15);
  --glow-accent: 0 0 24px -4px var(--accent-primary);
}

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

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; }

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

/* Utility Top Bar */
.top-bar {
  background-color: #111316;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
}

/* Header & Nav */
.main-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.brand:hover { color: var(--accent-primary); }

.desktop-nav {
  display: none;
}
.desktop-nav a {
  color: var(--text-main);
  margin-left: 2rem;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

/* Secondary Link Growing Underline */
.desktop-nav a::after, .link-secondary::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}
.desktop-nav a:hover::after, .link-secondary:hover::after {
  width: 100%;
}

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

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Hero Section (Typography Driven) */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 5%;
  background-color: var(--bg-base);
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #1c1f24;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0; /* Perfectly square */
  transition: all 0.3s var(--ease-kinetic);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--glow-accent);
  color: #1c1f24;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Cards (Borderless, hovering, perfectly square images) */
.card {
  background-color: var(--bg-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  background-color: var(--bg-surface-hover);
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(0.85); /* Moody */
  transition: transform 0.6s var(--ease-kinetic);
}
.card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  margin-bottom: 0.75rem;
}
.card-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Badges & Avatars (Strictly Circular for contrast) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #1c1f24;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-weight: 800;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Aggressive Background Accent Section */
.accent-block {
  background-color: var(--accent-primary);
  color: #1c1f24;
  padding: 5rem 5%;
  text-align: center;
}
.accent-block h2, .accent-block h3 {
  color: #1c1f24;
}
.accent-block .btn-primary {
  background-color: #1c1f24;
  color: var(--accent-primary);
}
.accent-block .btn-primary:hover {
  background-color: #111316;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Editorial Content / Reading Widths */
.editorial-content {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.1rem;
}
.editorial-content h2 { margin-top: 3rem; }
.editorial-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-muted);
}
.editorial-content li { margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; background: var(--bg-surface); }
th, td { padding: 1rem; border: 1px solid var(--border-subtle); text-align: left; }
th { background: #111316; font-weight: 700; color: #fff; }

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

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  border-radius: 0;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}
textarea.form-control { resize: vertical; min-height: 150px; }

/* Tools */
.tool-box {
  background: var(--bg-surface);
  padding: 2rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background-color: #111316;
  padding: 4rem 5% 2rem;
  text-align: center;
  border-top: 5px solid var(--accent-primary);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--accent-primary); }

.legal-text {
  font-size: 0.75rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Media Queries */
@media (min-width: 769px) {
  .desktop-nav { display: flex; align-items: center; }
  .mobile-toggle { display: none; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .grid-2 { grid-template-columns: repeat(2, 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}}
