:root {
  --bg: #050508;
  --bg-soft: #08080c;
  --panel: #0e0e14;
  --panel-strong: #12121b;
  --purple: #9b5cff;
  --purple-soft: #b892ff;
  --purple-deep: #351a70;
  --text: #ffffff;
  --muted: #cfcfd8;
  --subtle: #8a8a96;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(184, 146, 255, 0.32);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 49%, rgba(155, 92, 255, 0.08) 49.1% 49.2%, transparent 49.3%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 86%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 20;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--text);
  color: var(--bg);
}

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.74);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(184, 146, 255, 0.2);
  background: rgba(5, 5, 8, 0.9);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 3rem));
  min-height: 76px;
  margin: 0 auto;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button-primary {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(155, 92, 255, 0.12);
}

.button-secondary {
  background: transparent;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.section,
.hero,
.final-cta {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  padding: 9.5rem 0 6rem;
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
}

.section-grid::after,
.institutional::after,
.security::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.05) 8% 8.08%, transparent 8.16%),
    linear-gradient(90deg, transparent 0 92%, rgba(155, 92, 255, 0.1) 92% 92.08%, transparent 92.16%),
    linear-gradient(0deg, transparent 0 35%, rgba(255, 255, 255, 0.04) 35% 35.08%, transparent 35.16%);
}

.hero-layout,
.split-layout,
.security-layout,
.software-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--purple-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.4rem, 7.2vw, 7.4rem);
}

h2 {
  max-width: 920px;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  color: var(--muted);
}

.hero-copy,
.section-heading p {
  max-width: 780px;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-visual {
  min-height: 560px;
}

.orbital-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px),
    rgba(14, 14, 20, 0.72);
  box-shadow: inset 0 0 0 1px rgba(155, 92, 255, 0.06), 0 28px 80px rgba(0, 0, 0, 0.36);
}

