/* Global shell consistency: header/nav/button/footer */

.header {
  position: sticky;
  top: 0;
  z-index: 220;
  background: rgba(7, 13, 33, 0.84);
  border-bottom: 1px solid var(--ds-color-border-soft);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.header.scrolled {
  background: rgba(7, 13, 33, 0.93);
  box-shadow: 0 14px 40px rgba(2, 6, 20, 0.46);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  color: var(--ds-color-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-im {
  color: #7fb2ff;
}

.nav a {
  color: var(--ds-color-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 9px;
  padding: 8px 14px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(79, 107, 255, 0.18);
}

.btn {
  min-height: 46px;
  min-width: 136px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3f66ff 0%, #6e63ff 52%, #4da8ff 100%);
  border: 1px solid rgba(130, 154, 255, 0.5);
  box-shadow: 0 10px 26px rgba(47, 103, 255, 0.28);
}

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

.btn-outline,
.btn-outline-light,
.btn-ghost {
  color: #eaf0ff;
  border: 1px solid rgba(160, 178, 241, 0.42);
  background: rgba(12, 23, 54, 0.5);
}

.btn-outline:hover,
.btn-outline-light:hover,
.btn-ghost:hover {
  background: rgba(79, 107, 255, 0.2);
}

.pricing-card,
.card,
.private-item,
.cap-v2-feature,
.cap-v2-shot,
.arch-v2-card,
.compare-v2-card,
.security-v2-card,
.industries-v2-card,
.faq-item,
.solution-panel {
  border-color: var(--ds-color-border);
  background: linear-gradient(180deg, rgba(15, 28, 58, 0.86), rgba(11, 21, 46, 0.88));
  box-shadow: var(--ds-shadow-soft);
}

body.blog-page .pricing-hero,
body.topics-page .hero {
  padding-top: clamp(98px, 12vw, 132px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

body.blog-page .section-head,
body.topics-page .section-head {
  max-width: 920px;
}

body.blog-page .section-head h1,
body.topics-page .hero h1 {
  font-size: var(--ds-fs-h1);
  line-height: var(--ds-lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

body.blog-page .pricing-grid,
body.topics-page .grid {
  gap: 20px;
}

body.blog-page,
body.topics-page {
  background:
    radial-gradient(980px 420px at -8% -10%, rgba(37, 99, 255, 0.16), transparent 70%),
    radial-gradient(920px 460px at 108% -12%, rgba(0, 194, 255, 0.12), transparent 72%),
    linear-gradient(180deg, #050a18 0%, #070f24 46%, #060b1b 100%);
}

body.blog-page section,
body.topics-page section {
  padding: clamp(56px, 7vw, 88px) 0;
}

body.blog-page .section-head,
body.topics-page .section-head {
  margin-inline: 0;
  text-align: left;
}

body.blog-page .section-head h2,
body.topics-page .section-head h2 {
  font-size: var(--ds-fs-h2);
  line-height: var(--ds-lh-head);
  margin: 0 0 12px;
}

body.blog-page .section-desc,
body.topics-page .section-head p {
  max-width: 66ch;
  margin: 0;
  color: var(--ds-color-text-soft);
}

body.blog-page .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.topics-page .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.blog-page .pricing-card,
body.topics-page .card {
  border: 1px solid var(--ds-color-border);
  border-radius: 16px;
  padding: 22px 20px;
  min-height: 220px;
}

body.blog-page .pricing-card h3,
body.topics-page .card h3 {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
  margin: 0 0 8px;
}

body.blog-page .price-desc,
body.topics-page .card p {
  color: var(--ds-color-text-soft);
  font-size: 15px;
  line-height: 1.72;
}

body.topics-page .cta {
  background:
    radial-gradient(780px 260px at 10% 120%, rgba(34, 211, 238, 0.2), transparent 70%),
    linear-gradient(128deg, #08142f 0%, #10264f 52%, #0d2144 100%);
}

body.topics-page .cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
}

body.topics-page .cta p {
  color: #c8d9f8;
  max-width: 60ch;
}

body.topics-page .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  background: linear-gradient(180deg, #060c1f 0%, #050916 100%);
  border-top: 1px solid rgba(94, 115, 178, 0.24);
}

.footer-info,
.footer-copy {
  color: #c4d1ea;
}

.floating-btns {
  right: 18px;
  bottom: 92px;
}

.float-btn {
  width: 48px;
  height: 48px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

@media (max-width: 959px) {
  .header-inner {
    height: 60px;
  }

  .nav {
    background: rgba(8, 15, 36, 0.97);
    border-left: 1px solid rgba(118, 143, 223, 0.2);
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-close {
    background: rgba(10, 19, 48, 0.84);
    border-color: rgba(118, 143, 223, 0.25);
  }

  .nav-close span,
  .nav-toggle span {
    background: #dce8ff;
  }

  .btn,
  .btn-primary,
  .btn-outline,
  .btn-outline-light,
  .btn-ghost {
    min-height: 44px;
  }

  body.blog-page .pricing-grid,
  body.topics-page .grid {
    gap: 14px;
  }

  body.blog-page .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.topics-page .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  body.blog-page .pricing-grid,
  body.topics-page .grid {
    grid-template-columns: 1fr;
  }

  body.blog-page .pricing-card,
  body.topics-page .card {
    min-height: 0;
    padding: 18px 16px;
  }

  body.topics-page .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.topics-page .cta-actions .btn {
    width: 100%;
  }
}

/* Modal isolation: prevent global button/layout rules from breaking lead popups */
#modalContainer .modal .modal-content {
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 28px 72px rgba(2, 8, 24, 0.34);
}

#modalContainer .modal .modal-header {
  padding: 22px 22px 18px;
  min-height: 0;
  align-items: flex-start;
}

#modalContainer .modal .modal-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}

#modalContainer .modal .modal-description {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

#modalContainer .modal .modal-body {
  padding: 18px 22px 22px;
}

#modalContainer .modal .modal-form {
  gap: 12px;
}

#modalContainer .modal .btn {
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
}

#modalContainer .modal .form-submit {
  width: 100%;
  min-height: 44px;
}

#modalContainer .modal .contact-panel {
  gap: 10px;
}

#modalContainer .modal .contact-item {
  padding: 12px;
  border-radius: 14px;
}

#modalContainer .modal .contact-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

#modalContainer .modal .contact-row {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
}

#modalContainer .modal .contact-main {
  font-size: 18px;
  line-height: 1.3;
}

#modalContainer .modal .contact-side {
  font-size: 13px;
}

#modalContainer .modal .contact-copy-btn,
#modalContainer .modal #contactCloseBtn {
  min-width: 92px;
  min-height: 38px;
  padding: 0 12px;
}

@media (max-width: 599px) {
  #modalContainer .modal {
    padding: 10px;
  }

  #modalContainer .modal .modal-content {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  #modalContainer .modal .modal-header {
    padding: 16px 14px 12px;
  }

  #modalContainer .modal .modal-title {
    font-size: 20px;
  }

  #modalContainer .modal .modal-body {
    padding: 12px 14px 14px;
    max-height: calc(100dvh - 130px);
  }

  #modalContainer .modal .contact-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  #modalContainer .modal .contact-copy-btn,
  #modalContainer .modal #contactCloseBtn {
    min-width: 0;
    width: 100%;
  }
}
