:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #1a1a1f;
  --text-primary: #c0c4cc;
  --text-muted: #8a8d94;
  --accent-primary: #dc2626;
  --accent-secondary: #991b1b;
  --border-subtle: #2d2d33;

  --font-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;

  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 300ms;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin-top: 0; margin-bottom: 1.5rem; }

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

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

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

/* Layout Architecture */
.site-wrapper {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.floating-header {
  background: var(--bg-surface);
  border-radius: 50px;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-subtle);
  position: relative;
  margin-bottom: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.page-frame {
  border: 1px solid var(--border-subtle);
  padding: clamp(1.5rem, 4vw, 4rem);
  background-color: var(--bg-canvas);
}

/* Grid & Columns */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.long-form {
  max-width: 72ch;
  margin: 0 auto;
}

/* Hero Section */
.hero-split {
  margin-bottom: 4rem;
}

.hero-content {
  padding-right: 2rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 0;
}

/* UI Components */
.btn, .btn-outline {
  display: inline-block;
  border: 1px solid var(--accent-primary);
  border-radius: 0;
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease-kinetic);
}

.btn:hover, .btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}

.card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 0;
  transition: box-shadow var(--duration) var(--ease-kinetic);
  box-shadow: none;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.03);
}

.card h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.stat-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  padding: 1.25rem 2rem;
  margin-bottom: 0.5rem;
  border-radius: 0;
  transition: box-shadow var(--duration) var(--ease-kinetic);
}

.stat-strip:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.04);
}

.stat-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.25rem;
}

.badge-round {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-primary);
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn var(--duration) var(--ease-kinetic);
}

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

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

.form-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  font-family: var(--font-body);
  border-radius: 0;
}

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

.compiler-result {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-primary);
  display: none;
}

/* Images */
.img-responsive {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.img-cover {
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-top: 0;
}

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

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

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

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

.disclaimer {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Mobile Nav */
.mobile-nav-panel {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 20px 20px;
  z-index: 50;
  gap: 1rem;
}

.mobile-nav-panel.open {
  display: flex;
}

/* Media Queries */
@media (max-width: 1024px) {
  .grid-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-wrapper { padding: 1rem; }
  .page-frame { padding: 1.5rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .stat-strip { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .floating-header { padding: 1rem 1.5rem; border-radius: 25px; }
}

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