:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;
  color: #07111f;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f8fafc;
  color: #07111f;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell,
.site-surface,
.site-header,
.hero-shell,
.light-section,
.site-footer,
.theme-card,
.theme-toggle,
.theme-button-ghost,
.theme-version-toggle,
.theme-card-figure,
.theme-subcard,
.cta-button,
.hero-media,
.hero-stat {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero-shell {
  background:
    radial-gradient(circle at 74% 38%, rgba(19, 93, 248, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-media {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 84px rgba(7, 17, 31, 0.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.hero-media-image {
  display: block;
  transform: translateZ(0);
}

.hero-media-dark {
  display: none;
}

.dark-stage {
  background:
    linear-gradient(90deg, rgba(19, 93, 248, 0.08), transparent 34%, transparent 66%, rgba(16, 184, 199, 0.06)),
    linear-gradient(180deg, #050914 0%, #07101d 54%, #050811 100%);
}

.stage-dots {
  background-image: radial-gradient(rgba(125, 157, 255, 0.24) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  animation: stage-drift 34s linear infinite;
}

.stage-vignette {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.16), transparent 18%, transparent 78%, rgba(7, 11, 20, 0.48)),
    linear-gradient(90deg, rgba(7, 11, 20, 0.18), transparent 18%, transparent 82%, rgba(7, 11, 20, 0.18));
}

.dark-stage .text-slate-400 {
  color: #c1ccdc !important;
}

.dark-stage .text-slate-300 {
  color: #d8e0ec !important;
}

.premium-panel {
  position: relative;
  isolation: isolate;
}

.premium-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transform: none;
  transition: none;
}

.premium-panel:hover::before {
  opacity: 0;
  transform: none;
}

.system-bento-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.045), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.034));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 -1px 0 rgba(255, 255, 255, 0.028),
    0 24px 70px rgba(0, 0, 0, 0.22);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.system-bento-panel::before {
  z-index: 2;
  border-radius: inherit;
  mix-blend-mode: screen;
}

.system-bento-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 82%);
  opacity: 0.58;
  pointer-events: none;
}

.system-bento-panel > * {
  position: relative;
  z-index: 1;
}

.system-bento-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.038));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.078),
    inset 0 -1px 0 rgba(255, 255, 255, 0.032),
    0 24px 70px rgba(0, 0, 0, 0.24);
}

.system-enterprise-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.045), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.034));
}

.system-panel-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 62%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 64% 24%, rgba(255, 255, 255, 0.06), transparent 34%);
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}

.system-hero-panel {
  display: flex;
  flex-direction: column;
}

.system-hero-visual {
  position: relative;
  min-height: 320px;
  flex: 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.system-support-preview,
.system-card-preview {
  position: relative;
  height: 178px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.system-card-preview {
  height: 188px;
}

.system-preview-scene {
  --system-accent: rgba(248, 251, 255, 0.66);
  --system-accent-strong: rgba(248, 251, 255, 0.88);
  --system-good: rgba(248, 251, 255, 0.62);
  --system-warn: rgba(248, 251, 255, 0.56);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--system-accent) 14%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.22), rgba(5, 9, 20, 0.64));
}

.system-preview-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(125, 157, 255, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.36;
}

.system-preview-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.system-preview-enterprise {
  --system-accent: rgba(248, 251, 255, 0.66);
  --system-accent-strong: rgba(248, 251, 255, 0.88);
  --system-good: rgba(248, 251, 255, 0.62);
}

.system-preview-large {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.075), transparent 38%),
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.08), rgba(5, 9, 20, 0.58));
}

.system-mini-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
  color: rgba(248, 251, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.system-tag,
.system-proof-pill,
.system-capability-chip {
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.system-tag {
  padding: 0.32rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(216, 224, 236, 0.78);
}

.system-proof-pill {
  display: grid;
  gap: 0.16rem;
  padding: 0.72rem 0.75rem;
  animation: system-soft-rise 7s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.45s);
}

.system-proof-pill span,
.metric-caption span,
.system-event span {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(216, 224, 236, 0.52);
}

.system-proof-pill strong,
.metric-caption strong,
.system-event strong {
  font-size: 0.84rem;
  font-weight: 900;
  color: #f8fbff;
}

.system-capability-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.72rem;
  padding: 0.7rem 0.78rem;
  color: rgba(216, 224, 236, 0.76);
  animation: none;
}

.system-capability-chip svg {
  color: rgba(248, 251, 255, 0.66);
}

.system-capability-chip span {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
  font-size: 0.76rem;
  line-height: 1.25;
}

