:root {
  --ink: #f9fafb;
  --ink-muted: #d1d5db;
  --panel: rgba(16, 0, 32, 0.82);
  --panel-solid: #100020;
  --panel-2: #15101f;
  --line: rgba(176, 128, 240, 0.24);
  --line-strong: rgba(176, 128, 240, 0.42);
}

body {
  background:
    linear-gradient(115deg, rgba(92, 22, 239, 0.18) 0 1px, transparent 1px 18px),
    linear-gradient(155deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 52% 0%, rgba(92, 22, 239, 0.28), transparent 34rem),
    linear-gradient(180deg, #08050d 0%, #0d0715 42%, #f8f9fa 100%);
  background-attachment: fixed;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 40%, transparent 82%);
  animation: grid-drift 18s linear infinite;
}

.site-header {
  background: rgba(8, 5, 13, 0.82);
  border-bottom-color: rgba(176, 128, 240, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.brand,
.site-nav a,
.menu-toggle {
  color: var(--ink);
}

.site-nav {
  color: var(--ink-muted);
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-header.nav-open .site-nav {
  background: #100020;
  border-color: var(--line-strong);
}

.hero,
.split-hero,
.landing-hero {
  position: relative;
  isolation: isolate;
}

.hero::before,
.split-hero::before,
.landing-hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 4vw, 3rem);
  z-index: -1;
  border: 1px solid rgba(176, 128, 240, 0.16);
  clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 64px 100%, 0 calc(100% - 64px));
}

.hero::after,
.landing-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  top: clamp(5rem, 12vw, 9rem);
  width: min(34vw, 420px);
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow:
    0 80px 0 rgba(176, 128, 240, 0.34),
    -140px 160px 0 rgba(92, 22, 239, 0.34);
  animation: line-scan 5.5s ease-in-out infinite;
}

.hero h1,
.split-hero h1,
.landing-hero h1,
.article h1 {
  color: #ffffff;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.lead,
.section-head p:not(.eyebrow),
.card p,
.service-row p,
.post-row p,
.check-list li,
.article p,
.form-note,
.site-footer {
  color: var(--ink-muted);
}

section {
  position: relative;
}

section:not(.cta-band):not(.hero):not(.landing-hero):not(.split-hero):not(.article) {
  margin-top: clamp(0.8rem, 2vw, 1.5rem);
}

.section-head h2,
.two-col h3,
.card h3,
.service-row span,
.post-row span,
.article h2 {
  color: #ffffff;
}

.card,
.service-row,
.post-row,
.two-col > div,
.form,
.article-cta,
.hero__panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border-color: var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.card,
.service-row,
.post-row {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.service-row:hover,
.post-row:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 80px rgba(92, 22, 239, 0.18);
}

.hero__panel {
  overflow: hidden;
  position: relative;
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.1) 45%, transparent 58%);
  transform: translateX(-120%);
  animation: panel-sheen 6s ease-in-out infinite;
}

.metric {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.metric span {
  color: #d1d5db;
}

.proof li {
  background: rgba(92, 22, 239, 0.2);
  color: #ffffff;
  border-color: var(--line-strong);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn--primary,
.header-action {
  box-shadow: 0 16px 38px rgba(92, 22, 239, 0.38);
}

.btn,
.header-action {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover,
.header-action:hover {
  transform: translateY(-2px);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  color: #111827;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(92, 22, 239, 0.32), transparent 44%),
    linear-gradient(180deg, #100020, #08050d);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  background: #08050d;
  border-top-color: rgba(176, 128, 240, 0.18);
}

.site-footer strong,
.site-footer h2 {
  color: #ffffff;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, -72px 72px; }
}

@keyframes line-scan {
  0%, 100% { opacity: 0.34; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(-28px); }
}

@keyframes panel-sheen {
  0%, 58% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 759px) {
  body {
    background:
      linear-gradient(145deg, rgba(92, 22, 239, 0.2) 0 1px, transparent 1px 18px),
      linear-gradient(180deg, #08050d 0%, #0d0715 62%, #12091e 100%);
  }

  .hero::after,
  .landing-hero::after {
    width: 58vw;
    top: 7rem;
    opacity: 0.62;
  }

  .site-header.nav-open .site-nav {
    top: 72px;
  }
}
