:root {
  --wq-blue: #377ac9;
  --wq-accent: #ff9a1a;
  --wq-bg: #0d1117;
  --wq-panel: #121822;
  --wq-panel-2: #0f141b;
  --wq-text: #e6eef9;
  --wq-muted: #9fb0c6;
  --wq-border: rgba(255, 255, 255, 0.08);
  --wq-font-main: 'Open Sans', 'Poppins', system-ui, sans-serif;
}


body {
  margin: 0;
  padding: 0;
  background-color: var(--wq-bg);
  /* Subtler Radial Gradient - Diagnostic Feel */
  background: radial-gradient(circle at top center, #161b24 0%, var(--wq-bg) 60%);
  color: var(--wq-text);
  font-family: var(--wq-font-main);
  line-height: 1.6;
}

a {
  color: var(--wq-blue);
  text-decoration: none;
  transition: color 0.1s;
  /* Faster, more utilitarian transition */
}

a:hover {
  text-decoration: underline;
  color: #5fa0ed;
}

/* Wrappers */
.wq-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wq-main-content {
  padding: 4rem 0;
  min-height: 80vh;
}

/* Nav */
.wq-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  background: rgba(13, 17, 23, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.wq-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.wq-nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.wq-nav-link:hover,
.wq-nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--wq-blue);
  text-decoration: none;
}

/* Typography & Components */
h1 {
  font-size: 2.75rem;
  /* Increased slightly for dominance */
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 5rem;
  /* Increased spacing for better section delineation */
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--wq-border);
  padding-bottom: 0.75rem;
  color: #fff;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
}


p {
  margin: 0 0 1em 0;
  color: var(--wq-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
  color: var(--wq-text);
}

li {
  margin-bottom: 0.5rem;
}

/* Helper Classes */
.wq-text-center {
  text-align: center;
}

.wq-subheadline {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 300;
  color: var(--wq-muted);
  max-width: 750px;
  margin: 1rem auto 2rem;
}

.wq-consequence {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--wq-text);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
}

.wq-intro-text {
  max-width: 800px;
  margin: 2rem auto 4rem;
  text-align: center;
  font-size: 1.1rem;
}

/* Panels & Cards - Increased Containment */
.wq-panel {
  background: var(--wq-panel);
  border: 1px solid var(--wq-border);
  border-radius: 8px;
  /* Reduced radius for more "document" feel */
  padding: 2rem;
  margin-bottom: 2rem;
}

.wq-card {
  background: var(--wq-panel-2);
  border: 1px solid var(--wq-border);
  border-radius: 8px;
  padding: 2rem;
}

.wq-card:hover {
  border-color: rgba(55, 122, 201, 0.5);
  /* Subtle border interaction only */
}

.wq-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .wq-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* "Is / Is Not" Section */
.wq-is-card h3 {
  color: var(--wq-accent);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Category Grid Tiles */
.wq-cat-card {
  background-color: var(--wq-panel);
  border: 1px solid var(--wq-border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
  /* Removed transform transition */
}

.wq-cat-card:hover {
  /* Removed translateY lift */
  border-color: var(--wq-blue);
  background-color: rgba(55, 122, 201, 0.03);
  /* Very subtle active state */
}

.wq-cat-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.wq-cat-card ul {
  font-size: 0.95rem;
  color: var(--wq-muted);
  flex-grow: 1;
  margin-bottom: 2rem;
}

.wq-cat-card p a {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Orientation Block */
.wq-orientation-block {
  max-width: 750px;
  margin: 0 auto 4rem;
}

.wq-orientation-header {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--wq-text);
  font-size: 1.25rem;
  font-weight: 600;
}

.wq-orientation-text {
  color: var(--wq-muted);
  margin-bottom: 2rem;
}

.wq-anchor-line {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--wq-border);
  letter-spacing: -0.01em;
}

/* Step 4: Directional / Exit */
.wq-diagnostic-framing {
  border-left: 3px solid var(--wq-blue);
  padding-left: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--wq-muted);
  font-size: 1.1rem;
}

.wq-exit-block {
  border: 1px solid var(--wq-border);
  background: linear-gradient(to bottom, var(--wq-panel), var(--wq-panel-2));
}

.wq-exit-framing {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wq-text);
  margin-bottom: 1.5rem;
}

