:root {
  --bg: #07101f;
  --bg-strong: #040a15;
  --panel: linear-gradient(160deg, rgba(9, 19, 38, 0.88), rgba(8, 16, 31, 0.72));
  --surface: rgba(248, 251, 255, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --ink: #eef4ff;
  --ink-strong: #08152f;
  --muted: rgba(221, 232, 255, 0.72);
  --muted-dark: #546887;
  --line: rgba(255, 255, 255, 0.12);
  --panel-line: rgba(17, 38, 79, 0.14);
  --brand: #1f439c;
  --brand-strong: #142f70;
  --brand-soft: #dfe8ff;
  --accent: #f0b45a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 54%, #10254a 100%);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 15% 18%, rgba(31, 67, 156, 0.42), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(111, 172, 255, 0.16), transparent 22%),
    radial-gradient(circle at 70% 72%, rgba(240, 180, 90, 0.14), transparent 18%);
  z-index: -3;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
  opacity: 0.28;
  z-index: -2;
}

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

.page-orbit {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.page-orbit-left {
  top: 120px;
  left: -110px;
  background: rgba(31, 67, 156, 0.42);
}

.page-orbit-right {
  right: -90px;
  top: 420px;
  background: rgba(240, 180, 90, 0.16);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #08152f;
  background: linear-gradient(90deg, #f0b45a, #ffd9a0);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

html[data-site-env="test"] .brand-mark {
  background: linear-gradient(135deg, #f0b45a 0%, #d99128 100%);
}

.topbar,
.hero,
.section,
.footer {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.topbar::after,
.hero::after,
.section::after,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.06), transparent 34%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6e97ff 0%, var(--brand) 72%, var(--brand-strong) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-name {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav,
.actions,
.cta-row,
.hero-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav {
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 28px;
  padding: 42px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a9c1ff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.16rem;
  line-height: 1.15;
}

.lead,
.section-head p,
.footer p,
.signal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-status {
  flex-wrap: wrap;
}

.hero-status span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(238, 244, 255, 0.88);
  font-size: 0.9rem;
}

.support-copy {
  font-size: 0.96rem;
  color: var(--muted);
}

.inline-link {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.signal-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.signal-card.featured {
  padding: 28px;
  background: linear-gradient(145deg, rgba(31, 67, 156, 0.42), rgba(11, 20, 38, 0.86));
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signal-card strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.4;
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(214, 227, 255, 0.82);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.signal-card.accent {
  background: linear-gradient(145deg, rgba(240, 180, 90, 0.16), rgba(255, 255, 255, 0.06));
}

.section {
  padding: 30px;
  margin-bottom: 20px;
}

.section-head {
  max-width: 760px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.process-card,
.environment-card {
  border-radius: 24px;
  border: 1px solid var(--panel-line);
  background: var(--surface);
  color: var(--ink-strong);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.feature-card p,
.process-card p,
.environment-card p,
.footer a {
  color: var(--muted-dark);
  line-height: 1.7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  display: grid;
  gap: 14px;
}

.process-card span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(31, 67, 156, 0.18);
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.environment-card {
  display: grid;
  gap: 14px;
}

.environment-card.current {
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  transform: translateY(-6px);
}

.environment-card.subtle {
  background: linear-gradient(180deg, #f7f9ff 0%, #edf2ff 100%);
}

.environment-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6edff;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(31, 67, 156, 0.22);
}

.secondary-button {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.link-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.link-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover,
.link-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
  padding: 22px 24px;
}

.footer strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.12rem;
}

.footer span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer div {
  display: grid;
  gap: 8px;
}

.topbar,
.hero-copy,
.hero-panel,
.section,
.footer {
  animation: rise 0.72s ease both;
}

.hero-copy {
  animation-delay: 0.08s;
}

.hero-panel {
  animation-delay: 0.16s;
}

.section {
  animation-delay: 0.22s;
}

.footer {
  animation-delay: 0.3s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@media (max-width: 980px) {
  .topbar,
  .hero,
  .grid-three,
  .process-grid,
  .environment-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav,
  .actions,
  .cta-row {
    flex-wrap: wrap;
  }

  .environment-card.current {
    transform: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .hero,
  .section,
  .footer {
    border-radius: 18px;
  }

  .hero,
  .section {
    padding: 22px;
  }

  .nav,
  .actions,
  .cta-row,
  .hero-status {
    flex-direction: column;
    align-items: stretch;
  }

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

  .primary-button,
  .secondary-button,
  .link-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topbar,
  .hero-copy,
  .hero-panel,
  .section,
  .footer {
    animation: none;
  }
}