@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --site-ink: #f7fbff;
  --site-text: #d7e2ef;
  --site-muted: #91a3b8;
  --site-paper: #091018;
  --site-panel: rgba(13, 24, 34, .88);
  --site-panel-strong: rgba(18, 32, 44, .96);
  --site-line: rgba(145, 196, 255, .22);
  --site-cyan: #25d7ff;
  --site-green: #b8f252;
  --site-coral: #ff6b68;
  --site-violet: #a990ff;
  --site-yellow: #ffd166;
  --site-shadow: 0 24px 72px rgba(0, 0, 0, .34);
  --site-shadow-lift: 0 30px 90px rgba(0, 0, 0, .48);
  --site-spectrum: linear-gradient(90deg, var(--site-cyan), var(--site-green), var(--site-yellow), var(--site-coral), var(--site-violet));
}

html {
  background: var(--site-paper);
}

body {
  color: var(--site-text) !important;
  background:
    linear-gradient(115deg, rgba(37, 215, 255, .12), transparent 32%),
    linear-gradient(245deg, rgba(169, 144, 255, .14), transparent 34%),
    linear-gradient(180deg, #091018 0%, #101923 48%, #071018 100%) !important;
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(90deg, rgba(145, 196, 255, .14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(145, 196, 255, .09) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 49%, rgba(184, 242, 82, .13) 49.5% 50.5%, transparent 51%);
  background-size: 54px 54px, 54px 54px, 180px 180px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 46%, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 42vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(37, 215, 255, .08));
}

main {
  animation: sitePageIn .46s ease both;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--site-line) !important;
  background: rgba(7, 16, 24, .82) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .26) !important;
}

.site-header::after {
  content: "";
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  right: clamp(18px, 4vw, 54px);
  bottom: -1px;
  height: 2px;
  background: var(--site-spectrum);
  opacity: .75;
}

.brand-mark {
  color: #071018 !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 42%),
    conic-gradient(from 120deg, var(--site-cyan), var(--site-green), var(--site-yellow), var(--site-coral), var(--site-violet), var(--site-cyan)) !important;
  box-shadow: 0 14px 34px rgba(37, 215, 255, .22) !important;
  font-family: "Space Grotesk", Arial, sans-serif !important;
}

.brand strong,
h1,
h2,
h3 {
  color: var(--site-ink) !important;
}

h1,
h2,
h3,
.brand strong {
  font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif !important;
  font-weight: 700 !important;
}

h1 {
  text-wrap: balance;
}

.brand small,
p,
li,
dd,
.hero-lede,
.section-heading p:not(.eyebrow),
.about-copy,
.portrait-card p,
.service-list p,
.systems-grid p,
.trust-grid p,
.contact-copy p,
.site-footer {
  color: var(--site-muted) !important;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--site-green) !important;
  font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-spectrum);
}

.summary-card dt,
.link-more,
.open,
.site-footer a {
  color: var(--site-cyan) !important;
}

.nav-links a {
  position: relative;
  color: #b7c6d7 !important;
  transition: color .18s ease, transform .18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-spectrum);
  opacity: 0;
  transform: scaleX(.6);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-links a:hover {
  color: var(--site-ink) !important;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.button,
.asset-modal__close,
button {
  border-radius: 6px !important;
  font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease !important;
}

.button.primary {
  color: #061018 !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-green)) !important;
  box-shadow: 0 18px 42px rgba(37, 215, 255, .22) !important;
}

.button.secondary {
  color: var(--site-ink) !important;
  border-color: rgba(145, 196, 255, .28) !important;
  background: rgba(255, 255, 255, .06) !important;
}

.button:hover,
.asset-modal__close:hover,
button:hover {
  transform: translateY(-2px);
}

.summary-card,
.portrait-card,
.service-list article,
.support-grid article,
.systems-grid article,
.steps li,
.trust-grid p,
.lead-form,
.quote-form,
.scheduler-box,
.resource-grid article,
.testimonial-grid article,
.faq-list article,
.article-body,
.card,
.service-card,
.specialty-card,
.resource-card,
.testimonial-card,
.fit-card,
.process-card,
.detail-card {
  position: relative;
  overflow: hidden;
  border-color: var(--site-line) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    var(--site-panel) !important;
  box-shadow: var(--site-shadow) !important;
  backdrop-filter: blur(14px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease !important;
}

.summary-card::before,
.portrait-card::before,
.service-list article::before,
.support-grid article::before,
.systems-grid article::before,
.steps li::before,
.trust-grid p::before,
.lead-form::before,
.quote-form::before,
.scheduler-box::before,
.resource-grid article::before,
.testimonial-grid article::before,
.faq-list article::before,
.article-body::before,
.card::before,
.service-card::before,
.specialty-card::before,
.resource-card::before,
.testimonial-card::before,
.fit-card::before,
.process-card::before,
.detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--site-spectrum);
  opacity: .9;
}

