:root {
  --nexus-page-width: min(1280px, 94vw);
  --nexus-surface: rgba(7, 13, 18, 0.7);
  --nexus-surface-strong: rgba(4, 8, 12, 0.82);
  --nexus-border: rgba(145, 245, 255, 0.15);
  --nexus-border-strong: rgba(145, 245, 255, 0.32);
  --nexus-text: #defcff;
  --nexus-text-soft: rgba(222, 252, 255, 0.8);
  --nexus-text-muted: rgba(222, 252, 255, 0.58);
  --nexus-accent: #49dec5;
  --nexus-accent-2: #91f5ff;
  --nexus-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --nexus-glow: 0 0 40px rgba(73, 222, 197, 0.18);
  --nexus-radius-xl: 30px;
  --nexus-radius-lg: 26px;
  --nexus-radius-md: 20px;
}

body.home {
  background:
    radial-gradient(circle at top, rgba(73, 222, 197, 0.08), rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, #020507 0%, #050a0d 38%, #020507 100%);
}

body.home #mainpage-content.nexus-front-page {
  position: relative;
  top: auto;
  width: 100%;
  height: auto;
  pointer-events: auto;
  background: transparent;
  z-index: 1;
  isolation: isolate;
}

body.home #mainpage-content.nexus-front-page::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 100svh;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(73, 222, 197, 0.16), rgba(73, 222, 197, 0) 26%),
    radial-gradient(circle at 80% 28%, rgba(145, 245, 255, 0.1), rgba(145, 245, 255, 0) 24%),
    linear-gradient(180deg, rgba(2, 5, 7, 0.02), rgba(2, 5, 7, 0.36) 56%, rgba(5, 10, 13, 0.84) 86%, #050a0d 100%);
}

body.home #particles-js {
  top: 0;
  bottom: auto;
  height: 100svh;
  background: transparent;
  overflow: hidden;
  z-index: -3;
}

body.home :is(#particles-js canvas, #particle-canvas) {
  width: 100% !important;
  height: 100% !important;
}

body.home #menu {
  background: linear-gradient(180deg, rgba(2, 5, 7, 0.95), rgba(2, 5, 7, 0.72));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(145, 245, 255, 0.08);
}

body.home #menu-mobile {
  background: linear-gradient(180deg, rgba(2, 5, 7, 0.92), rgba(2, 5, 7, 0.72));
  border-bottom: 1px solid rgba(145, 245, 255, 0.08);
}

body.admin-bar.home #menu {
  top: 32px;
}

body.home .content-padding {
  width: var(--nexus-page-width);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  background: transparent;
}

body.home .nexus-front-page :is(h1, h2, h3, h4, p, li, a, span) {
  color: var(--nexus-text);
}

body.home .nexus-front-page a.nexus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.45rem;
  border: 1px solid var(--nexus-border-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--nexus-text);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

body.home .nexus-front-page a.nexus-button:hover {
  transform: translateY(-2px);
}

body.home .nexus-front-page a.nexus-button--primary {
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.22), rgba(145, 245, 255, 0.12));
  box-shadow: var(--nexus-glow);
}

body.home .nexus-front-page a.nexus-button--primary:hover {
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.34), rgba(145, 245, 255, 0.2));
  border-color: rgba(145, 245, 255, 0.72);
}

body.home .nexus-front-page a.nexus-button--secondary {
  background: rgba(8, 15, 20, 0.62);
}

body.home .nexus-front-page a.nexus-button--secondary:hover {
  background: rgba(73, 222, 197, 0.1);
}

.nexus-front-page .nexus-eyebrow,
.nexus-front-page .nexus-section-kicker,
.nexus-front-page .nexus-case-study__label,
.nexus-front-page .nexus-friction-card__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nexus-accent);
  font-weight: 600;
}

.nexus-front-page .nexus-section-heading {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
}

.nexus-front-page .nexus-section-heading--left {
  margin-left: 0;
  text-align: left;
}

.nexus-front-page .nexus-section-heading--wide {
  max-width: 940px;
}

