:root {
  --bg: #070b12;
  --surface: #0e1523;
  --surface-2: #141e30;
  --border: #1e2d45;
  --text: #e6edf7;
  --muted: #93a4bd;
  --accent: #38bdf8;
  --accent-2: #10b981;
  --warn: #f59e0b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top right, #10203a 0%, var(--bg) 48%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 18, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041019;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
  text-align: left;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-strip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.calc-title {
  margin-top: 0;
  margin-bottom: 6px;
}

.calc-desc {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0;
  margin-bottom: 16px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.calc-out {
  background: var(--surface-2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.calc-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.calc-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-2);
}

.calc-payback {
  font-size: 0.84rem;
  color: var(--text);
  margin-top: 6px;
}

section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}

/* Free Tools Banner & Live Interactive Preview */
.free-banner {
  margin: 10px 0 26px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.free-banner-copy h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.free-banner-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.free-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.preview-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.tab-btn {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: rgba(56, 189, 248, 0.16);
  color: #fff;
  border-color: var(--accent);
}

.preview-panel {
  display: none;
}

.preview-panel.is-active {
  display: block;
}

.demo-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.demo-ship-card {
  background: #0f172a;
  border: 1px solid var(--accent-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.demo-ship-msg {
  font-size: 0.94rem;
  margin-bottom: 9px;
}

.demo-track {
  width: 100%;
  height: 9px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.demo-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.demo-fill.w-0 { width: 0%; }
.demo-fill.w-33 { width: 33%; }
.demo-fill.w-67 { width: 67%; }
.demo-fill.w-100 { width: 100%; }

.demo-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.quiz-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.quiz-chip {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.quiz-chip.is-selected {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-2);
  color: #6ee7b7;
}

.quiz-result {
  background: var(--surface-2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quiz-rec-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.quiz-rec-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.code-preview {
  background: #060a11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.offer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-featured-blue {
  border-color: rgba(56, 189, 248, 0.5);
}

.offer-featured-green {
  border-color: rgba(16, 185, 129, 0.5);
}

.offer-title {
  margin: 12px 0 4px;
}

.offer-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 0;
}

.price {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-2);
}

.tag-blue {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
}

ul.clean {
  padding-left: 18px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

ul.clean li {
  margin-bottom: 7px;
}

.audits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.audit-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.audit-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.audit-item-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 10px;
}

.audit-item-link {
  font-size: 0.88rem;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-title {
  color: #fff;
}

.footer-policy {
  max-width: 460px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #6d7f99;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

/* Thank You page */
body.thank-you-page {
  background: #070b12;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.thank-you-box {
  max-width: 640px;
  width: 100%;
  background: #0e1523;
  border: 1px solid #1e2d45;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.thank-you-ok {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  margin-bottom: 14px;
}

.thank-you-box h1 {
  margin: 0 0 12px;
  font-size: 1.85rem;
}

.thank-you-box p,
.thank-you-box li {
  color: #93a4bd;
  line-height: 1.65;
}

.thank-you-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #10b981);
  color: #041019;
  font-weight: 700;
}

.thank-you-back {
  margin-top: 20px;
  font-size: 0.86rem;
}

/* Forensic Audit Teaser pages */
body.audit-page {
  background: #070b12;
}

.audit-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.audit-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #1e2d45;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.audit-brand-link {
  font-weight: 800;
  color: #fff;
}

.audit-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

.audit-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.audit-subtitle {
  color: #93a4bd;
  margin-top: 0;
}

.audit-score {
  color: #10b981;
}

.audit-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.audit-stat {
  background: #0e1523;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 14px;
}

.audit-stat-k {
  font-size: 0.78rem;
  color: #93a4bd;
}

.audit-stat-v {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.audit-card {
  background: #0e1523;
  border: 1px solid #1e2d45;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

.audit-card-title {
  margin-top: 0;
}

.audit-findings-list {
  color: #d2dceb;
  padding-left: 20px;
}

.audit-findings-list li {
  margin-bottom: 10px;
}

.audit-quickwin {
  margin-bottom: 0;
  color: #93a4bd;
}

.audit-shots {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 740px) {
  .audit-shots {
    grid-template-columns: 1fr;
  }
}

.audit-shot-label {
  font-size: 0.8rem;
  color: #93a4bd;
  margin-bottom: 6px;
}

.audit-shot-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #1e2d45;
  display: block;
}

.audit-cta-box {
  background: linear-gradient(135deg, #0f1f38, #0c2229);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  padding: 24px;
  margin-top: 26px;
}

.audit-cta-copy {
  color: #c2d4ea;
  margin-bottom: 0;
}

.audit-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.audit-btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}

.audit-btn-p {
  background: linear-gradient(135deg, #38bdf8, #10b981);
  color: #041019;
}

.audit-btn-o {
  border: 1px solid #2b4263;
  color: #e6edf7;
}

.bfcm-ribbon {
  background: linear-gradient(90deg, #0b243b, #0e382b, #0b243b);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
  color: #e6f7f1;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 16px;
  text-align: center;
}

.bfcm-ribbon a {
  color: #38bdf8;
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 700;
}

.bfcm-alert {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 10px;
}

@media (max-width: 820px) {
  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.proof-metric {
  background: #0e1523;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 14px 16px;
}

.proof-metric strong {
  display: block;
  font-size: 1.45rem;
  color: #38bdf8;
  line-height: 1.15;
}

.proof-metric span {
  font-size: 0.8rem;
  color: #93a4bd;
}

.bloat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.bloat-chip {
  background: #0b1322;
  border: 1px solid #253a57;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.bloat-chip.is-on {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #6ee7b7;
}

.audit-instant-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.audit-instant-form input {
  flex: 1 1 240px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #2b4263;
  background: #09111f;
  color: #f8fafc;
  font-size: 0.92rem;
}

.bench-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bench-table th,
.bench-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1e2d45;
  text-align: left;
  white-space: nowrap;
}

.bench-table th {
  color: #93a4bd;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bench-table a {
  color: #38bdf8;
  font-weight: 700;
}

.offer-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.84rem;
}

.audit-hero-cta {
  background: linear-gradient(135deg, #0d2238, #0b2626);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0 22px;
}

.audit-hero-cta-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #f8fafc;
}

.audit-guarantee {
  font-size: 0.8rem;
  color: #6ee7b7;
  font-weight: 600;
}

.audit-stat-danger {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.08);
}

.audit-stat-danger .audit-stat-v {
  color: #fda4af;
}

/* Interactive Viral Web Tools (Zero Inline Styles) */
.tool-shell {
  max-width: 980px;
  margin: 36px auto 64px;
  padding: 0 20px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  margin-top: 20px;
}

.tool-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tool-url-input,
.tool-select,
.tool-textarea {
  background: #080d17;
  color: var(--text);
  border: 1px solid #263854;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.98rem;
  font-family: inherit;
}

.tool-url-input {
  flex: 1 1 320px;
}

.tool-select {
  min-width: 210px;
}

.tool-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  margin-top: 10px;
}

.tool-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tool-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.tool-kpi {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.tool-kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 4px;
  color: #f8fafc;
}

.tool-kpi-good {
  color: #34d399;
}

.tool-kpi-warn {
  color: #fbbf24;
}

.tool-kpi-bad {
  color: #fb7185;
}

.tool-hidden {
  display: none;
}

.tool-upgrade-banner {
  background: linear-gradient(135deg, #0b2926, #0d2138);
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 20px;
}

.tool-upgrade-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #fff;
}

.tool-upgrade-sub {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 0.93rem;
}

.tool-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-code-out {
  background: #050811;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 16px;
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 390px;
  overflow-y: auto;
  margin-top: 14px;
}

.tool-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tool-chip {
  background: #131f33;
  color: #bae6fd;
  border: 1px solid #233858;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.tool-chip:hover {
  background: #1c2f4d;
}

.tool-status {
  color: #38bdf8;
  font-weight: 600;
  margin-top: 12px;
}
