/*
 * Nuraforce Liquid System v2
 * This layer intentionally separates content surfaces from functional glass.
 */

:root {
  --canvas: #050711;
  --canvas-raised: #0a0d19;
  --surface-content: rgba(12, 15, 27, 0.92);
  --surface-content-hover: rgba(17, 21, 37, 0.96);
  --surface-section: rgba(10, 13, 23, 0.66);
  --text-primary: #f8f9ff;
  --text-secondary: #c8cddd;
  --text-tertiary: #929bb3;
  --glass-tint: rgba(22, 25, 42, 0.42);
  --glass-clear: rgba(19, 23, 39, 0.24);
  --glass-edge: rgba(255, 255, 255, 0.28);
  --glass-edge-soft: rgba(255, 255, 255, 0.1);
  --glass-lower-edge: rgba(0, 0, 0, 0.38);
  --glass-glint: rgba(255, 255, 255, 0.2);
  --glass-shadow-v2: 0 24px 70px rgba(0, 0, 0, 0.38), 0 8px 26px rgba(0, 0, 0, 0.22);
  --section-border: rgba(255, 255, 255, 0.075);
  --accent-violet: #9188ff;
  --accent-cyan: #66e2ff;
  --accent-mint: #91ffcb;
  --accent-blue: #4f8cff;
  --theme-x: 90vw;
  --theme-y: 40px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --canvas: #edf2fb;
  --canvas-raised: #dfe8f6;
  --surface-content: rgba(255, 255, 255, 0.86);
  --surface-content-hover: rgba(255, 255, 255, 0.96);
  --surface-section: rgba(248, 250, 255, 0.68);
  --text-primary: #0b1222;
  --text-secondary: #3e4a62;
  --text-tertiary: #65718a;
  --glass-tint: rgba(255, 255, 255, 0.42);
  --glass-clear: rgba(255, 255, 255, 0.23);
  --glass-edge: rgba(255, 255, 255, 0.94);
  --glass-edge-soft: rgba(255, 255, 255, 0.58);
  --glass-lower-edge: rgba(29, 45, 74, 0.15);
  --glass-glint: rgba(255, 255, 255, 0.76);
  --glass-shadow-v2: 0 26px 70px rgba(63, 82, 122, 0.18), 0 8px 22px rgba(74, 93, 132, 0.1);
  --section-border: rgba(53, 68, 99, 0.1);
  --accent-violet: #6255dc;
  --accent-cyan: #007e9f;
  --accent-mint: #087a50;
  --accent-blue: #256bd9;
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --ink-muted: var(--text-tertiary);
  --night: var(--canvas);
  --night-soft: var(--canvas-raised);
  --line: rgba(34, 50, 80, 0.12);
  --line-strong: rgba(34, 50, 80, 0.2);
  --glass: var(--glass-tint);
  --glass-strong: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}

html {
  background: var(--canvas);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 0;
  background:
    radial-gradient(circle at 76% 2%, color-mix(in srgb, var(--accent-violet) 17%, transparent), transparent 29%),
    radial-gradient(circle at 7% 31%, color-mix(in srgb, var(--accent-cyan) 9%, transparent), transparent 27%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-raised) 46%, var(--canvas) 100%);
  color: var(--text-primary);
  transition: background-color 360ms ease, color 260ms ease;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.ambient {
  z-index: 0;
  opacity: 0.92;
}

:root[data-theme="light"] .ambient__orb--violet {
  opacity: 0.44;
  background: radial-gradient(circle, rgba(120, 106, 255, 0.46), rgba(127, 114, 255, 0.05) 68%, transparent 72%);
}

:root[data-theme="light"] .ambient__orb--cyan {
  opacity: 0.5;
  background: radial-gradient(circle, rgba(69, 207, 255, 0.34), rgba(76, 175, 229, 0.04) 66%, transparent 72%);
}

:root[data-theme="light"] .ambient__orb--mint {
  opacity: 0.44;
  background: radial-gradient(circle, rgba(85, 240, 180, 0.28), rgba(69, 196, 151, 0.04) 68%, transparent 72%);
}

:root[data-theme="light"] .ambient__grid {
  background-image:
    linear-gradient(rgba(36, 56, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 56, 92, 0.045) 1px, transparent 1px);
}

/* Real liquid material is reserved for navigation and interactive layers. */
.liquid-glass {
  --glint-x: 30%;
  --glint-y: 12%;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-edge-soft);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--glass-glint) 42%, transparent), transparent 22%, transparent 66%, color-mix(in srgb, var(--accent-cyan) 7%, transparent)),
    var(--glass-tint);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset 1px 0 0 color-mix(in srgb, var(--glass-edge) 45%, transparent),
    inset 0 -1px 0 var(--glass-lower-edge),
    var(--glass-shadow-v2);
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px)) saturate(1.45) contrast(1.04);
  backdrop-filter: blur(var(--glass-blur, 24px)) saturate(1.45) contrast(1.04);
}

.liquid-glass::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  padding: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  border-top: 1px solid var(--glass-edge);
  border-left: 1px solid color-mix(in srgb, var(--glass-edge) 58%, transparent);
  background: none;
  opacity: 0.78;
}

.liquid-glass::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at var(--glint-x) var(--glint-y), var(--glass-glint), transparent 17%);
  mix-blend-mode: normal;
  opacity: 0.55;
  transition: opacity 240ms ease;
}

.glass-nav > *,
.theme-toggle > *,
.button--glass > *,
.product-window > *,
.system-module > *,
.nura-command > * {
  position: relative;
  z-index: 2;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .liquid-glass {
    background: color-mix(in srgb, var(--canvas-raised) 94%, var(--accent-violet) 6%);
  }
}

/* Navigation and theme switch */
.site-header {
  z-index: 120;
}

.glass-nav {
  --glass-blur: 30px;
  grid-template-columns: minmax(190px, 1fr) auto auto auto;
  gap: 11px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--glass-glint) 30%, transparent), transparent 34%),
    color-mix(in srgb, var(--glass-tint) 88%, transparent);
}

.glass-nav::before,
.glass-nav::after {
  border-radius: inherit;
}

.theme-toggle {
  --glass-blur: 18px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 18px 30px 18px;
  align-items: center;
  gap: 4px;
  width: 78px;
  height: 42px;
  padding: 5px;
  border-radius: 999px;
  color: var(--text-tertiary);
  cursor: pointer;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 220ms ease, transform 320ms var(--ease);
}

