/* ============================================
   COUNTERBENCH ADVISORY — DESIGN SYSTEM
   Version 1.0 | February 2026
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  /* Aurora-style gradient backdrop (inspired by incident.m vibe) */
  background-image:
    radial-gradient(1200px 700px at 50% 18%, rgba(45, 140, 140, 0.22), transparent 65%),
    radial-gradient(900px 600px at 72% 58%, rgba(83, 105, 255, 0.14), transparent 62%),
    radial-gradient(800px 520px at 18% 72%, rgba(45, 140, 140, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Star/noise layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 40px 60px;
}

/* Keep all content above the backdrop layers */
body > * { position: relative; z-index: 1; }
::selection { background: var(--teal); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-light); }
ul, ol { list-style: none; }

/* --- CSS VARIABLES --- */
:root {
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #1A1A1A;
  --teal: #2D8C8C;
  --teal-light: #3AADAD;
  --teal-dark: #1F6B6B;
  --white: #F5F5F0;
  --cream: #E8E4DF;
  --muted: #6B6B6B;
  --border: #222222;
  --red: #C0392B;
  --amber: #D4790E;
  --green: #27AE60;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1280px;
  --pad: 48px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--white); font-weight: 500; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 1.08; letter-spacing: -1.5px; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.15; letter-spacing: -1px; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.25rem; line-height: 1.3; }
p { font-size: 1.0625rem; line-height: 1.85; color: #999999; margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
.text-white { color: var(--white); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--muted); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.serif { font-family: var(--serif); }

/* --- HERO ROTATOR --- */
#enemy-rotator {
  display: inline-block;
  transition: opacity 0.22s ease-in-out;
  will-change: opacity;
}

/* Hero rotating word */
#enemy-rotator {
  display: inline-block;
  transition: opacity 0.22s ease-in-out;
}

/* --- LABELS --- */
.label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.label--dark { color: var(--muted); }
.label--pill {
  padding: 6px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

/* --- LAYOUT --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.section { padding: 7.5rem 0; }
.section--alt { background-color: var(--bg2); }
.section--border-t { border-top: 1px solid var(--border); }
.section--border-b { border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 5rem; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--gap-1 { gap: 1px; }
.grid--gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex--between { justify-content: space-between; }
.flex--center { align-items: center; }
.flex--col { flex-direction: column; }
.flex--gap-1 { gap: 0.5rem; }
.flex--gap-2 { gap: 1rem; }
.flex--gap-3 { gap: 1.5rem; }
.flex--gap-4 { gap: 2.5rem; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4.5rem; }
.pt-1 { padding-top: 1rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--bg); }
.btn--primary:hover { background: var(--teal-light); color: var(--bg); }
.btn--secondary { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--muted); color: var(--white); }
.btn--ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--bg); }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 24px; font-size: 0.75rem; }
.btn--arrow::after { content: '\2192'; font-size: 1.1em; }

/* --- CARDS --- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.card:hover { border-color: var(--teal); }
.card--featured { background: var(--bg3); border-color: var(--teal); position: relative; }
.card--featured::before { content: ''; position: absolute; top: 0; left: 2rem; right: 2rem; height: 2px; background: var(--teal); }
.card--dark { background: var(--bg); }
.card--teal-border { border-color: var(--teal); }
.card--amber { border-left: 3px solid var(--amber); }
.card--no-hover:hover { border-color: var(--border); }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--pad);
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav__logo span {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 3px;
  color: var(--muted);
  margin-left: 12px;
  text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 2.25rem; }
.nav__link {
  font-size: 0.8125rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__cta { margin-left: 0.75rem; }

/* Mobile menu toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

/* --- STAT BAR --- */
.stat-bar { border-top: 1px solid var(--border); }
.stat-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-bar__item { padding: 1.75rem 0; padding-right: 1.75rem; border-right: 1px solid var(--border); }
.stat-bar__item:last-child { border-right: none; }
.stat-bar__item:not(:first-child) { padding-left: 1.75rem; }
.stat-bar__label { font-size: 0.6875rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.stat-bar__value { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--white); letter-spacing: -1px; }
.stat-bar__sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* --- FORMS --- */
.input {
  padding: 14px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.9375rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.input:focus { border-color: var(--teal); }
.input::placeholder { color: var(--muted); }
.input-group { display: flex; }
.input-group .input { border-right: none; }
.input-group .btn { flex-shrink: 0; }

.form-field { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.375rem; font-family: var(--sans); }

select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* --- PRICING --- */
.pricing-badge {
  display: inline-block;
  padding: 2px 12px;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pricing-amount { font-family: var(--serif); font-size: 2.625rem; font-weight: 600; color: var(--white); }
.pricing-unit { font-size: 0.875rem; color: var(--muted); }
.pricing-feature { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: #AAA; line-height: 1.5; }
.pricing-feature:first-child { border-top: 1px solid var(--border); }
.pricing-feature--highlight { color: var(--teal); font-weight: 500; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { padding: 1.5rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.0625rem; font-weight: 500; color: var(--white); font-family: var(--sans); transition: color 0.2s; }
.faq-q:hover { color: var(--teal); }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--teal); transition: transform 0.3s; font-weight: 300; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 0; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 0 1.5rem 0; }
.faq-a p { font-size: 0.9375rem; color: #999; line-height: 1.8; }

/* --- SPLIT CTA --- */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

/* --- FOOTER --- */
.footer { padding: 3rem 0 2.25rem; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--white); }
.footer__sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.footer__heading { font-size: 0.625rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; font-family: var(--sans); }
.footer__link { display: block; font-size: 0.875rem; color: #888; margin-bottom: 0.5rem; transition: color 0.2s; text-decoration: none; }
.footer__link:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 0.75rem; color: var(--muted); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--white); }

/* --- ASYMMETRY DISPLAY --- */
.asym { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; }
.asym__vs { text-align: center; font-family: var(--serif); font-size: 1.75rem; color: var(--muted); font-style: italic; }
.asym__card { padding: 2.5rem; }
.asym__num { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }

/* --- DIMENSION LIST (Diagnostic preview) --- */
.dim-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1.25rem; }
.dim-num { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--teal); font-weight: 600; flex-shrink: 0; }
.dim-name { flex: 1; font-size: 0.9375rem; color: var(--white); font-weight: 500; }
.dim-bar { width: 120px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.dim-bar__fill { height: 100%; background: var(--teal); border-radius: 2px; }

/* --- PROCESS TIMELINE --- */
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.timeline-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--teal); }
.timeline-label { font-size: 0.6875rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; font-weight: 600; }

