@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: hsl(0 0% 98%);
  --fg: hsl(0 0% 8%);
  --accent: hsl(72 100% 50%);
  --accent-dark: hsl(72 100% 35%);
  --accent-fg: hsl(0 0% 0%);
  --muted: hsl(0 0% 42%);
  --border: hsl(0 0% 88%);
  --card: hsl(0 0% 100%);
  --secondary: hsl(0 0% 93%);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  selection: background-color: var(--accent);
}

::selection { background: var(--accent); color: #000; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: hsl(0 0% 94%); }
::-webkit-scrollbar-thumb { background: hsl(0 0% 78%); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: hsl(0 0% 62%); }

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }

/* ── DARK SECTION ── */
.section-dark {
  background-color: hsl(0 0% 6%);
  color: hsl(0 0% 98%);
  --fg: hsl(0 0% 98%);
  --accent: hsl(72 100% 50%);
  --muted: hsl(0 0% 58%);
  --card: hsl(0 0% 10%);
  --border: hsl(0 0% 18%);
  --secondary: hsl(0 0% 14%);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: hsl(0 0% 98%); }

/* ── NOISE ── */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
}
.navbar.scrolled {
  background: hsl(0 0% 6% / 0.92);
  backdrop-filter: blur(12px);
  border-color: hsl(0 0% 18% / 0.6);
  padding: 1rem 0;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img { height: 2rem; width: auto; object-fit: contain; transition: filter 0.3s; }
.navbar:not(.scrolled) .navbar-logo img { filter: invert(1); }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  color: hsl(0 0% 58%);
}
.navbar-link:hover, .navbar-link.active { color: hsl(0 0% 98%); }
.navbar:not(.scrolled) .navbar-link { color: hsl(0 0% 8% / 0.55); }
.navbar:not(.scrolled) .navbar-link:hover,
.navbar:not(.scrolled) .navbar-link.active { color: hsl(0 0% 8%); }
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.navbar-link.active::after, .navbar-link:hover::after { transform: scaleX(1); }
.navbar-cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #000;
  transition: background 0.2s;
}
.navbar-cta:hover { background: hsl(72 100% 45%); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(0 0% 98%);
  padding: 0.25rem;
  z-index: 60;
}
.navbar:not(.scrolled) .mobile-toggle { color: var(--fg); }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: hsl(0 0% 6% / 0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: hsl(0 0% 98%);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); }
.mobile-menu-cta {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
}

/* ── FOOTER ── */
.footer {
  background: hsl(0 0% 6%);
  color: hsl(0 0% 98%);
  border-top: 1px solid hsl(0 0% 18%);
  margin-top: 8rem;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-brand { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: hsl(0 0% 98%); }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 0.875rem; color: hsl(0 0% 58%); margin-top: 0.25rem; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: hsl(0 0% 58%); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: hsl(72 100% 45%); transform: translateY(-2px); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: #000; transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }
.btn-sm { padding: 0.75rem 1.25rem; font-size: 0.875rem; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}
.card-hover {
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card-hover:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--secondary);
  border: 1px solid hsl(0 0% 80% / 0.5);
  font-size: 0.875rem;
  font-weight: 500;
}
.badge-accent { background: hsl(72 100% 50% / 0.1); color: var(--accent-dark); border-color: hsl(72 100% 50% / 0.2); }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.form-input, .form-textarea, .form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 1.125rem;
  color: var(--fg);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent-dark); }
.form-input::placeholder, .form-textarea::placeholder { color: hsl(0 0% 68%); }
.form-textarea { resize: none; }
.form-input-box, .form-textarea-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--fg);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input-box:focus, .form-textarea-box:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 1px var(--accent-dark);
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── ACCENT LABEL ── */
.accent-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}
.section-dark .accent-label { color: var(--accent); }