.theme-toggle__track {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}

.theme-toggle__track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #aeb8d3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.25, 1.25), background 240ms ease;
}

:root[data-theme="dark"] .theme-toggle__moon,
:root[data-theme="light"] .theme-toggle__sun {
  color: var(--text-primary);
  transform: scale(1.08) rotate(0deg);
}

:root[data-theme="light"] .theme-toggle__track i {
  transform: translateX(12px);
  background: linear-gradient(145deg, #fff7b7, #ffc94f);
}

/* A strict first fold: shell + rail always resolve to the viewport height. */
.hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 48px;
  height: 100svh;
  min-height: 680px;
  padding-top: 0;
  overflow: clip;
}

.hero::before {
  width: min(1540px, 112vw);
  height: 100%;
  border-radius: 0 0 48% 48%;
  background:
    radial-gradient(circle at 76% 30%, color-mix(in srgb, var(--accent-violet) 26%, transparent), transparent 28%),
    radial-gradient(circle at 58% 68%, color-mix(in srgb, var(--accent-cyan) 12%, transparent), transparent 34%),
    radial-gradient(circle at 25% 32%, color-mix(in srgb, var(--accent-blue) 10%, transparent), transparent 24%);
}

.hero__halo {
  top: 8%;
  width: min(72vw, 960px);
  height: min(72vw, 960px);
  border-color: color-mix(in srgb, var(--accent-violet) 14%, transparent);
  transform: translateX(-5%);
}

.hero__shell {
  height: 100%;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 58px);
  padding-top: 102px;
  padding-bottom: 16px;
}

.hero__copy {
  max-width: 610px;
}

.js .hero__copy[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero h1 {
  max-width: 630px;
  margin: 18px 0 16px;
  color: var(--text-primary);
  font-size: clamp(3.7rem, 5.25vw, 5.35rem);
  line-height: 0.91;
}

.hero h1 span {
  margin-top: 0.08em;
  background: linear-gradient(100deg, var(--text-primary) 0%, #b7b1ff 34%, #68ddff 70%, #80f0ba 112%);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="light"] .hero h1 span {
  background: linear-gradient(100deg, #25205d 0%, #6759dd 36%, #037d9f 72%, #087a50 112%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lede {
  max-width: 570px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.55;
}

.hero__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.hero__categories span {
  padding: 7px 10px;
  border: 1px solid var(--glass-edge-soft);
  border-radius: 999px;
  color: var(--text-tertiary);
  background: color-mix(in srgb, var(--glass-clear) 76%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-edge) 55%, transparent);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero__actions {
  margin-top: 21px;
}

.hero__actions .button {
  min-height: 54px;
}

.hero__actions button {
  cursor: pointer;
}

.hero__support {
  display: none;
}

.eyebrow {
  color: var(--text-tertiary);
  background: color-mix(in srgb, var(--glass-clear) 82%, transparent);
}

.capability-rail {
  height: 48px;
  border-color: var(--section-border);
  background: color-mix(in srgb, var(--glass-clear) 48%, transparent);
}

.capability-rail__track {
  height: 48px;
  padding-block: 0;
  animation-duration: 42s;
}

.capability-rail span {
  color: var(--text-tertiary);
  font-size: 9px;
}

/* New Nura stage */
.system-stage {
  --glass-blur: 20px;
  contain: none;
  width: 100%;
  height: clamp(500px, calc(100svh - 180px), 570px);
  min-height: 0;
  max-height: 570px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent-violet) 20%, transparent), transparent 29%),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--accent-cyan) 13%, transparent), transparent 31%),
    linear-gradient(150deg, color-mix(in srgb, var(--glass-tint) 86%, transparent), color-mix(in srgb, var(--canvas) 68%, transparent));
  transform: none;
}

.system-stage::before {
  z-index: 1;
  padding: 0;
  border-top: 1px solid var(--glass-edge);
  border-left: 1px solid color-mix(in srgb, var(--glass-edge) 58%, transparent);
  background: none;
}

.system-stage::after {
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glint-x) var(--glint-y), var(--glass-glint), transparent 15%);
  -webkit-mask-image: none;
  mask-image: none;
}

.system-stage > .stage__glow,
.system-stage > .stage__topline,
.system-stage > .stage__canvas,
.system-stage > .stage__footer {
  display: none;
}

.liquid-stage {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  grid-template-rows: 52px minmax(0, 1fr) 42px;
  transform: perspective(1600px) rotateY(var(--stage-ry, 0deg)) rotateX(var(--stage-rx, 0deg));
  transform-origin: center;
  transition: transform 420ms var(--ease);
}

.liquid-stage__topbar,
.liquid-stage__footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 19px;
  color: var(--text-tertiary);
  background: color-mix(in srgb, var(--canvas) 24%, transparent);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.liquid-stage__topbar {
  border-bottom: 1px solid var(--section-border);
}

.liquid-stage__topbar > span,
.liquid-stage__footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.liquid-stage__topbar > span i,
.liquid-stage__footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
}

.liquid-stage__topbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--glass-edge-soft);
  border-radius: 999px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--glass-clear) 82%, transparent);
  font-size: 8px;
  font-weight: 760;
  cursor: pointer;
}

.liquid-stage__topbar button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.liquid-stage__footer {
  border-top: 1px solid var(--section-border);
}

.liquid-stage__footer span:nth-child(2) i { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
.liquid-stage__footer span:nth-child(3) i { background: var(--accent-violet); box-shadow: 0 0 10px var(--accent-violet); }

.liquid-stage__world {
  position: relative;
  z-index: 2;
  overflow: hidden;
  perspective: 1200px;
}

.liquid-stage__world::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(color-mix(in srgb, var(--text-primary) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text-primary) 3%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 10%, transparent 78%);
  opacity: 0.58;
}

.liquid-stage__world::after {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 72%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent-cyan) 35%, transparent), inset 0 0 24px color-mix(in srgb, var(--accent-violet) 28%, transparent);
  transform: translate(-50%, -50%) scale(.2);
}

.system-stage.is-booted .liquid-stage__world::after {
  animation: system-shockwave 920ms cubic-bezier(.18,.76,.2,1) 360ms both;
}

