/* Neon Grid: futuristic, tech-forward, high-energy dark interface. */
:root {
  --neon-bg: #070a14;
  --neon-panel: #0d1424;
  --neon-cyan: #22d3ee;
  --neon-pink: #f472b6;
  --neon-lime: #a3e635;
}

html body {
  color: #e6faff !important;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 114, 182, .07) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, .22), transparent 24rem),
    radial-gradient(circle at 88% 20%, rgba(244, 114, 182, .18), transparent 26rem),
    #070a14 !important;
  background-size: 48px 48px, 48px 48px, auto, auto, auto !important;
}

html body .site-header {
  background: rgba(7, 10, 20, .9) !important;
  border-bottom: 1px solid rgba(34, 211, 238, .28) !important;
}

html body h1,
html body h2,
html body h3 {
  color: #e6faff !important;
  font-family: "Trebuchet MS", Inter, Arial, sans-serif !important;
}

html body .hero,
html body .page-hero,
html body .studio-hero,
html body .service-detail-hero {
  background:
    linear-gradient(135deg, rgba(13, 20, 36, .96), rgba(17, 24, 39, .82)),
    radial-gradient(circle at 90% 12%, rgba(244, 114, 182, .25), transparent 18rem) !important;
  border: 1px solid rgba(34, 211, 238, .32) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, .12), 0 28px 80px rgba(0, 0, 0, .42) !important;
}

html body .summary-card,
html body .portrait-card,
html body .card,
html body .card-link,
html body article[class*="card"],
html body .service-card,
html body .specialty-card,
html body .resource-card,
html body .testimonial-card,
html body .fit-card,
html body .process-card,
html body .detail-card,
html body .detail-module,
html body .detail-console {
  color: #e6faff !important;
  background: rgba(13, 20, 36, .9) !important;
  border: 1px solid rgba(34, 211, 238, .28) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, .08), 0 18px 60px rgba(0, 0, 0, .32) !important;
}

html body .card:hover,
html body .card-link:hover,
html body article[class*="card"]:hover {
  transform: translateY(-4px) !important;
  color: #f2fdff !important;
  background: rgba(9, 18, 31, .96) !important;
  border-color: rgba(34, 211, 238, .58) !important;
  box-shadow: 0 0 28px rgba(34, 211, 238, .18), 0 22px 70px rgba(0, 0, 0, .4) !important;
}

html body .summary-card *,
html body .portrait-card *,
html body .card *,
html body .card-link *,
html body article[class*="card"] *,
html body .service-card *,
html body .specialty-card *,
html body .resource-card *,
html body .testimonial-card *,
html body .fit-card *,
html body .process-card *,
html body .detail-card *,
html body .detail-module *,
html body .detail-console * {
  color: #e6faff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .card:hover *,
html body .card-link:hover *,
html body article[class*="card"]:hover * {
  color: #f2fdff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body main .grid .card > span:first-child,
html body main .grid .card .eyebrow,
html body main .grid .card .tag,
html body main .grid .card .badge {
  color: #061018 !important;
  background: linear-gradient(135deg, #22d3ee, #a3e635) !important;
}

html body main .grid .card strong,
html body main .grid .card .open,
html body main .grid .card .link-more,
html body main .grid .card:hover strong,
html body main .grid .card:hover .open,
html body main .grid .card:hover .link-more {
  color: #f2fdff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* Interior layout identity: command-center grid with compact modules. */
html body.vitalweb-remix main {
  display: grid !important;
  gap: clamp(22px, 4vw, 42px) !important;
}

html body.vitalweb-remix .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr) !important;
  gap: 18px !important;
  border-radius: 4px !important;
  border-left: 3px solid #22d3ee !important;
  border-right: 3px solid #f472b6 !important;
}

html body.vitalweb-remix .summary-card {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body.vitalweb-remix .service-list,
html body.vitalweb-remix .support-grid,
html body.vitalweb-remix .systems-grid,
html body.vitalweb-remix .trust-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body.vitalweb-remix .service-list article,
html body.vitalweb-remix .support-grid article,
html body.vitalweb-remix .systems-grid article,
html body.vitalweb-remix .trust-grid article {
  border-radius: 4px !important;
  min-height: 190px !important;
  padding: clamp(24px, 2.6vw, 34px) !important;
  min-width: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

html body.vitalweb-remix .summary-card,
html body.vitalweb-remix .board-card,
html body.vitalweb-remix .contact-panel,
html body.vitalweb-remix .trust-panel,
html body.vitalweb-remix .detail-card,
html body.vitalweb-remix .detail-module,
html body.vitalweb-remix .detail-console {
  padding: clamp(24px, 2.8vw, 36px) !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  color: #071018 !important;
  background: linear-gradient(135deg, #22d3ee, #a3e635) !important;
  border: 1px solid rgba(230, 250, 255, .2) !important;
  border-radius: 4px !important;
}

html body .button.secondary {
  color: #e6faff !important;
  background: rgba(13, 20, 36, .72) !important;
}

html body .eyebrow,
html body .tag,
html body .badge,
html body .pill,
html body .label,
html body .kicker {
  color: #071018 !important;
  background: linear-gradient(135deg, #22d3ee, #f472b6) !important;
  border-radius: 4px !important;
}

/* Card spacing safety pass: keeps text from hugging card borders on all sample pages. */
html body :where(.card, .card-link, .summary-card, .portrait-card, .service-card, .specialty-card, .resource-card, .testimonial-card, .fit-card, .process-card, .detail-card, .board-card, .contact-panel, .trust-panel, .detail-module, .detail-console),
html body :where(.service-list, .support-grid, .systems-grid, .trust-grid, .mosaic-grid, .reason-stack, .fit-ribbon) > article,
html body :where(.process-lane) li {
  box-sizing: border-box !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
}

/* Form spacing safety pass: keeps labels and controls comfortably inside contact forms. */
html body :where(form, .lead-form, .quote-form, .managed-form) {
  box-sizing: border-box !important;
  padding: clamp(22px, 2.6vw, 34px) !important;
}

/* Final readability/media safety pass: keeps page images contained and tiny marks readable. */
html body img {
  max-width: 100% !important;
}

html body :where(.brand-mark, .tag, .badge, .label, .kicker) {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body :where(.brand-mark) {
  color: #102326 !important;
  background: #f7fff9 !important;
  border: 1px solid rgba(16, 35, 38, .14) !important;
}

html body:not(.vitalweb-remix) main .grid .card,
html body:not(.vitalweb-remix) main .grid .card:visited {
  color: inherit !important;
  overflow: hidden !important;
}

html body:not(.vitalweb-remix) main .grid .card * {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Contact form safety pass: keeps compact demo forms readable on every page. */
html body form.contact-panel,
html body .contact-panel:is(form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  align-content: start !important;
}

html body form.contact-panel label,
html body .contact-panel:is(form) label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: inherit !important;
  font-weight: 700 !important;
}

html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font: inherit !important;
}

html body form.contact-panel textarea,
html body .contact-panel:is(form) textarea {
  min-height: 116px !important;
  resize: vertical;
}

/* Form field readability pass: prevents dark inherited controls on light contact layouts. */
html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  color: #172126 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(23, 33, 38, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html body form.contact-panel input::placeholder,
html body form.contact-panel textarea::placeholder,
html body .contact-panel:is(form) input::placeholder,
html body .contact-panel:is(form) textarea::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}