/* Calmed Directional Cue */
.wq-directional-cue {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wq-accent);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  padding: 1rem;
  border-left: 3px solid var(--wq-accent);
  background: rgba(255, 154, 26, 0.05);
  /* Flattened background */
  text-align: left;
}

@media (min-width: 600px) {
  .wq-directional-cue {
    text-align: center;
    border-left: none;
    border-bottom: 1px solid var(--wq-accent);
    /* Thinner border */
    background: rgba(255, 154, 26, 0.03);
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem 2rem;
  }
}

.wq-hero-directional {
  color: var(--wq-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
  opacity: 0.8;
}

/* CTA Panel (Full Width Section) */
.wq-cta-section-full {
  width: 100%;
  background-color: #0b0f15;
  background-image: url('/assets/images/cta_bg_updated.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 5rem 0;
  margin-top: 5rem;
  border-top: 1px solid var(--wq-border);
  border-bottom: 1px solid var(--wq-border);
}

.wq-cta-grid-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 860px) {
  .wq-cta-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .wq-cta-action-column {
    justify-content: center;
  }
}

.wq-cta-text-column {
  text-align: left;
}

.wq-cta-action-column {
  display: flex;
  justify-content: flex-end;
}

.wq-cta-headline {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  border-bottom: none;
}

.wq-cta-intro {
  font-size: 1.1rem;
  color: var(--wq-muted);
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 600px;
}

.wq-diagnostic-list {
  display: block;
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.wq-diagnostic-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.5rem;
  color: var(--wq-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.wq-diagnostic-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23377ac9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccheck%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/check%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.wq-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0b0f15 !important;
  font-weight: 700;
  padding: 6px 6px 6px 24px;
  /* Tight right padding for circle */
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease, opacity .2s ease;
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
}

.wq-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.2s ease;
  color: var(--wq-blue);
}

.wq-btn-arrow svg {
  width: 24px;
  height: 24px;
}

.wq-cta-button:hover {
  opacity: 1;
  /* Override opacity drop, use shape change instead */
  transform: translateY(-2px);
}

.wq-cta-button:hover .wq-btn-arrow {
  background-color: var(--wq-blue);
  color: #fff;
}

.wq-trust-line {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--wq-muted);
  opacity: 0.6;
  font-style: italic;
}

/* Footer */
.wq-footer {
  background-color: #05070a;
  /* Darker than body bg */
  border-top: 1px solid var(--wq-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* Header Inner Layout */
.wq-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wq-logo-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.wq-logo-link:hover {
  opacity: 0.8;
}

.wq-logo {
  display: block;
  height: 48px;
  /* Increased slightly for better visibility */
  width: auto;
  object-fit: contain;
}

/* New Footer Structure */
.wq-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wq-footer-branding img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.wq-footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.wq-footer-link {
  color: #fff;
  opacity: 0.7;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, color 0.2s;
}

.wq-footer-link:hover {
  opacity: 1;
  color: var(--wq-blue);
  text-decoration: none;
}

.wq-footer-bottom {
  text-align: center;
  color: var(--wq-muted);
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .wq-footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .wq-footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Library Navigation Partial */
.wq-footer-transition {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wq-border);
}

.wq-nav-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wq-nav-pointer {
  display: inline-block;
  color: var(--wq-blue);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

.wq-nav-pointer:hover {
  color: var(--wq-accent);
  opacity: 0.9;
  text-decoration: none;
}

.wq-final-line {
  margin-top: 2rem;
  font-style: italic;
  color: var(--wq-muted);
  font-size: 0.9rem;
  opacity: 0.8;
}
/* Visual Intelligence Layer */
.wq-visual-anchor {
  margin: 3rem auto;
  text-align: center;
  background: rgba(18, 24, 34, 0.4);
  border: 1px solid var(--wq-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 900px;
}

.wq-visual-anchor:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(55, 122, 201, 0.1);
  border-color: rgba(55, 122, 201, 0.3);
}

.wq-img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

figcaption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--wq-muted);
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Micro-Visuals */
.wq-visual-anchor.wq-micro {
  max-width: 600px;
  padding: 1.5rem;
  margin: 2rem auto;
  background: rgba(18, 24, 34, 0.2);
}
