/* ═══════════════════════════════════════════════════════════════════
   ShieldConsent — Design System
   Base tokens, utilities, and component styles for the landing page.
   Works alongside Bootstrap 5.3 + Bootstrap Icons.
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── 1. Design Tokens ────────────────────────────────────────────── */
:root {
  /* Palette — Slate scale (Tailwind-inspired) */
  --sc-slate-50:  #f8fafc;
  --sc-slate-100: #f1f5f9;
  --sc-slate-200: #e2e8f0;
  --sc-slate-300: #cbd5e1;
  --sc-slate-400: #94a3b8;
  --sc-slate-500: #64748b;
  --sc-slate-600: #475569;
  --sc-slate-700: #334155;

  /* Brand */
  --sc-dark:    #0f172a;
  --sc-sky:     #0EA5E9;
  --sc-success: #10b981;
  --sc-warning: #f59e0b;
  --sc-danger:  #ef4444;

  /* Gradient */
  --sc-gradient: linear-gradient(135deg, #0EA5E9, #2563EB);

  /* Radii */
  --sc-radius:      8px;
  --sc-radius-lg:  12px;
  --sc-radius-xl:  16px;
  --sc-radius-pill: 999px;

  /* Shadow */
  --sc-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ─── 2. Base / Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--sc-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: #0284c7; }

/* ─── 3. Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--sc-dark);
  margin-top: 0;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sc-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--sc-slate-500);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-sky);
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sc-slate-500);
  margin-top: 0.15rem;
}

/* ─── 4. Layout ───────────────────────────────────────────────────── */
.section {
  padding: 5.5rem 0;
}

.section-dark {
  background: var(--sc-dark);
}

.bg-slate-50 {
  background: var(--sc-slate-50);
}

.sc-divider {
  width: 48px;
  height: 3px;
  background: var(--sc-gradient);
  border-radius: var(--sc-radius-pill);
  margin-bottom: 1.25rem;
}

/* ─── 5. Buttons ──────────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--sc-radius);
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--sc-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: white;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--sc-slate-100);
  color: var(--sc-dark);
  border: 1px solid var(--sc-slate-200);
}
.btn-secondary:hover {
  background: var(--sc-slate-200);
  color: var(--sc-dark);
}

.btn-outline-primary {
  background: transparent;
  color: var(--sc-sky);
  border: 1.5px solid var(--sc-sky);
}
.btn-outline-primary:hover {
  background: rgba(14, 165, 233, 0.06);
  color: #0284c7;
  border-color: #0284c7;
}

.btn-xl {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--sc-radius-lg);
}

/* ─── 6. Feature Icons ────────────────────────────────────────────── */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--sc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--sc-sky);
  background: rgba(14, 165, 233, 0.08);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  transition: all 0.25s;
}

.feature-icon.gradient {
  background: var(--sc-gradient);
  color: white;
}

/* ─── 7. Pricing Cards ────────────────────────────────────────────── */
.card-pricing {
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  padding: 2rem;
  position: relative;
  transition: all 0.25s;
}
.card-pricing:hover {
  border-color: var(--sc-slate-300);
  box-shadow: var(--sc-shadow);
  transform: translateY(-4px);
}

.card-pricing.featured {
  border-color: var(--sc-sky);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.15), 0 8px 30px rgba(14, 165, 233, 0.1);
}
.card-pricing.featured:hover {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 12px 40px rgba(14, 165, 233, 0.15);
}
.card-pricing.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--sc-gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--sc-radius-pill);
  white-space: nowrap;
}

/* ─── 8. Animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.35s; }

/* ─── 9. Responsive ───────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.6rem; }
  .stat-value { font-size: 2.25rem; }
}

@media (max-width: 767.98px) {
  .section { padding: 3.25rem 0; }
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.92rem; }
  .stat-value { font-size: 1.85rem; }
  .btn-xl {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
  }
  .card-pricing { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
  .hero-dark h1 { font-size: 1.75rem !important; }
}

/* ─── 10. Utilities ───────────────────────────────────────────────── */
::selection {
  background: rgba(14, 165, 233, 0.15);
  color: var(--sc-dark);
}

/* Smooth scroll offset for fixed navbar — also set in page styles */
[id] {
  scroll-margin-top: 80px;
}

/* ─── 11. Page Content (the_content) ──────────────────────────── */
.sc-page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--sc-slate-600);
}

.sc-page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

.sc-page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.65rem;
}

.sc-page-content p {
  margin-bottom: 1.25rem;
}

.sc-page-content a {
  color: var(--sc-sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-page-content a:hover {
  color: #0284c7;
}

.sc-page-content ul,
.sc-page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.sc-page-content li {
  margin-bottom: 0.4rem;
}

.sc-page-content img {
  border-radius: var(--sc-radius-lg);
  margin: 1.5rem 0;
}

.sc-page-content blockquote {
  border-left: 3px solid var(--sc-sky);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--sc-slate-50);
  border-radius: 0 var(--sc-radius) var(--sc-radius) 0;
  color: var(--sc-slate-600);
  font-style: italic;
}

.sc-page-content pre,
.sc-page-content code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.sc-page-content code {
  font-size: 0.88em;
  background: var(--sc-slate-100);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--sc-dark);
}

.sc-page-content pre {
  background: #0c1222;
  border-radius: var(--sc-radius-lg);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.sc-page-content pre code {
  background: none;
  padding: 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

.sc-page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.5rem 0;
}

.sc-page-content table th,
.sc-page-content table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sc-slate-200);
}

.sc-page-content table th {
  font-weight: 600;
  color: var(--sc-dark);
  background: var(--sc-slate-50);
}

/* ─── 12. Changelog ───────────────────────────────────────────── */
.sc-changelog-entry {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sc-slate-200);
}

.sc-changelog-entry:last-child {
  border-bottom: none;
}

/* ─── 13. Navigation (global) ─────────────────────────────────── */
.sc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.3s;
}
.sc-nav.scrolled {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0;
}
/* Non-landing pages: nav always has dark bg (no hero behind it) */
body:not(.sc-landing) .sc-nav {
  background: var(--sc-dark);
}
.sc-nav .nav-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
}
.sc-nav .nav-link:hover { color: white; }
.sc-nav .navbar-brand {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.sc-nav .navbar-brand span { font-weight: 300; color: var(--sc-slate-500); }

/* ─── 14. Hamburger ───────────────────────────────────────────── */
.sc-hamburger {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--sc-radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.sc-hamburger:hover { background: rgba(255,255,255,0.12); }
.sc-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sc-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 15. Mobile menu overlay ─────────────────────────────────── */
.sc-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.sc-mobile-menu-inner {
  text-align: center;
  width: 100%;
  max-width: 280px;
  padding: 0 24px;
  transform: translateY(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-mobile-menu.open .sc-mobile-menu-inner {
  transform: translateY(0);
}
.sc-mobile-link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.sc-mobile-link:hover { color: white; }

/* ─── 16. Ghost button (dark backgrounds) ─────────────────────── */
.btn-ghost-light {
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.25);
}

/* ─── 17. Footer ──────────────────────────────────────────────── */
.sc-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--sc-slate-200);
}
.sc-footer a {
  color: var(--sc-slate-500);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.sc-footer a:hover { color: var(--sc-dark); }
