:root {
  /* Dynamic Palette (Strictly No Blue - Industrial Spec Sheet) */
  --bg-canvas: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --accent-primary: #dc2626;
  --accent-secondary: #991b1b;
  --border-subtle: #cbd5e1;
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.15);
  --glow-accent: 0 0 24px -4px var(--accent-primary);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", sans-serif;
  line-height: 1.6;
  padding: 24px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  min-height: calc(100vh - 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
}

/* Typography - Industrial Spec Sheet */
h1, h2, h3, h4, h5, h6 {
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.5rem; margin-top: 24px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px;}
h3 { font-size: 1.25rem; }
p { margin-bottom: 16px; max-width: 72ch; }

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

/* Header & Navigation */
header {
  margin: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.brand {
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.btn-cta {
  background: var(--accent-primary);
  color: var(--bg-surface) !important;
  padding: 8px 24px;
  border-radius: 9999px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Nav Overlay */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-elevation);
  z-index: 99;
}
.mobile-menu.active {
  display: flex;
}

/* Main Layout Architecture */
main {
  flex: 1;
  padding: 0 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-band {
  padding: 24px 0;
  border-bottom: 2px solid var(--text-primary);
}
.hero-band h1 {
  margin: 0;
}

.lead-block {
  max-width: 900px;
  font-size: 1.1rem;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}

/* List Rows & Components (No Cards) */
.list-row {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s var(--ease-kinetic);
}
.list-row:hover {
  background: var(--bg-surface-hover);
}

.list-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  color: var(--accent-primary);
}
.list-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.list-content h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.list-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Images */
.img-container {
  width: 100%;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}
.img-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  filter: contrast(1.2) brightness(0.9);
}

/* Tables for Spec Data */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  background: var(--bg-canvas);
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Accordions */
.accordion {
  border-bottom: 1px solid var(--border-subtle);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-kinetic);
}
.accordion-content.expanded {
  max-height: 1000px;
}
.accordion-inner {
  padding-bottom: 16px;
}

/* Tool Forms */
.spec-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}
.spec-form label {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.85rem;
}
.spec-form input, .spec-form select, .spec-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
}
.spec-form input:focus, .spec-form select:focus, .spec-form textarea:focus {
  outline: 1px solid var(--accent-primary);
}
.tool-output {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-family: monospace;
  white-space: pre-wrap;
  min-height: 150px;
}
.tool-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg-canvas);
}
.footer-brand {
  flex: 1 1 300px;
}
.footer-brand h4 { margin-bottom: 8px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-meta {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal a {
  margin-left: 16px;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  body { padding: 12px; }
  main { padding: 0 24px 24px; }
  .grid-2-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  header { padding: 12px 24px; margin: 12px; }
  footer { padding: 24px; }
}

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