.nexus-front-page .nexus-section-title {
  margin: 0.45rem 0 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.nexus-front-page .nexus-section-text {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.75;
  color: var(--nexus-text-soft);
}

.nexus-front-page .nexus-card {
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-lg);
  background:
    linear-gradient(180deg, rgba(10, 18, 25, 0.82), rgba(4, 8, 12, 0.7)),
    linear-gradient(135deg, rgba(73, 222, 197, 0.05), rgba(145, 245, 255, 0.02));
  box-shadow: var(--nexus-shadow);
  backdrop-filter: blur(12px);
}

body.home .nexus-front-page a.nexus-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--nexus-accent);
  text-decoration: none;
  font-weight: 600;
}

body.home .nexus-front-page a.nexus-inline-link::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

body.home .nexus-front-page a.nexus-inline-link:hover::after {
  transform: translateX(2px);
}

.nexus-front-page .nexus-inline-link--spaced {
  margin-top: 1.1rem;
}

body.home .nexus-front-page :is(a.nexus-button, a.nexus-inline-link):focus-visible {
  outline: 2px solid rgba(145, 245, 255, 0.88);
  outline-offset: 3px;
}

.nexus-front-page .nexus-icon,
.nexus-front-page .nexus-card-icon {
  color: var(--nexus-accent);
  fill: none;
}

.nexus-front-page .nexus-card-icon-filled {
  color: var(--nexus-accent-2);
  fill: currentColor;
}

.nexus-front-page .nexus-icon {
  width: 26px;
  height: 26px;
}

.nexus-front-page .nexus-card-icon,
.nexus-front-page .nexus-card-icon-filled {
  width: 26px;
  height: 26px;
}

.nexus-hero {
  min-height: 100svh;
  padding: 7rem 0 3rem;
}

.nexus-hero__media {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

body.home #central-image.nexus-hero__graphic {
  position: absolute;
  top: 6.25rem;
  right: clamp(4vw, 8vw, 10vw);
  left: auto;
  width: clamp(260px, 26vw, 420px);
  height: auto;
  margin: 0;
  opacity: 0.88;
  transform: none;
  filter:
    drop-shadow(0 0 24px rgba(73, 222, 197, 0.24))
    drop-shadow(0 0 56px rgba(73, 222, 197, 0.08));
}

.nexus-hero__aurora {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100svh;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 5, 7, 0.92) 0%, rgba(2, 5, 7, 0.76) 34%, rgba(2, 5, 7, 0.38) 62%, rgba(2, 5, 7, 0.78) 100%),
    radial-gradient(circle at 72% 18%, rgba(145, 245, 255, 0.08), rgba(145, 245, 255, 0) 24%);
}

.nexus-hero__inner {
  position: relative;
  z-index: 2;
}

.nexus-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(340px, 0.72fr);
  gap: clamp(1.25rem, 2.4vw, 2.4rem);
  align-items: end;
  min-height: calc(100svh - 10rem);
}

.nexus-hero__copy {
  padding: 12rem 0 2rem;
  max-width: 860px;
}

.nexus-hero__title {
  max-width: 10.2ch;
  margin: 0.75rem 0 1.2rem;
  font-size: clamp(3.05rem, 5.45vw, 5.55rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.nexus-hero__lead {
  max-width: 740px;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.75;
  color: var(--nexus-text-soft);
}

.nexus-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nexus-hero__gridline {
  width: min(620px, 100%);
  height: 1px;
  margin: 1.75rem 0 1.35rem;
  background: linear-gradient(90deg, rgba(73, 222, 197, 0.55), rgba(73, 222, 197, 0.08));
  box-shadow: 0 0 18px rgba(73, 222, 197, 0.18);
}

.nexus-hero__points {
  display: grid;
  gap: 0.8rem;
  max-width: 640px;
}

.nexus-hero__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  color: var(--nexus-text-soft);
}

.nexus-hero__point-marker {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--nexus-accent);
  box-shadow: 0 0 14px rgba(73, 222, 197, 0.5);
}

