:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #4f1223;
  --bg-surface-hover: #5d162a;
  --text-primary: #fdfbf7;
  --text-muted: #d6c5c9;
  --accent-primary: #e8d5a8;
  --accent-secondary: #c9b17c;
  --border-subtle: 1px solid #e8d5a8;
  --border-dark: 1px solid rgba(232, 213, 168, 0.25);
  --font-heading: "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --content-width: 72ch;
  --site-max: 1200px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .tracked-head {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; color: var(--accent-primary); }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1.4rem; color: var(--text-primary); }
p.lead { font-size: 1.2rem; color: var(--accent-primary); line-height: 1.5; }
a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #ffffff; }

/* Slender Top Bar */
.top-bar {
  background: #280710;
  border-bottom: 1px solid rgba(232, 213, 168, 0.2);
  padding: 0.45rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header & Nav */
header.site-header {
  position: static;
  background: var(--bg-canvas);
  border-bottom: var(--border-subtle);
}

.header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-primary);
  display: inline-block;
}

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

.desktop-nav a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s var(--ease-kinetic);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-dropdown {
  display: none;
  background: var(--bg-surface);
  border-bottom: var(--border-subtle);
  padding: 1rem 1.5rem;
}

.mobile-dropdown.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-dropdown a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(232, 213, 168, 0.15);
}

/* Layout Utilities */
.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.narrow-col {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* Button */
.btn-vault {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn-vault:hover {
  background: var(--accent-primary);
  color: #3b0d1a;
  text-decoration: none;
}

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

/* Hero Section */
.hero {
  border-bottom: var(--border-subtle);
  padding: 3.5rem 1.5rem;
}
.hero-grid {
  max-width: var(--site-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-image-wrap {
  position: relative;
  border: var(--border-subtle);
}
.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Cards & Frames */
.vault-card {
  background: var(--bg-surface);
  border: var(--border-subtle);
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
}

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

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

/* Gold Feature Block */
.gold-feature-band {
  background: var(--accent-primary);
  color: #280710;
  padding: 3rem 1.5rem;
  margin: 3.5rem 0;
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}
.gold-feature-band h2, .gold-feature-band p, .gold-feature-band strong {
  color: #280710;
}

/* Circular Rating Badges */
.badge-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #280710;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Wide Breakout Images */
.breakout-media {
  margin: 3rem 0;
  border: var(--border-subtle);
}
.breakout-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.breakout-media figcaption {
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  border-top: var(--border-dark);
  text-transform: uppercase;
}

/* Technical Specification Listings */
.spec-split {
  border-top: var(--border-dark);
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(232, 213, 168, 0.12);
  font-size: 0.95rem;
}
.spec-label {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tool: Lock Vulnerability Grader */
.tool-box {
  background: #280710;
  border: var(--border-subtle);
  padding: 2rem;
  margin: 3rem 0;
}
.tool-control {
  margin-bottom: 1.25rem;
}
.tool-control label {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  color: var(--accent-primary);
  font-size: 0.9rem;
}
.tool-control select, .tool-control input, .tool-control textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}
.tool-result {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  display: none;
}

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

/* FAQ Accordion / List */
.faq-block {
  border-bottom: 1px solid rgba(232, 213, 168, 0.2);
  padding: 1.5rem 0;
}
.faq-block h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Contact form message display */
.msg-alert {
  padding: 1rem;
  margin-top: 1rem;
  background: #280710;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: none;
}

/* Footer */
footer.vault-footer {
  background: #1f050d;
  border-top: var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  max-width: var(--site-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-bottom {
  max-width: var(--site-max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 213, 168, 0.2);
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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