:root {
  color-scheme: dark;
  --bg: #0d1419;
  --bg-soft: #121a20;
  --panel: rgba(19, 27, 34, 0.92);
  --panel-strong: rgba(23, 31, 39, 0.96);
  --line: rgba(209, 223, 241, 0.14);
  --line-strong: rgba(209, 223, 241, 0.22);
  --text: #edf1f4;
  --text-secondary: #c8d2da;
  --text-muted: #94a1ab;
  --brand-green: #2ad19d;
  --brand-cyan: #77c6d4;
  --brand-emerald: #75d964;
  --brand-red: #f26b78;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --content: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behaviour: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(42, 209, 157, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(28, 190, 225, 0.14), transparent 32%),
    linear-gradient(180deg, #08101c 0%, #0c1320 52%, #0a111d 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.screen {
  min-height: auto;
  display: grid;
  padding: 0;
}

.hero-screen {
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  padding: 36px 0 64px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.hero-screen .hero-grid {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.screen-grid {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(620px, 1.38fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  width: min(520px, 82vw);
  max-width: 100%;
  padding-top: 0;
}

.hero-brand {
  display: block;
  width: min(520px, 82vw);
  max-width: 100%;
  margin: 0 0 14px;
  transition:
    transform 220ms var(--ease-out),
    filter 220ms var(--ease-out);
}

.hero-brand img {
  width: 100%;
  height: auto;
}

.hero-brand:hover,
.hero-brand:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.04) brightness(1.02);
}

.hero-summary,
.hero-framework {
  color: var(--text-secondary);
}

.hero-summary,
.hero-framework {
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: none;
}

.hero-summary {
  margin: 10px 0 0;
}

.hero-framework {
  margin: 4px 0 0;
}

.hero-summary a,
.hero-framework a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(237, 241, 244, 0.34);
  text-underline-offset: 0.18em;
}

.hero-visual {
  position: relative;
  contain: layout paint;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -54px -34px 7%;
  border: 1px solid rgba(209, 223, 241, 0.08);
  border-radius: 12px;
  pointer-events: none;
}

.product-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  border: 1px solid rgba(209, 223, 241, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.hero-shot-stack {
  position: relative;
  aspect-ratio: 14 / 9;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.6deg);
  transform-origin: center;
}

.hero-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

.hero-shot-home {
  animation: hero-frame-home 18s var(--ease-out) infinite;
}

.hero-shot-discover {
  animation: hero-frame-discover 18s var(--ease-out) infinite;
}

.hero-shot-governance {
  animation: hero-frame-governance 18s var(--ease-out) infinite;
}

.hero-control-row {
  display: grid;
  grid-template-columns: minmax(0, 320px);
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
}

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

.hero-status-launch,
.access-tile {
  min-height: 58px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    min-height 160ms ease;
}

.hero-status-launch {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
}

.hero-status-launch::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.84);
}

.hero-status-face {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: 14ch;
}