.nexus-hero__panel {
  position: relative;
  padding: 1.2rem;
  max-width: 430px;
  justify-self: end;
}

.nexus-hero__panel-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.nexus-hero__panel-card {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(145, 245, 255, 0.1);
  border-radius: var(--nexus-radius-md);
  background: rgba(7, 13, 18, 0.56);
}

.nexus-hero__panel-index {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--nexus-text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.nexus-hero__panel-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.18;
}

.nexus-hero__panel-card p {
  font-size: 0.96rem;
  color: var(--nexus-text-soft);
  line-height: 1.65;
}

.nexus-friction,
.nexus-services,
.nexus-case-studies,
.nexus-founder,
.nexus-process,
.nexus-cta-band {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 0;
}

.nexus-card-grid {
  display: grid;
  gap: 1.1rem;
}

.nexus-card-grid--friction {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nexus-friction-card {
  padding: 1.35rem;
}

.nexus-friction-card h3,
.nexus-service-card h3,
.nexus-case-study h3,
.nexus-founder__point h3,
.nexus-process-step h3 {
  margin: 0.7rem 0 0.65rem;
  font-size: 1.45rem;
  line-height: 1.12;
}

.nexus-friction-card p,
.nexus-service-card p,
.nexus-case-study p,
.nexus-founder__point p,
.nexus-process-step p {
  color: var(--nexus-text-soft);
  line-height: 1.7;
}

.nexus-services__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.45rem;
  align-items: start;
}

.nexus-services__intro {
  max-width: 440px;
  padding-right: 0.5rem;
}

.nexus-services__intro .nexus-section-title {
  max-width: 7.6ch;
  font-size: clamp(2.45rem, 4.35vw, 4.65rem);
  line-height: 0.92;
}

.nexus-services__intro .nexus-section-text {
  max-width: 35rem;
}

.nexus-card-grid--services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexus-service-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  min-height: 100%;
}

.nexus-service-card .nexus-inline-link {
  margin-top: auto;
  padding-top: 1rem;
}

.nexus-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(145, 245, 255, 0.14);
  background: rgba(7, 13, 18, 0.62);
}

.nexus-card-grid--case-studies {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexus-case-study {
  padding: 1.5rem;
}

.nexus-case-study__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.case-study-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nexus-case-study__subtitle {
  margin: 0.1rem 0 0.85rem;
  color: var(--nexus-accent);
}

.nexus-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding: 0;
}

.nexus-tag-list li {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(145, 245, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 13, 18, 0.56);
  font-size: 0.88rem;
  color: var(--nexus-text-soft);
}

.nexus-case-study__actions {
  margin-top: 1.35rem;
}

.nexus-founder__layout {
  display: block;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.nexus-founder__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  gap: 0.9rem 1.8rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.nexus-founder__intro > .nexus-section-kicker {
  grid-column: 1 / -1;
}

.nexus-founder__intro .nexus-section-title {
  grid-column: 1;
  max-width: 7ch;
  font-size: clamp(2.85rem, 4.35vw, 4.75rem);
  line-height: 0.92;
}

.nexus-founder__intro .nexus-section-text,
.nexus-founder__intro .nexus-inline-link {
  grid-column: 2;
}

.nexus-founder__intro .nexus-section-text {
  max-width: 40ch;
}

.nexus-founder__intro .nexus-section-text + .nexus-section-text {
  margin-top: 0.9rem;
}

.nexus-founder__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(145, 245, 255, 0.12);
}

.nexus-founder__point {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid rgba(145, 245, 255, 0.12);
  border-radius: var(--nexus-radius-md);
  background: rgba(7, 13, 18, 0.5);
}

.nexus-founder__point h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.18;
  margin: 0 0 0.7rem;
}

.nexus-founder__point p {
  margin: 0;
  font-size: 0.98rem;
  max-width: none;
}

.nexus-card-grid--process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.nexus-process-step {
  padding: 1.45rem;
  min-height: 100%;
}