.product-window {
  --glass-blur: 16px;
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 11%;
  width: 78%;
  height: 76%;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--glass-glint) 34%, transparent), transparent 33%),
    color-mix(in srgb, var(--glass-tint) 72%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 32px 60px rgba(0, 0, 0, 0.26);
  transform: rotateX(4deg) translateY(0) scale(1);
  transform-origin: 50% 75%;
  transition: opacity 680ms ease 520ms, transform 900ms cubic-bezier(0.18, 0.9, 0.24, 1.04) 520ms;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.product-window__bar {
  display: grid;
  height: 37px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 12px;
  border-bottom: 1px solid var(--section-border);
  color: var(--text-tertiary);
  font-size: 7px;
}

.product-window__bar > span {
  display: flex;
  gap: 4px;
}

.product-window__bar > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7896;
}

.product-window__bar > span i:nth-child(2) { background: #ffd471; }
.product-window__bar > span i:nth-child(3) { background: var(--accent-mint); }

.product-window__bar b {
  justify-self: end;
  color: var(--accent-mint);
  font-size: 6px;
  text-transform: uppercase;
}

.product-window__body {
  display: grid;
  height: calc(100% - 37px);
  grid-template-columns: 44px 1fr;
}

.product-window__sidebar {
  display: grid;
  align-content: start;
  justify-content: center;
  gap: 13px;
  padding-top: 18px;
  border-right: 1px solid var(--section-border);
}

.product-window__sidebar i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
}

.product-window__sidebar i:first-child {
  background: linear-gradient(145deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 5px 16px color-mix(in srgb, var(--accent-violet) 35%, transparent);
}

.product-window__content {
  min-width: 0;
  padding: 14px 16px 12px;
}

.product-window__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-window__heading span {
  display: grid;
}

.product-window__heading small,
.product-window__metrics small {
  color: var(--text-tertiary);
  font-size: 6px;
  text-transform: uppercase;
}

.product-window__heading strong {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 12px;
}

.product-window__heading > i {
  width: 62px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-violet) 40%, transparent), color-mix(in srgb, var(--accent-cyan) 40%, transparent));
}

.product-window__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.product-window__metrics span {
  display: grid;
  padding: 8px;
  border: 1px solid var(--section-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--text-primary) 3.5%, transparent);
}

.product-window__metrics strong {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 8px;
}

.product-window__graph {
  position: relative;
  height: 112px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--section-border);
  border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-violet) 8%, transparent), transparent);
}

.product-window__graph::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--text-primary) 4%, transparent) 28px);
}

.product-window__graph svg {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  width: calc(100% - 16px);
  height: 84%;
  overflow: visible;
}

.product-window__graph path:first-child {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent-cyan) 60%, transparent));
}

.product-window__graph path:last-child {
  fill: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  stroke: none;
  opacity: 0.6;
}

.product-window__workflow {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.product-window__workflow span {
  display: grid;
  min-width: 47px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--section-border);
  border-radius: 7px;
  color: var(--text-tertiary);
  background: color-mix(in srgb, var(--text-primary) 3%, transparent);
  font-size: 6px;
}

.product-window__workflow i {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: var(--section-border);
}

.product-window__workflow i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: translateX(-120%);
}

.nura-paths {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.nura-path {
  stroke: color-mix(in srgb, var(--accent-cyan) 48%, transparent);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  stroke-dashoffset: 240;
  opacity: 0;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-cyan) 38%, transparent));
}

.nura-agent {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  display: grid;
  width: 146px;
  height: 146px;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: opacity 360ms ease, transform 900ms cubic-bezier(0.2, 1.15, 0.24, 1);
}

.nura-agent__halo,
.nura-agent__halo i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.nura-agent__halo {
  border: 1px solid color-mix(in srgb, var(--accent-violet) 34%, transparent);
  box-shadow: 0 0 55px color-mix(in srgb, var(--accent-violet) 24%, transparent);
}

.nura-agent__halo i:nth-child(1) {
  inset: 11px;
  border: 1px dashed color-mix(in srgb, var(--accent-cyan) 38%, transparent);
}

.nura-agent__halo i:nth-child(2) {
  inset: 24px;
  border: 1px solid color-mix(in srgb, var(--glass-edge) 46%, transparent);
}

.nura-agent__halo i:nth-child(3) {
  inset: -14px;
  border: 1px solid color-mix(in srgb, var(--accent-mint) 14%, transparent);
}

.nura-core {
  --glass-blur: 12px;
  position: relative;
  z-index: 2;
  display: grid;
  width: 88px;
  height: 88px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 39% 61% 56% 44% / 45% 42% 58% 55%;
  color: white;
  background:
    radial-gradient(circle at 27% 18%, rgba(255, 255, 255, 0.8), transparent 16%),
    radial-gradient(circle at 68% 76%, rgba(73, 232, 255, 0.72), transparent 28%),
    linear-gradient(145deg, rgba(167, 144, 255, 0.92), rgba(79, 86, 241, 0.9) 52%, rgba(56, 221, 238, 0.76));
  box-shadow:
    inset 8px 10px 18px rgba(255, 255, 255, 0.35),
    inset -12px -14px 24px rgba(23, 21, 111, 0.35),
    0 16px 45px rgba(77, 72, 255, 0.4),
    0 0 65px rgba(85, 221, 255, 0.22);
  cursor: pointer;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nura-core::before {
  display: none;
}

.nura-core::after {
  display: none;
}

.nura-core__liquid {
  position: absolute;
  z-index: 0;
  inset: -9px;
  border-radius: 44% 56% 42% 58% / 58% 43% 57% 42%;
  background: conic-gradient(from 120deg, transparent, rgba(255,255,255,0.38), transparent 37%, rgba(93,233,255,0.38), transparent 71%);
  filter: none;
  opacity: 0.72;
}

.nura-core__glint {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 18px;
  width: 32px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(4px);
  transform: rotate(-28deg);
}

.nura-core__face {
  position: absolute;
  z-index: 3;
  top: 27px;
  left: 50%;
  display: flex;
  gap: 15px;
  transform: translateX(-50%);
}

.nura-core__face i {
  width: 5px;
  height: 8px;
  border-radius: 999px;
  background: #f9fcff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  transform: translate(var(--eye-x, 0), var(--eye-y, 0));
}

.nura-core__mark {
  position: relative;
  z-index: 3;
  margin-top: 29px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 4px 12px rgba(25, 24, 105, 0.42);
}

.nura-agent__label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 6px 9px;
  border: 1px solid var(--glass-edge-soft);
  border-radius: 999px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--glass-tint) 80%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nura-agent__label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 9px var(--accent-mint);
}