/* ── BLOCKQUOTE ── */
.pull-quote {
  border-left: 2px solid var(--accent-dark);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.pull-quote p { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 500; line-height: 1.3; }
.section-dark .pull-quote { border-color: var(--accent); }

/* ── ENTRANCE ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.is-visible { opacity: 1; }

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: hsl(0 0% 4%);
  border: 1px solid hsl(0 0% 15%);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin: 0 1rem;
}
.modal-overlay.open .modal-box { transform: none; opacity: 1; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(0 0% 58%);
  transition: color 0.2s;
  padding: 0.25rem;
  line-height: 1;
}
.modal-close:hover { color: hsl(0 0% 98%); }
.modal-progress-bar { height: 4px; background: hsl(0 0% 10%); position: relative; flex-shrink: 0; }
.modal-progress-fill { height: 100%; background: #A8FF3E; transition: width 0.3s ease; }
.modal-body { flex: 1; overflow-y: auto; padding: 2rem; }
.modal-footer { border-top: 1px solid hsl(0 0% 15%); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }

/* ── AUDIT SPECIFIC ── */
.likert-option { display: none; }
.likert-label {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(0 0% 20%);
  color: hsl(0 0% 58%);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.likert-label:hover { border-color: hsl(0 0% 30%); color: hsl(0 0% 98%); }
.likert-option:checked + .likert-label { background: #A8FF3E; color: #000; border-color: #A8FF3E; font-weight: 500; }
.likert-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.audit-textarea {
  width: 100%;
  background: hsl(0 0% 7%);
  border: 1px solid hsl(0 0% 15%);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: hsl(0 0% 98%);
  font-family: var(--font-sans);
  resize: none;
  height: 5rem;
  outline: none;
  transition: border-color 0.2s;
}
.audit-textarea:focus { border-color: hsl(72 100% 50% / 0.5); }
.audit-textarea::placeholder { color: hsl(0 0% 38%); }
.btn-audit-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #A8FF3E;
  color: #000;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-audit-next:hover:not(:disabled) { background: #9aef30; }
.btn-audit-next:disabled { background: hsl(0 0% 20%); color: hsl(0 0% 40%); cursor: not-allowed; }
.btn-audit-back {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(0 0% 58%);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-audit-back:hover { color: hsl(0 0% 98%); }

/* ── SCORE BANDS ── */
.score-num { font-family: var(--font-mono); font-size: 5rem; font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.score-bar-track { height: 0.5rem; background: hsl(0 0% 12%); border-radius: 9999px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 9999px; transition: width 0.8s ease; }

/* ── LEAD CAPTURE MODAL ── */
.lead-modal-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 448px;
  transform: translateY(10px) scale(0.95);
  opacity: 0;
  transition: all 0.25s ease;
  margin: 1rem;
}
.modal-overlay.open .lead-modal-box { transform: none; opacity: 1; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid hsl(0 0% 88% / 0.5); }
.faq-item:last-child { border-bottom: none; }
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  font-family: var(--font-sans);
}
.faq-btn:hover { color: var(--accent-dark); }
.faq-icon { transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-body {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-line;
}
.faq-item.open .faq-body { display: block; }

/* ── BLOG ── */
.blog-card { display: block; height: 100%; }
.category-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.category-pill-accent { background: hsl(72 100% 50% / 0.1); color: var(--accent-dark); border: 1px solid hsl(72 100% 50% / 0.2); }
.category-pill-muted { background: var(--secondary); color: var(--muted); border: 1px solid var(--border); }

/* ── BLOG ROW ── */
.blog-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.blog-row:hover { background: var(--secondary); margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.blog-category {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsl(72 100% 50% / 0.1);
  color: var(--accent-dark);
  border: 1px solid hsl(72 100% 50% / 0.2);
}
.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.blog-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-arrow {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.blog-row:hover .blog-arrow {
  color: var(--accent-dark);
  transform: translateX(4px);
}

/* ── PROSE (blog article content) ── */
.prose { font-size: 1.125rem; line-height: 1.8; color: var(--muted); }
.prose p { margin-bottom: 1.25rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 3rem; margin-bottom: 1rem; color: var(--fg); }
.prose h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose ul li { padding-left: 0.25rem; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--fg); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ── ARTICLE CONTENT ── */
.article-body { font-size: 1.125rem; line-height: 1.8; color: var(--muted); }
.article-body p { margin-bottom: 1rem; }
.article-body h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--fg); }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body em { color: hsl(0 0% 90%); font-style: italic; }

/* ── FORM SELECT ── */
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; }
.btn-outline { background: transparent; border: 1.5px solid var(--fg); color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }

/* ── UTILITIES ── */
.text-accent { color: var(--accent-dark); }
.section-dark .text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-balance { text-wrap: balance; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── SPACING ── */
.pt-nav { padding-top: 8rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.mb-section { margin-bottom: 8rem; }
.mb-lg { margin-bottom: 4rem; }
.mb-md { margin-bottom: 2rem; }

/* ── REPORT PAGE ── */
.report-section-card {
  background: hsl(0 0% 7%);
  border: 1px solid hsl(0 0% 15%);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* ── ARROW LINK ── */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-dark);
  transition: text-decoration 0.1s;
}
.section-dark .arrow-link { color: var(--accent); }
.arrow-link:hover { text-decoration: underline; }

/* ── SUCCESS STATE ── */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  text-align: center;
  gap: 1rem;
}
.success-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent-dark);
}
.section-dark .success-icon { color: var(--accent); }

/* ── ERROR TEXT ── */
.error-text { color: hsl(0 86% 65%); font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }

/* ── PROGRESS STEPS ── */
.step-label { font-size: 0.875rem; font-weight: 500; color: var(--accent-dark); margin-bottom: 0.75rem; }
.section-dark .step-label { color: var(--accent); }

/* ── AUDIT SCREEN TRANSITIONS ── */
.audit-screen { display: none; animation: slideIn 0.25s ease; }
.audit-screen.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ── RESPONSIVE TYPE SCALE ── */
.display-xl { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.display-lg { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.display-md { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; }
.display-sm { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 500; }
.body-lg { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; }
