:root {
  /* Dynamic Palette: Crimson Recycle (No Blue) */
  --bg-base: #0b0b0d; /* Near-black base */
  --bg-alt: #16161a; /* Alternating tone */
  --bg-accent: #dc2626; /* Crimson background block */
  --text-main: #c0c4cc; /* Silver details/body text */
  --text-heading: #ffffff; /* High contrast headings */
  --accent-primary: #dc2626; /* Crimson accents */
  --accent-hover: #b91c1c; /* Darker crimson for hover */
  --border-subtle: #27272a; /* Thin dividers */
  
  /* Typography */
  --font-base: "Trebuchet MS", "Segoe UI", sans-serif;
  
  /* Advanced UI Settings */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

a:hover {
  color: var(--text-heading);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Architecture */
.section-band {
  width: 100%;
  padding: 5rem 0;
}

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

.section-band.accent-block {
  background-color: var(--bg-accent);
  color: #ffffff;
}

.section-band.accent-block h2,
.section-band.accent-block p {
  color: #ffffff;
}

.container-1100 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  background-color: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  position: static;
  width: 100%;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand span {
  color: var(--accent-primary);
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

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

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

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-images {
  position: relative;
  height: 450px;
  width: 100%;
}

.hero-img {
  position: absolute;
  border: 4px solid var(--bg-base);
  object-fit: cover;
  background-color: var(--bg-alt);
}

.hero-img-1 {
  width: 60%;
  height: 300px;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-img-2 {
  width: 55%;
  height: 280px;
  top: 80px;
  right: 0;
  z-index: 2;
}

.hero-img-3 {
  width: 50%;
  height: 250px;
  bottom: 0;
  left: 20%;
  z-index: 3;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  text-align: center;
}

.btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn.solid {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn.solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* List Rows (Replacing Cards) */
.list-row-container {
  margin-top: 3rem;
}

.list-row {
  display: flex;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 2rem;
}

.list-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

.list-row-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.5rem;
}

.list-row-content {
  flex-grow: 1;
}

.list-row-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.list-row-content p {
  margin-bottom: 1rem;
}

/* Forms & Tools */
.tech-form {
  background-color: var(--bg-alt);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

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

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

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

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c0c4cc' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

#tool-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  display: none;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: #050506;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

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

.footer-col h4 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

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

.disclaimer {
  font-size: 0.8rem;
  margin-top: 1rem;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

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

th {
  background-color: var(--bg-alt);
  color: var(--text-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-alt);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-images {
    height: 350px;
    order: -1;
    margin-bottom: 2rem;
  }
  
  .tool-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .list-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-content 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}}