.service-list article:hover,
.support-grid article:hover,
.systems-grid article:hover,
.steps li:hover,
.resource-grid article:hover,
.testimonial-grid article:hover,
.faq-list article:hover,
.article-body:hover,
.card:hover,
.service-card:hover,
.specialty-card:hover,
.resource-card:hover,
.testimonial-card:hover,
.fit-card:hover,
.process-card:hover,
.detail-card:hover,
article[class*="card"]:hover,
a[class*="card"]:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(37, 215, 255, .46) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)),
    var(--site-panel-strong) !important;
  box-shadow: var(--site-shadow-lift), 0 0 0 1px rgba(37, 215, 255, .12) !important;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom-color: var(--site-line) !important;
  background:
    linear-gradient(135deg, rgba(37, 215, 255, .18), transparent 34%),
    linear-gradient(225deg, rgba(255, 107, 104, .13), transparent 36%),
    linear-gradient(180deg, #101c28 0%, #0b141d 100%) !important;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 7vw, 90px);
  top: clamp(32px, 8vw, 92px);
  width: min(36vw, 440px);
  height: min(34vw, 380px);
  pointer-events: none;
  opacity: .64;
  background:
    linear-gradient(90deg, rgba(37, 215, 255, .28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(184, 242, 82, .18) 1px, transparent 1px);
  background-size: 22px 22px;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 82%);
  animation: siteDrift 10s ease-in-out infinite;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.services-section,
.systems-section,
.trust-section,
.practice-support-section,
.process-section,
.contact-section {
  background:
    linear-gradient(90deg, rgba(37, 215, 255, .08), transparent 40%),
    linear-gradient(180deg, rgba(7, 16, 24, .78), rgba(13, 24, 34, .88)) !important;
}

.service-list h3::before,
.systems-grid h3::before,
.support-grid h3::before,
.services-polish .article-body h2::before,
.specialty-polish .service-list article h3::before,
.workflow-track article span,
.billing-snapshot span,
.lane-icon {
  background: var(--site-spectrum) !important;
}

.portrait,
.services-hero-art,
.specialty-hero-art,
.resource-hero-art,
.portrait-glass {
  border-color: rgba(145, 196, 255, .28) !important;
  background: #111d29 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34), 0 0 0 1px rgba(37, 215, 255, .12) !important;
}

.layered-section,
.viewer-note-banner {
  background:
    linear-gradient(135deg, rgba(37, 215, 255, .18), rgba(169, 144, 255, .18)),
    linear-gradient(135deg, #0b141d, #182536 62%, #243047) !important;
}

.layered-section h2,
.layered-section .eyebrow,
.viewer-note-banner h2,
.viewer-note-banner .eyebrow {
  color: var(--site-ink) !important;
}

.layered-section p,
.viewer-note-banner p {
  color: #c8d5e3 !important;
}

.link-more::after {
  content: "->";
  transition: transform .18s ease;
}

article:hover .link-more::after,
.card-link:hover .link-more::after {
  transform: translateX(5px);
}

input,
select,
textarea {
  color: var(--site-ink) !important;
  border-color: rgba(145, 196, 255, .28) !important;
  background: rgba(4, 12, 19, .86) !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(37, 215, 255, .7) !important;
  box-shadow: 0 0 0 4px rgba(37, 215, 255, .14) !important;
}

.site-footer {
  border-top-color: var(--site-line) !important;
  background: rgba(7, 16, 24, .92) !important;
}

@keyframes sitePageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes siteDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, 12px, 0);
  }
}

@media (max-width: 820px) {
  .hero,
  .page-hero {
    background:
      linear-gradient(135deg, rgba(37, 215, 255, .14), transparent 42%),
      linear-gradient(180deg, #101c28, #071018) !important;
  }

  .hero::after,
  .page-hero::after {
    width: 62vw;
    height: 220px;
    opacity: .28;
  }
}

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