:root {
  --bg-canvas: #160f2e;
  --bg-surface: #221745;
  --bg-surface-alt: #2a1c56;
  --bg-surface-hover: #35226c;
  --text-primary: #ffffff;
  --text-muted: #d4c8eb;
  --accent-primary: #e0409b;
  --accent-secondary: #f472b6;
  --accent-glow: rgba(224, 64, 155, 0.4);
  --border-subtle: #3c2a75;
  --border-strong: #e0409b;
  --shadow-block: 4px 4px 0px #090514;
  --shadow-elevation: 0 14px 34px -4px rgba(10, 5, 24, 0.65);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name, .btn, .nav-link, .stat-value {
  font-family: "Arial Narrow", "Franklin Gothic Medium", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; color: #fff; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1rem; color: #fff; border-left: 5px solid var(--accent-primary); padding-left: 0.75rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; color: #fff; }
p { margin-bottom: 1.25rem; color: var(--text-muted); }
p strong { color: #fff; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-secondary); text-decoration: underline; }

/* Structural Bands & Layout */
.site-header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  display: inline-block;
  box-shadow: 2px 2px 0 #000;
}
.brand-name {
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent-primary);
  text-decoration: none;
}
.mobile-menu-trigger {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface-alt);
  border-bottom: 3px solid var(--accent-primary);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-overlay.open {
  display: flex;
}

/* Sections & Editorial Container */
.band-canvas { background-color: var(--bg-canvas); }
.band-surface { background-color: var(--bg-surface); }
.band-alt { background-color: var(--bg-surface-alt); }
.band-stripe {
  border-top: 3px solid var(--accent-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.content-band {
  padding: 4.5rem 1.5rem;
  position: relative;
}
.editorial-column {
  max-width: 1100px;
  margin: 0 auto;
}
.text-body-narrow {
  max-width: 72ch;
  margin-left: 0;
  margin-right: auto;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}
.hero-media img, .editorial-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border: 2px solid #000;
  box-shadow: var(--shadow-block);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  background-color: var(--accent-secondary);
  color: #000;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
  text-decoration: none;
}
.btn-alt {
  background-color: transparent;
  color: #fff;
  border: 2px solid var(--accent-primary);
}
.btn-alt:hover {
  background-color: var(--accent-primary);
  color: #fff;
}
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Cards & Bento Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.purple-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.25s var(--ease-kinetic), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.purple-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 18px 40px -4px rgba(224, 64, 155, 0.25);
}
.purple-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

/* Fiber Specs Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
table.fiber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
table.fiber-table th, table.fiber-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
table.fiber-table th {
  background-color: var(--bg-surface-alt);
  color: var(--accent-primary);
  font-family: "Arial Narrow", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
table.fiber-table tr:hover td {
  background-color: var(--bg-surface-hover);
}

/* Tool: Fabric Blend Analyzer */
.tool-box {
  background: var(--bg-surface-alt);
  border: 2px solid var(--accent-primary);
  padding: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-block);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fff;
}
input, select, textarea {
  background: var(--bg-canvas);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem;
  font-size: 1rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.tool-result {
  background: var(--bg-canvas);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}
.score-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.score-high { background: #059669; color: #fff; }
.score-mid { background: #d97706; color: #fff; }
.score-low { background: #dc2626; color: #fff; }

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-bottom: 1rem;
}
.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: "Arial Narrow", system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.faq-trigger:hover {
  background: var(--bg-surface-hover);
}
.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}
.faq-content {
  padding: 0 1.5rem 1.25rem;
  display: none;
}
.faq-item.active .faq-content {
  display: block;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.site-footer {
  background-color: #0d081c;
  border-top: 3px solid var(--accent-primary);
  padding: 4rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-trigger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { height: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}

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