.system-capability-chip strong {
  color: rgba(248, 251, 255, 0.92);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.owned-system-scene,
.automation-scene,
.mesh-scene,
.metrics-scene,
.ownership-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.system-link-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.system-link {
  fill: none;
  stroke: var(--system-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-opacity: 0.52;
  stroke-dasharray: 10 18;
  animation: system-trace 7s linear infinite;
  filter: none;
}

.system-link-b {
  animation-delay: -1.2s;
}

.system-link-c {
  animation-delay: -2.4s;
}

.system-link-d {
  animation-delay: -3.2s;
}

.system-link-e {
  animation-delay: -4s;
}

.system-core {
  position: absolute;
  left: 50%;
  top: 48%;
  display: grid;
  width: 6.4rem;
  height: 6.4rem;
  transform: translate(-50%, -50%);
  place-items: center;
}

.system-core-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  animation: system-orbit 12s linear infinite;
}

.system-core-ring::before,
.system-core-ring::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: inherit;
}

.system-core-ring::after {
  inset: -1.15rem;
  border-color: rgba(255, 255, 255, 0.08);
}

.system-core-icon {
  display: grid;
  width: 3.8rem;
  height: 3.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.22), rgba(248, 251, 255, 0.08));
  color: white;
  box-shadow:
    0 0 34px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.system-core-label {
  position: absolute;
  top: calc(100% + 0.38rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(248, 251, 255, 0.72);
  white-space: nowrap;
}

.system-node,
.automation-node,
.mesh-node,
.ownership-node,
.system-event,
.automation-status,
.metric-caption {
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(5, 9, 20, 0.68);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(12px);
}

.system-node {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  min-width: 8.4rem;
  padding: 0.68rem 0.76rem;
  color: rgba(248, 251, 255, 0.66);
  animation: system-soft-rise 8s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.5s);
}

.system-node span {
  display: grid;
  gap: 0.08rem;
  color: rgba(216, 224, 236, 0.58);
  font-size: 0.7rem;
  line-height: 1.15;
}

.system-node strong {
  color: rgba(248, 251, 255, 0.92);
  font-size: 0.76rem;
}

.node-intake {
  left: 7%;
  top: 12%;
}

.node-crm {
  left: 7%;
  bottom: 16%;
}

.node-portal {
  left: 38%;
  bottom: 4%;
}

.node-ops {
  right: 7%;
  top: 12%;
}

.node-metrics {
  right: 7%;
  bottom: 16%;
}

.node-owner {
  left: 41%;
  top: 7%;
}

.system-event {
  position: absolute;
  display: grid;
  gap: 0.1rem;
  padding: 0.62rem 0.78rem;
}

.system-event-one {
  left: 32%;
  top: 23%;
}

.system-event-two {
  right: 29%;
  bottom: 24%;
}

.product-window,
.agent-console {
  position: absolute;
  inset: 1rem;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 8px;
  background: rgba(5, 9, 20, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 20px 52px rgba(0, 0, 0, 0.24);
}

.window-bar {
  display: flex;
  height: 2.35rem;
  align-items: center;
  gap: 0.42rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 0.8rem;
}

.window-bar span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.window-bar strong {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  color: rgba(216, 224, 236, 0.36);
}

.pipeline-board {
  display: grid;
  height: calc(100% - 2.35rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem 0.78rem;
}

.pipeline-lane {
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.075);
  padding-left: 0.55rem;
}

.pipeline-lane-title {
  margin-bottom: 0.48rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  color: rgba(248, 251, 255, 0.48);
}

.pipeline-card {
  display: grid;
  gap: 0.24rem;
  margin-bottom: 0.48rem;
  min-height: 4.2rem;
  padding: 0.62rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  animation: system-soft-rise 7s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.42s);
}

.pipeline-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  color: rgba(248, 251, 255, 0.86);
}

.flow-window {
  display: grid;
  grid-template-rows: auto 1fr;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.48rem;
  padding: 1.25rem 0.85rem;
}

.flow-steps i {
  display: block;
  width: 100%;
  min-width: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.flow-step {
  display: grid;
  min-width: 0;
  gap: 0.42rem;
  place-items: center;
  color: rgba(248, 251, 255, 0.72);
  animation: system-node-pulse 8s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.5s);
}

.flow-step span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 850;
}

.flow-step svg {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
}

.pipeline-card strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  color: var(--system-accent);
}

.automation-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.56rem 0.64rem;
  color: rgba(248, 251, 255, 0.78);
  animation: system-node-pulse 6.8s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.52s);
}

.automation-node svg,
.mesh-node svg,
.ownership-node svg {
  color: var(--system-accent);
}

.automation-node span,
.mesh-node span {
  font-size: 0.67rem;
  font-weight: 850;
}

.flow-lead {
  left: 8%;
  top: 20%;
}

.flow-score {
  left: 37%;
  top: 37%;
}

