:root {
  --blue: #0066cc;
  --blue-bright: #2997ff;
  --ink: #f5f7fb;
  --paper: #f5f5f7;
  --body: #1d1d1f;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.08);
  --black: #050506;
  --deep: #101014;
  --panel: #17181d;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  color: white;
  background: var(--blue);
}

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: var(--blue-bright);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 0 28px;
  background: rgba(0, 0, 0, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 174px;
  line-height: 1;
}

.brand span {
  font-size: 20px;
  font-weight: 650;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.main-nav,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav {
  justify-content: center;
}

.main-nav a,
.text-link,
.site-footer a,
.site-footer button {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  background: transparent;
  cursor: pointer;
}

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

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

.pill-button,
.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pill-button:hover {
  background: #0071e3;
}

.pill-button:active,
.glass-button:active,
.icon-button:active {
  transform: scale(0.95);
}

.pill-button:focus-visible,
.glass-button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.pill-button-small {
  min-height: 34px;
  padding: 9px 16px;
  font-size: 13px;
}

.glass-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.glass-button:hover {
  border-color: rgba(255, 255, 255, 0.62);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 116px 24px 72px;
  isolation: isolate;
}

.hero-image,
.hero-scrim,
.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -4;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-breath 18s ease-in-out infinite alternate;
}

.signal-canvas {
  z-index: -2;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.hero-scrim {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.64)),
    linear-gradient(0deg, #050506, transparent 34%);
}

.hero-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-top: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-content .eyebrow,
.section-kicker,
.focus-copy .eyebrow,
.section-heading .eyebrow {
  font-size: 21px;
}

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

h1,
h2,
h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: clamp(54px, 9vw, 138px);
  font-weight: 650;
  line-height: 0.92;
}

.hero-line {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(25px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: white;
  animation: cue 1.7s ease-in-out infinite;
}

.system-section,
.services-section {
  position: relative;
  padding: 120px 24px;
}

.system-section {
  background:
    linear-gradient(135deg, rgba(41, 151, 255, 0.12), transparent 32%),
    linear-gradient(#050506, #101014);
}

.section-kicker,
.system-grid,
.section-heading,
.service-cards,
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 28px;
}

.system-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 96px;
}

.sticky-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.sticky-copy h2,
.vision-copy h2,
.section-heading h2 {
  margin-bottom: 34px;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 650;
  line-height: 1;
}

.vision-copy h2,
.section-heading h2 {
  margin-bottom: 24px;
}

.sticky-copy p,
.vision-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  line-height: 1.5;
}

.constellation {
  display: grid;
  gap: 18px;
  padding-top: 0;
}

.node-card,
.service-card,
.focus-chip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.node-card:hover,
.service-card:hover,
.focus-chip:hover {
  border-color: rgba(41, 151, 255, 0.56);
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.node-card {
  min-height: 144px;
  padding: 24px 30px;
  border-radius: 28px;
}

.node-card span,
.service-index {
  color: var(--blue-bright);
  font-size: 21px;
  font-weight: 650;
}

.node-card h3,
.focus-chip h3,
.service-card h3 {
  margin: 18px 0 12px;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.05;
}

.node-card p,
.focus-chip p,
.service-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.vision-panel {
  position: relative;
  overflow: hidden;
  min-height: 68svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
  gap: 40px;
  align-items: center;
  padding: 58px max(24px, calc((100vw - 1440px) / 2 + 24px));
  color: var(--body);
  background: var(--paper);
}

.vision-panel::before {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -12vw;
  width: 58vw;
  height: 34vw;
  background:
    linear-gradient(90deg, rgba(0, 102, 204, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 102, 204, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: rotate(-8deg);
}

.vision-copy {
  position: relative;
  z-index: 1;
}

.vision-copy p {
  color: #333333;
}

.vision-copy .eyebrow {
  color: var(--blue-bright);
}

.vision-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.vision-metrics span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 96px;
  padding: 0 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: var(--body);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.94)),
    white;
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 650;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
  animation: vision-glow 5.6s ease-in-out infinite;
}

.vision-metrics span:nth-child(1) {
  animation-delay: 0s;
}

.vision-metrics span:nth-child(2) {
  animation-delay: 1.4s;
}

.vision-metrics span:nth-child(3) {
  animation-delay: 2.8s;
}

.vision-metrics span:nth-child(4) {
  animation-delay: 4.2s;
}

.vision-metrics span:nth-child(even) {
  margin-left: 74px;
}

.focus-stage {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 110svh;
  overflow: hidden;
  padding: 110px 24px 44px;
  background: #050506;
}

.focus-image,
.focus-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.focus-image {
  object-fit: cover;
  transform: scale(1.04);
}

.focus-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 54%);
}