.nexus-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--nexus-border-strong);
  background: rgba(73, 222, 197, 0.12);
  color: var(--nexus-accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nexus-cta-band {
  padding-bottom: 4.5rem;
}

.nexus-cta-band__inner {
  padding: 2.3rem clamp(1.2rem, 3vw, 2.8rem);
  text-align: center;
}

.nexus-cta-band__inner .nexus-section-title,
.nexus-cta-band__inner .nexus-section-text {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.nexus-cta-band__actions {
  justify-content: center;
}

@media (max-width: 1180px) {
  .nexus-hero__layout,
  .nexus-services__layout,
  .nexus-card-grid--friction,
  .nexus-card-grid--case-studies,
  .nexus-card-grid--process {
    grid-template-columns: 1fr;
  }

  .nexus-card-grid--services,
  .nexus-founder__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexus-services__intro {
    max-width: 100%;
    padding-right: 0;
  }

  .nexus-hero__copy {
    max-width: 100%;
  }

  .nexus-hero__title,
  .nexus-hero__lead {
    max-width: none;
  }

  body.home #central-image.nexus-hero__graphic {
    right: 4vw;
    width: clamp(220px, 30vw, 320px);
  }
}

@media (max-width: 1080px) {
  .nexus-founder__intro {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .nexus-founder__intro > .nexus-section-kicker,
  .nexus-founder__intro .nexus-section-title,
  .nexus-founder__intro .nexus-section-text,
  .nexus-founder__intro .nexus-inline-link {
    grid-column: 1;
  }

  .nexus-founder__intro .nexus-section-title,
  .nexus-founder__intro .nexus-section-text {
    max-width: none;
  }
}

@media (max-width: 768px) {
  body.admin-bar.home #menu-mobile {
    top: 46px;
  }

  .nexus-hero {
    min-height: auto;
    padding: 5.8rem 0 2.2rem;
  }

  .nexus-hero__copy {
    padding-top: 10.8rem;
  }

  .nexus-hero__title {
    font-size: clamp(2.45rem, 12vw, 3.55rem);
    line-height: 0.92;
  }

  .nexus-hero__lead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  body.home #central-image.nexus-hero__graphic {
    top: 5.35rem;
    right: 50%;
    transform: translateX(50%);
    width: min(56vw, 240px);
  }

  .nexus-hero__aurora {
    background:
      linear-gradient(180deg, rgba(2, 5, 7, 0.18), rgba(2, 5, 7, 0.78) 70%, rgba(2, 5, 7, 0.92) 100%),
      radial-gradient(circle at 72% 18%, rgba(145, 245, 255, 0.08), rgba(145, 245, 255, 0) 24%);
  }

  .nexus-hero__actions .nexus-button {
    width: 100%;
  }

  .nexus-hero__panel {
    max-width: none;
    padding: 0.95rem;
  }

  .nexus-hero__panel-card {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .nexus-hero__panel-card h2 {
    font-size: 1rem;
  }

  .nexus-hero__panel-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .nexus-services__intro .nexus-section-title {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .nexus-services__intro .nexus-section-text {
    max-width: none;
  }

  .nexus-card-grid--services,
  .nexus-founder__points {
    grid-template-columns: 1fr;
  }

  .nexus-service-card,
  .nexus-case-study {
    padding: 1.15rem;
  }

  .nexus-case-study__title {
    align-items: flex-start;
    gap: 0.65rem;
  }
}

@media (max-width: 560px) {
  .nexus-front-page .nexus-section-title {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .nexus-friction-card,
  .nexus-service-card,
  .nexus-case-study,
  .nexus-process-step,
  .nexus-cta-band__inner,
  .nexus-founder__layout {
    padding: 1.25rem;
  }

  .nexus-hero__panel {
    padding: 1rem;
  }

  .nexus-tag-list li {
    font-size: 0.82rem;
    padding: 0.48rem 0.72rem;
  }

  .nexus-cta-band__inner .nexus-section-title {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }
}
