/* ============================================================
   National Innovation Platform 2030 — Hero OS
   Scientific visualization. No decoration. SVG-driven.
   ============================================================ */

.sig-hero {
  --ink: #0f1419;
  --navy: #0a1628;
  --blue: #0b4fff;
  --blue-soft: #e8eeff;
  --silver: #c8ced8;
  --gold: #b8923a;
  --mute: #6b7280;
  --soft: #3d4654;
  --bg: #fafbfc;
  --line: rgba(10, 22, 40, 0.08);
  --surface: rgba(255, 255, 255, 0.82);
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 0.85rem 0 1rem;
  background: var(--bg);
  color: var(--soft);
  display: block;
}

.sig-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sig-hero__grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 15%, rgba(11, 79, 255, 0.05), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(10, 22, 40, 0.03), transparent 50%);
}

.sig-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 79, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 15%, transparent 75%);
  animation: osGrid 60s linear infinite;
}

@keyframes osGrid {
  to { transform: translate3d(40px, 20px, 0); }
}

.sig-hero__math {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.sig-hero__math path {
  fill: none;
  stroke: rgba(11, 79, 255, 0.09);
  stroke-width: 1;
  stroke-dasharray: 6 12;
  animation: osDash 32s linear infinite;
}

.sig-hero__math path:nth-child(2) {
  stroke: rgba(10, 22, 40, 0.06);
  animation-duration: 44s;
  animation-direction: reverse;
}

@keyframes osDash {
  to { stroke-dashoffset: -180; }
}

/* Shell */
.os-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: grid;
  gap: 0.55rem;
  flex: 1 1 auto;
  align-content: center;
}

.os-top {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 1100px) {
  .os-top {
    grid-template-columns: 200px minmax(0, 1.45fr) minmax(250px, 300px);
    align-items: stretch;
    height: min(440px, calc(100dvh - 6.5rem));
  }
}

.os-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -18px rgba(10, 22, 40, 0.12);
  min-height: 0;
}

.os-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.os-panel__head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  font-family: "Vazirmatn", "Syne", sans-serif;
}

.os-panel__head h3 .os-ico {
  flex: 0 0 16px;
}

.os-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--blue);
  letter-spacing: 0;
  font-family: "Vazirmatn", sans-serif;
}

.os-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: osPulse 1.8s ease-in-out infinite;
}

@keyframes osPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Live scientific icons */
.os-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  overflow: visible;
}