.focus-copy,
.focus-dock {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.focus-copy h2 {
  max-width: 820px;
  margin: 0 0 48px;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 650;
  line-height: 0.96;
}

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

.focus-chip {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 250px;
  padding: 0;
  border-radius: 28px;
}

.focus-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(90deg, rgba(41, 151, 255, 0.14), transparent);
}

.focus-chip h3 {
  margin: 0;
  font-size: 48px;
}

.focus-chip-head span {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(41, 151, 255, 0.48);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.32), rgba(255, 255, 255, 0.04) 54%, transparent 55%);
}

.focus-chip-head span::before,
.focus-chip-head span::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.focus-chip-head span::before {
  inset: 14px;
  background: var(--blue-bright);
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.92);
}

.focus-chip-head span::after {
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.focus-token-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 26px 28px;
}

.focus-token-list span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.focus-token-list span:hover {
  border-color: rgba(41, 151, 255, 0.5);
  background: rgba(41, 151, 255, 0.16);
}

.services-section {
  overflow: hidden;
  background: #050506;
}

.section-heading {
  max-width: var(--max);
}

.section-heading h2 {
  max-width: 920px;
}

.service-marquee {
  display: flex;
  gap: 22px;
  width: max-content;
  margin: 18px 0 76px;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(56px, 10vw, 148px);
  font-weight: 650;
  line-height: 0.9;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 76px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 360px);
  gap: 32px;
  align-items: center;
}

.service-card {
  grid-column: 1;
  padding: 38px;
  border-radius: 32px;
}

.service-card:first-child {
  min-height: auto;
}

.service-card:nth-child(2) {
  align-self: auto;
  min-height: auto;
}

.service-card-pool {
  grid-column: 1;
  min-height: auto;
}

.service-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.service-card p + p {
  margin-top: 18px;
}

.service-card .pill-button {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 54px 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #050506;
}

.site-footer strong {
  display: block;
  margin-bottom: 2px;
  color: white;
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer button {
  margin: 0;
  font-size: 12px;
}

.site-footer p {
  font-size: 11px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(20px);
}

.login-dialog {
  position: relative;
  width: min(100%, 460px);
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  color: white;
  background: linear-gradient(145deg, rgba(25, 26, 34, 0.96), rgba(5, 5, 6, 0.96));
  box-shadow: 0 24px 120px rgba(0, 0, 0, 0.5);
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 24px;
  cursor: pointer;
}

.login-dialog h2 {
  margin-bottom: 24px;
  font-size: 38px;
  line-height: 1.05;
}

.login-dialog form,
.login-dialog label {
  display: grid;
  gap: 12px;
}

.login-dialog form {
  gap: 18px;
}

.login-dialog label span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.login-dialog input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.login-dialog input:disabled,
.login-dialog button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: -2px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(41, 151, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(41, 151, 255, 0.08);
  font-size: 13px;
}

.login-status[hidden],
.login-error[hidden] {
  display: none;
}

.login-throbber {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--blue-bright);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.26);
  animation: spin 780ms linear infinite;
}

.login-hint,
.login-error {
  margin: 0;
  line-height: 1.4;
}

.login-hint {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.login-error {
  font-size: 13px;
}

.login-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 80, 95, 0.24);
  border-radius: 14px;
  background: rgba(255, 80, 95, 0.12);
  color: #ffb8c0;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-breath {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

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

@keyframes cue {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 14px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes vision-glow {
  0%,
  30%,
  100% {
    border-color: rgba(0, 0, 0, 0.08);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.94)),
      white;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
  }

  6%,
  22% {
    border-color: rgba(41, 151, 255, 0.18);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99), rgba(231, 244, 255, 0.96)),
      white;
    box-shadow: 0 17px 46px rgba(41, 151, 255, 0.1);
  }

  14% {
    border-color: rgba(41, 151, 255, 0.32);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(224, 241, 255, 0.98)),
      white;
    box-shadow: 0 18px 50px rgba(41, 151, 255, 0.16);
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .main-nav,
  .header-actions .text-link {
    display: none;
  }

  .system-grid,
  .vision-panel,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-visual {
    max-width: 460px;
  }

  .service-card,
  .service-card-pool {
    grid-column: 1;
  }

  .sticky-copy {
    position: static;
  }

  .focus-dock {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand {
    min-width: 136px;
  }

  .brand span {
    font-size: 18px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    padding: 92px 18px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .system-section,
  .services-section,
  .focus-stage {
    padding: 78px 18px;
  }

  .vision-panel {
    padding: 58px 18px;
  }

  .sticky-copy p,
  .vision-copy p {
    font-size: 18px;
  }

  .node-card,
  .service-card,
  .focus-chip,
  .login-dialog {
    border-radius: 22px;
  }

  .service-card {
    padding: 28px;
  }

  .service-card:first-child,
  .service-card:nth-child(2) {
    min-height: auto;
  }

  .vision-metrics span {
    min-height: 74px;
  }

  .vision-metrics span:nth-child(even) {
    margin-left: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding: 42px 18px;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
