:root {
  /* Dynamic Palette: Financial Dashboard (Strictly No Blue) */
  --bg-canvas: #022c22;
  --bg-surface: #033b2e;
  --text-primary: #34d399;
  --text-muted: #10b981;
  --accent-primary: #f43f5e;
  
  --font-serif: Charter, Cambria, Georgia, serif;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-backdrop: blur(12px);
  --radius: 4px;
  --shadow-hard: 4px 4px 0px #011611;
  --shadow-hard-hover: 2px 2px 0px #011611;
}

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

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

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

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

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

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

.label, .nav-link, .btn, th, .tag {
  font-variant: small-caps;
  text-transform: lowercase; /* Fallback for small-caps */
  letter-spacing: 0.05em;
}

/* Header & Nav */
.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-primary);
}

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

.desktop-nav a {
  font-variant: small-caps;
  font-size: 1.1rem;
}

.mobile-toggle {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--accent-primary);
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .desktop-nav { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

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

.lead-block {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 2rem;
}

.hero-visual img {
  width: 100%;
  height: 100%;
}

.hero-card {
  position: absolute;
  bottom: -2rem;
  right: 5%;
  width: 90%;
  max-width: 400px;
  background: rgba(3, 59, 46, 0.6);
  backdrop-filter: var(--glass-backdrop);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent-primary);
  padding-left: 1rem;
  font-size: 0.9rem;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 0;
}

@media (min-width: 769px) {
  .two-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Components */
.card {
  background: rgba(3, 59, 46, 0.4);
  backdrop-filter: var(--glass-backdrop);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.1);
  transition: transform 0.4s var(--ease-kinetic);
}

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

.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: all 0.2s var(--ease-kinetic);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
  color: #fff;
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 transparent;
}

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

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

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

th {
  color: var(--accent-primary);
}

/* FAQ Accordion */
details {
  background: rgba(3, 59, 46, 0.4);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.1);
}

summary {
  padding: 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent-primary);
}

details[open] summary::after {
  content: "−";
}

.details-content {
  padding: 0 1.5rem 1.5rem;
}

/* Tools: Contact Terminal */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-variant: small-caps;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-canvas);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--text-primary);
  border-radius: var(--radius);
  font-family: var(--font-serif);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.terminal-output {
  background: #011611;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--text-muted);
  font-family: monospace;
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

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

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

.footer-links li {
  margin-bottom: 0.5rem;
}

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

.legal-links {
  display: flex;
  gap: 1rem;
}

.legal-links a {
  color: var(--text-muted);
}

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

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(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}}
