/* ============================================================
   ScorpTech dark theme — Nexus-influenced void aesthetic.
   Loads after styles.css / ui-core.css / ui-home.css and
   re-skins the whole site: deep void background, glass panels,
   cyan/violet glow accents. No layout changes.
   ============================================================ */

:root {
  /* Flip the site palette to the void */
  --primary-color: #5ad6e8;
  --secondary-color: #8b7cf0;
  --accent-color: #4fd1c5;
  --text-primary: #eef2f6;
  --text-secondary: #a8b3c2;
  --text-light: #ffffff;
  --background-light: #060a10;
  --background-gray: #0a0f16;
  --background-dark: #030508;

  --gradient-primary: linear-gradient(135deg, #5ad6e8, #8b7cf0);
  --gradient-accent: linear-gradient(135deg, #4fd1c5, #5ad6e8);

  --box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
  --box-shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, 0.65), 0 0 24px rgba(90, 214, 232, 0.08);

  /* Theme tokens */
  --scorp-void: #030508;
  --scorp-panel: rgba(13, 18, 26, 0.66);
  --scorp-panel-solid: #0b1018;
  --scorp-line: rgba(255, 255, 255, 0.08);
  --scorp-line-strong: rgba(90, 214, 232, 0.28);
  --scorp-cyan: #5ad6e8;
  --scorp-violet: #a78bfa;
  --scorp-muted: #8b95a5;
}

html, body { background: var(--scorp-void); }
body { color: var(--text-primary); }

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(5, 8, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--scorp-line);
}
.site-header.scrolled {
  background: rgba(5, 8, 13, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
@media (min-width: 992px) {
  .main-nav .menu a { color: #dbe3ec; }
  .main-nav .menu a:hover,
  .main-nav .menu li.active a { color: var(--scorp-cyan); }
}
.btn-primary-outline {
  color: #dbe3ec;
  border-color: rgba(90, 214, 232, 0.4);
}
.btn-primary-outline:hover {
  background: rgba(90, 214, 232, 0.12);
  color: #fff;
}

/* Offer banner — glassy violet/cyan */
.special-offer-banner {
  background: linear-gradient(100deg, rgba(9, 30, 38, 0.95), rgba(26, 22, 54, 0.95));
  border-bottom: 1px solid var(--scorp-line-strong);
}
.banner-btn { background: var(--scorp-cyan); color: #04252c; }
.banner-btn:hover { color: #04252c; }

/* ---------- Page headers (subpages) ---------- */
.page-header {
  background:
    radial-gradient(900px 320px at 80% 0%, rgba(90, 214, 232, 0.08), transparent 55%),
    radial-gradient(700px 280px at 12% 100%, rgba(139, 124, 240, 0.1), transparent 55%),
    transparent;
  border-bottom: 1px solid var(--scorp-line);
}
.page-header h1, .page-header p { color: var(--text-primary); }
.page-header p { color: var(--text-secondary); }

/* ---------- Sections ---------- */
.services-section, .case-studies-section, .team-section,
.blog-section, .contact-section, .maintenance-section,
.newsletter-section, .map-section, .security-overview,
.security-tools, .pricing, .cta { background: transparent; }

/* Services bottom CTA — clickable + dark-theme buttons */
.cta.scorp-cta,
.cta.scorp-cta * {
  pointer-events: auto !important;
}
.cta.scorp-cta {
  padding: 3.5rem 0 4rem;
  margin-top: 1rem;
  border-top: 1px solid var(--scorp-line);
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(90, 214, 232, 0.1), transparent 60%),
    transparent !important;
}
.cta.scorp-cta .cta-content h2 { color: var(--text-primary) !important; }
.cta.scorp-cta .cta-content p { color: var(--text-secondary) !important; }
.cta.scorp-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  pointer-events: auto !important;
}
.cta.scorp-cta .btn-primary {
  background: linear-gradient(135deg, #5ad6e8, #8b7cf0) !important;
  color: #04252c !important;
  border: none !important;
  pointer-events: auto !important;
}
.cta.scorp-cta .btn-secondary {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--scorp-line-strong) !important;
  pointer-events: auto !important;
}
.pricing-card .pricing-cta,
.maintenance-card .btn-primary {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.testimonials-section { background: rgba(6, 10, 16, 0.6); }

.section-subtitle { color: var(--scorp-cyan); }
.section-title { color: var(--text-primary); }
.section-description { color: var(--text-secondary); }

/* ---------- Glass card recipe ---------- */
.service-card, .case-study-card, .team-card, .testimonial-card,
.blog-card, .sidebar-widget, .featured-post, .pricing-card,
.maintenance-card, .tool-card, .security-service-card,
.contact-form-wrapper, .contact-method, .contact-cta-card,
.stat-item, .step, .feature, .tech-item {
  background: var(--scorp-panel);
  border: 1px solid var(--scorp-line);
  border-radius: 22px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
}
.service-card:hover, .case-study-card:hover, .team-card:hover,
.blog-card:hover, .pricing-card:hover, .tool-card:hover,
.featured-post:hover, .maintenance-card:hover {
  border-color: var(--scorp-line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(90, 214, 232, 0.1);
}

.service-card h3, .team-name, .blog-card-title, .blog-card-title a,
.case-study-title, .featured-title, .featured-title a,
.pricing-header h3, .testimonial-quote { color: var(--text-primary); }
.service-card p, .team-bio, .blog-card-excerpt, .case-study-summary,
.testimonial-content, .author-position, .team-position { color: var(--text-secondary); }

/* Soft circular icon wells — not hard blue squares */
.service-icon,
.security-service-card .service-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(90, 214, 232, 0.08) !important;
  border: 1px solid rgba(90, 214, 232, 0.28) !important;
  box-shadow: none !important;
  color: var(--scorp-cyan);
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.service-icon i,
.security-service-card .service-icon i {
  color: var(--scorp-cyan) !important;
  font-size: 1.2rem !important;
  background: none !important;
}
.service-card:hover .service-icon,
.security-service-card:hover .service-icon {
  background: rgba(90, 214, 232, 0.14) !important;
  border-color: rgba(90, 214, 232, 0.45) !important;
  transform: none;
}
.service-card:hover .service-icon i {
  color: #9aeff8 !important;
}

.services-grid {
  gap: 1.35rem;
}
.service-card {
  padding: 1.65rem 1.5rem 1.5rem !important;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.learn-more, .service-link, .blog-card-category { color: var(--scorp-cyan); }

.tech-tag, .blog-card-tags a, .tags-widget a {
  background: rgba(90, 214, 232, 0.1);
  color: var(--scorp-cyan);
  border: 1px solid rgba(90, 214, 232, 0.22);
}

/* Pagination / misc white chips */
.pagination a, .pagination span {
  background: var(--scorp-panel-solid);
  color: var(--text-primary);
  border: 1px solid var(--scorp-line);
}
.pagination a:hover { border-color: var(--scorp-line-strong); color: var(--scorp-cyan); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], input[type="url"],
select, textarea {
  background: rgba(8, 12, 18, 0.85) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--scorp-line) !important;
}
input::placeholder, textarea::placeholder { color: var(--scorp-muted) !important; }
input:focus, select:focus, textarea:focus {
  border-color: var(--scorp-line-strong) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 214, 232, 0.12) !important;
}
label, .form-group label { color: var(--text-secondary); }

/* ---------- Modals / banners ---------- */
.newsletter-modal-content, .cookie-consent {
  background: rgba(8, 12, 19, 0.96);
  border: 1px solid var(--scorp-line);
  color: var(--text-primary);
}
.cookie-consent p, .newsletter-modal-content p { color: var(--text-secondary); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.6) 0%, #04070c 100%);
  border-top: 1px solid var(--scorp-line);
  color: var(--text-secondary);
}
.footer-widget-title { color: var(--text-primary); }
.footer-links a, .footer-bottom-links a, .footer-contact-info a { color: var(--scorp-muted); }
.footer-links a:hover, .footer-bottom-links a:hover { color: var(--scorp-cyan); }
.footer-social a { color: var(--text-secondary); }
.footer-social a:hover { color: var(--scorp-cyan); }

/* ---------- Trust strip / marquee ---------- */
.trust-strip { background: rgba(6, 10, 16, 0.8); border-top: 1px solid var(--scorp-line); }

/* Quiet stack strip (replaces giant marquee) */
.tech-strip {
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--scorp-line);
  border-bottom: 1px solid transparent;
}
.tech-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.5rem;
}
.tech-strip-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--scorp-muted);
}
.tech-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
}
.tech-strip-list li {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(200, 220, 230, 0.55);
  padding: 0 0.85rem;
  position: relative;
}
.tech-strip-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(90, 214, 232, 0.45);
  transform: translateY(-50%);
}

