/*
  RADVEN Premium V3 — additions for production/legal pages.
  The approved V3 typography is intentionally unchanged:
  DM Sans + Space Mono remain defined in styles.css.
*/

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.dialog-actions p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  min-height: 20px;
  margin: 18px 0 0;
  font-size: 11px;
  font-weight: 700;
}
.form-status.is-success { color: #087f5b; }
.form-status.is-error { color: #bd1e1e; }

.form-success {
  min-height: 432px;
  display: grid;
  justify-items: start;
  align-content: center;
  padding: 22px 4px 12px;
  animation: form-success-in .48s cubic-bezier(.2,.9,.2,1) both;
}
.form-success[hidden] { display: none; }
.dialog-shell.is-complete .dialog-head,
.dialog-shell.is-complete .form-grid,
.dialog-shell.is-complete .dialog-actions,
.dialog-shell.is-complete .form-status { display: none; }
.message-system {
  position: relative;
  width: 148px;
  height: 104px;
  margin: 0 0 24px;
}
.message-node,
.message-core {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.message-node {
  width: 15px;
  height: 15px;
  border: 3px solid var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(0,109,255,.08);
  animation: message-node-in .48s cubic-bezier(.2,1.2,.35,1) both;
}
.message-node-a { top: 0; left: 2px; animation-delay: .05s; }
.message-node-b { top: 73px; left: 2px; animation-delay: .17s; }
.message-node-c { top: 37px; left: 18px; border-color: var(--cyan); animation-delay: .29s; }
.message-link {
  position: absolute;
  left: 16px;
  width: 76px;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  animation: message-link-in .48s cubic-bezier(.2,.9,.2,1) forwards;
}
.message-link-a { top: 12px; transform: rotate(25deg); animation-delay: .43s; }
.message-link-b { top: 81px; transform: rotate(-25deg); animation-delay: .55s; }
.message-link-c { top: 44px; left: 31px; width: 61px; transform: rotate(0); animation-delay: .67s; }
.message-core {
  top: 25px;
  right: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 34px rgba(0, 109, 255, .25), 0 0 0 9px rgba(0,218,245,.10);
  color: var(--white);
  font-size: 25px;
  opacity: 0;
  animation: message-core-in .55s .86s cubic-bezier(.2,1.35,.4,1) forwards;
}
.message-core b { line-height: 1; transform: translateY(-1px); }
.form-success .micro-label { margin: 0 0 16px; }
.form-success h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -.06em;
  line-height: .96;
}
.form-success > p:not(.micro-label) {
  max-width: 460px;
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.form-success .button { min-width: 150px; }
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes message-node-in {
  from { opacity: 0; transform: scale(.35); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes message-link-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes message-core-in {
  from { opacity: 0; transform: scale(.45) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-success,
  .message-node,
  .message-link,
  .message-core { animation: none; opacity: 1; }
}

/* RADVEN system motion — concise, purposeful cues triggered only in view. */
.system-scene { --scene-ease: cubic-bezier(.2,.8,.2,1); }
.hero-packet {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan), 0 0 0 5px rgba(0,218,245,.08);
  opacity: 0;
  animation-duration: 5.8s;
  animation-timing-function: var(--scene-ease);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.system-scene.is-active .hero-packet { animation-play-state: running; }
.hero-packet-a { top: 25%; left: 14%; animation-name: hero-packet-a; }
.hero-packet-b { top: 23%; right: 15%; animation-name: hero-packet-b; animation-delay: 1.85s; }
.hero-packet-c { bottom: 28%; left: 18%; animation-name: hero-packet-c; animation-delay: 3.7s; }
.hero-product .system-status strong i { animation: system-online 1.8s ease-in-out infinite; }

.flow-visual.system-scene .flow-step {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .48s var(--scene-ease), transform .48s var(--scene-ease);
}
.flow-visual.system-scene.is-active .flow-step:nth-child(1) { opacity: 1; transform: none; transition-delay: .08s; }
.flow-visual.system-scene.is-active .flow-step:nth-child(3) { opacity: 1; transform: none; transition-delay: .55s; }
.flow-visual.system-scene.is-active .flow-step:nth-child(5) { opacity: 1; transform: none; transition-delay: 1.05s; }
.flow-visual.system-scene .flow-connector b { animation-play-state: paused; }
.flow-visual.system-scene.is-active .flow-connector b { animation-play-state: running; }
.flow-visual.system-scene.is-active .flow-connector:nth-child(2) b { animation-delay: .32s; }
.flow-visual.system-scene.is-active .flow-connector:nth-child(4) b { animation-delay: .82s; }
.flow-visual.system-scene.is-active .flow-step:last-child i {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 13px 25px rgba(0,109,255,.2);
  transition: background .3s ease 1.05s, color .3s ease 1.05s, border-color .3s ease 1.05s, box-shadow .3s ease 1.05s;
}
.flow-visual.system-scene .flow-result {
  opacity: .38;
  transform: translateY(8px);
  transition: opacity .45s var(--scene-ease) 1.45s, transform .45s var(--scene-ease) 1.45s;
}
.flow-visual.system-scene.is-active .flow-result { opacity: 1; transform: none; }

.automation-visual.system-scene { position: relative; overflow: hidden; }
.automation-visual.system-scene::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20%;
  bottom: -20%;
  left: -25%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(0,218,245,.12), transparent);
  transform: translateX(-20%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.automation-visual.system-scene.is-active::after { animation: automation-scan 4.8s ease-in-out infinite; }
.automation-visual.system-scene .automation-title,
.automation-visual.system-scene .automation-row,
.automation-visual.system-scene .automation-pulse { position: relative; z-index: 1; }
.automation-visual.system-scene .live-row {
  transform: translateY(12px);
  opacity: .5;
  transition: transform .56s var(--scene-ease) .44s, opacity .56s var(--scene-ease) .44s, box-shadow .5s ease;
}
.automation-visual.system-scene.is-active .live-row {
  transform: none;
  opacity: 1;
  box-shadow: 0 20px 50px rgba(0,109,255,.16), inset 0 0 0 1px rgba(0,218,245,.08);
}
.automation-visual.system-scene .automation-pulse span { animation-play-state: paused; }
.automation-visual.system-scene.is-active .automation-pulse span { animation-play-state: running; }
.automation-visual.system-scene.is-active .automation-title i { animation: system-online 1.8s ease-in-out infinite; }

.care-visual.system-scene .care-ring { animation-play-state: paused; }
.care-visual.system-scene.is-active .care-ring { animation-play-state: running; }
.care-visual.system-scene .care-chip {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .42s var(--scene-ease), transform .42s var(--scene-ease), box-shadow .3s ease;
}
.care-visual.system-scene.is-active .care-chip { opacity: 1; transform: none; }
.care-visual.system-scene.is-active .care-chip-a { transition-delay: .18s; }
.care-visual.system-scene.is-active .care-chip-b { transition-delay: .36s; }
.care-visual.system-scene.is-active .care-chip-c { transition-delay: .54s; }
.care-visual.system-scene.is-active .care-chip i { animation: system-online 1.8s ease-in-out infinite; }
.care-visual.system-scene.is-active .care-chip-b i { animation-delay: .4s; }
.care-visual.system-scene.is-active .care-chip-c i { animation-delay: .8s; }

.process-steps.system-scene { position: relative; }
.process-steps.system-scene::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(var(--cyan), rgba(0,218,245,.12));
  box-shadow: 0 0 14px rgba(0,218,245,.3);
  transition: transform 1.45s var(--scene-ease);
}
.process-steps.system-scene.is-active::before { transform: scaleY(1); }
.process-steps.system-scene li { position: relative; transition: background .3s ease; }
.process-steps.system-scene li.in-view > span { color: var(--cyan); text-shadow: 0 0 14px rgba(0,218,245,.34); }

@keyframes hero-packet-a {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20% { opacity: 1; }
  58% { opacity: 1; transform: translate(118px,78px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(132px,88px) scale(.45); }
}
@keyframes hero-packet-b {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20% { opacity: 1; }
  58% { opacity: 1; transform: translate(-108px,88px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(-120px,98px) scale(.45); }
}
@keyframes hero-packet-c {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20% { opacity: 1; }
  58% { opacity: 1; transform: translate(160px,-112px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(174px,-122px) scale(.45); }
}
@keyframes system-online {
  0%, 100% { opacity: 1; filter: brightness(1); transform: scale(1); }
  50% { opacity: .48; filter: brightness(1.35); transform: scale(.82); }
}
@keyframes automation-scan {
  0%, 20% { opacity: 0; transform: translateX(-20%) skewX(-18deg); }
  28% { opacity: 1; }
  62% { opacity: 1; }
  72%, 100% { opacity: 0; transform: translateX(780%) skewX(-18deg); }
}

@media (max-width: 560px) {
  .hero-packet {
    display: block;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(0,218,245,.76), 0 0 0 5px rgba(0,218,245,.09);
  }
  .hero-packet::after { width: 31px; }
  .hero-packet-a { top: 27%; left: 16%; }
  .hero-packet-b { top: 25%; right: 16%; }
  .hero-packet-c { bottom: 29%; left: 19%; animation-name: hero-packet-c-mobile; }
  .process-steps.system-scene::before { left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-packet,
  .automation-visual.system-scene::after { display: none; }
  .flow-visual.system-scene .flow-step,
  .flow-visual.system-scene .flow-result,
  .automation-visual.system-scene .live-row,
  .care-visual.system-scene .care-chip { opacity: 1; transform: none; }
  .process-steps.system-scene::before { transform: scaleY(1); }
}

/* Stronger motion layer — clearer at a glance, still limited to the system visuals. */
.hero-packet {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(0,218,245,.92), 0 0 0 8px rgba(0,218,245,.11);
}
.hero-packet::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  width: 52px;
  height: 2px;
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(0,218,245,.86));
  filter: blur(.2px);
  opacity: 0;
  animation-duration: 5.8s;
  animation-timing-function: var(--scene-ease);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.system-scene.is-active .hero-packet::after { animation-play-state: running; }
.hero-packet-a::after { animation-name: hero-packet-a-tail; }
.hero-packet-b::after {
  right: auto;
  left: 50%;
  transform-origin: left center;
  animation-name: hero-packet-b-tail;
  animation-delay: 1.85s;
}
.hero-packet-c::after {
  animation-name: hero-packet-c-tail;
  animation-delay: 3.7s;
}
.system-scene.is-active .hero-logo {
  animation: hero-core-pulse 4.8s ease-in-out infinite;
}
.hero-product .system-status {
  box-shadow: 0 0 0 1px rgba(0,218,245,.04), 0 16px 36px rgba(0,0,0,.22);
}

.flow-visual.system-scene .flow-connector { height: 2px; }
.flow-visual.system-scene .flow-connector b {
  width: 12px;
  height: 12px;
  top: -5px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,218,245,.7);
  animation-duration: 1.55s;
}
.flow-visual.system-scene.is-active .flow-step i {
  transition: transform .34s var(--scene-ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.flow-visual.system-scene.is-active .flow-step i:hover { transform: scale(1.07); }
.flow-visual.system-scene.is-active .flow-result {
  box-shadow: 0 14px 30px rgba(0,109,255,.12);
}
.flow-visual.system-scene.is-active .flow-result span i { animation: system-online 1.5s ease-in-out infinite; }

.automation-visual.system-scene.is-active {
  box-shadow: 0 0 0 1px rgba(0,218,245,.09), 0 28px 70px rgba(0,109,255,.17);
}
.automation-visual.system-scene::after { width: 28%; }
.automation-visual.system-scene.is-active::after { animation-duration: 3.75s; }
.automation-visual.system-scene.is-active .live-row {
  box-shadow: 0 20px 50px rgba(0,109,255,.28), inset 0 0 0 1px rgba(0,218,245,.2);
}
.automation-visual.system-scene.is-active .task-icon {
  animation: task-icon-pop 2.2s ease-in-out .95s infinite;
}

.care-visual.system-scene.is-active {
  box-shadow: inset 0 0 90px rgba(0,218,245,.12), 0 28px 70px rgba(0,67,185,.22);
}
.care-visual.system-scene.is-active .care-ring::after { animation: rotate 16s linear infinite; }
.care-visual.system-scene.is-active .care-chip {
  box-shadow: 0 12px 28px rgba(0,15,49,.19), 0 0 0 1px rgba(0,218,245,.09);
}

.process-steps.system-scene::before {
  width: 2px;
  background: linear-gradient(var(--cyan), #267cff 75%, rgba(0,218,245,.12));
  box-shadow: 0 0 18px rgba(0,218,245,.62);
}
.process-steps.system-scene li.in-view b {
  text-shadow: 0 0 16px rgba(0,218,245,.7);
}

@keyframes hero-core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 24px 35px rgba(0,109,255,.25)); }
  48% { transform: translate(-50%, -50%) scale(1.045); filter: drop-shadow(0 28px 43px rgba(0,218,245,.47)); }
}
@keyframes hero-packet-c-tail {
  0%, 23% { opacity: 0; transform: translateY(-50%) rotate(-27deg) scaleX(.08); }
  31%, 60% { opacity: 1; transform: translateY(-50%) rotate(-27deg) scaleX(1); }
  72%, 100% { opacity: 0; transform: translateY(-50%) rotate(-27deg) scaleX(.65); }
}
@keyframes hero-packet-a-tail {
  0%, 23% { opacity: 0; transform: translateY(-50%) rotate(34deg) scaleX(.08); }
  31%, 60% { opacity: 1; transform: translateY(-50%) rotate(34deg) scaleX(1); }
  72%, 100% { opacity: 0; transform: translateY(-50%) rotate(34deg) scaleX(.65); }
}
@keyframes hero-packet-b-tail {
  0%, 23% { opacity: 0; transform: translateY(-50%) rotate(-38deg) scaleX(.08); }
  31%, 60% { opacity: 1; transform: translateY(-50%) rotate(-38deg) scaleX(1); }
  72%, 100% { opacity: 0; transform: translateY(-50%) rotate(-38deg) scaleX(.65); }
}
@keyframes task-icon-pop {
  0%, 100% { transform: scale(1); box-shadow: none; }
  45% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(0,218,245,.1), 0 0 22px rgba(0,218,245,.42); }
}

@media (max-width: 560px) {
  .flow-visual.system-scene .flow-connector { width: 2px; height: 25px; }
  .flow-visual.system-scene .flow-connector b { display: block; left: -5px; top: auto; width: 12px; height: 12px; animation-name: flow-vertical; }
}
@keyframes flow-vertical {
  from { top: -12px; }
  to { top: 100%; }
}
@keyframes hero-packet-c-mobile {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20% { opacity: 1; }
  58% { opacity: 1; transform: translate(98px,-82px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(108px,-91px) scale(.45); }
}
@media (prefers-reduced-motion: reduce) {
  .system-scene.is-active .hero-logo,
  .automation-visual.system-scene.is-active .task-icon,
  .care-visual.system-scene.is-active .care-ring::after,
  .flow-visual.system-scene.is-active .flow-result span i { animation: none; }
}

/* Packet scene rebuilt: each dot and its trail share one exact motion clock. */
.hero-packet,
.hero-packet::after {
  width: 0;
  height: 0;
  background: transparent;
  box-shadow: none;
}
.hero-packet::after { content: none; animation: none; }
.hero-packet {
  z-index: 3;
  opacity: 0;
  animation-duration: 5.8s;
  animation-timing-function: var(--scene-ease);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.system-scene.is-active .hero-packet { animation-play-state: running; }
.hero-dot {
  position: absolute;
  z-index: 2;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 29px rgba(0,218,245,.9), 0 0 0 8px rgba(0,218,245,.11);
}
.hero-trail {
  position: absolute;
  z-index: 1;
  top: -1px;
  width: 54px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,218,245,.92));
  box-shadow: 0 0 9px rgba(0,218,245,.7);
  opacity: 0;
  animation: hero-trail-fade 5.8s var(--scene-ease) infinite;
  animation-play-state: paused;
}
.system-scene.is-active .hero-trail { animation-play-state: running; }
.hero-packet-a { top: 25%; left: 14%; animation-name: radven-packet-a; }
.hero-packet-a .hero-trail { right: 0; transform-origin: right center; transform: rotate(34deg); }
.hero-packet-b { top: 23%; right: 15%; animation-name: radven-packet-b; animation-delay: 1.85s; }
.hero-packet-b .hero-trail { left: 0; transform-origin: left center; transform: rotate(-38deg); animation-delay: 1.85s; }
.hero-packet-c { bottom: 28%; left: 18%; animation-name: radven-packet-c; animation-delay: 3.7s; }
.hero-packet-c .hero-trail { right: 0; transform-origin: right center; transform: rotate(-27deg); animation-delay: 3.7s; }
@keyframes radven-packet-a {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20%, 58% { opacity: 1; }
  58% { transform: translate(118px,78px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(132px,88px) scale(.45); }
}
@keyframes radven-packet-b {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20%, 58% { opacity: 1; }
  58% { transform: translate(-108px,88px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(-120px,98px) scale(.45); }
}
@keyframes radven-packet-c {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20%, 58% { opacity: 1; }
  58% { transform: translate(160px,-112px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(174px,-122px) scale(.45); }
}
@keyframes hero-trail-fade {
  0%, 24% { opacity: 0; }
  31%, 59% { opacity: 1; }
  72%, 100% { opacity: 0; }
}
@media (max-width: 560px) {
  .hero-dot { left: -5px; top: -5px; width: 10px; height: 10px; box-shadow: 0 0 10px var(--cyan), 0 0 21px rgba(0,218,245,.76), 0 0 0 5px rgba(0,218,245,.09); }
  .hero-trail { width: 36px; height: 2px; }
  .hero-packet-a { top: 27%; left: 16%; animation-name: radven-packet-a-mobile; }
  .hero-packet-b { top: 25%; right: 16%; animation-name: radven-packet-b-mobile; }
  .hero-packet-c { bottom: 29%; left: 19%; animation-name: radven-packet-c-mobile-v2; }
}
@keyframes radven-packet-a-mobile {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20%, 58% { opacity: 1; }
  58% { transform: translate(106px,69px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(118px,77px) scale(.45); }
}
@keyframes radven-packet-b-mobile {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20%, 58% { opacity: 1; }
  58% { transform: translate(-98px,75px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(-108px,83px) scale(.45); }
}
@keyframes radven-packet-c-mobile-v2 {
  0%, 12% { opacity: 0; transform: translate(0,0) scale(.55); }
  20%, 58% { opacity: 1; }
  58% { transform: translate(98px,-82px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(108px,-91px) scale(.45); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-packet,
  .hero-trail { animation: none; opacity: 0; }
}

/* Hero rebuild — connection paths replace the previous moving dots. */
.hero-connections {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.hero-link {
  --link-angle: 0deg;
  --link-origin: left center;
  position: absolute;
  width: 31%;
  height: 2px;
  transform: rotate(var(--link-angle)) scaleX(0);
  transform-origin: var(--link-origin);
  background: linear-gradient(90deg, rgba(0,218,245,.05), rgba(0,218,245,.98) 76%, rgba(255,255,255,.9));
  box-shadow: 0 0 12px rgba(0,218,245,.72), 0 0 28px rgba(0,109,255,.18);
  opacity: 0;
  overflow: hidden;
  animation: none;
}
.hero-link::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -28%;
  width: 28%;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.98), transparent);
  filter: blur(.6px);
}
.hero-link-a { top: 34%; left: 13%; --link-angle: 24deg; --link-origin: left center; }
.hero-link-b { top: 33%; right: 14%; --link-angle: 156deg; --link-origin: right center; }
.hero-link-c { bottom: 28%; left: 21%; width: 28%; --link-angle: -31deg; --link-origin: left center; }
.system-scene.is-active .hero-link { animation: hero-link-build 6.2s var(--scene-ease) infinite; }
.system-scene.is-active .hero-link::after { animation: hero-link-scan 6.2s var(--scene-ease) infinite; }
.system-scene.is-active .hero-link-b,
.system-scene.is-active .hero-link-b::after { animation-delay: 1.18s; }
.system-scene.is-active .hero-link-c,
.system-scene.is-active .hero-link-c::after { animation-delay: 2.36s; }
.hero-core-pulse {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 31%;
  aspect-ratio: 1;
  border: 1px solid rgba(0,218,245,.58);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(.55);
  box-shadow: 0 0 24px rgba(0,218,245,.22), inset 0 0 20px rgba(0,109,255,.12);
  opacity: 0;
  animation: none;
}
.hero-core-pulse-b { width: 47%; border-color: rgba(0,109,255,.34); }
.system-scene.is-active .hero-core-pulse-a { animation: hero-core-connection 6.2s var(--scene-ease) 3.1s infinite; }
.system-scene.is-active .hero-core-pulse-b { animation: hero-core-connection 6.2s var(--scene-ease) 3.25s infinite; }
@keyframes hero-link-build {
  0%, 12% { opacity: 0; transform: rotate(var(--link-angle)) scaleX(0); }
  22%, 52% { opacity: 1; transform: rotate(var(--link-angle)) scaleX(1); }
  67%, 100% { opacity: 0; transform: rotate(var(--link-angle)) scaleX(1); }
}
@keyframes hero-link-scan {
  0%, 17% { opacity: 0; transform: translateX(-20%); }
  25% { opacity: 1; }
  52% { opacity: 1; transform: translateX(430%); }
  58%, 100% { opacity: 0; transform: translateX(450%); }
}
@keyframes hero-core-connection {
  0%, 7% { opacity: 0; transform: translate(-50%,-50%) scale(.55); }
  20% { opacity: .9; }
  46% { opacity: 0; transform: translate(-50%,-50%) scale(1.23); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.23); }
}
@media (max-width: 560px) {
  .hero-link { height: 2px; box-shadow: 0 0 10px rgba(0,218,245,.65); }
  .hero-link-a { top: 35%; left: 14%; width: 32%; }
  .hero-link-b { top: 35%; right: 13%; width: 31%; }
  .hero-link-c { bottom: 30%; left: 22%; width: 27%; }
  .hero-core-pulse { width: 38%; }
  .hero-core-pulse-b { width: 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-link,
  .hero-core-pulse { animation: none !important; opacity: .36; transform: rotate(var(--link-angle)) scaleX(1); }
  .hero-core-pulse { transform: translate(-50%,-50%) scale(1); }
  .hero-link::after { display: none; }
}

.footer-bottom-final {
  gap: 18px 32px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.footer-legal a {
  color: #8e99a6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--white); }

/* Legal pages reuse the V3 visual system and typography. */
.legal-page { background: var(--paper); }
.legal-page .site-header { position: sticky; background: rgba(245,247,248,.94); border-color: rgba(7,10,16,.08); backdrop-filter: blur(22px); }
.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.legal-main { padding: 145px 0 120px; }
.legal-hero {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(54px, 7vw, 102px);
}
.legal-hero h1 span {
  display: block;
}
.legal-intro {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: clamp(50px, 8vw, 130px);
  padding-top: 80px;
}
.legal-aside {
  position: sticky;
  top: 118px;
  align-self: start;
}
.legal-aside p {
  margin-bottom: 18px;
  color: #5f6d7b;
  font: 9px "Space Mono", monospace;
  letter-spacing: .1em;
}
.legal-aside nav { display: grid; gap: 10px; }
.legal-aside a {
  color: #68737e;
  font-size: 11px;
}
.legal-aside a:hover,
.legal-aside a:focus-visible { color: var(--blue); }
.legal-content section {
  padding: 0 0 44px;
  margin: 0 0 44px;
  border-bottom: 1px solid var(--line);
}
.legal-content section:last-of-type { margin-bottom: 0; }
.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}
.legal-content p,
.legal-content li {
  color: #4f5a66;
  font-size: 15px;
  line-height: 1.75;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { padding-left: 20px; }
.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-card {
  margin: 26px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.legal-card strong { color: var(--ink); }
.legal-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: #64707c;
  font: 9px "Space Mono", monospace;
  letter-spacing: .05em;
}

@media (max-width: 860px) {
  .legal-main { padding-top: 110px; }
  .legal-hero,
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .legal-aside nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-legal { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .legal-main { padding: 100px 0 80px; }
  .legal-hero { gap: 25px; padding-bottom: 45px; }
  .legal-layout { gap: 45px; padding-top: 50px; }
  .legal-aside nav { grid-template-columns: 1fr; }
  .legal-card { padding: 18px; }
  .legal-note { flex-direction: column; }
  .footer-legal { flex-direction: column; gap: 7px; }
}

/* Premium V3 — improved readability without changing approved typography. */
:root { --muted: #525d69; }

.hero-lead,
.section-head > p,
.capability-name p,
.story-copy > p:not(.section-index),
.founder-copy > p:not(.section-index):not(.founder-lead),
.case-card p {
  font-weight: 500;
}

.hero-lead { color: #424c57; }
.hero-categories span { color: #4b5560; font-weight: 700; }
.section-index { color: #4f5b68; }
.manifesto-copy > p { color: #c0c9d3; font-weight: 500; }
.section-head > p { color: #4b5662; }
.capability-number { color: #616b76; font-weight: 700; }
.capability-tags span { color: #4d5863; font-weight: 600; }
.story-copy > p:not(.section-index) { color: #4e5964; }
.story-dark .story-copy > p:not(.section-index),
.story-blue .story-copy > p:not(.section-index) { color: rgba(255,255,255,.82); }
.story-copy li { font-weight: 500; }
.flow-top span,
.flow-step small,
.flow-result span { color: #505d68; font-weight: 700; }
.automation-title { color: #a8b7c8; font-weight: 700; }
.automation-row small { color: #9aabc0; font-weight: 700; }
.automation-row strong { color: #eef5fb; }
.care-core small { color: #c9e2ff; font-weight: 700; }
.care-core span { color: #c3d7ed; font-weight: 500; }
.case-card > span { color: #505d69; font-weight: 700; }
.case-card > div { color: #465361; font-weight: 500; }
.process-intro > p:not(.micro-label) { color: #bac5d1; font-weight: 500; }
.process-steps p { color: #b4c0cd; font-weight: 500; }
.process-steps li > span { color: #93a3b5; font-weight: 600; }
.founder-card-copy span { color: #a9bdd1; font-weight: 700; }
.contact-copy .micro-label { color: rgba(255,255,255,.92); }
.contact-copy > p:not(.micro-label) { color: rgba(255,255,255,.90); font-weight: 500; }
.contact-panel small { color: rgba(255,255,255,.86); font-weight: 700; }
.dialog-head small { color: #4f5b68; font-weight: 700; }
.dialog-actions p { color: #515d69; font-weight: 500; }
.footer-top > p { color: #a8b3c0; font-weight: 700; }
.footer-top > a:last-child { color: #c0cad4; font-weight: 600; }
.footer-bottom { color: #98a5b3; font-weight: 500; }
.footer-legal a { color: #b4bfcb; font-weight: 500; }

@media (max-width: 760px) {
  .contact-panel > a { padding: 19px 0; }
}

/* Premium V3 — compact header on scroll: keep only the RADVEN logo. */
.scroll-meter {
  display: none !important;
}

.site-header.scrolled {
  padding: 8px 0;
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.site-header.scrolled .nav-shell {
  justify-content: flex-start;
}

.site-header.scrolled .brand {
  pointer-events: auto;
}

.site-header.scrolled .brand > span,
.site-header.scrolled .primary-nav,
.site-header.scrolled .menu-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header.scrolled .brand img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 20px rgba(7, 10, 16, 0.10));
}

@media (max-width: 560px) {
  .site-header.scrolled .brand img {
    width: 52px;
    height: 52px;
  }
}

/* Hero signal: one visible integration cycle, without particles or paths crossing the logo. */
.hero-integration {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.integration-sweep,
.integration-beacon {
  position: absolute;
  top: 48%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.integration-sweep {
  width: 74%;
  aspect-ratio: 1;
  background: conic-gradient(
    from -38deg,
    transparent 0deg 263deg,
    rgba(0, 109, 255, 0.12) 276deg,
    rgba(0, 218, 245, 0.98) 294deg,
    rgba(233, 253, 255, 0.96) 302deg,
    rgba(0, 218, 245, 0.14) 322deg,
    transparent 338deg 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0%, transparent 61%, #000 62%, #000 67%, transparent 68%);
  mask: radial-gradient(circle, transparent 0%, transparent 61%, #000 62%, #000 67%, transparent 68%);
  filter: drop-shadow(0 0 7px rgba(0, 218, 245, 0.72));
  transform: translate(-50%, -50%) rotate(0deg);
  animation: radven-integration-sweep 8s linear infinite;
}
.integration-beacon {
  width: 29%;
  aspect-ratio: 1;
  border: 2px solid rgba(0, 218, 245, 0.92);
  box-shadow: 0 0 18px rgba(0, 218, 245, 0.35), inset 0 0 12px rgba(0, 109, 255, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.58);
  animation: radven-core-beacon 8s cubic-bezier(.2, .82, .22, 1) infinite;
}
.integration-beacon-b {
  border-color: rgba(41, 125, 255, 0.84);
  animation-delay: 4s;
}
.hero-product .product-label {
  --module-delay: 0s;
  animation: radven-module-online 8s ease-in-out var(--module-delay) infinite;
}
.hero-product .product-label i {
  animation: radven-module-node 8s ease-in-out var(--module-delay) infinite;
}
.hero-product .product-label-a { --module-delay: -0.35s; }
.hero-product .product-label-b {
  top: 12%;
  --module-delay: -6.25s;
}
.hero-product .product-label-d {
  bottom: 19%;
  --module-delay: -4.45s;
}
.hero-product .product-label-c { --module-delay: -2.05s; }

@keyframes radven-integration-sweep {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes radven-core-beacon {
  0%, 9% { opacity: 0; transform: translate(-50%, -50%) scale(0.58); }
  15% { opacity: 0.94; }
  42% { opacity: 0; transform: translate(-50%, -50%) scale(2.38); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.38); }
}
@keyframes radven-module-online {
  0%, 9%, 100% {
    color: #a7b4c3;
    border-color: rgba(255,255,255,0.15);
    background: rgba(10, 17, 27, 0.78);
    box-shadow: none;
  }
  14%, 22% {
    color: #f4fdff;
    border-color: rgba(0, 218, 245, 0.78);
    background: rgba(0, 57, 77, 0.77);
    box-shadow: 0 0 0 3px rgba(0, 218, 245, 0.08), 0 0 26px rgba(0, 218, 245, 0.38);
  }
  28% {
    color: #a7b4c3;
    border-color: rgba(255,255,255,0.15);
    background: rgba(10, 17, 27, 0.78);
    box-shadow: none;
  }
}
@keyframes radven-module-node {
  0%, 9%, 100% { transform: scale(1); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
  14%, 22% { transform: scale(1.72); background: #efffff; box-shadow: 0 0 7px #efffff, 0 0 21px var(--cyan); }
  28% { transform: scale(1); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
}
@media (max-width: 560px) {
  .integration-sweep { width: 78%; filter: drop-shadow(0 0 5px rgba(0, 218, 245, 0.82)); }
  .integration-beacon { width: 35%; border-width: 2px; }
  .hero-product .product-label-d { bottom: 21%; }
}
@media (prefers-reduced-motion: reduce) {
  .integration-sweep,
  .integration-beacon,
  .hero-product .product-label,
  .hero-product .product-label i { animation: none; }
  .integration-sweep { opacity: 0.58; }
  .integration-beacon { opacity: 0.18; transform: translate(-50%, -50%) scale(1.6); }
}