.os-ico__path,
.os-ico__wave,
.os-ico__orbit,
.os-ico__check,
.os-ico__spark,
.os-ico__link {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-ico__ring {
  fill: none;
  stroke: rgba(11, 79, 255, 0.35);
  stroke-width: 1.2;
}

.os-ico__pulse,
.os-ico__core {
  fill: var(--blue);
}

.os-ico__box {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.3;
}

.os-ico__blk {
  fill: #fff;
  stroke: rgba(11, 79, 255, 0.4);
  stroke-width: 1.2;
}

.os-ico__blk--on {
  stroke: var(--gold);
}

.os-ico--stream .os-ico__pulse {
  animation: osIcoPulse 2s ease-in-out infinite;
  transform-origin: 12px 12px;
}

.os-ico--stream .os-ico__ring {
  animation: osIcoRing 2.4s ease-out infinite;
  transform-origin: 12px 12px;
}

.os-ico--stream .os-ico__wave {
  stroke-dasharray: 6 8;
  animation: osDash 10s linear infinite;
}

.os-ico--live .os-ico__ring,
.os-ico--globe .os-ico__ring {
  animation: osIcoRing 2.8s ease-out infinite;
  transform-origin: 12px 12px;
}

.os-ico--live .os-ico__ring--far {
  animation-delay: 0.7s;
  animation-duration: 3.2s;
}

.os-ico--brain .os-ico__spark {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: osDraw 2.4s ease-in-out infinite;
}

.os-ico--twin .os-ico__box--b {
  animation: osTwin 2.6s ease-in-out infinite;
}

.os-ico--twin .os-ico__link {
  animation: osPulse 1.6s ease-in-out infinite;
}

.os-ico--chain .os-ico__blk--on {
  animation: osValidate 2.8s ease-in-out infinite;
}

.os-ico--contract .os-ico__check {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  animation: osDraw 2.2s ease-in-out infinite;
}

.os-ico--globe .os-ico__orbit {
  stroke-dasharray: 4 6;
  animation: osDash 14s linear infinite;
}

@keyframes osIcoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes osIcoRing {
  0% { opacity: 0.55; transform: scale(0.85); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes osDraw {
  0%, 15% { stroke-dashoffset: 16; opacity: 0.3; }
  45%, 60% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.45; }
}

@keyframes osTwin {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes osValidate {
  0%, 100% { fill: #fff; }
  50% { fill: rgba(184, 146, 58, 0.12); }
}

/* Live stream */
.os-stream {
  display: flex;
  flex-direction: column;
  max-height: none;
  height: 100%;
  overflow: hidden;
}

.os-stream__list {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  flex: 1;
}

.os-stream__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.32rem 0.4rem;
  border-radius: 8px;
  animation: osIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.os-stream__item.is-fresh {
  background: rgba(11, 79, 255, 0.04);
}

.os-stream__ico {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  overflow: visible;
  flex-shrink: 0;
}

.os-stream__ico .a,
.os-stream__ico .b {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-stream__item[data-kind="research"] .os-stream__ico .a {
  fill: rgba(11, 79, 255, 0.2);
  animation: osIcoPulse 2s ease-in-out infinite;
  transform-origin: 10px 10px;
}

.os-stream__item[data-kind="research"] .os-stream__ico .b {
  animation: osIcoRing 2.4s ease-out infinite;
  transform-origin: 10px 10px;
}

.os-stream__item[data-kind="park"] .os-stream__ico .a,
.os-stream__item[data-kind="park"] .os-stream__ico .b {
  stroke: #3d5a80;
}

.os-stream__item[data-kind="capital"] .os-stream__ico .a {
  stroke: var(--gold);
  stroke-dasharray: 20;
  animation: osDraw 2.6s ease-in-out infinite;
}

.os-stream__item[data-kind="transfer"] .os-stream__ico .a {
  stroke: #5c7cfa;
  stroke-dasharray: 4 5;
  animation: osDash 8s linear infinite;
}

.os-stream__item p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--soft);
  line-height: 1.35;
}

.os-stream__item time {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.58rem;
  color: var(--mute);
}

@keyframes osIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Stage: constellation + helix + quantum */
.os-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.os-stage > .os-panel__head {
  flex: 0 0 auto;
}

.os-stage__viz {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.os-stage__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.os-stage__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.4rem 0.55rem 0.5rem;
  border-top: 1px solid var(--line);
  justify-content: center;
  flex: 0 0 auto;
}

.os-stage__legend {
  position: static;
  margin: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.62rem;
  color: var(--mute);
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  background: rgba(11, 79, 255, 0.03);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  z-index: auto;
}

.os-mode {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--mute);
  border-radius: 999px;
  padding: 0.28rem 0.65rem 0.28rem 0.45rem;
  font-size: 0.68rem;
  font-family: "Vazirmatn", inherit;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.os-mode__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  overflow: visible;
}

.os-mode__ico .m-a {
  fill: currentColor;
  opacity: 0.85;
}

.os-mode__ico .m-line,
.os-mode__ico .m-h,
.os-mode__ico .m-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-mode__ico .m-pkt {
  fill: currentColor;
}

.os-mode.is-active .os-mode__ico .m-h1 { animation: osModeHelix 2.4s ease-in-out infinite; }
.os-mode.is-active .os-mode__ico .m-h2 { animation: osModeHelix 2.4s ease-in-out infinite 0.2s; }
.os-mode.is-active .os-mode__ico .m-h3 { animation: osModeHelix 2.4s ease-in-out infinite 0.4s; }
.os-mode.is-active .os-mode__ico .m-a { animation: osModePulse 1.8s ease-in-out infinite; }
.os-mode.is-active .os-mode__ico .m-d { animation-delay: 0.25s; }
.os-mode.is-active .os-mode__ico .m-d2 { animation-delay: 0.5s; }
.os-mode.is-active .os-mode__ico .m-line { stroke-dasharray: 24; animation: osModeDraw 2.8s linear infinite; }
.os-mode.is-active .os-mode__ico .m-ring { animation: osModeSpin 8s linear infinite; transform-origin: 12px 12px; }
.os-mode.is-active .os-mode__ico .m-pkt { animation: osModeOrbit 2.6s linear infinite; }

@keyframes osModeHelix {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes osModePulse {
  0%, 100% { opacity: 0.55; r: 1.6; }
  50% { opacity: 1; r: 2.2; }
}
@keyframes osModeDraw {
  to { stroke-dashoffset: -48; }
}
@keyframes osModeSpin {
  to { transform: rotate(360deg); }
}
@keyframes osModeOrbit {
  0% { cx: 7; cy: 10; }
  25% { cx: 12; cy: 5; }
  50% { cx: 17; cy: 10; }
  75% { cx: 12; cy: 18; }
  100% { cx: 7; cy: 10; }
}

.os-mode.is-active,
.os-mode:hover {
  border-color: rgba(11, 79, 255, 0.35);
  color: var(--blue);
  background: var(--blue-soft);
}

/* SVG node styles */
.os-node {
  cursor: pointer;
}

.os-node text {
  fill: var(--navy);
  font-size: 10px;
  font-weight: 600;
  font-family: Vazirmatn, Syne, sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.os-node.is-core circle,
.os-node circle {
  fill: #fff;
  stroke: rgba(11, 79, 255, 0.35);
  stroke-width: 1.2;
  filter: drop-shadow(0 4px 10px rgba(10, 22, 40, 0.08));
  transition: stroke 0.2s ease;
}

.os-node circle {
  animation: osNodeBreath 4.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.os-node:nth-child(odd) circle {
  animation-delay: 0.6s;
}

@keyframes osNodeBreath {
  0%, 100% { stroke-width: 1.2; }
  50% { stroke-width: 1.55; }
}

.os-node:hover circle,
.os-node:focus circle {
  stroke: var(--blue);
  stroke-width: 1.6;
}

.os-link {
  fill: none;
  stroke: rgba(11, 79, 255, 0.14);
  stroke-width: 1;
}

.os-pulse {
  fill: var(--blue);
  opacity: 0.85;
}

.os-quantum {
  fill: none;
  stroke: rgba(11, 79, 255, 0.08);
  stroke-width: 1;
}

.os-hub {
  fill: var(--blue);
}

.os-hub-label {
  fill: rgba(10, 22, 40, 0.45);
  font-size: 7px;
  font-family: Syne, sans-serif;
  text-anchor: middle;
}

/* Identity column */
.os-identity {
  padding: 0.7rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 79, 255, 0.14);
  background: #fff;
  font-size: 0.62rem;
  color: var(--soft);
}

.os-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.os-title {
  margin: 0;
  font-family: "Syne", "Vazirmatn", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 1rem + 1.6vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.os-title em {
  font-style: normal;
  color: var(--blue);
}

.os-lead {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Digital Twin */
.os-twin {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.55rem;
  background: #fff;
  flex: 1 1 auto;
  min-height: 0;
}

.os-twin__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mute);
  margin-bottom: 0.4rem;
  font-family: "Vazirmatn", sans-serif;
}

.os-twin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.55rem;
}

.os-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.12rem 0.25rem;
  align-items: center;
  font-size: 0.62rem;
  color: var(--mute);
}

.os-metric span {
  grid-column: 1 / -1;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-metric strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.78rem;
  grid-column: 1 / -1;
  justify-self: start;
  line-height: 1.1;
}

.os-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 99px;
  background: rgba(11, 79, 255, 0.08);
  overflow: hidden;
}

.os-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #5c7cfa);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-bar.is-gold > i {
  background: linear-gradient(90deg, #9a7b2f, var(--gold));
}

/* Actions */
.os-actions-label {
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mute);
  font-family: "Vazirmatn", sans-serif;
}