.system-module {
  --glass-blur: 14px;
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  min-width: 145px;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--glass-glint) 32%, transparent), transparent 45%),
    color-mix(in srgb, var(--glass-tint) 74%, transparent);
  opacity: 0;
  transform: translate3d(var(--module-x, 0), var(--module-y, 12px), 0) scale(0.84);
  transition: opacity 420ms ease var(--module-delay), transform 680ms cubic-bezier(0.2, 1.16, 0.24, 1) var(--module-delay);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.system-module > i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 9px var(--accent-mint);
}

.system-module__icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #d6d2ff;
  background: color-mix(in srgb, var(--accent-violet) 18%, transparent);
  font-size: 15px;
}

.system-module > span:nth-child(2) {
  display: grid;
}

.system-module small {
  color: var(--text-tertiary);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-module strong {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 8px;
}

.system-module--product { --module-delay: 930ms; top: 12%; left: 3%; }
.system-module--ai { --module-delay: 1040ms; top: 14%; right: 3%; }
.system-module--crm { --module-delay: 1150ms; bottom: 11%; left: 3%; }
.system-module--cloud { --module-delay: 1260ms; right: 3%; bottom: 12%; }
.system-module--ai .system-module__icon { color: #96efff; background: color-mix(in srgb, var(--accent-cyan) 16%, transparent); }
.system-module--crm .system-module__icon,
.system-module--cloud .system-module__icon { color: #aaffd3; background: color-mix(in srgb, var(--accent-mint) 13%, transparent); }

.nura-command {
  --glass-blur: 14px;
  position: absolute;
  z-index: 8;
  right: 18%;
  bottom: 4%;
  width: 190px;
  padding: 9px 10px;
  border-radius: 13px;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  transition: opacity 420ms ease 1380ms, transform 620ms var(--ease) 1380ms;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nura-command__lights {
  display: flex;
  gap: 3px;
}

.nura-command__lights i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff7896;
}

.nura-command__lights i:nth-child(2) { background: #ffd471; }
.nura-command__lights i:nth-child(3) { background: var(--accent-mint); }

.nura-command p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0;
  color: var(--text-secondary);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.nura-command p b { color: var(--accent-mint); }
.nura-command p strong { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.nura-command__progress {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 7%, transparent);
}

.nura-command__progress i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan), var(--accent-mint));
  transform-origin: left;
}

.system-stage:not(.is-booted) .product-window {
  opacity: 0;
  transform: rotateX(24deg) translateY(72px) scale(0.72);
}

.system-stage:not(.is-booted) .nura-agent {
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.18) rotate(-25deg);
}

.system-stage.is-booted .system-module,
.system-stage.is-booted .nura-command {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.system-stage.is-settled .product-window,
.system-stage.is-settled .system-module,
.system-stage.is-settled .nura-command {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: none !important;
}

.system-stage.is-settled .product-window {
  transform: rotateX(4deg) translateY(0) scale(1) !important;
}

.system-stage.is-settled .nura-agent {
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
  transition: none !important;
}

.system-stage.is-settled .product-window__graph path:first-child {
  stroke-dashoffset: 0 !important;
  animation: none !important;
}

.js.experience-settled .hero__copy > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.experience-settled .ambient__orb,
.experience-settled .capability-rail__track,
.experience-settled .system-stage .nura-agent__halo i,
.experience-settled .system-stage .nura-core,
.experience-settled .system-stage .nura-core__liquid,
.experience-settled .system-stage .nura-core__face i,
.experience-settled .system-stage .nura-command__progress i,
.experience-settled .system-stage .product-window__workflow i::after {
  animation-play-state: paused !important;
}

.system-stage.is-booted .nura-path {
  animation: nura-path-draw 760ms var(--ease) forwards;
}

.system-stage.is-booted .nura-path--one { animation-delay: 700ms; }
.system-stage.is-booted .nura-path--two { animation-delay: 820ms; }
.system-stage.is-booted .nura-path--three { animation-delay: 940ms; }
.system-stage.is-booted .nura-path--four { animation-delay: 1060ms; }

.system-stage.is-booted .product-window__graph path:first-child {
  animation: graph-draw 980ms var(--ease) 960ms forwards;
}

.system-stage.is-booted .product-window__workflow i::after {
  animation: workflow-signal 1.6s linear 1.4s infinite;
}

.system-stage.is-active.is-booted .nura-agent__halo i:nth-child(1) { animation: liquid-orbit 14s linear infinite; }
.system-stage.is-active.is-booted .nura-agent__halo i:nth-child(2) { animation: liquid-orbit 9s linear infinite reverse; }
.system-stage.is-active.is-booted .nura-agent__halo i:nth-child(3) { animation: halo-pulse 4.8s ease-in-out infinite; }
.system-stage.is-active.is-booted .nura-core { animation: liquid-morph 8s ease-in-out infinite; }
.system-stage.is-active.is-booted .nura-core__liquid { animation: liquid-spin 10s linear infinite; }
.system-stage.is-active.is-booted .nura-core__face i { animation: nura-blink 5.7s ease-in-out infinite; }
.system-stage.is-active.is-booted .nura-command__progress i { animation: progress-breathe 2.8s ease-in-out infinite; }

/* Distinct, clearly bounded content sections */
.section[data-section] {
  width: min(calc(100% - 28px), 1510px);
  margin: 18px auto;
  overflow: clip;
  border: 1px solid var(--section-border);
  border-radius: 48px;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--section-accent, var(--accent-violet)) 7%, transparent), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-section) 96%, transparent), color-mix(in srgb, var(--canvas) 64%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-edge) 25%, transparent);
}

.section[data-section]::after {
  position: absolute;
  z-index: 0;
  top: 22px;
  right: 36px;
  content: attr(data-section);
  color: color-mix(in srgb, var(--text-primary) 3.5%, transparent);
  font-size: clamp(8rem, 15vw, 15rem);
  font-weight: 880;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
}

.section[data-section] > .shell {
  position: relative;
  z-index: 2;
}

.starting-points { --section-accent: var(--accent-cyan); }
.commitments { --section-accent: var(--accent-mint); }
.capabilities { --section-accent: var(--accent-violet); }
.work { --section-accent: var(--accent-cyan); }
.approach { --section-accent: var(--accent-mint); }
.process { --section-accent: var(--accent-blue); }
.engagements { --section-accent: var(--accent-violet); }

.section-kicker,
.eyebrow {
  color: var(--text-tertiary);
}

