:root {
  --bg-base: #0b0b0d;
  --bg-surface: #1a1a1f;
  --text-main: #c0c4cc;
  --text-light: #ffffff;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --border-color: #33333d;
  
  --font-stack: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Square edges */
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Layout Wrappers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Header */
.header-wrapper {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem 0;
  z-index: 100;
}

.site-header {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  flex-shrink: 0;
}

.brand a {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 2rem;
  right: 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: none;
  flex-direction: column;
  padding: 1rem 0;
  z-index: 99;
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-nav-overlay a {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
}

.mobile-nav-overlay a:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-light);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 4px 4px 0 0 var(--text-main);
  transition: all 0.2s var(--ease-kinetic);
}

.btn:hover, .btn:focus {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 0 var(--text-main);
  color: var(--text-light);
  outline: none;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-images {
  position: relative;
  height: 500px;
}

.hero-images img {
  position: absolute;
  width: 60%;
  aspect-ratio: 1/1;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.img-1 { top: 0; left: 0; z-index: 1; }
.img-2 { top: 20%; left: 20%; z-index: 2; }
.img-3 { top: 40%; left: 40%; z-index: 3; }

/* Sections & Clip Paths */
.section-diagonal {
  background-color: var(--bg-surface);
  padding: 8rem 0;
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin: 4rem 0;
}

.section-standard {
  padding: 6rem 0;
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

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

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 0; /* Square strictly */
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

/* Stat Strips */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin: 2rem 0;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

/* Accordions / Tabs */
.accordion {
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  background: var(--bg-surface);
}

.accordion summary {
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.accordion summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
}

.accordion[open] summary::after {
  content: '−';
}

.accordion .accordion-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Forms & Builder */
.builder-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-family: var(--font-stack);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Round Badges/Avatars */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Only round elements allowed */
  border: 2px solid var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  background-color: var(--accent);
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

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

.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

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

.footer-col ul li a {
  color: var(--text-main);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-main);
}

.social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: #888;
}

.footer-bottom a {
  color: #888;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-surface);
  color: var(--text-light);
  font-weight: bold;
}

/* Animations & Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-kinetic);
}

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

/* Breakpoints */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 0;
  }
  
  .hero-images {
    height: 350px;
    margin-top: 2rem;
  }
  
  .section-diagonal {
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    padding: 6rem 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}}