.os-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.os-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--soft);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  font-size: 0.65rem;
  font-family: "Vazirmatn", inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.os-action:hover {
  border-color: rgba(11, 79, 255, 0.3);
  color: var(--blue);
  background: var(--blue-soft);
}

.os-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.os-btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.os-btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(11, 79, 255, 0.35);
}

.os-btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

/* Bottom row: blockchain + contracts + map */
.os-bottom {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 900px) {
  .os-bottom {
    grid-template-columns: 1.1fr 0.95fr 1fr;
  }
}

.os-panel__body {
  padding: 0.5rem 0.55rem;
}

/* Blockchain / Distributed Ledger — compact clean rail */
.os-ledger {
  display: grid;
  gap: 0.4rem;
}

.os-ledger__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.os-ledger__stats div {
  padding: 0.28rem 0.3rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafbfd;
  text-align: center;
}

.os-ledger__stats em {
  display: block;
  font-style: normal;
  font-family: "Syne", "Vazirmatn", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--blue);
  line-height: 1.15;
}

.os-ledger__stats span {
  font-size: 0.55rem;
  color: var(--mute);
}

.os-chain {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  min-height: 72px;
  padding: 0.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.os-block {
  flex: 0 0 auto;
  width: 88px;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  animation: osIn 0.45s ease both;
}

.os-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.os-block header span {
  font-size: 0.55rem;
  font-family: ui-monospace, monospace;
  color: var(--mute);
}

.os-block header b {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--blue);
  background: #e8eeff;
  border-radius: 999px;
  padding: 0.08rem 0.3rem;
}

