/* =========================================================
   Compliance Fabric — Main Stylesheet
   ========================================================= */

:root {
  --bg:         #080e1a;
  --bg-raised:  #0e1828;
  --bg-card:    #111e2e;
  --border:     rgba(255,255,255,0.08);
  --border-lt:  rgba(255,255,255,0.14);
  --text:       #f0f4ff;
  --text-muted: #8099be;
  --text-dim:   #4d6380;

  --blue:       #2563eb;
  --blue-lt:    #60a5fa;
  --blue-glow:  rgba(37,99,235,0.35);

  --emerald:    #059669;
  --emerald-lt: #34d399;
  --emerald-glow: rgba(5,150,105,0.3);

  --red:        #ef4444;
  --red-lt:     #fca5a5;

  --amber:      #f59e0b;
  --amber-lt:   #fcd34d;

  --nav-h:      68px;
  --radius:     12px;
  --radius-lg:  18px;
  --max-w:      1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-lt); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: 0.8; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: transparent;
  transition: background .3s, backdrop-filter .3s, border-bottom .3s;
}
.nav-scrolled {
  background: rgba(8,14,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: var(--text) !important; opacity: 1 !important;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  font-size: 0.75rem; font-weight: 900; color: #fff; letter-spacing: 0.02em;
}
.logo-text { color: var(--text); }
.logo-accent { color: var(--emerald-lt); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.85rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 8px !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { opacity: 0.9 !important; background: var(--blue) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(37,99,235,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(5,150,105,0.12) 0%, transparent 60%),
              var(--bg);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 800px; text-align: center; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.35);
  color: var(--blue-lt); font-size: 0.82rem; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 2rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald-lt);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(52,211,153,0.25)} 50%{box-shadow:0 0 0 6px rgba(52,211,153,0.1)} }

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.18;
  color: var(--text); margin-bottom: 1.5rem;
}
.hero-headline em { color: var(--blue-lt); font-style: normal; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted); line-height: 1.75;
  max-width: 640px; margin: 0 auto 2.5rem;
}
.hero-sub strong { color: var(--text); }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-social-proof {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.sp-item { text-align: center; }
.sp-num { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.sp-label { font-size: 0.75rem; color: var(--text-muted); max-width: 120px; line-height: 1.4; display: block; margin: 0 auto; }
.sp-divider { width: 1px; height: 40px; background: var(--border); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center;
  padding: 0.7rem 1.5rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  transition: all .2s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; opacity: 1; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border-lt); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-lt); }
