:root {
  --bg-canvas: #1a102f;
  --bg-alt: #231640;
  --bg-surface: #2d1d52;
  --text-primary: #e0e0e0;
  --text-muted: #a69bb8;
  --accent-primary: #ff6f59;
  --shadow-color: #090514;
  --radius: 20px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;
}

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

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

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

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Layout Elements */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-band {
  padding: 80px 0;
  width: 100%;
}

.section-alt {
  background-color: var(--bg-alt);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.narrow-content {
  max-width: 70ch;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3, h4, h5, h6 {
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

p {
  margin-bottom: 1.5rem;
}

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

/* Header & Nav */
.site-header {
  padding: 20px 0;
  background-color: var(--bg-canvas);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  padding: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero-visuals img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 12px 32px var(--shadow-color);
}

.hero-img-1 { top: 0; left: 0; width: 65%; height: 60%; z-index: 3; }
.hero-img-2 { top: 15%; right: 0; width: 55%; height: 65%; z-index: 2; }
.hero-img-3 { bottom: 0; left: 15%; width: 75%; height: 45%; z-index: 1; }

/* Components */
.card {
  background-color: var(--bg-surface);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px var(--shadow-color);
}

.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow-color);
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  margin-top: 10px;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--shadow-color);
  opacity: 1;
}

/* Table / Data Styles */
.data-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

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

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

/* Form Styles */
.budget-form {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--bg-alt);
  color: var(--text-primary);
  font-family: var(--font-mono);
  border-radius: 4px;
}

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

/* Footer */
.site-footer {
  background-color: #110a1f;
  padding: 60px 0 30px;
  margin-top: 60px;
}

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

.footer-title {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-legal {
  border-top: 1px solid var(--bg-alt);
  padding-top: 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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

.align-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visuals { height: 350px; }
  h1 { font-size: 2.5rem; }
  .section-band { padding: 50px 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}}