.section-heading h2,
.approach__copy h2,
.cta-panel h2 {
  color: var(--text-primary);
}

.section-heading > p,
.section-heading--stacked > p,
.approach__copy > p,
.cta-panel__copy > p:last-child {
  color: var(--text-secondary);
}

.starting-points {
  padding-block: 118px 124px;
}

.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 106px;
}

.route-map__lines {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  overflow: visible;
}

.route-map__lines path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent-cyan) 34%, transparent);
  stroke-width: 1;
  stroke-dasharray: 5 8;
  stroke-dashoffset: 300;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-cyan) 26%, transparent));
}

.route-map__spark {
  --glass-blur: 12px;
  position: absolute;
  z-index: 3;
  top: -15px;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 44% 56% 58% 42% / 46% 42% 58% 54%;
  color: white;
  background: linear-gradient(145deg, var(--accent-violet), var(--accent-blue) 55%, var(--accent-cyan));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.58), 0 14px 40px color-mix(in srgb, var(--accent-violet) 35%, transparent);
  transform: translateX(-50%);
}

.route-map__spark span {
  font-size: 17px;
  font-weight: 900;
}

.route-map__spark i {
  position: absolute;
  inset: -9px;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  border-radius: 50%;
}

.route-card,
.capability-card,
.work-card,
.engagement-card,
.commitment-grid,
.before-after {
  border-color: var(--section-border);
  background: var(--surface-content);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-edge) 26%, transparent), 0 20px 54px color-mix(in srgb, var(--canvas) 34%, transparent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.route-card {
  position: relative;
  z-index: 2;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--section-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 20%), color-mix(in srgb, var(--route-accent) 13%, transparent), transparent 28%),
    var(--surface-content);
  transition: transform 520ms var(--ease), border-color 260ms ease, background-color 260ms ease;
}

.route-card--product { --route-accent: var(--accent-violet); }
.route-card--automation { --route-accent: var(--accent-cyan); }
.route-card--platform { --route-accent: var(--accent-mint); }

.route-card:hover {
  border-color: color-mix(in srgb, var(--route-accent) 40%, var(--section-border));
  transform: translateY(-6px) scale(1.006);
}

.route-card__number {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.route-card__icon {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  margin-top: 50px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--route-accent) 22%, transparent);
  border-radius: 23px;
  background: color-mix(in srgb, var(--route-accent) 9%, transparent);
}

.route-card__icon i {
  grid-area: 1 / 1;
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--route-accent) 72%, transparent);
  border-radius: 8px;
}

.route-card__icon i:nth-child(2) { transform: translate(8px, -8px); opacity: 0.55; }
.route-card__icon i:nth-child(3) { transform: translate(-8px, 8px); opacity: 0.28; }

.route-card--automation .route-card__icon i {
  border-radius: 50%;
}

.route-card--platform .route-card__icon i {
  height: 8px;
  border-radius: 999px;
}

.route-card h3 {
  margin: 28px 0 10px;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.route-card p {
  max-width: 360px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.route-card a {
  position: absolute;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 760;
}

.route-card a span {
  transition: transform 300ms var(--ease);
}

.route-card:hover a span { transform: translate(3px, -3px); }

/* Section-specific motion: meaningful, one dominant story per section. */
.commitment-grid article,
.capability-card,
.work-card,
.engagement-card,
.route-card {
  color: var(--text-primary);
}

.commitment-grid strong,
.capability-card h3,
.work-card h3,
.engagement-card h3,
.approach__principles strong,
.process-track strong {
  color: var(--text-primary);
}

.commitment-grid small,
.capability-card p,
.work-card p,
.engagement-card p,
.approach__principles small,
.process-track p {
  color: var(--text-secondary);
}

.commitment-grid article {
  position: relative;
  overflow: hidden;
}

.commitment-grid article::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--accent-mint) 32%, transparent);
  border-radius: 50%;
  content: "✓";
  color: var(--accent-mint);
  font-size: 10px;
  line-height: 20px;
  text-align: center;
  opacity: 0;
  transform: scale(1.8) rotate(-18deg);
}

.capability-card {
  transform-style: preserve-3d;
}

.capability-card::before {
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), color-mix(in srgb, var(--accent-violet) 13%, transparent), transparent 34%);
}

.capability-card:nth-child(2)::before { background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), color-mix(in srgb, var(--accent-cyan) 13%, transparent), transparent 34%); }
.capability-card:nth-child(3)::before { background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), color-mix(in srgb, var(--accent-mint) 12%, transparent), transparent 34%); }
.capability-card:nth-child(4)::before { background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 205, 100, 0.1), transparent 34%); }

.work-card {
  overflow: hidden;
}

.revenue-visual,
.copilot-visual,
.intelligence-visual {
  border-color: var(--section-border);
  background: color-mix(in srgb, var(--canvas-raised) 74%, transparent);
}

.process-track::after {
  position: absolute;
  z-index: 0;
  top: 40px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan), var(--accent-mint));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-cyan) 45%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}

[data-scene].is-inview .route-map__lines path {
  animation: route-draw 1.15s var(--ease) forwards;
}

[data-scene].is-inview .route-map__lines path:nth-child(2) { animation-delay: 100ms; }
[data-scene].is-inview .route-map__lines path:nth-child(3) { animation-delay: 200ms; }
[data-scene].is-inview .route-map__spark { animation: spark-settle 900ms cubic-bezier(0.2, 1.2, 0.24, 1) both; }

[data-scene].is-inview .route-card__icon i:nth-child(2) { animation: route-layer-one 2.8s ease-in-out 700ms infinite; }
[data-scene].is-inview .route-card__icon i:nth-child(3) { animation: route-layer-two 2.8s ease-in-out 700ms infinite; }

.commitments.is-inview .commitment-grid article::after {
  animation: verified-seal 620ms cubic-bezier(0.2, 1.3, 0.25, 1) forwards;
}

.commitments.is-inview .commitment-grid article:nth-child(2)::after { animation-delay: 120ms; }
.commitments.is-inview .commitment-grid article:nth-child(3)::after { animation-delay: 240ms; }
.commitments.is-inview .commitment-grid article:nth-child(4)::after { animation-delay: 360ms; }

.capabilities.is-inview .capability-card__icon {
  animation: capability-icon-arrive 760ms cubic-bezier(0.2, 1.2, 0.24, 1) both;
}