.flow-doc {
  right: 8%;
  top: 22%;
}

.flow-send {
  right: 11%;
  bottom: 15%;
}

.automation-status {
  position: absolute;
  left: 9%;
  bottom: 12%;
  display: grid;
  gap: 0.08rem;
  padding: 0.58rem 0.72rem;
}

.metrics-scene {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: end;
  gap: 1rem;
  padding: 1.1rem;
}

.metric-ring {
  position: relative;
  display: grid;
  width: min(8.5rem, 100%);
  aspect-ratio: 1;
  place-items: center;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    conic-gradient(from 20deg, var(--system-accent) 0 82%, rgba(255, 255, 255, 0.08) 82% 100%),
    radial-gradient(circle, rgba(5, 9, 20, 1) 0 58%, transparent 59%);
  animation: system-soft-rise 8s ease-in-out infinite;
}

.metric-ring::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: inherit;
  background: rgba(5, 9, 20, 0.94);
}

.metric-ring span,
.metric-ring strong {
  position: relative;
  z-index: 1;
}

.metric-ring span {
  font-size: 1.4rem;
  font-weight: 950;
  color: #f8fbff;
}

.metric-ring strong {
  margin-top: 1.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  color: rgba(216, 224, 236, 0.42);
}

.metric-bars {
  display: flex;
  height: 7.5rem;
  align-items: end;
  gap: 0.42rem;
}

.metric-bars span {
  width: 100%;
  height: var(--bar-height);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--system-accent), rgba(255, 255, 255, 0.16));
  opacity: 0.72;
  transform-origin: bottom;
  animation: system-bar-grow 7.4s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.24s);
}

.metric-caption {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  gap: 0.08rem;
  padding: 0.58rem 0.72rem;
}

.portal-feed {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
}

.portal-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.85rem;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.078);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
  animation: system-soft-rise 7.2s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.5s);
}

.portal-row svg {
  color: var(--system-accent);
}

.portal-row span {
  display: grid;
  gap: 0.08rem;
  font-size: 0.68rem;
  color: rgba(216, 224, 236, 0.55);
}

.portal-row strong {
  color: rgba(248, 251, 255, 0.9);
}

.portal-row i {
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 999px;
  background: var(--system-good);
  box-shadow: 0 0 18px color-mix(in srgb, var(--system-good) 55%, transparent);
}

.mesh-node {
  position: absolute;
  display: grid;
  gap: 0.3rem;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  padding: 0;
  animation: system-node-pulse 8s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.5s);
}

.mesh-payments {
  left: 9%;
  top: 15%;
}

.mesh-email {
  right: 9%;
  top: 15%;
}

.mesh-calendar {
  left: 9%;
  bottom: 15%;
}

.mesh-data {
  right: 9%;
  bottom: 15%;
}

.mesh-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 5.1rem;
  height: 5.1rem;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 251, 255, 0.76);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.mesh-core span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.agent-console {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.agent-lines {
  display: grid;
  gap: 0.78rem;
  padding: 0.92rem 1rem;
  font-size: 0.74rem;
  color: rgba(216, 224, 236, 0.56);
}

.agent-lines strong {
  color: var(--system-accent);
  font-weight: 900;
}

.agent-lines em {
  color: rgba(248, 251, 255, 0.68);
  font-style: normal;
}

.agent-scan {
  position: absolute;
  inset: 2.35rem 0 auto;
  height: 4.8rem;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--system-accent) 16%, transparent), transparent);
  animation: system-scan 4.8s ease-in-out infinite;
}

.ownership-scene {
  display: grid;
  place-items: center;
}

.ownership-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  animation: system-orbit 18s linear infinite;
}

.ring-one {
  width: 10.5rem;
  height: 10.5rem;
}

.ring-two {
  width: 7.5rem;
  height: 7.5rem;
  animation-duration: 14s;
  animation-direction: reverse;
}

.ring-three {
  width: 4.5rem;
  height: 4.5rem;
  animation-duration: 10s;
}

.ownership-core {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.07);
  color: rgba(248, 251, 255, 0.76);
}

.ownership-core span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.55rem;
  font-weight: 900;
  color: rgba(248, 251, 255, 0.74);
}

.ownership-node {
  position: absolute;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  animation: system-node-pulse 7s ease-in-out infinite;
  animation-delay: calc(var(--motion-index) * -0.45s);
}

.own-key {
  left: 17%;
  top: 24%;
}

.own-lock {
  left: 18%;
  bottom: 20%;
}

.own-db {
  right: 18%;
  top: 24%;
}

.own-check {
  right: 18%;
  bottom: 20%;
}

.site-composition {
  display: grid;
  gap: 0.72rem;
  padding: 0.9rem;
}