.os-block.is-validated {
  border-color: rgba(11, 79, 255, 0.22);
  box-shadow: 0 8px 18px -14px rgba(11, 79, 255, 0.45);
}

.os-block.is-validated header b {
  color: #8a6a1f;
  background: rgba(184, 146, 58, 0.16);
}

.os-block strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  min-height: 2.1em;
}

.os-block code {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.52rem;
  color: var(--mute);
  font-family: ui-monospace, monospace;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-chain-link {
  flex: 0 0 14px;
  height: 2px;
  margin-inline: 1px;
  border-radius: 2px;
  background: rgba(11, 79, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.os-chain-link::after {
  content: "";
  position: absolute;
  inset-block: -2px;
  inset-inline-start: -4px;
  width: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(11, 79, 255, 0.12);
  animation: osLinkSlide 1.6s ease-in-out infinite;
}

@keyframes osLinkSlide {
  from { transform: translateX(0); opacity: 0.35; }
  50% { opacity: 1; }
  to { transform: translateX(14px); opacity: 0.35; }
}

.os-corridor-spin {
  transform-origin: 330px 175px;
  animation: osCorridorSpin 28s linear infinite;
}

@keyframes osCorridorSpin {
  to { transform: rotate(360deg); }
}

.os-helix-spin {
  transform-origin: 360px 178px;
  animation: osCorridorSpin 10s linear infinite;
}

.os-helix-spin-slow {
  transform-origin: 360px 178px;
  animation: osCorridorSpin 24s linear infinite;
}

.os-helix-dash {
  animation: osDash 6s linear infinite;
}

.os-helix-dash-cw {
  animation: osDash 9s linear infinite reverse;
}

.os-graph__hub-ring {
  animation: osIcoRing 3s ease-out infinite;
  transform-origin: 320px 178px;
}

.os-graph__edge {
  animation: osDash 16s linear infinite;
}

.os-map__hub-ring {
  animation: osIcoRing 2.8s ease-out infinite;
}

/* Smart contract flow */
.os-flow {
  min-height: 148px;
}

.os-flow__svg {
  width: 100%;
  height: 148px;
  display: block;
}

/* Global map — high-contrast national network */
.os-map {
  width: 100%;
  height: 150px;
  display: block;
}

.os-map__land {
  fill: rgba(11, 79, 255, 0.07);
  stroke: rgba(11, 79, 255, 0.22);
  stroke-width: 1.2;
}

.os-map__route {
  fill: none;
  stroke: rgba(15, 159, 110, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: osDash 14s linear infinite;
}

.os-map__hub {
  fill: #0b4fff;
  filter: drop-shadow(0 0 6px rgba(11, 79, 255, 0.45));
}

.os-map__hub--core {
  fill: #0f9f6e;
  filter: drop-shadow(0 0 8px rgba(15, 159, 110, 0.5));
}

.os-map__label {
  fill: #0a1628;
  font-size: 11px;
  font-weight: 700;
  font-family: Vazirmatn, Syne, sans-serif;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3px;
}

.os-panel--net {
  position: relative;
  overflow: hidden;
}

.os-panel--net::before {
  content: "";
  position: absolute;
  inset-inline-end: -20%;
  inset-block-start: -30%;
  width: 55%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 159, 110, 0.12), transparent 68%);
  pointer-events: none;
}

.os-panel--net .os-map__hub {
  animation: osHubPulse 2.8s ease-in-out infinite;
}

.os-panel--net .os-map__hub--core {
  animation-duration: 2.2s;
}

@keyframes osHubPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.os-net {
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.os-net__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.os-net__stat {
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(15, 159, 110, 0.08), rgba(11, 79, 255, 0.06));
  border: 1px solid rgba(11, 79, 255, 0.1);
  text-align: center;
}

.os-net__stat strong {
  display: block;
  font-size: 0.95rem;
  color: #0b4fff;
  font-variant-numeric: tabular-nums;
}

.os-net__stat span {
  font-size: 0.68rem;
  color: #3d4654;
  font-weight: 600;
}

/* Tooltip */
.os-tip {
  position: absolute;
  z-index: 30;
  min-width: 200px;
  max-width: 250px;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 40px -18px rgba(10, 22, 40, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.os-tip.is-on {
  opacity: 1;
  transform: none;
}

.os-tip__k {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.os-tip__t {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.os-tip__d {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--mute);
  line-height: 1.45;
}

/* Scroll cue */
.os-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
  margin-bottom: 0.15rem;
}

.os-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--mute);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.os-scroll__line {
  width: 1px;
  height: 28px;
  background: rgba(11, 79, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.os-scroll__line i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--blue);
  animation: osWave 1.8s ease-in-out infinite;
}

@keyframes osWave {
  0% { top: -8px; opacity: 0; }
  40% { opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

@media (max-width: 1099px) {
  .os-top {
    grid-template-columns: 1fr;
    height: auto;
  }

  .os-identity {
    order: -1;
    height: auto;
    overflow: visible;
  }

  .os-stage {
    min-height: 320px;
    height: auto;
  }

  .os-stage__viz {
    min-height: 280px;
    aspect-ratio: 16 / 11;
  }

  .os-stream {
    max-height: 220px;
    height: auto;
  }

  .os-twin__grid {
    grid-template-columns: 1fr 1fr;
  }

  .os-stage__modes {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .os-stage__modes::-webkit-scrollbar {
    display: none;
  }

  .os-mode {
    flex: 0 0 auto;
  }

  .os-bottom {
    grid-template-columns: 1fr;
  }

  .os-chain {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .os-scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  .sig-hero {
    padding: 0.55rem 0 0.85rem;
  }

  .os-shell {
    width: min(100%, calc(100% - 0.9rem));
    gap: 0.45rem;
  }

  .os-title {
    font-size: 1.65rem;
  }

  .os-lead {
    -webkit-line-clamp: 3;
  }

  .os-stage {
    min-height: 0;
  }

  .os-stage__viz {
    min-height: 240px;
    aspect-ratio: 1.15 / 1;
  }

  .os-stage__legend {
    font-size: 0.58rem;
    padding: 0.3rem 0.5rem;
  }

  .os-twin__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.4rem;
  }

  .os-panel__head h3 {
    font-size: 0.72rem;
  }

  .os-tag {
    font-size: 0.6rem;
  }

  .os-flow {
    min-height: 140px;
  }

  .os-flow__svg {
    height: 140px;
  }

  .os-map {
    height: 88px;
  }

  .os-panel--net .os-map {
    height: 130px;
  }

  .os-net__stats {
    grid-template-columns: 1fr;
  }

  .os-cta .os-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sig-hero__grid,
  .sig-hero__math path,
  .os-tag i,
  .os-stream__item,
  .os-map__route,
  .os-panel--net .os-map__hub,
  .os-chain-link::after,
  .os-chain-link b,
  .os-scroll__line i,
  .os-block,
  .os-block__merkle i,
  .os-ledger__dots i,
  .os-ico__pulse,
  .os-ico__ring,
  .os-ico__wave,
  .os-ico__spark,
  .os-ico__check,
  .os-ico__orbit,
  .os-ico__box--b,
  .os-ico__blk--on,
  .os-ico__link,
  .os-stream__ico .a,
  .os-stream__ico .b,
  .os-node circle,
  .os-mode__ico .m-h,
  .os-mode__ico .m-a,
  .os-mode__ico .m-line,
  .os-mode__ico .m-ring,
  .os-mode__ico .m-pkt,
  .os-graph__hub-ring,
  .os-graph__edge,
  .os-map__hub-ring,
  .os-corridor-spin,
  .os-helix-spin,
  .os-helix-spin-slow,
  .os-helix-dash,
  .os-helix-dash-cw {
    animation: none !important;
  }
}