.orbital-card::before {
  position: absolute;
  inset: 2rem;
  content: "";
  border: 1px solid rgba(184, 146, 255, 0.16);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.orbital-card::after {
  position: absolute;
  top: -1px;
  right: 9%;
  left: 9%;
  height: 3px;
  content: "";
  background: var(--purple);
}

.hero-mark {
  width: min(62%, 330px);
  filter: drop-shadow(0 0 34px rgba(155, 92, 255, 0.42));
}

.hex-frame span,
.signal-line,
.node,
.system-label {
  position: absolute;
}

.hex-frame span {
  border: 1px solid rgba(184, 146, 255, 0.26);
  animation: rotateFrame 18s linear infinite;
}

.hex-frame span:nth-child(1) {
  inset: 90px;
  clip-path: polygon(24% 0, 76% 0, 100% 50%, 76% 100%, 24% 100%, 0 50%);
}

.hex-frame span:nth-child(2) {
  inset: 132px;
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
  animation-direction: reverse;
}

.hex-frame span:nth-child(3) {
  inset: 180px;
  border-color: rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

.signal-line {
  height: 1px;
  background: rgba(184, 146, 255, 0.72);
}

.signal-one {
  top: 25%;
  left: 8%;
  width: 54%;
  transform: rotate(-22deg);
}

.signal-two {
  right: 6%;
  bottom: 28%;
  width: 58%;
  transform: rotate(28deg);
}

.signal-three {
  top: 55%;
  left: 16%;
  width: 68%;
}

.node {
  width: 9px;
  height: 9px;
  border: 1px solid var(--purple-soft);
  background: var(--bg);
  box-shadow: 0 0 18px rgba(155, 92, 255, 0.9);
}

.node-a {
  top: 21%;
  left: 18%;
}

.node-b {
  right: 16%;
  bottom: 23%;
}

.node-c {
  top: 54%;
  right: 11%;
}

.system-label {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.72);
  color: var(--subtle);
  font-family: "Space Grotesk", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.label-a {
  top: 9%;
  right: 12%;
}

.label-b {
  bottom: 10%;
  left: 11%;
}

.label-c {
  top: 48%;
  left: 5%;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  align-items: end;
  column-gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 3rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading p {
  margin-top: 0;
}

.split-layout .section-heading,
.security-layout .section-heading,
.software-layout .section-heading {
  display: block;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 rgba(155, 92, 255, 0.65);
}

.solution-card {
  min-height: 280px;
  padding: 1.7rem;
  background: var(--panel);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.solution-card:hover {
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(184, 146, 255, 0.38);
}

.line-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 5.2rem;
  border: 1px solid rgba(184, 146, 255, 0.26);
  color: var(--purple-soft);
}

.line-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.solution-card p {
  margin: 1rem 0 0;
  color: var(--subtle);
}

.institutional {
  background: rgba(14, 14, 20, 0.34);
}

.capability-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(14, 14, 20, 0.72);
}

.capability-map::before,
.capability-map::after {
  position: absolute;
  content: "";
  background: rgba(184, 146, 255, 0.18);
}

.capability-map::before {
  top: 50%;
  right: 2rem;
  left: 2rem;
  height: 1px;
}

.capability-map::after {
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 1px;
}

.capability-map span {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 700;
}

.security {
  background: var(--bg);
}

.security-layout {
  grid-template-columns: 0.68fr 1.12fr;
}

.security-panel {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(14, 14, 20, 0.78);
  box-shadow: inset 4px 0 0 rgba(155, 92, 255, 0.7);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--subtle);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill i {
  display: block;
  width: 8px;
  height: 8px;
  background: #67f0b8;
  box-shadow: 0 0 16px rgba(103, 240, 184, 0.7);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.security-grid div {
  min-height: 142px;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.security-grid div:nth-child(2n) {
  border-right: 0;
}

.security-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.security-grid span,
.differentiator-grid span,
.process-line span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--purple-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.software-layout {
  grid-template-columns: 0.9fr 1fr;
}

.software-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.software-list span {
  min-height: 120px;
  padding: 1.5rem;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.differentiator-grid div {
  min-height: 166px;
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.differentiator-grid div:nth-child(3n) {
  border-right: 0;
}

.process {
  background: rgba(14, 14, 20, 0.32);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: rgba(14, 14, 20, 0.72);
  box-shadow: inset 0 3px 0 rgba(155, 92, 255, 0.64);
}

.process-line li {
  min-height: 188px;
  padding: 1.45rem 1.05rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.process-line li:last-child {
  border-right: 0;
}

.final-cta {
  padding: 6.5rem 0;
}

.cta-shell {
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgba(184, 146, 255, 0.26);
  border-radius: 0;
  background: rgba(14, 14, 20, 0.78);
  box-shadow: inset 0 3px 0 var(--purple);
}

.cta-shell h2 {
  max-width: 850px;
}

.cta-shell p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.2rem 0 0;
  font-size: 1.04rem;
}

.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  background: #030305;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 0.55rem 0;
  color: var(--subtle);
  font-size: 0.94rem;
}

.site-footer a:hover {
  color: var(--purple-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rotateFrame {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 1040px) {
  .nav-cta {
    display: none;
  }

  .solutions-grid,
  .differentiator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .differentiator-grid div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .differentiator-grid div:nth-child(2n) {
    border-right: 0;
  }

  .process-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-line li:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(8, 8, 12, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    padding: 0.85rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 1.4rem;
  }

  .hero-layout,
  .split-layout,
  .security-layout,
  .software-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .hero-visual,
  .orbital-card {
    min-height: 440px;
  }

  .security-grid,
  .software-list,
  .capability-map {
    grid-template-columns: 1fr;
  }

  .capability-map::before,
  .capability-map::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .nav-shell {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand {
    font-size: 0.86rem;
    letter-spacing: 0.2em;
  }

  .section,
  .final-cta {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 4.5rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .solutions-grid,
  .differentiator-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: 250px;
  }

  .line-icon {
    margin-bottom: 2.3rem;
  }

  .differentiator-grid div,
  .process-line li,
  .solutions-grid .solution-card {
    border-right: 0;
  }

  .security-grid div,
  .security-grid div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .security-grid div:last-child {
    border-bottom: 0;
  }

  .panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