/* One-page promo panel */
.special-promo {
  padding: 2rem 0 3.5rem;
  background: transparent;
}
.promo-panel {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.75rem 1.75rem 2.5rem;
  position: relative;
  background:
    radial-gradient(700px 240px at 80% 0%, rgba(90, 214, 232, 0.1), transparent 55%),
    radial-gradient(560px 220px at 12% 100%, rgba(56, 120, 180, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(14, 20, 30, 0.92), rgba(8, 12, 18, 0.96));
  border: 1px solid var(--scorp-line-strong);
  border-radius: 4px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}
.promo-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--scorp-cyan), transparent);
}
.promo-kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scorp-cyan);
}
.promo-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary) !important;
  line-height: 1.2;
}
.promo-price {
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(105deg, #7ee8f0, #5ad6e8 40%, #8ec5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.promo-expires {
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--scorp-muted) !important;
}
.promo-copy {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary) !important;
}
.promo-points {
  list-style: none;
  margin: 0 0 1.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
}
.promo-points li {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(226, 236, 244, 0.85);
  padding: 0 1rem;
  position: relative;
}
.promo-points li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(90, 214, 232, 0.5);
  transform: translateY(-50%);
}
.promo-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-weight: 700;
}

/* ---------- Back to top / helpers ---------- */
.back-to-top { background: rgba(13, 18, 26, 0.8); border: 1px solid var(--scorp-line); }

