
.page-hero-bg,
.page-hero::before,
.page-hero::after,
.hero-bg { background: transparent !important; }
.page-hero,
.hero-section { background: var(--bg) !important; }
.hero-section { padding: 10rem 0 8rem !important; min-height: auto !important; }
@media (max-width: 991px) { .hero-section { padding: 8rem 0 5rem !important; } }
@media (max-width: 576px) { .hero-section { padding: 6.5rem 0 4rem !important; } }
.hero-card-3d { background: var(--surface-1) !important; }
section.section,
section.section-sm { background: var(--bg); }
section.section[style*="surface-1"],
section.section[style*="var(--surface-1)"] { background: var(--surface-1) !important; }
section.section + section.section,
section.section-sm + section.section,
section.section + section.section-sm {
  border-top: 1px solid var(--border);
}
.cta-section,
.cta-section[style] {
  background: var(--surface-1) !important;
  border: 1px solid rgba(66, 187, 230, 0.18);
}
.footer { background: var(--surface-1) !important; border-top: 1px solid var(--border) !important; }
.footer-brand-name { color: var(--text-primary) !important; }
.footer-desc, .footer-link, .footer-bottom { color: var(--text-secondary) !important; }
.footer-heading { color: var(--text-primary) !important; }

/* Primary cyan buttons & icons: white text (not --bg which is bluish) */
.btn-primary-custom,
.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active { color: #ffffff !important; }
.brand-icon,
.demo-step-icon { color: #ffffff !important; }
.logo-wrap {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: 0;
}
/* Cyan-glow surfaces should never carry cyan text on cyan background */
.hero-badge,
.cc-cat-required { color: var(--cyan-dark) !important; }

.hero-card-3d,
.showcase-content,
.konfig-card,
.faq-item,
.feature-card,
.related-card,
.cta-section,
.demo-download-card { background: var(--surface-1) !important; }
/* Kill decorative radial-gradient blobs that were only background tint */
.hero-section::before,
.hero-section::after,
.showcase-visual::before,
.showcase-visual::after,
.faq-section::before,
.faq-section::after,
.section::before,
.section::after,
.page-hero::before,
.page-hero::after { background: none !important; }
.bg-grid { background: transparent !important; }

:root {
  --section-py:    7rem;
  --section-py-sm: 4.5rem;
}
.section            { padding-top: var(--section-py);    padding-bottom: var(--section-py); }
.section-sm         { padding-top: var(--section-py-sm); padding-bottom: var(--section-py-sm); }
.page-hero          { padding-top: 9rem;  padding-bottom: 5rem; }

.row.g-4 { --bs-gutter-y: 1.25rem; --bs-gutter-x: 1.25rem; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
h1, .page-hero-title { letter-spacing: -0.025em; }
h2, h3               { letter-spacing: -0.015em; }
.feature-title       { letter-spacing: -0.01em;  }
.feature-desc        { letter-spacing: 0; }

.feature-card,
.related-card {
  border-radius: 18px;
  border: 1px solid rgba(13, 13, 42, 0.06);
  background: var(--surface-1);
  box-shadow:
    0 1px 2px rgba(13, 13, 42, 0.04),
    0 8px 24px rgba(13, 13, 42, 0.05);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  transform-style: preserve-3d;
}
.feature-card:hover,
.related-card:hover {
  transform: translateY(-3px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(66, 187, 230, 0.35);
  box-shadow:
    0 4px 10px rgba(13, 13, 42, 0.06),
    0 20px 60px rgba(13, 13, 42, 0.10);
}

.feature-card::before,
.related-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(66, 187, 230, 0.10),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover::before,
.related-card:hover::before { opacity: 1; }

.btn-primary-custom,
.btn-outline-custom,
.btn-ghost-custom {
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary-custom:hover  { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(66,187,230,0.32); }
.btn-primary-custom:active { transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* No-JS fallback: if JavaScript is disabled or fails, .no-js on <html>
   keeps reveal elements fully visible so content is never hidden. */
html.no-js .reveal,
html.no-js .fade-up,
html.no-js .fade-in,
html.no-js .scale-in {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up, .fade-in, .scale-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal.is-visible { opacity: 1 !important; }
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--grad-cyan);
  border-radius: 18px;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 12px 30px rgba(66,187,230,0.35);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 0.75rem;
}
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}

.blog-hero { padding-bottom: 2rem; }
.blog-meta {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
  margin: 0.5rem 0 0.75rem;
}
.blog-meta time { color: var(--text-secondary); font-weight: 500; }
.blog-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(66, 187, 230, 0.08);
  color: var(--cyan-dark);
  border: 1px solid rgba(66, 187, 230, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}
.blog-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 720px;
}
.blog-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.blog-body h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.015em;
}
.blog-body h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}
.blog-body p { margin: 0 0 1rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1.25rem 1.25rem; padding-left: 0.5rem; }
.blog-body li { margin-bottom: 0.4rem; }
.blog-body a { color: var(--cyan-dark); border-bottom: 1px solid rgba(66,187,230,0.4); }
.blog-body a:hover { border-bottom-color: var(--cyan-dark); }

.blog-divider {
  border: 0; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.blog-cta {
  background: linear-gradient(135deg, rgba(66,187,230,0.08), var(--surface-1));
  border: 1px solid rgba(66,187,230,0.2);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.blog-cta h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--text-primary); }
.blog-cta p  { margin: 0 0 1rem;  font-size: 0.95rem; color: var(--text-secondary); }

.blog-list { display: flex; flex-direction: column; gap: 1.25rem; }
.blog-list-item {
  display: block;
  background: var(--surface-1);
  border: 1px solid rgba(13,13,42,0.06);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s ease, border-color 0.2s ease;
  position: relative;
}
.blog-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(66,187,230,0.4);
  box-shadow: 0 16px 40px rgba(13,13,42,0.08);
  color: inherit;
}
.blog-list-item .meta {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.blog-list-item .title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.blog-list-item .desc {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.55;
}
.blog-list-item .arrow {
  color: var(--cyan-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.6rem;
  display: inline-flex; gap: 0.4rem; align-items: center;
}

.section-related .related-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.related-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.related-card .icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(66,187,230,0.1);
  color: var(--cyan-dark);
  flex-shrink: 0;
}
.related-card .label { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.related-card .sub   { font-size: 0.8rem;  color: var(--text-muted); }

.cp-popup-wrap {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
}
.cp-popup-wrap.is-open { pointer-events: auto; }
.cp-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 28, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cp-popup-wrap.is-open .cp-popup-backdrop { opacity: 1; }
.cp-popup {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
  width: min(440px, calc(100vw - 2rem));
  background: var(--surface-1);
  border: 1px solid rgba(13,13,42,0.08);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.18),
    0 0 0 1px rgba(66,187,230,0.08);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cp-popup-wrap.is-open .cp-popup {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cp-popup-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 30px; height: 30px;
  background: var(--surface-2);
  border: none;
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.cp-popup-close:hover { background: var(--surface-3); color: var(--text-primary); }
.cp-popup-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.cp-popup-heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.cp-popup-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.cp-popup-actions {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.cp-popup-actions .btn-primary-custom {
  flex: 1 1 auto;
  justify-content: center;
}
.cp-popup-actions .btn-ghost-custom {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .cp-popup { transition: opacity 0.15s ease; }
}

.back-to-top {
  background: var(--surface-1) !important;
  color: var(--cyan-dark) !important;
  border: 1px solid rgba(66,187,230,0.35) !important;
  box-shadow: 0 8px 22px rgba(13,13,42,0.10) !important;
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.back-to-top:hover { transform: translateY(-2px); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: rgba(66,187,230,0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 3rem;
  padding-top: 0;
  border-top: 0;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  background: var(--surface-1);
  border: 1px solid rgba(13, 13, 42, 0.06);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(13, 13, 42, 0.03), 0 6px 18px rgba(13, 13, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}
.hero-stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 187, 230, 0.35);
  box-shadow: 0 1px 2px rgba(13, 13, 42, 0.04), 0 14px 32px rgba(13, 13, 42, 0.08);
}
.hero-stat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(66, 187, 230, 0.1);
  color: var(--cyan-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.hero-stat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.hero-stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  white-space: nowrap;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0;
  line-height: 1.3;
}
@media (max-width: 1100px) {
  .hero-stat-number { font-size: 1.2rem; }
  .hero-stat-icon { width: 36px; height: 36px; font-size: 0.9rem; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .hero-stat-item { padding: 0.85rem; }
}

.section-header {
  margin-bottom: 2rem;
}
.section-header .section-label {
  display: inline-flex;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--text-primary);
}
.section-desc {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
