:root {
  /* Lime Split Palette (Strictly No Blue) */
  --bg-canvas: #160f2e; /* Midnight Purple */
  --bg-surface: #1f1540; /* Slightly lighter purple for depth */
  --text-primary: #ffffff;
  --text-muted: #d1d0d9;
  --accent-magenta: #e0409b;
  --accent-lime: #84cc16;
  
  /* Typography */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Metrics */
  --max-width: 1200px;
  --header-height: 80px;
}

/* Base Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-wrap: anywhere; hyphens: auto; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Monospace Elements */
.mono, .label, .dimension-tag, .nav-link, .small-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.small-heading { font-size: 0.875rem; color: var(--accent-lime); margin-bottom: 0.5rem; display: block; }
.dimension-tag { 
  display: inline-block; 
  padding: 0.25rem 0.5rem; 
  border: 1px solid var(--accent-magenta); 
  font-size: 0.75rem; 
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Links & Buttons */
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-lime); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-lime);
  color: var(--bg-canvas);
  font-family: var(--font-mono);
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 9999px; /* Pill shape */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { background-color: #9ced1c; transform: translateY(-2px); color: var(--bg-canvas); }
.btn-magenta { background-color: var(--accent-magenta); color: #fff; }
.btn-magenta:hover { background-color: #f755b1; color: #fff; }

/* Header & Nav */
.site-header {
  position: absolute; /* Static layout over hero, scrolls out */
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.brand span { color: var(--accent-lime); }

.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { font-size: 0.875rem; font-weight: 600; }

.mobile-nav-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--accent-magenta);
  padding: 1rem 5%;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.active { display: flex; }

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 5% 4rem;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(22, 15, 46, 0.9) 0%, rgba(22, 15, 46, 0.4) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; color: var(--text-muted); }

/* Floating Hero Card */
.hero-floating-card {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-magenta);
  padding: 2rem;
  width: 300px;
  z-index: 10;
}
.hero-floating-card h4 { font-family: var(--font-mono); font-size: 1rem; color: var(--accent-lime); margin-bottom: 1.5rem; }
.fact-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(224, 64, 155, 0.3); }
.fact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.fact-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: bold; color: var(--text-primary); display: block; }
.fact-desc { font-size: 0.875rem; color: var(--text-muted); }

/* Split Layout Sections */
.split-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.split-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.split-row.reverse { flex-direction: row-reverse; }

.split-content {
  flex: 1 1 50%;
  padding: 6rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-image {
  flex: 1 1 50%;
  min-height: 400px;
  position: relative;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

/* Accent Blocks */
.accent-block-magenta { background-color: var(--accent-magenta); color: #fff; padding: 4rem 5%; text-align: center; }
.accent-block-magenta h2 { color: #fff; }
.accent-block-magenta .small-heading { color: var(--bg-canvas); }

/* Cards & Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 5%;
}
.flat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-lime);
  padding: 2rem;
  border-radius: 0; /* Square corners */
  transition: transform 0.3s ease;
}
.flat-card:hover { transform: translateY(-4px); border-color: var(--accent-magenta); }
.card-icon {
  width: 48px; height: 48px;
  background-color: var(--accent-magenta);
  border-radius: 50%; /* Round badge */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-weight: bold;
}

/* Interior Pages Wrapper */
.page-wrapper {
  max-width: 800px;
  margin: calc(var(--header-height) + 4rem) auto 4rem;
  padding: 0 5%;
}
.page-wrapper img { width: 100%; height: auto; border: 1px solid var(--accent-lime); margin: 2rem 0; }
.page-wrapper h2 { margin-top: 3rem; }
.page-wrapper p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.125rem; }

/* Tool / Form */
.tool-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-magenta);
  padding: 2rem;
  margin: 3rem 0;
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--accent-lime); }
.form-input, .form-textarea {
  width: 100%;
  background-color: var(--bg-canvas);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: var(--font-body);
  border-radius: 0;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent-lime); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Table */
.table-wrapper { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--accent-magenta); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(224, 64, 155, 0.3); }
th { font-family: var(--font-mono); color: var(--accent-lime); background-color: var(--bg-surface); }
tr:last-child td { border-bottom: none; }

/* Footer */
.site-footer {
  background-color: var(--accent-magenta);
  color: #fff;
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}
.footer-heading { font-family: var(--font-mono); font-size: 1rem; margin-bottom: 1.5rem; color: var(--bg-canvas); font-weight: bold; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--bg-canvas); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}
.footer-bottom p { opacity: 0.8; }

/* Scroll Reveal Kinetic */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-floating-card { position: static; transform: none; width: 100%; max-width: 600px; margin-top: 3rem; border-color: var(--accent-lime); }
  .split-content { padding: 4rem 5%; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-nav-btn { display: block; }
  .split-row, .split-row.reverse { flex-direction: column; }
  .split-image { min-height: 300px; }
  h1 { font-size: 2.5rem; }
}

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