:root {
  --bg-canvas: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --accent-primary: #7c3aed;
  --accent-secondary: #9333ea;
  --accent-dark: #5b21b6;
  --border-subtle: #cbd5e1;
  --border-strong: #94a3b8;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(124, 58, 237, 0.08);
  --shadow-button: 4px 4px 0px #1e293b;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Header & Navigation */
.site-header {
  position: static;
  background-color: var(--bg-canvas);
  border-bottom: 2px solid var(--text-primary);
  padding: 1.25rem 2rem;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  background: var(--text-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 800;
}

.nav-desktop {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.nav-desktop a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-primary);
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1rem;
  margin-top: 0.5rem;
  gap: 0.75rem;
}

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

.mobile-nav-panel a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Layout Wrappers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

.hero-showcase {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(124, 58, 237, 0.85)), url('images/hero-commercial-signage-display.jpg') center/cover;
  color: #ffffff;
  padding: 4rem 2.5rem;
  border-radius: 4px;
  margin-bottom: 3rem;
  border: 2px solid var(--text-primary);
  box-shadow: 6px 6px 0px var(--accent-primary);
}

.hero-showcase h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-showcase p {
  font-size: 1.125rem;
  max-width: 72ch;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 2px solid var(--text-primary);
  box-shadow: var(--shadow-button);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--text-primary);
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--text-primary);
}

.btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 2px solid var(--text-primary);
  box-shadow: var(--shadow-button);
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Grid & Content Modules */
.content-section {
  margin-bottom: 4rem;
}

.section-head {
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-meta {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
}

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

.card-analytical {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-analytical h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-analytical p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-analytical img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
}

.read-link {
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.read-link:hover {
  text-decoration: underline;
}

/* Longform Reading Styles */
.prose-block {
  max-width: 72ch;
  margin: 0 auto;
}

.prose-block h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  letter-spacing: -0.02em;
}

.prose-block h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem 0;
}

.prose-block p {
  margin-bottom: 1.25rem;
  color: #334155;
  font-size: 1.05rem;
}

.prose-block ul, .prose-block ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
}

.prose-block li {
  margin-bottom: 0.5rem;
}

.prose-image-frame {
  margin: 2.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background-color: var(--bg-surface);
  padding: 0.5rem;
}

.prose-image-frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem 0 0.25rem;
  text-align: center;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.spec-table th, .spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  background-color: var(--bg-surface);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background-color: rgba(124, 58, 237, 0.03);
}

/* Tool Widget */
.calc-widget {
  background-color: var(--bg-surface);
  border: 2px solid var(--text-primary);
  border-radius: 4px;
  padding: 2rem;
  margin: 3rem 0;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.calc-output {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.output-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

/* FAQ Accordion */
.faq-group {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.faq-group details {
  background-color: #ffffff;
  padding: 1rem 1.25rem;
}

.faq-group details[open] {
  background-color: var(--bg-surface);
}

.faq-group summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-group summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.faq-group details[open] summary::after {
  content: "−";
}

.faq-content {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  color: #334155;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 2rem 2rem 2rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent-primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-showcase {
    padding: 2.5rem 1.5rem;
  }
  .hero-showcase h1 {
    font-size: 1.85rem;
  }
}

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