.capabilities.is-inview .capability-card:nth-child(2) .capability-card__icon { animation-delay: 100ms; }
.capabilities.is-inview .capability-card:nth-child(3) .capability-card__icon { animation-delay: 200ms; }
.capabilities.is-inview .capability-card:nth-child(4) .capability-card__icon { animation-delay: 300ms; }

.capabilities.is-inview .capability-card:nth-child(1) .capability-card__icon::after { animation: build-stack 3.4s ease-in-out 1s infinite; }
.capabilities.is-inview .capability-card:nth-child(2) .capability-card__icon { animation-name: capability-icon-arrive, ai-attention; animation-duration: 760ms, 3.2s; animation-delay: 100ms, 1.1s; animation-iteration-count: 1, infinite; }
.capabilities.is-inview .capability-card:nth-child(3) .capability-card__icon svg { animation: connect-pulse 2.4s ease-in-out 1.25s infinite; }
.capabilities.is-inview .capability-card:nth-child(4) .capability-card__icon { animation-name: capability-icon-arrive, cloud-lift; animation-duration: 760ms, 3.6s; animation-delay: 300ms, 1.4s; animation-iteration-count: 1, infinite; }

.work.is-inview .revenue-visual__chart i { animation: work-bar-rise 950ms var(--ease) both; }
.work.is-inview .revenue-visual__chart i:nth-child(2) { animation-delay: 80ms; }
.work.is-inview .revenue-visual__chart i:nth-child(3) { animation-delay: 160ms; }
.work.is-inview .revenue-visual__chart i:nth-child(4) { animation-delay: 240ms; }
.work.is-inview .revenue-visual__chart i:nth-child(5) { animation-delay: 320ms; }
.work.is-inview .revenue-visual__chart i:nth-child(6) { animation-delay: 400ms; }
.work.is-inview .revenue-visual__chart i:nth-child(7) { animation-delay: 480ms; }
.work.is-inview .revenue-visual__chart i:nth-child(8) { animation-delay: 560ms; }
.work.is-inview .chat-line--user { animation: chat-arrive-right 640ms var(--ease) both; }
.work.is-inview .chat-line--agent { animation: chat-arrive-left 680ms var(--ease) 360ms both; }
.work.is-inview .approval { animation: approval-arrive 580ms var(--ease) 820ms both; }
.work.is-inview .signal-ring { animation: signal-awaken 900ms var(--ease) 240ms both; }

.approach:not(.is-inview) .fragment--one { transform: translate(-24px, -18px) rotate(-9deg); }
.approach:not(.is-inview) .fragment--two { transform: translate(-28px, 20px) rotate(7deg); }
.approach:not(.is-inview) .fragment--three { transform: translate(26px, -19px) rotate(8deg); }
.approach:not(.is-inview) .fragment--four { transform: translate(30px, 21px) rotate(-7deg); }
.approach .fragment { transition: transform 960ms var(--ease), border-color 460ms ease; }
.approach.is-inview .connected-core { animation: connected-resolve 1s cubic-bezier(0.2, 1.2, 0.24, 1) 420ms both; }
.approach.is-inview .before-after__canvas svg path { animation: transform-path 1.2s var(--ease) 320ms both; }

.process.is-inview .process-track::after { animation: process-line 1.5s var(--ease) forwards; }
.process.is-inview .process-track li::before { animation: process-node 520ms cubic-bezier(0.2, 1.2, 0.24, 1) both; }
.process.is-inview .process-track li:nth-child(2)::before { animation-delay: 260ms; }
.process.is-inview .process-track li:nth-child(3)::before { animation-delay: 520ms; }
.process.is-inview .process-track li:nth-child(4)::before { animation-delay: 780ms; }
.process.is-inview .process-track li:nth-child(5)::before { animation-delay: 1040ms; }

.engagements:not(.is-inview) .engagement-card:nth-child(1) { transform: translateY(60px) rotate(-2deg); }
.engagements:not(.is-inview) .engagement-card:nth-child(2) { transform: translateY(90px); }
.engagements:not(.is-inview) .engagement-card:nth-child(3) { transform: translateY(60px) rotate(2deg); }
.engagement-card { transition: transform 820ms var(--ease), border-color 260ms ease, background-color 260ms ease; }
.engagements.is-inview .engagement-card:nth-child(2) { transition-delay: 120ms; }
.engagements.is-inview .engagement-card:nth-child(3) { transition-delay: 240ms; }

.final-cta.is-inview .cta-panel__orb { animation: cta-orb-arrive 1s cubic-bezier(0.2, 1.16, 0.24, 1) both; }

/* Light mode details */
:root[data-theme="light"] .glass-nav,
:root[data-theme="light"] .system-stage,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .button--glass,
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .system-module,
:root[data-theme="light"] .nura-command {
  border-color: rgba(255, 255, 255, 0.76);
}

:root[data-theme="light"] .button--glass {
  color: #17213a;
  background: rgba(255, 255, 255, 0.36);
}

:root[data-theme="light"] .button--primary {
  color: white;
}

:root[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.34);
}

:root[data-theme="light"] .nav-links a,
:root[data-theme="light"] .brand__copy strong,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .footer a {
  color: var(--text-primary);
}

:root[data-theme="light"] .brand__copy small,
:root[data-theme="light"] .footer p,
:root[data-theme="light"] .footer span {
  color: var(--text-tertiary);
}

:root[data-theme="light"] .section[data-section] {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 70px rgba(64, 83, 122, 0.08);
}

