/* ─────────────────────────────────────────
   RESET & CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #080808;
  --black-mid:   #111111;
  --black-light: #1c1c1c;
  --black-card:  #161616;
  --red:         #C8102E;
  --red-light:   #E8192D;
  --red-glow:    #FF4D5E;
  --white:       #ffffff;
  --muted:       #9ca3af;
  --border:      rgba(255,255,255,0.07);
  --radius:      8px;
  --radius-lg:   8px;
}

[data-theme="light"] {
  --black:       #ffffff;
  --black-mid:   #f9fafb;
  --black-light: #f3f4f6;
  --black-card:  #f9fafb;
  --white:       #1f2937;
  --muted:       #6b7280;
  --border:      rgba(0,0,0,0.08);
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #C8102E 0%, #E8192D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p, li { text-wrap: pretty; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-glow);
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FF4D5E 0%, #FF9A3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ─────────────────────────────────────────
   SCROLL FADE-IN ANIMATIONS
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible        { opacity: 1; transform: translateY(0); }
.fade-in.delay-1        { transition-delay: 0.1s; }
.fade-in.delay-2        { transition-delay: 0.2s; }
.fade-in.delay-3        { transition-delay: 0.3s; }
.fade-in.delay-4        { transition-delay: 0.4s; }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8,8,8,0.88);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="light"] nav {
  background: rgba(255,255,255,0.92);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { display: block; margin-top: 5px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta,
.nav-links .nav-cta {
  background: #C8102E;
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-cta:hover,
.nav-links .nav-cta:hover { background: #E8192D; color: #ffffff; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  width: 38px;
  height: 38px;
}

.theme-toggle:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

[data-theme="light"] .theme-toggle {
  color: #1f2937;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .theme-toggle:hover {
  color: #111827;
  border-color: rgba(0,0,0,0.15);
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: center; }
  .nav-logo img { height: 34px; }
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(200,16,46,0.45);
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 0 38px rgba(200,16,46,0.6);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--muted);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,16,46,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

[data-theme="light"] #hero::before {
  background-image:
    linear-gradient(rgba(200,16,46,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.08) 1px, transparent 1px);
}

/* Red radial glow */
#hero::after {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badges, .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

.hero-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid;
}
.badge-red    { border-color: rgba(200,16,46,0.5);   color: var(--red-glow);  background: rgba(200,16,46,0.1); }
.badge-white  { border-color: rgba(255,255,255,0.2); color: #e5e7eb;          background: rgba(255,255,255,0.05); }

.hero-title { margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Eye-scan SVG illustration ── */
.hero-illustration { display: flex; justify-content: center; align-items: center; transition: filter 0.3s; }

[data-theme="light"] .eye-scan-wrapper svg {
  filter: invert(0.95) saturate(1.2) hue-rotate(180deg);
}

.eye-scan-wrapper { position: relative; width: 340px; height: 340px; }

@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: 0.5; }
  100% { transform: scale(1.18); opacity: 0; }
}
.pulse-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid rgba(200,16,46,0.4);
  animation: pulse-ring 2.4s ease-out infinite;
  transition: border-color 0.3s;
}
.pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.pulse-ring:nth-child(3) { animation-delay: 1.6s; }

[data-theme="light"] .pulse-ring {
  border-color: rgba(200,16,46,0.6);
}

@keyframes rotate-scan {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.scan-rotate {
  animation: rotate-scan 8s linear infinite;
  transform-origin: center;
}

/* ─────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────── */
.trust-bar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--black-mid);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-item svg { color: var(--red-glow); flex-shrink: 0; }

/* Maple leaf divider between trust items */
.trust-divider {
  color: rgba(200,16,46,0.3);
  font-size: 1rem;
}

@media (max-width: 680px) {
  .trust-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .trust-divider { display: none; }
}

/* ─────────────────────────────────────────
   PROBLEM / SOLUTION
───────────────────────────────────────── */
#problem { background: var(--black-mid); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.problem-card:hover { border-color: rgba(200,16,46,0.4); transform: translateY(-3px); }

.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-glow));
  opacity: 0;
  transition: opacity 0.2s;
}
.problem-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  background: rgba(200,16,46,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { color: var(--red-glow); }

.problem-card h3 { margin-bottom: 0.5rem; }
.problem-card p  { color: var(--muted); font-size: 0.95rem; }

.solution-note {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.solution-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
#how-it-works { background: var(--black); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 720px) {
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-glow), var(--red));
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: rgba(200,16,46,0.4); transform: translateY(-3px); }

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 22px rgba(200,16,46,0.5);
}