.site-hero-line {
  height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--system-accent) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  animation: system-shimmer 5.8s ease-in-out infinite;
}

.site-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.052);
}

.site-form span {
  font-size: 0.76rem;
  font-weight: 850;
  color: rgba(248, 251, 255, 0.82);
}

.site-form strong {
  font-size: 0.68rem;
  color: var(--system-good);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem;
}

.site-cards span {
  height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  animation: system-soft-rise 7s ease-in-out infinite;
}

.site-cards span:nth-child(2) {
  background: color-mix(in srgb, var(--system-accent) 18%, rgba(255, 255, 255, 0.04));
  animation-delay: -0.8s;
}

@keyframes system-trace {
  to {
    stroke-dashoffset: -112;
  }
}

@keyframes system-soft-rise {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes system-chip-glow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.052);
  }
  45% {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.064);
  }
}

@keyframes system-node-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}

@keyframes system-bar-grow {
  0%,
  100% {
    transform: scaleY(0.84);
    opacity: 0.58;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

@keyframes system-scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  28%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateY(135%);
    opacity: 0;
  }
}

@keyframes system-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes system-shimmer {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.2);
  }
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-shell,
html[data-theme="dark"] .site-surface {
  background: #050914 !important;
  color: #f8fbff !important;
}

html[data-theme="dark"] .site-header {
  background: rgba(5, 9, 20, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-shell {
  background:
    radial-gradient(circle at 72% 42%, rgba(19, 93, 248, 0.18), transparent 34%),
    radial-gradient(circle at 26% 42%, rgba(16, 184, 199, 0.12), transparent 32%),
    linear-gradient(180deg, #060b16 0%, #050914 100%);
}

html[data-theme="dark"] .light-section,
html[data-theme="dark"] .site-footer {
  background: #07101d !important;
  color: #f8fbff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .theme-card,
html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-button-ghost,
html[data-theme="dark"] .theme-version-toggle,
html[data-theme="dark"] .theme-card-figure,
html[data-theme="dark"] .theme-subcard {
  background: rgba(12, 20, 34, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fbff !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-media {
  background: rgba(12, 20, 34, 0.64);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-media::after {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .hero-media-light {
  display: none;
}

html[data-theme="dark"] .hero-media-dark {
  display: block;
}

html[data-theme="dark"] .theme-version-active {
  background: #e7eefb !important;
  color: #07111f !important;
}

html[data-theme="dark"] .theme-version-inactive {
  color: #d8e0ec !important;
}

html[data-theme="dark"] .cta-dark {
  background: #f8fbff !important;
  color: #07111f !important;
  box-shadow: 0 18px 45px rgba(248, 251, 255, 0.12);
}

html[data-theme="dark"] .workflow-step-muted {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #7f8da3 !important;
}

html[data-theme="dark"] .workflow-step-line {
  background: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .bg-bone {
  background-color: #07101d !important;
}

html[data-theme="dark"] .text-ink,
html[data-theme="dark"] .light-section .text-slate-950 {
  color: #f8fbff !important;
}

html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-header .bg-ink,
html[data-theme="dark"] .theme-toggle:hover {
  background: #e7eefb !important;
  color: #07111f !important;
}

html[data-theme="dark"] input[type="range"] {
  accent-color: #10b8c7;
}

@keyframes stage-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 44px;
  }
}

.noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dot-grid {
  background-image: radial-gradient(rgba(19, 93, 248, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
}

.dot-field-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  width: calc(100vw - 2rem);
  max-width: 24rem;
}

@media (min-width: 640px) {
  .hero-copy {
    max-width: 44rem;
  }
}

@media (max-width: 640px) {
  .system-hero-visual {
    min-height: 320px;
  }

  .system-preview-large .system-node {
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
  }

  .system-preview-large .system-node span {
    display: none;
  }

  .system-core {
    width: 5.2rem;
    height: 5.2rem;
  }

  .system-core-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 14px;
  }

  .system-core-label {
    font-size: 0.58rem;
  }

  .node-intake {
    left: 7%;
    top: 16%;
  }

  .node-crm {
    left: 7%;
    bottom: 18%;
  }

  .node-portal {
    left: 41%;
    bottom: 5%;
  }

  .node-ops {
    right: 7%;
    top: 16%;
  }

  .node-metrics {
    right: 7%;
    bottom: 18%;
  }

  .node-owner {
    left: 44%;
    top: 8%;
  }

  .system-event {
    padding: 0.5rem 0.62rem;
  }

  .system-event-one {
    left: 31%;
    top: 24%;
  }

  .system-event-two {
    right: 25%;
    bottom: 24%;
  }

  .metric-ring {
    width: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: 37rem;
  }
}

.icon svg,
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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