/* --- VENDOR CARDS --- */
.vendor-card { cursor: default; transition: all 0.4s ease; }
.vendor-card:hover, .vendor-card.active { background: var(--bg3); border-color: var(--teal); }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-hero { animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.anim-hero--1 { animation-delay: 0s; }
.anim-hero--2 { animation-delay: 0.15s; }
.anim-hero--3 { animation-delay: 0.3s; }
.anim-hero--4 { animation-delay: 0.45s; }
.anim-hero--5 { animation-delay: 0.6s; }
.anim-hero--6 { animation-delay: 0.7s; }
.anim-hero--7 { animation-delay: 0.8s; }
.anim-hero--8 { animation-delay: 0.9s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- SUBTLE BACKGROUND --- */
.bg-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* --- STICKY CTA BAR --- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px var(--pad);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.sticky-cta__text { font-size: 0.875rem; color: var(--cream); }
.sticky-cta__text strong { color: var(--white); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .grid--2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid--3 { grid-template-columns: 1fr; gap: 1rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .split-cta { grid-template-columns: 1fr; gap: 1px; }
  .asym { grid-template-columns: 1fr; gap: 1.5rem; }
  .asym__vs { display: none; }
  .stat-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bar__item:nth-child(2) { border-right: none; }
  .stat-bar__item:nth-child(3) { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }
  .section { padding: 4.5rem 0; }
  h1 { font-size: 2.25rem; letter-spacing: -1px; }
  h2 { font-size: 1.75rem; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 2rem var(--pad); gap: 1.5rem; z-index: 99; }
  .nav__toggle { display: block; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .stat-bar__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .input-group { flex-direction: column; }
  .input-group .input { border-right: 1px solid var(--border); }
  .btn { padding: 14px 24px; font-size: 0.75rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
  .flex--resp-col { flex-direction: column; }
}