.step-card h3 { margin-bottom: 0.5rem; }
.step-card p  { color: var(--muted); font-size: 0.95rem; }

.step-icon { margin-top: 1.25rem; display: flex; justify-content: center; opacity: 0.6; }

/* ─────────────────────────────────────────
   SR&ED CALLOUT
───────────────────────────────────────── */
#sred { background: linear-gradient(135deg, #0a0a0a 0%, rgba(200,16,46,0.15) 100%); }

.sred-card {
  background: linear-gradient(135deg, rgba(200,16,46,0.1) 0%, rgba(17,17,17,0.9) 100%);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .sred-card { grid-template-columns: 1fr; }
  .sred-stat { text-align: center; }
}

.sred-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,16,46,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.sred-content { position: relative; z-index: 1; }
.sred-content h2 { margin-bottom: 1rem; }
.sred-content p  { color: var(--muted); max-width: 560px; line-height: 1.7; }

.sred-bullets {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sred-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.sred-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--red-glow);
}

.sred-stat { position: relative; z-index: 1; text-align: center; flex-shrink: 0; }

.sred-pct {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #FF4D5E, #FF9A3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sred-pct-label { font-size: 1rem; color: var(--muted); margin-top: 0.25rem; font-weight: 500; }

/* ─────────────────────────────────────────
   AUDIENCE SPLIT
───────────────────────────────────────── */
#audiences { background: var(--black); }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.audience-card:hover { border-color: rgba(200,16,46,0.4); transform: translateY(-3px); }

.audience-card h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.audience-card p  { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.audience-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.75rem; }
.audience-features li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--muted); }
.audience-features li svg { color: var(--red-glow); flex-shrink: 0; }

/* ─────────────────────────────────────────
   LEAD CAPTURE FORM
───────────────────────────────────────── */
#contact { background: var(--black-mid); }

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
@media (max-width: 600px) { .form-wrapper { padding: 2rem 1.5rem; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
label .req { color: var(--red-glow); margin-left: 2px; }

input, select, textarea {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #3d3d3d; }
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.2);
}
select option { background: var(--black); }
textarea { resize: vertical; min-height: 100px; }

.form-error { font-size: 0.8rem; color: #f87171; min-height: 1rem; }

.form-submit-row { margin-top: 1.5rem; }
.btn-submit { width: 100%; justify-content: center; padding: 1rem; }

/* Thank-you state */
#thank-you { display: none; text-align: center; padding: 2rem 0; }

.checkmark-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(200,16,46,0.12);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

#thank-you h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
#thank-you p  { color: var(--muted); max-width: 380px; margin: 0 auto; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo img { display: block; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 520px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta  { text-align: left; }
}
.footer-meta a { color: var(--red-glow); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   COMPLIANCE SECTION
───────────────────────────────────────── */
#compliance { background: var(--black-mid); }

/* Ownership callout bar */
.compliance-callout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(200,16,46,0.08);
  border: 1px solid rgba(200,16,46,0.3);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}

.compliance-callout-icon {
  color: var(--red-glow);
  flex-shrink: 0;
  margin-top: 2px;
}

.compliance-callout-text {
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.65;
}
.compliance-callout-text strong { color: var(--white); }

/* Three-pillar grid */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) { .compliance-grid { grid-template-columns: 1fr; } }

.compliance-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.compliance-card:hover { border-color: rgba(200,16,46,0.35); transform: translateY(-3px); }

.compliance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.compliance-icon {
  width: 44px; height: 44px;
  background: rgba(200,16,46,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-glow);
}

.compliance-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(200,16,46,0.4);
}

.compliance-card h3 { font-size: 1.05rem; margin-bottom: 0.65rem; }
.compliance-card p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }

.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.compliance-list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}
.compliance-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.52em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
}

/* Cloud vs On-Premise comparison */
.compliance-vs {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compliance-vs-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.compliance-vs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) { .compliance-vs-cols { grid-template-columns: 1fr; } }

.compliance-vs-col {
  padding: 2rem;
}

.compliance-vs-col.col-bad {
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
}

.compliance-vs-col.col-good {
  background: rgba(200,16,46,0.06);
}

