/* ============================================
   SecretCarousel — Marketing Landing Page
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;

  /* Gray scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-cta: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-dark: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-950) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(37,99,235,0.3);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Sizing */
  --header-height: 72px;
  --container-max: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 7rem 0;
}

.section--gray { background: var(--gray-50); }
.section--dark { background: var(--gradient-hero); color: #fff; }
.section--gradient { background: var(--gradient-cta); color: #fff; }

/* --- Typography --- */
.heading-xl {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.heading-sm {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section--dark .section-eyebrow { color: var(--primary-light); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-top: 1rem;
  line-height: 1.7;
}

.section--dark .section-header p { color: rgba(255,255,255,0.7); }

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: var(--header-height);
}

.header--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  height: 60px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
}

.logo i { color: var(--primary); font-size: 1.5rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transition: right 0.3s ease;
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open { opacity: 1; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn--secondary:hover {
  background: var(--gray-200);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn--cta {
  background: var(--gradient-cta);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}

.btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

.btn--outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card--feature {
  text-align: center;
}

.card--feature .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(139,92,246,0.1));
  color: var(--primary);
}

.card--feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card--feature p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Pricing cards */
.card--pricing {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--gray-200);
}

.card--pricing.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.card--pricing.popular .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.pricing-price .currency { font-size: 1.5rem; vertical-align: top; }
.pricing-price .period { font-size: 1rem; font-weight: 400; color: var(--gray-400); }

.pricing-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.pricing-features li i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

.pricing-features li i.fa-check { color: var(--success); }
.pricing-features li i.fa-minus { color: var(--gray-300); }

.pricing-features li.disabled {
  color: var(--gray-400);
}

/* --- Pricing Toggle --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-toggle span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
}

.pricing-toggle span.active { color: var(--gray-900); font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.save-badge {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  padding: 0.2rem 0.625rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

.faq-question i {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Tabbed Interface --- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--gray-800); }

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Terminal Window --- */
.terminal {
  background: #0d1117;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-mono);
  max-width: 600px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #161b22;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot--red { background: #ff5f56; }
.terminal-dot--yellow { background: #ffbd2e; }
.terminal-dot--green { background: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #8b949e;
  font-family: var(--font-sans);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  min-height: 160px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #c9d1d9;
}

.terminal-line { margin-bottom: 0.25rem; }

.terminal-prompt {
  color: var(--success);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--success);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-command { color: #f0f6fc; }
.terminal-string { color: #a5d6ff; }
.terminal-flag { color: #ff7b72; }
.terminal-comment { color: #8b949e; }

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.comparison-table thead th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--gray-50);
}

.comparison-table tbody td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 500;
  z-index: 1;
}

.comparison-table .highlight-col {
  background: rgba(37,99,235,0.04);
}

.comparison-table thead th.highlight-col {
  color: var(--primary);
  background: rgba(37,99,235,0.08);
}

.check-yes { color: var(--success); font-weight: 600; }
.check-no { color: var(--gray-300); }

/* --- Footer --- */
.footer {
  background: var(--gradient-dark);
  color: #fff;
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-300);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* --- Copied tooltip --- */
.copy-tooltip {
  position: absolute;
  top: -30px;
  right: 0;
  background: var(--gray-800);
  color: #fff;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

/* Code tab container */
.code-tabs { position: relative; }

.code-tabs .tab-btn {
  border-bottom-color: transparent;
  color: rgba(255,255,255,0.5);
}

.code-tabs .tab-btn.active {
  color: #fff;
  border-bottom-color: var(--primary-light);
}

.code-block {
  position: relative;
  background: #0d1117;
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: #c9d1d9;
  overflow-x: auto;
}

.code-block .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--gray-400);
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

.code-block .copy-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Feature comparison matrix (expandable) */
.feature-matrix { margin-top: 3rem; }

.feature-matrix-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  width: 100%;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

.feature-matrix-toggle:hover { background: var(--gray-50); }

.feature-matrix-toggle i {
  transition: transform 0.3s ease;
}

.feature-matrix.open .feature-matrix-toggle i { transform: rotate(180deg); }

.feature-matrix-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Migration cards */
.migration-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.migration-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.migration-card code {
  display: block;
  background: rgba(0,0,0,0.3);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--success);
  margin-top: 1rem;
  word-break: break-all;
}

/* Compliance badges */
.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.compliance-badge i {
  color: var(--success);
}

/* Trust signals */
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.trust-signal i { font-size: 1rem; }

/* Stat counter cards */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section--dark .stat-card .stat-number { color: #fff; }

.stat-card .stat-label {
  font-size: 0.9375rem;
  color: var(--gray-500);
  font-weight: 500;
}

.section--dark .stat-card .stat-label { color: rgba(255,255,255,0.6); }

/* Metrics strip (hero) */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge i { color: var(--warning); }

/* Pain-point cards */
.pain-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.pain-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pain-card .pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--error);
  color: #fff;
}

.pain-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.pain-card .pain-stat {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--error);
}

/* Solution row (alternating) */
.solution-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.solution-row:nth-child(even) .solution-visual { order: -1; }

.solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon-lg {
  width: 120px;
  height: 120px;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.solution-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-text p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.solution-text ul {
  list-style: none;
}

.solution-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.solution-text ul li i {
  color: var(--success);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Self-host CTA card */
.self-host-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: 1rem;
}

.self-host-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.self-host-card p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Callout box */
.callout {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.callout i { color: var(--primary); margin-right: 0.375rem; }

/* Feature tab content layout */
.feature-tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-tab-text h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-tab-text p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.feature-tab-text ul {
  list-style: none;
}

.feature-tab-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.feature-tab-text ul li i {
  color: var(--success);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .heading-xl { font-size: 3rem; }
  .heading-lg { font-size: 2.25rem; }
  .section { padding: 5rem 0; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .card--pricing.popular { transform: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .solution-row { gap: 2rem; }

  .feature-tab-content { gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .heading-xl { font-size: 2.25rem; }
  .heading-lg { font-size: 1.875rem; }
  .heading-md { font-size: 1.5rem; }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .metrics-strip { grid-template-columns: repeat(2, 1fr); }

  .solution-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .solution-row:nth-child(even) .solution-visual { order: 0; }
  .solution-visual { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .comparison-table thead th:first-child,
  .comparison-table tbody td:first-child {
    position: static;
  }

  .feature-tab-content { grid-template-columns: 1fr; }

  .tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-btn { flex-shrink: 0; }
}

@media (max-width: 480px) {
  .heading-xl { font-size: 1.875rem; }
  .heading-lg { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .section { padding: 3rem 0; }

  .metrics-strip { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .btn--lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
}