.btn-outline:hover { border-color: var(--blue-lt); color: var(--blue-lt); opacity: 1; }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #047857; opacity: 1; }
.btn-full { width: 100%; justify-content: center; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section.bg-raised { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 0.75rem; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; line-height: 1.75; margin-bottom: 3rem; }

/* ── PROBLEM SECTION ── */
.path-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.path-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.path-bad { border-color: rgba(239,68,68,0.2); }
.path-good { border-color: rgba(5,150,105,0.4); background: rgba(5,150,105,0.05); }
.path-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.path-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.path-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.2rem; }
.path-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.path-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.path-list li { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.x { color: var(--red); flex-shrink: 0; font-weight: 700; }
.ck { color: var(--emerald-lt); flex-shrink: 0; font-weight: 700; }
.path-total { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.path-total-label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.path-total-bad { font-size: 1.3rem; font-weight: 800; color: var(--red-lt); font-family: 'Space Grotesk', sans-serif; }
.path-total-good { font-size: 1.3rem; font-weight: 800; color: var(--emerald-lt); font-family: 'Space Grotesk', sans-serif; }

.competitor-mini-list { display: flex; flex-direction: column; gap: 0.4rem; }
.cml-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.cml-row:last-child { border-bottom: none; }
.cml-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cml-price { font-size: 0.82rem; color: var(--red-lt); font-weight: 600; }

/* ── HOW IT WORKS ── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex; gap: 1.25rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: var(--blue-lt); min-width: 28px; padding-top: 0.15rem;
}
.step-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.step-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ── PROMPT MOCKUP ── */
.prompt-mockup {
  background: var(--bg-card); border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.pm-header {
  background: rgba(37,99,235,0.12); border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
}
.pm-week { font-size: 0.78rem; font-weight: 700; color: var(--blue-lt); }
.pm-badge { background: rgba(37,99,235,0.2); color: var(--blue-lt); font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; }
.pm-question { padding: 1.5rem 1.25rem; display: flex; gap: 0.85rem; }
.pm-icon { font-size: 1.4rem; flex-shrink: 0; }
.pm-question p { font-size: 0.92rem; color: var(--text); line-height: 1.6; }
.pm-answers { padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pm-ans {
  padding: 0.65rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent; cursor: default;
  text-align: left;
}
.pm-ans-yes { border-color: rgba(52,211,153,0.4); color: var(--emerald-lt); }
.pm-ans-warn { border-color: rgba(251,191,36,0.3); color: var(--amber-lt); }
.pm-ans-no { border-color: var(--border); color: var(--text-muted); }
.pm-footer { padding: 0.75rem 1.25rem; background: rgba(0,0,0,0.2); font-size: 0.72rem; color: var(--text-dim); border-top: 1px solid var(--border); }
.demo-caption { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 1rem; line-height: 1.5; }

/* ── COMPARISON TABLE ── */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.compare-table thead th { background: var(--bg-card); font-weight: 700; font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.row-label { font-weight: 600; color: var(--text); }
.col-diy { color: var(--text-muted); }
.col-ent { color: var(--text-muted); }
.col-cf { background: rgba(5,150,105,0.05); }
.cf-highlight { color: var(--emerald-lt); font-weight: 600; }
.th-sub { font-size: 0.72rem; font-weight: 400; color: var(--text-dim); text-transform: none; letter-spacing: 0; }
.cost-note { font-size: 0.75rem; color: var(--text-dim); display: block; }
.total-row td { background: var(--bg-card); border-top: 2px solid var(--border-lt) !important; }
.total-bad { color: var(--red-lt) !important; font-size: 1rem !important; font-weight: 800 !important; }
.total-good { color: var(--emerald-lt) !important; font-size: 1rem !important; font-weight: 800 !important; }
.compare-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 1rem; }

/* ── AUDIENCE CARDS ── */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.audience-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color .2s;
}
.audience-card:hover { border-color: var(--blue-lt); }
.aud-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.audience-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.aud-tag { display: inline-block; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.25); color: var(--blue-lt); font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 4px; }

/* ── AUDITORS SECTION ── */
.auditor-section { background: var(--bg); border-top: 1px solid var(--border); }
.auditor-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.auditor-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0 1.75rem; }
.auditor-list li { display: flex; gap: 0.65rem; font-size: 0.92rem; color: var(--text-muted); }
.auditor-stat-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.auditor-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--emerald); border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.as-val { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--emerald-lt); }
.as-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  position: relative; display: flex; flex-direction: column;
}
.price-card-featured { border-color: var(--blue); background: rgba(37,99,235,0.06); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.75rem;
  border-radius: 4px; white-space: nowrap;
}
.price-tier { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; }
.price-val { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--text); line-height: 1; }
.price-per { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-model { font-size: 0.78rem; color: var(--text-dim); margin: 0.35rem 0 1.25rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; margin-bottom: 1.5rem; }
.price-features li { font-size: 0.85rem; color: var(--text-muted); }
.pricing-note { margin-top: 1.75rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.2); border-radius: var(--radius); padding: 1rem 1.5rem; }

/* ── MARKET ── */
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.market-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }
.market-text strong { color: var(--text); }
.market-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.mpill { background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.25); color: var(--blue-lt); font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 6px; }
.mpill-green { background: rgba(5,150,105,0.1); border-color: rgba(5,150,105,0.3); color: var(--emerald-lt); }
.market-stats-col { display: flex; flex-direction: column; gap: 1rem; }
.mstat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.mstat-val { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--blue-lt); }
.mstat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── CONTACT ── */
.contact-section { background: var(--bg-raised); border-top: 1px solid var(--border); }
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-card); border: 1px solid var(--border-lt);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  transition: border-color .15s;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue);
}
.contact-form select option { background: var(--bg-card); }
.contact-form textarea { resize: vertical; }
.contact-alt { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-name { font-size: 1rem; color: var(--text); }
.footer-name strong { color: var(--emerald-lt); }
.footer-tagline { font-size: 0.82rem; color: var(--text-dim); }
.footer-links-col { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links-col a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links-col a:hover { color: var(--text); opacity: 1; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-dim); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .path-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .auditor-inner { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-raised); padding: 1rem; border-bottom: 1px solid var(--border); gap: 0.25rem; }
  .nav-links.nav-open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-social-proof { gap: 1rem; }
  .sp-divider { display: none; }
  .section { padding: 4rem 0; }
}