/* Home sections previously forced white — let the void through */
body.scorp-void .services-highlight,
body.scorp-void .cta-final { background: transparent; }
.cta-final h2 { color: var(--text-primary); }

/* ---------- Page-specific stylesheets / inline styles that outrank the theme ---------- */

/* Blog (css/blog.css paints cards white with higher specificity) */
.blog-section .blog-card,
.blog-section .sidebar-widget,
.featured-posts .featured-post {
  background: var(--scorp-panel) !important;
  border: 1px solid var(--scorp-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.blog-section .blog-card-title a, .blog-section .sidebar-widget h3,
.blog-section .recent-posts-widget h4 a { color: var(--text-primary); }
.blog-section .pagination a, .blog-section .pagination .page-link {
  background: var(--scorp-panel-solid) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--scorp-line);
}
.categories-widget a, .recent-posts-widget a { color: var(--text-secondary); }
.categories-widget a:hover, .recent-posts-widget a:hover { color: var(--scorp-cyan); }

/* Quote page (inline styles in quote.php) */
.quote-form-container {
  background: var(--scorp-panel) !important;
  border: 1px solid var(--scorp-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55) !important;
}
.quote-form-container h1 { color: var(--text-primary) !important; }
.quote-form-container label { color: var(--text-secondary); }
.service-checkbox {
  background: rgba(8, 12, 18, 0.7) !important;
  border: 1px solid var(--scorp-line) !important;
  color: var(--text-primary) !important;
}
.service-checkbox.selected {
  border-color: var(--scorp-line-strong) !important;
  background: rgba(90, 214, 232, 0.12) !important;
}
.show-more-link { color: var(--scorp-cyan); }
.budget-prefix { color: var(--text-secondary); }

/* Service detail page (inline styles in service.php) */
.service-hero {
  background: var(--scorp-panel) !important;
  border: 1px solid var(--scorp-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.service-hero h1 { color: var(--text-primary); }
.service-description-large { color: var(--text-secondary) !important; }
.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-features li {
  background: rgba(8, 14, 22, 0.55) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(90, 214, 232, 0.18) !important;
  border-radius: 999px !important;
  padding: 0.55rem 1rem !important;
  margin: 0 !important;
  font-size: 0.88rem;
  line-height: 1.35;
  display: flex !important;
  align-items: center;
}
.service-detail-section {
  background: var(--scorp-panel) !important;
  border: 1px solid var(--scorp-line);
  color: var(--text-primary);
}
.service-detail-section h1, .service-detail-section h2,
.service-detail-section h3 { color: var(--text-primary); }
.service-detail-section p, .service-detail-section li { color: var(--text-secondary); }

/* Case studies (inline styles in case-studies.php / case-study.php) */
.project-showcase, .filter-section { background: transparent !important; }
.project-card, .case-study-card {
  background: var(--scorp-panel) !important;
  border: 1px solid var(--scorp-line);
}
.tech-badge, .tech-tag {
  background: rgba(90, 214, 232, 0.1) !important;
  color: var(--scorp-cyan) !important;
  border: 1px solid rgba(90, 214, 232, 0.22);
}
.project-card h3, .project-card .project-title,
.project-card h4, .detail-title, .tech-title { color: var(--text-primary) !important; }
.project-card p, .project-client, .detail-text,
.project-card li { color: var(--text-secondary) !important; }
.project-overlay { background: rgba(5, 8, 13, 0.85) !important; color: var(--text-primary); }
.case-study-detail {
  background: var(--scorp-panel) !important;
  border: 1px solid var(--scorp-line);
  color: var(--text-primary);
}
.case-study-detail h1, .case-study-detail h2, .case-study-detail h3 { color: var(--text-primary); }
.case-study-detail p, .case-study-detail li { color: var(--text-secondary); }

/* Store product cards (Bootstrap-ish card markup) */
.card { background: var(--scorp-panel); border: 1px solid var(--scorp-line); color: var(--text-primary); }
.card h5, .card .card-title, .card-title a { color: var(--text-primary) !important; }
.card .card-text, .card p { color: var(--text-secondary); }

/* Readability: page titles sit over the bright 3D core */
.page-header h1, .page-header p,
.hero-title, .hero-subtitle,
.section-header .section-title, .section-header .section-description {
  text-shadow: 0 2px 18px rgba(3, 5, 8, 0.9), 0 0 3px rgba(3, 5, 8, 0.7);
}

/* Nav logo was drawn for a light bar — lift it out of the dark */
.logo img { filter: brightness(1.85) saturate(1.15) drop-shadow(0 0 12px rgba(90, 214, 232, 0.45)); }

/* ---------- Mobile hero text: keep words whole ---------- */
.hero-title,
.hero-subtitle,
.page-header h1,
.section-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
.hero-nowrap { white-space: nowrap; }
.hero-br { display: none; }
@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.75rem, 7.2vw, 2.35rem) !important;
    line-height: 1.2 !important;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-br { display: inline; }
  .hero-subtitle { font-size: 1rem; max-width: 32ch; margin-left: auto; margin-right: auto; }
}

/* ---------- Curtain reveal on load ---------- */
#scorp-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    radial-gradient(120% 90% at 100% 50%, rgba(90, 214, 232, 0.06), transparent 60%),
    linear-gradient(180deg, #05080d 0%, #030508 100%);
  transition: transform 1.05s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain-left { left: 0; border-right: 1px solid rgba(90, 214, 232, 0.35); }
.curtain-right {
  right: 0;
  border-left: 1px solid rgba(139, 124, 240, 0.35);
  background:
    radial-gradient(120% 90% at 0% 50%, rgba(139, 124, 240, 0.06), transparent 60%),
    linear-gradient(180deg, #05080d 0%, #030508 100%);
}
.curtain-brand {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: 0.45em;
  padding-left: 0.45em; /* optically recenter the tracking */
  color: #eef2f6;
  text-shadow: 0 0 24px rgba(90, 214, 232, 0.55);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.curtain-brand span {
  background: linear-gradient(90deg, #5ad6e8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.scorp-curtain-open .curtain-left { transform: translateX(-101%); }
html.scorp-curtain-open .curtain-right { transform: translateX(101%); }
html.scorp-curtain-open .curtain-brand { opacity: 0; transform: scale(1.08); }

/* ---------- Nexus AI chat widget ---------- */
#nexus-chat { position: fixed; right: 22px; bottom: 22px; z-index: 9500; font-family: 'Inter', sans-serif; }
#nexus-chat-fab {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--scorp-line-strong);
  background: linear-gradient(135deg, #0b2a33, #1a1636);
  color: var(--scorp-cyan);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(90, 214, 232, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#nexus-chat-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 36px rgba(0,0,0,0.6), 0 0 30px rgba(90,214,232,0.4); }
.nexus-fab-dot {
  position: absolute; top: 4px; right: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #4ade80; border: 2px solid #05080d;
  animation: nexusPulse 2.2s infinite;
}
@keyframes nexusPulse { 0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,0.5);} 50%{box-shadow:0 0 0 6px rgba(74,222,128,0);} }
#nexus-chat-panel[hidden] { display: none; }
#nexus-chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(370px, calc(100vw - 44px));
  height: 480px; max-height: calc(100vh - 140px);
  display: flex; flex-direction: column;
  background: rgba(7, 11, 17, 0.96);
  border: 1px solid var(--scorp-line-strong);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(90, 214, 232, 0.08);
  overflow: hidden;
}
.nexus-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(100deg, rgba(9, 30, 38, 0.9), rgba(26, 22, 54, 0.9));
  border-bottom: 1px solid var(--scorp-line);
}
.nexus-chat-title { color: var(--text-primary); font-weight: 700; font-size: 1rem; }
.nexus-chat-title span { display: block; font-weight: 400; font-size: 0.72rem; color: var(--scorp-cyan); letter-spacing: 0.06em; text-transform: uppercase; }
.nexus-chat-close { background: none; border: none; color: var(--scorp-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.nexus-chat-close:hover { color: #fff; }
.nexus-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.nexus-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; word-wrap: break-word; }
.nexus-msg a { color: var(--scorp-cyan); text-decoration: underline; }
.nexus-msg-ai { align-self: flex-start; background: rgba(90, 214, 232, 0.08); border: 1px solid rgba(90, 214, 232, 0.18); color: var(--text-primary); border-bottom-left-radius: 4px; }
.nexus-msg-me { align-self: flex-end; background: linear-gradient(135deg, #175a68, #3b3374); color: #fff; border-bottom-right-radius: 4px; }
.nexus-typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--scorp-cyan); opacity: 0.4; animation: nexusDots 1.2s infinite; }
.nexus-typing span:nth-child(2) { animation-delay: 0.2s; }
.nexus-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nexusDots { 0%,100%{opacity:0.25; transform:translateY(0);} 50%{opacity:1; transform:translateY(-3px);} }
.nexus-chat-inputrow { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--scorp-line); }
.nexus-chat-inputrow input {
  flex: 1; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem;
}
.nexus-chat-inputrow button {
  width: 44px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #5ad6e8, #8b7cf0);
  color: #04252c; font-size: 1rem; font-weight: 700;
  transition: transform 0.15s ease;
}
.nexus-chat-inputrow button:hover { transform: scale(1.06); }
/* Keep back-to-top clear of the chat bubble */
.back-to-top { bottom: 96px !important; }

/* Selection + scrollbar flavor */
::selection { background: rgba(90, 214, 232, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05080d; }
::-webkit-scrollbar-thumb { background: #1a2431; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #24405a; }

/* ============================================================
   UI/UX polish pass (2026-10-14) — spacing, readability, hover
   ============================================================ */

/* Section titles ("What We Do", etc.) went black on hover: styles.css
   clips a gradient into transparent text, and the dark text-shadow
   above paints through it. Replace with a cyan tint. */
.section-header:hover .section-title {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--scorp-cyan);
}
.section-header .section-title { transition: color 0.25s ease; }
.section-header:hover .section-subtitle { color: var(--scorp-cyan); }

/* Desktop nav: underline + soft tint on hover, readable contrast */
@media (min-width: 992px) {
  .main-nav .menu a {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .main-nav .menu a:hover,
  .main-nav .menu a:focus-visible {
    color: var(--scorp-cyan);
    background-color: rgba(90, 214, 232, 0.08);
  }
  .main-nav .menu a::after { left: 0.6rem; }
  .main-nav .menu a:hover::after,
  .main-nav .menu li.active a::after { width: calc(100% - 1.2rem); }
}

/* Readability: comfortable line-height and line length */
body { line-height: 1.65; }
p { line-height: 1.7; }
.section-description { max-width: 42rem; line-height: 1.7; }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-header p { max-width: 42rem; margin-left: auto; margin-right: auto; line-height: 1.7; }
.service-card p, .case-study-summary, .team-bio, .blog-card-excerpt { line-height: 1.7; font-size: 1rem; }
.service-card h3 { line-height: 1.3; margin-bottom: 0.75rem; }

/* Card grids: consistent gaps */
.services-grid, .case-studies-grid, .team-grid { gap: clamp(1.25rem, 3vw, 2rem); }

/* Buttons: consistent size/shape */
.btn { line-height: 1.2; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Promo: more breathing room */
.special-promo { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.promo-panel {
  max-width: 46rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
.promo-kicker { margin-bottom: 1.25rem; }
.promo-price { margin: 1rem 0 0.75rem; }
.promo-copy { max-width: 36rem; line-height: 1.75; margin-bottom: 2rem; }
.promo-points { gap: 0.6rem 0; margin-bottom: 2.25rem; }
.promo-points li { padding: 0 1.15rem; }

@media (max-width: 640px) {
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .special-promo { padding: 3.5rem 0; }
  .promo-copy { font-size: 1rem; }
  .promo-points { flex-direction: column; gap: 0.6rem; }
  .promo-points li:not(:last-child)::after { display: none; }
  .promo-cta { width: 100%; }
}

/* ============================================================
   UI/UX polish round 2 (2026-10-14)
   ============================================================ */

/* Layout: comfortable side gutters and a consistent content width */
.container {
  max-width: 1200px;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

/* Home hero: subtitle sat on the bright 3D core at low contrast */
.hero-subtitle {
  color: #d3dbe5 !important;
  text-shadow: 0 2px 14px rgba(3, 5, 8, 0.95), 0 0 4px rgba(3, 5, 8, 0.9);
}

/* Service cards: 3-up grid, CTA links pinned to the card bottom */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
.service-card { display: flex; flex-direction: column; }
.service-card > .learn-more,
.service-card > .service-link { margin-top: auto; padding-top: 0.75rem; align-self: flex-start; }
@media (max-width: 640px) {
  .service-card .service-icon { margin-left: 0 !important; margin-right: auto !important; }
}

/* Pricing cards: breathing room above the CTA */
.pricing-card .btn, .maintenance-card .btn { margin-top: 1.25rem; }

/* Footer bottom row: copyright and links on one baseline */
.footer-bottom-content p { margin: 0; }
.footer-bottom-content { align-items: center; padding: 0.5rem 0; }
@media (max-width: 640px) {
  .footer-bottom-content { justify-content: center; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
}

/* Forms: visible focus, consistent fonts, comfortable tap targets */
input, select, textarea, button { font-family: inherit; }
textarea { font-family: var(--font-primary) !important; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--scorp-cyan);
  outline-offset: 2px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--scorp-cyan); }

/* Quote form: match site buttons and checkbox cards */
.quote-form .service-checkbox { min-height: 48px; cursor: pointer; }
.quote-form .service-checkbox input[type="checkbox"] { flex: 0 0 auto; }
.quote-form button[type="submit"] {
  background: var(--gradient-primary) !important;
  color: #04252c !important;
  border: none !important;
  border-radius: 999px !important;
  min-height: 48px;
  padding: 0.85rem 2rem !important;
  font-weight: 700;
}
@media (max-width: 640px) {
  .quote-form button[type="submit"] { width: 100%; }
}

/* Offer banner: keep the close button on the same row on every page */
.special-offer-banner .container { flex-wrap: nowrap; flex-direction: row; }

/* Header keeps the wider original width so nav + CTAs don't crowd */
.site-header .container { max-width: 1320px; padding-left: 1rem; padding-right: 1rem; }

/* Contact map: OSM tiles darkened to match the theme */
.map-dark-tiles { filter: grayscale(1) invert(1) brightness(0.75) contrast(1.15); }

/* Blog wire: fixed-width source badges so headlines line up */
body .wire-src { display: inline-flex; align-items: center; min-width: 7.25rem; justify-content: center; flex-shrink: 0; box-sizing: border-box; }

/* Store: dark filter pills, title clear of the fixed header */
section.product-list { padding-top: clamp(6.5rem, 14vw, 8rem) !important; }
body #prodTabs .nav-link {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--scorp-line);
  min-height: 40px;
}
body #prodTabs .nav-link:hover { background: rgba(90, 214, 232, 0.08); color: var(--text-primary); }
body #prodTabs .nav-link.active {
  background: rgba(90, 214, 232, 0.14);
  color: var(--scorp-cyan);
  border-color: var(--scorp-line-strong);
}
.product-item .card-title { color: var(--text-primary) !important; }

/* ============================================================
   Round 3 (2026-10-14): contrast (WCAG AA), credibility, CTAs
   ============================================================ */
:root {
  --text-secondary: #b9c3cf;   /* was #a8b3c2 */
  --scorp-muted: #a3adbb;      /* was #8b95a5 */
  --scorp-ink: #04252c;        /* dark text for cyan/violet fills */
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Filled buttons + badges: dark ink on the cyan→violet gradient (white was ~2:1) */
.btn-primary, .btn-accent, .pricing-cta, .promo-cta, .btn-primary.btn-sm,
.pricing-badge, .maintenance-badge, .banner-btn, .cs-live, .btn-profile,
.cookie-buttons .btn-primary {
  background: linear-gradient(135deg, #5ad6e8, #8b7cf0) !important;
  color: var(--scorp-ink) !important;
  border: none !important;
  font-weight: 700;
}
.btn-primary:hover, .btn-accent:hover, .pricing-cta:hover, .promo-cta:hover {
  color: var(--scorp-ink) !important;
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(90, 214, 232, 0.25);
}
/* Outline / secondary buttons: solid dark fill so they read over the 3D scene */
.btn-secondary, .btn-primary-outline, .btn-outline-light {
  background: rgba(5, 9, 14, 0.82) !important;
  color: #eef6f8 !important;
  border: 1px solid rgba(90, 214, 232, 0.55) !important;
}
.btn-secondary:hover, .btn-primary-outline:hover, .btn-outline-light:hover {
  background: rgba(90, 214, 232, 0.16) !important;
  color: #ffffff !important;
}
.btn i { margin-right: 0.15rem; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* Page headers sit on the bright 3D core: add a soft scrim behind the copy */
.page-header, .ab-header, .cs-header, .ct-header, .wire-header, .service-hero {
  position: relative;
  isolation: isolate;
}
.page-header::before, .ab-header::before, .cs-header::before,
.ct-header::before, .wire-header::before, .service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 78% at 50% 58%,
              rgba(3, 5, 8, 0.9) 0%, rgba(3, 5, 8, 0.78) 45%, rgba(3, 5, 8, 0.35) 75%, transparent 100%);
}
@media (max-width: 640px) {
  .page-header::before, .ab-header::before, .cs-header::before,
  .ct-header::before, .wire-header::before, .service-hero::before {
    background: linear-gradient(180deg, rgba(3, 5, 8, 0.55), rgba(3, 5, 8, 0.86) 30%, rgba(3, 5, 8, 0.86) 80%, rgba(3, 5, 8, 0.4));
  }
}
.page-header p, .ab-header p, .cs-header p, .ct-header p, .wire-header p, .service-hero p {
  color: #d5dde6 !important;
}

/* Home hero: subtitle gets a glass panel so it never sits bare on the sculpture */
.hero-subtitle {
  background: rgba(4, 7, 12, 0.78);
  border: 1px solid var(--scorp-line);
  border-radius: 16px;
  padding: 1.1rem 1.35rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e3e9f0 !important;
}

/* Badges / small labels over imagery */
.cs-cat { background: rgba(3, 5, 8, 0.9) !important; color: #7fe3f0 !important; }
.qr-badge { background: #34d399 !important; color: #053b2c !important; font-weight: 700; }
.wire-updated { color: #b9c3cf !important; }
.kicker, .section-subtitle, .label { color: #6fe0ef; }

/* Forms: readable labels, placeholders and opaque panels */
::placeholder { color: #8f9bab !important; opacity: 1; }
.quote-form-container { background: rgba(9, 13, 20, 0.94) !important; }
.quote-form label { color: #d5dde6 !important; }
.ct-form-card { background: rgba(9, 13, 20, 0.94) !important; }

/* Leaflet attribution on the dark map */
.leaflet-container .leaflet-control-attribution {
  background: rgba(3, 5, 8, 0.85) !important;
  color: #c9d3de !important;
}
.leaflet-container .leaflet-control-attribution a { color: #7fe3f0 !important; }

/* Footer: subscribe form + quote CTA */
.footer-links a, .footer-contact-info, .footer-contact-info a, .footer-bottom-links a,
.site-footer p, .copyright p { color: #c3ccd7 !important; }
.footer-links a:hover, .footer-contact-info a:hover, .footer-bottom-links a:hover { color: var(--scorp-cyan) !important; }
.footer-subscribe { margin: 1rem 0 1.1rem; }
.footer-subscribe label { display: block; font-size: 0.85rem; color: #d5dde6; margin-bottom: 0.5rem; line-height: 1.45; }
.footer-subscribe-row { display: flex; gap: 0.5rem; }
.footer-subscribe input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0.55rem 0.8rem;
  background: rgba(3, 5, 8, 0.7); color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; font-size: 0.92rem;
}
.footer-subscribe input:focus { border-color: var(--scorp-cyan); outline: none; box-shadow: 0 0 0 3px rgba(90, 214, 232, 0.2); }
.footer-subscribe button {
  min-height: 44px; padding: 0 1rem; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #5ad6e8, #8b7cf0); color: var(--scorp-ink); font-weight: 700; font-size: 0.9rem;
}
.footer-subscribe-msg { font-size: 0.82rem; margin: 0.45rem 0 0 !important; min-height: 1.1em; color: #7fe3f0 !important; }
.footer-quote-btn { margin-top: 0.75rem; min-height: 44px; padding: 0.6rem 1.2rem; border-radius: 999px; font-size: 0.9rem; }

/* Home: section intro, "Why ScorpTech", final CTA */
.services-highlight .section-description { margin-top: 0.75rem; }
.why-scorp { padding-top: clamp(3rem, 7vw, 5rem) !important; }
.why-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-item {
  background: var(--scorp-panel); border: 1px solid var(--scorp-line); border-radius: 18px;
  padding: 1.5rem 1.4rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid rgba(90, 214, 232, 0.5);
}
.why-item strong { display: block; font-family: var(--font-secondary); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.45rem; }
.why-item span { color: var(--text-secondary); line-height: 1.65; font-size: 0.97rem; }
.cta-final h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.cta-final-copy { max-width: 38rem; margin: 0 auto 1.75rem !important; color: var(--text-secondary); font-size: 1.08rem; }
.cta-final .container { text-align: center; }

/* About: credentials */
.ab-creds { margin: 3.5rem 0 2.5rem; }
.ab-cred-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 1.5rem; }
.ab-cred {
  display: flex; gap: 0.95rem; align-items: flex-start;
  background: var(--scorp-panel); border: 1px solid var(--scorp-line); border-radius: 18px; padding: 1.3rem 1.25rem;
}
.ab-cred i {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--scorp-cyan); background: rgba(90, 214, 232, 0.08); border: 1px solid rgba(90, 214, 232, 0.28);
}
.ab-cred h3 { font-size: 1.02rem; margin: 0 0 0.3rem; color: var(--text-primary); line-height: 1.35; }
.ab-cred p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.55; }
.ab-stats span { color: var(--text-secondary) !important; }

/* Round 3 fixes after audit */
.hero-subtitle { opacity: 1 !important; }          /* styles.css had opacity: .5 */
.site-footer a.footer-quote-btn, .site-footer a.footer-quote-btn:hover { color: var(--scorp-ink) !important; }
.product-item span.qr-badge { background: #34d399 !important; color: #053b2c !important; }
.live-support { display: none !important; }        /* dead "#" link duplicated the chat bubble */
/* Slightly lighter fill keeps dark ink at 6:1+ across the whole gradient */
.btn-primary, .btn-accent, .pricing-cta, .promo-cta, .btn-primary.btn-sm,
.pricing-badge, .maintenance-badge, .banner-btn, .cs-live, .btn-profile,
.footer-subscribe button, .cookie-buttons .btn-primary {
  background: linear-gradient(135deg, #6fe0ef, #a99cf5) !important;
}
.cs-cat { background: #05080d !important; color: #8fe9f4 !important; border-color: rgba(90, 214, 232, 0.45) !important; }
.wire-chip { color: #d5dde6 !important; background: rgba(5, 9, 14, 0.8) !important; }
.footer-widget.about-widget > p { font-size: 0.95rem; line-height: 1.65; }
.footer-subscribe-row { flex-wrap: wrap; }
.footer-subscribe-row input { flex: 1 1 160px; }
.footer-subscribe-row button { flex: 0 0 auto; }
.ab-creds .ab-sec-head { text-align: center; }
.ab-creds .ab-sec-head .label {
  display: block; color: #6fe0ef; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.ab-creds .ab-sec-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