:root[data-theme="light"] .cta-panel {
  color: white;
  background: linear-gradient(135deg, #5d52d9, #287bd3 55%, #21a984);
}

:root[data-theme="light"] .cta-panel h2,
:root[data-theme="light"] .cta-panel__copy > p,
:root[data-theme="light"] .cta-panel .section-kicker {
  color: white;
}

/* Controlled hero entrance */
.js:not(.is-static) .hero__copy > * {
  opacity: 0;
  transform: translateY(18px);
}

.js.is-ready:not(.is-static) .hero__copy > * {
  animation: hero-copy-in 680ms var(--ease) forwards;
}

.js.is-ready:not(.is-static) .hero__copy > :nth-child(1) { animation-delay: 80ms; }
.js.is-ready:not(.is-static) .hero__copy > :nth-child(2) { animation-delay: 160ms; }
.js.is-ready:not(.is-static) .hero__copy > :nth-child(3) { animation-delay: 260ms; }
.js.is-ready:not(.is-static) .hero__copy > :nth-child(4) { animation-delay: 340ms; }
.js.is-ready:not(.is-static) .hero__copy > :nth-child(5) { animation-delay: 420ms; }

@keyframes hero-copy-in { to { opacity: 1; transform: translateY(0); } }
@keyframes system-shockwave { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(6.4); } }
@keyframes nura-path-draw { 0% { opacity: 0; stroke-dashoffset: 240; } 100% { opacity: 0.9; stroke-dashoffset: 0; } }
@keyframes graph-draw { to { stroke-dashoffset: 0; } }
@keyframes workflow-signal { to { transform: translateX(120%); } }
@keyframes liquid-orbit { to { transform: rotate(1turn); } }
@keyframes halo-pulse { 50% { opacity: 0.35; transform: scale(1.08); } }
@keyframes liquid-spin { to { transform: rotate(1turn); } }
@keyframes liquid-morph {
  0%, 100% { border-radius: 39% 61% 56% 44% / 45% 42% 58% 55%; transform: translateY(0) rotate(-1deg); }
  33% { border-radius: 58% 42% 46% 54% / 39% 60% 40% 61%; transform: translateY(-3px) rotate(1deg); }
  66% { border-radius: 46% 54% 62% 38% / 58% 44% 56% 42%; transform: translateY(2px) rotate(0deg); }
}
@keyframes nura-blink { 0%, 45%, 49%, 100% { transform: translate(var(--eye-x, 0), var(--eye-y, 0)) scaleY(1); } 47% { transform: translate(var(--eye-x, 0), var(--eye-y, 0)) scaleY(0.12); } }
@keyframes progress-breathe { 0%, 100% { transform: scaleX(0.54); } 50% { transform: scaleX(1); } }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes spark-settle { 0% { opacity: 0; transform: translate(-50%, -32px) scale(.25) rotate(-20deg); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes route-layer-one { 50% { transform: translate(11px, -11px); } }
@keyframes route-layer-two { 50% { transform: translate(-11px, 11px); } }
@keyframes verified-seal { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes capability-icon-arrive { 0% { opacity: 0; transform: translateY(24px) scale(.7) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
@keyframes build-stack { 50% { transform: translate(4px, -4px) rotate(5deg); opacity: .72; } }
@keyframes ai-attention { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent-cyan) 5%, transparent), 0 18px 40px color-mix(in srgb, var(--accent-cyan) 15%, transparent); } }
@keyframes connect-pulse { 50% { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--accent-mint)); } }
@keyframes cloud-lift { 50% { transform: translateY(-5px); } }
@keyframes work-bar-rise { from { opacity: .2; transform: scaleY(.08); } to { opacity: 1; transform: scaleY(1); } }
@keyframes chat-arrive-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes chat-arrive-left { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes approval-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes signal-awaken { from { opacity: 0; transform: scale(.68) rotate(-28deg); } to { opacity: 1; transform: none; } }
@keyframes connected-resolve { from { opacity: .2; transform: translate(-50%, -50%) scale(.55); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes transform-path { from { stroke-dasharray: 550; stroke-dashoffset: 550; } to { stroke-dasharray: 550; stroke-dashoffset: 0; } }
@keyframes process-line { to { transform: scaleX(1); } }
@keyframes process-node { from { opacity: .3; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes cta-orb-arrive { from { opacity: 0; transform: translateX(-45px) scale(.5) rotate(-35deg); } to { opacity: 1; transform: none; } }

@media (min-width: 901px) and (max-width: 1240px) {
  .hero__shell {
    grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
    gap: 22px;
  }

  .hero h1 { font-size: clamp(3.25rem, 5.3vw, 4.3rem); }
  .hero__lede { font-size: 14px; }
  .hero__categories span { padding: 6px 8px; font-size: 8px; }
  .system-stage { height: clamp(480px, calc(100svh - 180px), 540px); }
  .system-module { min-width: 126px; padding: 8px; }
  .system-module--product, .system-module--crm { left: 2%; }
  .system-module--ai, .system-module--cloud { right: 2%; }
}

@media (min-width: 901px) and (max-height: 740px) {
  .hero { min-height: 640px; }
  .hero__shell { padding-top: 92px; padding-bottom: 12px; }
  .hero h1 { margin-block: 13px 11px; font-size: clamp(3.05rem, 4.9vw, 4rem); }
  .hero__lede { font-size: 13px; line-height: 1.45; }
  .hero__categories { margin-top: 12px; }
  .hero__actions { margin-top: 14px; }
  .hero__actions .button { min-height: 48px; }
  .system-stage { height: clamp(455px, calc(100svh - 170px), 520px); }
}

@media (max-width: 1080px) {
  .glass-nav {
    grid-template-columns: 1fr auto auto;
  }

  .nav-action { display: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-rows: minmax(0, 1fr);
    height: 100svh;
    min-height: 650px;
  }

  .hero__shell {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(170px, 1fr);
    align-items: start;
    gap: 14px;
    padding-top: 104px;
    padding-bottom: 14px;
  }

  .hero__copy { max-width: 690px; }
  .hero h1 { max-width: 690px; font-size: clamp(3.25rem, 8.6vw, 5.2rem); }
  .system-stage { align-self: stretch; width: 100%; height: auto; min-height: 250px; max-height: none; }
  .capability-rail { display: none; }
  .route-map { grid-template-columns: 1fr; padding-top: 80px; }
  .route-map__lines { display: none; }
  .route-map__spark { top: 3px; }
  .route-card { min-height: 290px; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 20px); }
  .glass-nav { grid-template-columns: 1fr auto auto; }
  .theme-toggle { width: 68px; grid-template-columns: 15px 26px 15px; height: 44px; gap: 2px; }
  .theme-toggle__track { width: 26px; }
  :root[data-theme="light"] .theme-toggle__track i { transform: translateX(8px); }

  .hero {
    min-height: 568px;
  }

  .hero__shell {
    width: min(calc(100% - 28px), var(--shell));
    grid-template-rows: auto minmax(150px, 1fr);
    gap: 10px;
    padding-top: 88px;
    padding-bottom: 10px;
  }

  .eyebrow {
    max-width: 100%;
    padding-block: 7px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(2.55rem, 12.4vw, 3.45rem);
    line-height: 0.9;
  }

  .hero__lede {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero__categories {
    display: none;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
  }

  .hero__actions .button {
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .system-stage {
    height: auto;
    min-height: 0;
    border-radius: 24px;
  }

  .liquid-stage {
    grid-template-rows: 37px minmax(0, 1fr) 31px;
  }

  .liquid-stage__topbar,
  .liquid-stage__footer {
    padding-inline: 11px;
    font-size: 6px;
  }

  .liquid-stage__topbar button {
    padding: 4px 7px;
    font-size: 6px;
  }

  .liquid-stage__topbar button svg { width: 9px; height: 9px; }
  .liquid-stage__footer span:nth-child(3) { display: none; }

  .product-window {
    top: 7%;
    left: 5%;
    width: 90%;
    height: 84%;
    border-radius: 17px;
  }

  .product-window__bar { height: 28px; padding-inline: 8px; }
  .product-window__body { height: calc(100% - 28px); grid-template-columns: 28px 1fr; }
  .product-window__sidebar { gap: 7px; padding-top: 9px; }
  .product-window__sidebar i { width: 12px; height: 12px; border-radius: 4px; }
  .product-window__content { padding: 7px; }
  .product-window__heading strong { font-size: 8px; }
  .product-window__heading > i { width: 32px; height: 12px; }
  .product-window__metrics { gap: 3px; margin-top: 5px; }
  .product-window__metrics span { padding: 4px; border-radius: 6px; }
  .product-window__metrics small { font-size: 4px; }
  .product-window__metrics strong { margin-top: 2px; font-size: 5px; }
  .product-window__graph { height: 48px; margin-top: 5px; border-radius: 7px; }
  .product-window__workflow { margin-top: 5px; }
  .product-window__workflow span { min-width: 30px; height: 15px; font-size: 4px; }

  .nura-agent { width: 96px; height: 96px; }
  .nura-core { width: 60px; height: 60px; }
  .nura-core__face { top: 18px; gap: 10px; }
  .nura-core__face i { width: 4px; height: 6px; }
  .nura-core__mark { margin-top: 21px; font-size: 15px; }
  .nura-core__glint { top: 8px; left: 12px; width: 22px; height: 11px; }
  .nura-agent__label { top: calc(100% + 3px); padding: 4px 6px; font-size: 5px; }
  .system-module { min-width: 90px; padding: 5px 6px; border-radius: 10px; }
  .system-module__icon { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
  .system-module small { font-size: 4px; }
  .system-module strong { font-size: 5px; }
  .system-module--product { top: 5%; left: 1%; }
  .system-module--ai { top: 6%; right: 1%; }
  .system-module--crm,
  .system-module--cloud { display: none; }
  .nura-command { right: 4%; bottom: 3%; width: 116px; padding: 5px 6px; border-radius: 8px; }
  .nura-command p { margin: 4px 0; font-size: 4px; }

  .section[data-section] {
    width: calc(100% - 12px);
    margin-block: 10px;
    border-radius: 30px;
  }

  .section[data-section]::after { top: 18px; right: 18px; font-size: 7rem; }
  .starting-points { padding-block: 90px; }
  .route-map { gap: 11px; }
  .route-card { min-height: 300px; padding: 23px; border-radius: 23px; }
  .route-card__icon { width: 60px; height: 60px; margin-top: 40px; }
  .route-card h3 { margin-top: 22px; }
  .route-card a { right: 23px; bottom: 21px; left: 23px; }

  .process-track::after {
    top: 0;
    bottom: 0;
    left: 8px;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }
  .process.is-inview .process-track::after { animation-name: process-line-mobile; }
}

@media (max-width: 410px) {
  .brand__copy strong { font-size: 13px; }
  .theme-toggle { width: 59px; grid-template-columns: 13px 23px 13px; }
  .theme-toggle svg { width: 13px; height: 13px; }
  .theme-toggle__track { width: 23px; }
  :root[data-theme="light"] .theme-toggle__track i { transform: translateX(5px); }
  .hero__shell { padding-top: 84px; }
  .hero h1 { font-size: clamp(2.45rem, 12.7vw, 3.15rem); }
  .hero__lede { font-size: 12px; }
}

@media (max-height: 650px) and (max-width: 900px) {
  .hero__shell { padding-top: 78px; gap: 6px; }
  .hero h1 { margin-block: 8px 7px; font-size: clamp(2.2rem, 11.5vw, 2.85rem); }
  .hero__lede { font-size: 11px; -webkit-line-clamp: 2; }
  .hero__actions { margin-top: 8px; }
  .hero__actions .button { min-height: 40px; }
  .hero__actions .button--glass { display: none; }
  .system-stage { min-height: 145px; }
  .liquid-stage__topbar { display: none; }
  .liquid-stage { grid-template-rows: minmax(0, 1fr) 26px; }
}

@media (prefers-reduced-transparency: reduce) {
  .liquid-glass,
  .glass-panel,
  .glass-nav,
  .system-module,
  .nura-command {
    background: color-mix(in srgb, var(--canvas-raised) 96%, var(--accent-violet) 4%) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .liquid-glass::after { display: none; }
}

@media (prefers-contrast: more) {
  :root { --text-tertiary: var(--text-secondary); --glass-edge-soft: color-mix(in srgb, var(--text-primary) 42%, transparent); }
  .liquid-glass,
  .route-card,
  .capability-card,
  .work-card,
  .engagement-card { border-width: 2px; }
}

@media (forced-colors: active) {
  .ambient,
  .liquid-glass::before,
  .liquid-glass::after { display: none !important; }
  .liquid-glass,
  .glass-panel,
  .route-card,
  .section[data-section] { border: 2px solid CanvasText; background: Canvas; box-shadow: none; color: CanvasText; }
  .button { border: 2px solid ButtonText; background: ButtonFace; color: ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__copy > *,
  .system-module,
  .nura-command,
  .product-window,
  .nura-agent,
  .route-card,
  .engagement-card { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .nura-agent { transform: translate(-50%, -50%) !important; }
  .nura-path { opacity: .7; stroke-dashoffset: 0; animation: none !important; }
  .product-window__graph path:first-child { stroke-dashoffset: 0; animation: none !important; }
}

.is-static .hero__copy > *,
.is-static .system-module,
.is-static .nura-command,
.is-static .product-window,
.is-static .nura-agent {
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
}

.is-static .nura-agent { transform: translate(-50%, -50%) !important; }
.is-static .nura-path { opacity: .7; stroke-dashoffset: 0; }
.is-static .product-window__graph path:first-child { stroke-dashoffset: 0; }

@keyframes process-line-mobile { to { transform: scaleY(1); } }
