:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #18181b;
  --bg-surface-hover: #27272a;
  --text-primary: #f4f4f5;
  --text-muted: #c0c4cc;
  --accent-primary: #dc2626;
  --accent-secondary: #f87171;
  --border-subtle: transparent;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.4);
  --glow-accent: 0 0 24px -4px rgba(220, 38, 38, 0.4);
  
  --radius-card: 20px;
  --radius-pill: 9999px;
  
  --font-heading: system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, "Segoe UI", Roboto, sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.125rem; }

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

/* Layout Architecture */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.copy-container {
  max-width: 72ch;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: relative; /* Scrolls out of view */
  background: var(--bg-canvas);
  padding: 1.5rem 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span {
  color: var(--accent-primary);
}
.tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 1rem;
  display: none;
}
@media (min-width: 1025px) {
  .tagline { display: inline-block; }
}

.desktop-nav {
  display: none;
}
.desktop-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}
.desktop-nav a:hover {
  color: var(--accent-primary);
}

.mobile-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media (min-width: 769px) {
  .desktop-nav { display: block; }
  .mobile-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-elevation);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background 0.3s;
}
.btn:hover {
  background: var(--accent-secondary);
  color: var(--bg-canvas);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

/* Radial Glow Backgrounds */
.section-glow {
  position: relative;
  overflow: hidden;
}
.section-glow::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(220,38,38,0.15) 0%, rgba(11,11,13,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Kinetic Timeline Journey */
.timeline {
  position: relative;
  padding: 4rem 0;
  counter-reset: timeline-counter;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--bg-surface-hover);
}
@media (min-width: 769px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-node {
  position: relative;
  margin-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 769px) {
  .timeline-node {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .timeline-node:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-marker {
  position: absolute;
  left: 24px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border: 4px solid var(--bg-canvas);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-primary);
  z-index: 2;
  box-shadow: var(--shadow-elevation);
}
.timeline-node::before {
  counter-increment: timeline-counter;
  content: counter(timeline-counter);
  position: absolute;
  left: 24px;
  top: 0;
  transform: translate(-50%, 12px);
  font-weight: 800;
  color: var(--accent-primary);
  z-index: 3;
}
@media (min-width: 769px) {
  .timeline-marker, .timeline-node::before {
    left: 50%;
  }
}

.timeline-content {
  width: 100%;
  padding-left: 80px;
}
@media (min-width: 769px) {
  .timeline-content {
    width: 45%;
    padding-left: 0;
  }
}

/* Cards */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevation), 0 20px 40px rgba(0,0,0,0.3);
  background: var(--bg-surface-hover);
}
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 0.5rem);
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 769px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevation);
  object-fit: cover;
  aspect-ratio: 4/3;
}

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

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--bg-surface-hover);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.75rem;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-surface-hover);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-surface-hover);
}
th {
  font-weight: 800;
  color: var(--text-primary);
}

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