.hero-status-text {
  grid-area: 1 / 1;
  line-height: 1;
  text-transform: lowercase;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hero-launch-text {
  grid-area: 1 / 1;
  line-height: 1;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hero-status-icon {
  width: 34px;
  height: auto;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  transform-origin: center;
}

.hero-status-launch[data-state="checking"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-status-launch[data-state="checking"] .hero-status-icon,
.hero-status-launch[data-state="checking"] .hero-status-text {
  animation: soft-pulse 1.6s ease-in-out infinite;
}

.hero-status-launch[data-state="checking"]::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  animation: halo-checking 1.8s ease-in-out infinite;
}

.hero-status-launch[data-state="online"] {
  background: #79da66;
  color: #ffffff;
  border-color: #79da66;
  cursor: pointer;
}

.hero-status-launch[data-state="online"] .hero-status-icon {
  animation: brain-online 2.1s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-status-launch[data-state="online"]::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 68%);
  animation: halo-online 2.1s ease-in-out infinite;
}

.hero-status-launch[data-state="online"]:hover,
.hero-status-launch[data-state="online"]:focus-visible {
  background: #6ed859;
  border-color: #6ed859;
}

.hero-status-launch[data-state="online"]:hover .hero-status-text,
.hero-status-launch[data-state="online"]:focus-visible .hero-status-text {
  opacity: 0;
  transform: translateY(-8px);
}

.hero-status-launch[data-state="online"]:hover .hero-launch-text,
.hero-status-launch[data-state="online"]:focus-visible .hero-launch-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-status-launch[data-state="offline"] {
  background: #c85b66;
  color: #ffffff;
  border-color: #c85b66;
}

.hero-status-launch[data-state="offline"] .hero-status-icon {
  animation: brain-offline 2s ease-in-out infinite;
}

.hero-status-launch[data-state="offline"]::after {
  background:
    radial-gradient(circle, rgba(242, 107, 120, 0.24), rgba(242, 107, 120, 0) 70%);
  animation: halo-offline 2s ease-in-out infinite;
}

.hero-status-launch[data-state="unavailable"] {
  background: #b74f5c;
  color: #ffffff;
  border-color: #b74f5c;
}

.hero-status-launch[data-state="unavailable"] .hero-status-icon {
  opacity: 0.72;
  animation: brain-unavailable 4.8s ease-in-out infinite;
}

.hero-status-launch[data-state="unavailable"] .hero-status-text {
  opacity: 0.9;
}

.hero-status-launch[data-state="unavailable"]::after {
  background: radial-gradient(circle, rgba(234, 122, 136, 0.2), rgba(234, 122, 136, 0));
  animation: halo-unavailable 4.8s ease-in-out infinite;
}

.access-tile {
  display: grid;
  align-content: start;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 1px solid rgba(112, 126, 150, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(30, 39, 55, 0.96), rgba(20, 26, 39, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(4, 9, 18, 0.2);
  overflow: hidden;
  position: relative;
}

.access-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(42, 209, 157, 0.08), rgba(42, 209, 157, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.access-tile::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 54px;
  width: 1px;
  background: linear-gradient(180deg, rgba(42, 209, 157, 0), rgba(42, 209, 157, 0.24), rgba(42, 209, 157, 0));
  pointer-events: none;
}

.access-tile[data-expanded="true"] {
  min-height: 0;
  padding: 0;
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.access-tile[data-expanded="true"] .access-tile-trigger {
  display: none;
}

.access-tile-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 18px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition:
    background-color 180ms ease,
    transform 220ms var(--ease-out);
}

.access-tile-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.access-tile-cue {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-left: 2px;
  color: rgba(225, 232, 240, 0.74);
  font-size: 0.96rem;
  line-height: 1;
  transition:
    color 180ms ease,
    transform 220ms var(--ease-out);
}

.access-tile-arrow {
  display: inline-block;
  font-size: 1.04rem;
  transform: translateY(-0.5px);
  opacity: 0.9;
}

.access-inline-form {
  display: block;
  width: 100%;
  padding: 0;
}

.access-inline-form[hidden] {
  display: none;
}

.access-field {
  position: relative;
  width: 100%;
  animation: access-field-enter 220ms var(--ease-out);
}

.access-inline-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 48px 10px 12px;
  border: 1px solid rgba(42, 209, 157, 0.42);
  border-radius: 10px;
  background: rgba(8, 14, 23, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(42, 209, 157, 0.12);
  transition:
    border-color 160ms ease,
    box-shadow 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    background-color 160ms ease;
}

.access-submit {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-green);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 180ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}

.access-submit svg {
  width: 18px;
  height: 18px;
}

.access-tile-trigger:hover,
.access-tile-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.access-tile-trigger:hover .access-tile-cue,
.access-tile-trigger:focus-visible .access-tile-cue {
  color: rgba(255, 255, 255, 0.96);
  transform: translateX(2px);
}

.access-submit:hover,
.access-submit:focus-visible {
  background: rgba(42, 209, 157, 0.12);
}

.access-field:focus-within input {
  box-shadow:
    inset 0 0 0 1px rgba(42, 209, 157, 0.2),
    0 0 0 3px rgba(42, 209, 157, 0.08);
  transform: translateY(-1px);
}

.access-field:focus-within .access-submit {
  transform: translateY(-50%) translateX(1px);
}

.access-inline-form input:not(:placeholder-shown) + .access-submit {
  animation: submit-drift 1.6s ease-in-out infinite;
}

.hero-status-launch.is-disabled {
  cursor: default;
}

.hero-status-launch.is-disabled {
  opacity: 0.56;
  color: rgba(243, 244, 246, 0.78);
  pointer-events: none;
}
.access-inline-form input::placeholder {
  color: var(--text-muted);
}

.access-inline-form input:focus-visible {
  border-color: rgba(42, 209, 157, 0.62);
  background: rgba(10, 17, 26, 0.96);
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes brain-online {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  22% {
    transform: translateY(-2px) scale(1.1) rotate(-5deg);
    opacity: 1;
  }
  44% {
    transform: translateY(0) scale(0.96) rotate(3deg);
    opacity: 0.9;
  }
  68% {
    transform: translateY(-1px) scale(1.06) rotate(-2deg);
    opacity: 0.97;
  }
}

@keyframes brain-offline {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  20% {
    transform: rotate(-5deg) translateX(-1px) scale(0.98);
    opacity: 0.86;
  }
  45% {
    transform: rotate(3deg) translateX(0.5px) scale(1.01);
    opacity: 0.76;
  }
  75% {
    transform: rotate(5deg) translateX(1px) scale(0.98);
    opacity: 0.9;
  }
}

@keyframes halo-checking {
  0%,
  100% {
    opacity: 0.1;
    transform: translateY(-50%) scale(0.82);
  }
  50% {
    opacity: 0.28;
    transform: translateY(-50%) scale(1.04);
  }
}

@keyframes halo-online {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(-50%) scale(0.82);
  }
  28% {
    opacity: 0.38;
    transform: translateY(-50%) scale(1.14);
  }
  62% {
    opacity: 0.16;
    transform: translateY(-50%) scale(0.9);
  }
}

@keyframes brain-unavailable {
  0%,
  100% {
    transform: translateY(0) rotate(8deg) scale(0.97);
    opacity: 0.72;
  }
  35% {
    transform: translateY(2px) rotate(12deg) scale(0.95);
    opacity: 0.62;
  }
  65% {
    transform: translateY(1px) rotate(10deg) scale(0.96);
    opacity: 0.68;
  }
}

@keyframes halo-unavailable {
  0%,
  100% {
    opacity: 0.05;
    transform: translateY(-50%) scale(0.8);
  }
  40% {
    opacity: 0.14;
    transform: translateY(-50%) scale(0.94);
  }
}

@keyframes halo-offline {
  0%,
  100% {
    opacity: 0.08;
    transform: translateY(-50%) scale(0.82);
  }
  40% {
    opacity: 0.2;
    transform: translateY(-50%) scale(1.02);
  }
}

@keyframes hero-frame-home {
  0%,
  28% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  33%,
  100% {
    opacity: 0;
    transform: translate3d(-1.2%, -0.5%, 0) scale(1.018);
  }
}

@keyframes access-field-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes submit-drift {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(2px);
  }
}

@keyframes hero-frame-discover {
  0%,
  30% {
    opacity: 0;
    transform: translate3d(1.4%, 0.4%, 0) scale(1.018);
  }
  35%,
  61% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  66%,
  100% {
    opacity: 0;
    transform: translate3d(-1%, 0.4%, 0) scale(1.018);
  }
}

@keyframes hero-frame-governance {
  0%,
  63% {
    opacity: 0;
    transform: translate3d(1%, -0.4%, 0) scale(1.018);
  }
  68%,
  94% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-1%, 0.5%, 0) scale(1.018);
  }
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

:focus-visible {
  outline: 2px solid rgba(42, 209, 157, 0.8);
  outline-offset: 2px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-shot-stack {
    transform: none;
  }

  .hero-shot {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .hero-shot-home {
    opacity: 1;
  }

}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-shot-stack {
    transform: none;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-control-row {
    grid-template-columns: minmax(0, 320px);
    justify-content: flex-start;
  }

  .hero-screen {
    min-height: auto;
    padding: 18px 0 54px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 22px), var(--content));
  }

  .hero-brand {
    margin-bottom: 12px;
  }

  .hero-brand img {
    width: 100%;
  }

  .hero-copy {
    width: min(360px, 84vw);
  }

  .hero-summary {
    max-width: none;
  }

  .hero-framework {
    max-width: none;
  }

  .hero-control-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-status-launch,
  .access-tile {
    width: 100%;
  }

  .hero-status-launch {
    min-height: 54px;
  }

  .hero-status-text {
    font-size: 1.12rem;
  }

  .hero-status-icon {
    width: 34px;
  }

  .access-inline-form {
    padding: 10px 10px;
  }
}