@media (max-width: 640px) {
  .compliance-vs-col.col-bad  { border-right: none; border-bottom: 1px solid var(--border); }
}

.vs-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.vs-bad  { background: rgba(75,85,99,0.15); color: #6b7280; border: 1px solid rgba(75,85,99,0.25); }
.vs-good { background: rgba(200,16,46,0.15); color: var(--red-glow); border: 1px solid rgba(200,16,46,0.35); }

.vs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.vs-list li {
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.45;
}
.vs-list-bad  li { color: #71717a; }
.vs-list-good li { color: #e5e7eb; }

.vs-list-bad  li::before { content: '✕'; position: absolute; left: 0; color: #52525b; font-size: 0.8rem; top: 0.05em; font-weight: 700; }
.vs-list-good li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-size: 0.8rem; top: 0.05em; font-weight: 700; }

/* ─────────────────────────────────────────
   ADMIN PANEL  (?admin=true)
───────────────────────────────────────── */
#admin-panel {
  display: none;
  min-height: 100vh;
  background: var(--black);
  padding: 2rem 1.5rem;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.admin-header h2 { font-size: 1.6rem; }
.admin-header p  { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

.admin-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-admin:hover { background: var(--red-light); }

.btn-danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

thead th {
  background: var(--black-card);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

tbody td { padding: 0.85rem 1rem; color: var(--muted); white-space: nowrap; }
tbody td:first-child { color: var(--white); font-weight: 500; }

.admin-empty { text-align: center; padding: 3.5rem 2rem; color: var(--muted); }
.admin-empty svg { margin-bottom: 1rem; opacity: 0.3; }

.lead-count {
  display: inline-flex;
  align-items: center;
  background: rgba(200,16,46,0.15);
  color: var(--red-glow);
  border-radius: 100px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.6rem;
  vertical-align: middle;
}

/* ─── Light Mode Contrast Fixes ─── */
[data-theme="light"] .badge-white {
  border-color: rgba(0,0,0,0.15);
  color: #374151;
  background: rgba(0,0,0,0.05);
}

[data-theme="light"] .label {
  color: #C8102E;
}

[data-theme="light"] #sred {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(200,16,46,0.08) 100%);
}

[data-theme="light"] .sred-card {
  background: rgba(200,16,46,0.05);
  border-color: rgba(200,16,46,0.15);
}

[data-theme="light"] .sred-card::before {
  background: none;
}

[data-theme="light"] .sred-content p {
  color: #6b7280;
}

[data-theme="light"] .sred-content strong {
  color: #1f2937;
}

[data-theme="light"] .sred-bullets li {
  color: #374151;
}

[data-theme="light"] .sred-pct {
  color: #C8102E;
}

[data-theme="light"] .sred-pct-label {
  color: #6b7280;
}

[data-theme="light"] #compliance {
  background: #f3f4f6;
}

[data-theme="light"] .compliance-callout {
  background: rgba(200,16,46,0.08);
  border-color: rgba(200,16,46,0.2);
}

[data-theme="light"] .compliance-callout-text {
  color: #374151;
}

[data-theme="light"] .compliance-callout-text strong {
  color: #1f2937;
}

[data-theme="light"] .compliance-vs-col {
  background: rgba(200,16,46,0.05);
}

[data-theme="light"] .compliance-vs-col.col-good {
  background: rgba(34,197,94,0.08);
}

[data-theme="light"] .vs-list-good li {
  color: #374151;
}

[data-theme="light"] .vs-label {
  color: #1f2937;
}

[data-theme="light"] .problem-card {
  background: #f9fafb;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .solution-note {
  color: #374151;
}

[data-theme="light"] .card-icon {
  background: rgba(200,16,46,0.1);
}

/* Button text colors in light mode */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-ghost,
[data-theme="light"] .nav-cta,
[data-theme="light"] button {
  color: #ffffff;
}

[data-theme="light"] .btn-admin {
  color: var(--white) !important;
}

[data-theme="light"] .btn-danger {
  color: #fca5a5 !important;
}

/* Logo theme variants */
.nav-logo .logo-light,
.footer-logo .logo-light { display: none; }
[data-theme="light"] .nav-logo .logo-dark,
[data-theme="light"] .footer-logo .logo-dark { display: none; }
[data-theme="light"] .nav-logo .logo-light,
[data-theme="light"] .footer-logo .logo-light { display: block; }
