/* ═══════════════════════════════════════════════════════════════
   VRAIZEN TECH — Cinematic Dark Upgrade
   Deep black · white type · blue/violet energy · thin borders
   GPU-friendly: transforms + opacity only where animated
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Dark cinematic tokens ─── */
:root {
  --bg: #05070f;
  --bg-alt: #0a0e1a;
  --bg-card: #0c101c;
  --bg-elevated: #111827;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --text: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --blue: #3B82F6;
  --blue-deep: #2563EB;
  --blue-soft: rgba(59, 130, 246, 0.18);
  --violet: #8B5CF6;
  --violet-bright: #A78BFA;
  --violet-soft: rgba(139, 92, 246, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 12px 40px rgba(59, 130, 246, 0.18);
  --glow-blue: 0 0 40px rgba(59, 130, 246, 0.22);
  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.22);
  --noise-opacity: 0.035;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 2. Body noise, scrollbar, sections ─── */
html.cinematic-on,
html.site-ready {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #05070f;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.45);
}

.section {
  background: var(--bg);
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  color: var(--text);
}
.section-sub {
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── 3. Component dark surface overrides ─── */
.navbar {
  background: rgba(5, 7, 15, 0.72);
  border-bottom-color: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar.scrolled {
  background: rgba(5, 7, 15, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.logo-word {
  color: var(--text);
}
.nav-links a {
  color: var(--text-secondary);
}
.nav-links a:hover {
  color: var(--text);
}
.hamburger span {
  background: var(--text);
}

.mobile-menu {
  background: rgba(5, 7, 15, 0.97);
}
.mobile-menu a {
  color: var(--text);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-secondary:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.32);
}

.dash-card {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(12, 16, 28, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  color: var(--text);
}
.dash-header,
.dash-footer {
  border-color: var(--border);
}
.dash-title {
  color: var(--text);
}
.dash-metric-label {
  color: var(--text-muted);
}
.dash-metric-value {
  color: var(--text);
}

.platform-logo {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.platform-logo:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.platform-logo .platform-icon {
  background: rgba(255, 255, 255, 0.04);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.problem-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(59, 130, 246, 0.08);
}
.problem-card h3 {
  color: var(--text);
}
.problem-card p {
  color: var(--text-secondary);
}

.flow-system {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.flow-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.service-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-md), var(--glow-violet);
}
.service-card h3 {
  color: var(--text);
}
.service-card p {
  color: var(--text-secondary);
}

.analytics-board {
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 26, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.work-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-md);
}
.work-card h3,
.work-title {
  color: var(--text);
}
.work-card p,
.work-meta {
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="number"],
form textarea,
form select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder,
form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

.footer,
.site-footer {
  background: #03050c;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ─── 4. Page loader ─── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 60% 60%, rgba(139, 92, 246, 0.1), transparent 70%),
    #05070f;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader .loader-brand,
.page-loader .brand {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-loader .loader-brand span,
.page-loader .brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-loader .loader-status,
.page-loader .status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.page-loader .loader-bar,
.page-loader .bar {
  width: min(220px, 50vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.page-loader .loader-bar::after,
.page-loader .bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gradient);
  border-radius: inherit;
  animation: loader-run 0.9s var(--ease-soft) infinite;
}
@keyframes loader-run {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ─── 5. Cursor ring ─── */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.45);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.25s ease, border-color 0.25s ease, width 0.25s ease, height 0.25s ease;
  will-change: transform;
}
.cursor-ring.visible {
  opacity: 0.85;
}
.cursor-ring.hot {
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* ─── 6. Magnetic / tilt / link follow ─── */
.magnetic {
  transition: transform 0.2s var(--ease-out);
  will-change: transform;
}
.magnetic.magnet-hot {
  transition: transform 0.08s linear;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
  position: relative;
}
.tilt-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  mix-blend-mode: screen;
}

.link-follow {
  position: relative;
}
.link-follow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s var(--ease-out);
}
.link-follow:hover::after {
  width: 100%;
}

/* ─── 7. Particle field ─── */
.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ─── 8. Hero upgrades ─── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 88% 75%, rgba(139, 92, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(37, 99, 235, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-glow {
  opacity: 0.35;
  filter: blur(90px);
}
.hero-glow-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
}
.hero-glow-violet {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}
.hero-title {
  color: var(--text);
}
.hero-title-line {
  display: block;
  overflow: hidden;
}
.hero-title-line > span,
.hero-title-line .line-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.hero-sub {
  color: var(--text-secondary);
}

.hero-morph {
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
  overflow: hidden;
  vertical-align: baseline;
  color: var(--violet-bright);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-morph .morph-inner {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-morph .morph-inner.out {
  animation: morph-out 0.32s var(--ease-out) forwards;
}
.hero-morph .morph-inner.in {
  animation: morph-in 0.45s var(--ease-out) forwards;
}
@keyframes morph-in {
  from {
    opacity: 0;
    transform: translateY(70%) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes morph-out {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-60%);
    filter: blur(3px);
  }
}

/* ─── 9. Growth Engine ─── */
.growth-engine {
  position: relative;
  margin-top: 48px;
  padding: 28px 24px 32px;
  border-radius: var(--radius-lg, 20px);
  background:
    radial-gradient(ellipse 50% 60% at 50% 45%, rgba(59, 130, 246, 0.08), transparent 65%),
    rgba(12, 16, 28, 0.85);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.growth-engine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04));
  pointer-events: none;
}
.ge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.ge-head h3,
.ge-head .ge-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ge-head .ge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.growth-engine.powered .ge-head .ge-live {
  opacity: 1;
  color: #34D399;
}
.ge-head .ge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.ge-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  position: relative;
  z-index: 1;
}
.ge-node {
  opacity: 0.25;
  transition: opacity 0.5s ease, filter 0.5s ease;
  filter: saturate(0.4);
}
.ge-node.on {
  opacity: 1;
  filter: saturate(1);
}
.ge-node circle,
.ge-node .node-core {
  fill: #0c101c;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1.5;
  transition: stroke 0.4s ease, filter 0.4s ease;
}
.ge-node.on circle,
.ge-node.on .node-core {
  stroke: var(--blue);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.55));
}
.ge-node text,
.ge-node .node-label {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ge-link {
  fill: none;
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  opacity: 0.35;
  transition: stroke 0.5s ease, opacity 0.5s ease;
}
.ge-link.on {
  stroke: rgba(139, 92, 246, 0.55);
  opacity: 1;
  stroke-dasharray: none;
}

.ge-packet {
  opacity: 0;
  pointer-events: none;
}
.ge-packet.run {
  opacity: 1;
  animation: ge-packet-travel 2.4s linear infinite;
  offset-rotate: 0deg;
}
.ge-packet.run:nth-child(odd) {
  animation-delay: 0.6s;
}
.ge-packet.run:nth-child(3n) {
  animation-delay: 1.2s;
}
.ge-packet circle,
.ge-packet .pkt {
  fill: #60A5FA;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.8));
}

/* offset-path when supported */
@supports (offset-path: path('M0,0')) {
  .ge-packet.run[data-path] {
    offset-path: path(var(--ge-path));
    animation: ge-packet-offset 2.4s linear infinite;
  }
}
@keyframes ge-packet-offset {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes ge-packet-travel {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  10% { opacity: 1; }
  50% {
    opacity: 1;
    transform: translate(40px, -12px) scale(1);
  }
  90% { opacity: 0.8; }
  100% {
    opacity: 0;
    transform: translate(80px, -24px) scale(0.5);
  }
}

.ge-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.ge-metrics.live {
  opacity: 1;
  transform: translateY(0);
}
.ge-metrics .ge-metric,
.ge-metrics > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.ge-metrics .label,
.ge-metrics small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ge-metrics .value,
.ge-metrics strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.growth-engine.breathing {
  animation: ge-breathe 4.5s ease-in-out infinite;
}
.growth-engine.breathing .ge-node.on circle {
  animation: ge-node-pulse 3.2s ease-in-out infinite;
}
@keyframes ge-breathe {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: var(--shadow-md), 0 0 40px rgba(59, 130, 246, 0.12); }
}
@keyframes ge-node-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.65)); }
}

.growth-engine.ge-mobile .ge-packet {
  display: none;
}
.growth-engine.ge-mobile.powered .ge-node,
.growth-engine.ge-mobile.powered .ge-link {
  opacity: 1;
}

/* ─── 10. Chaos system sticky scroll ─── */
.chaos-section {
  position: relative;
  min-height: 240vh;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(139, 92, 246, 0.06), transparent 60%),
    var(--bg);
}
.chaos-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}
.chaos-stage {
  position: relative;
  width: min(920px, 100%);
  height: min(520px, 70vh);
  margin: 0 auto;
}

.chaos-node {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: left 0.7s var(--ease-out), top 0.7s var(--ease-out), opacity 0.5s ease,
    border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  will-change: left, top, transform, opacity;
  z-index: 3;
  animation: chaos-float 5s ease-in-out infinite;
}
.chaos-node:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.chaos-node:nth-child(2) { left: 78%; top: 18%; animation-delay: 0.4s; }
.chaos-node:nth-child(3) { left: 22%; top: 72%; animation-delay: 0.8s; }
.chaos-node:nth-child(4) { left: 85%; top: 68%; animation-delay: 1.1s; }
.chaos-node:nth-child(5) { left: 48%; top: 12%; animation-delay: 0.2s; }
.chaos-node:nth-child(6) { left: 55%; top: 80%; animation-delay: 1.4s; }
.chaos-node:nth-child(7) { left: 8%; top: 48%; animation-delay: 0.6s; }
.chaos-node:nth-child(8) { left: 92%; top: 42%; animation-delay: 1s; }

.chaos-section.phase-drift .chaos-node {
  opacity: 0.85;
}
.chaos-section.phase-warn .chaos-node {
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
}
.chaos-section.phase-pull .chaos-node:nth-child(1) { left: 28%; top: 35%; }
.chaos-section.phase-pull .chaos-node:nth-child(2) { left: 68%; top: 32%; }
.chaos-section.phase-pull .chaos-node:nth-child(3) { left: 32%; top: 62%; }
.chaos-section.phase-pull .chaos-node:nth-child(4) { left: 70%; top: 60%; }
.chaos-section.phase-pull .chaos-node:nth-child(5) { left: 48%; top: 28%; }
.chaos-section.phase-pull .chaos-node:nth-child(6) { left: 52%; top: 70%; }
.chaos-section.phase-pull .chaos-node:nth-child(7) { left: 24%; top: 48%; }
.chaos-section.phase-pull .chaos-node:nth-child(8) { left: 76%; top: 48%; }
.chaos-section.phase-pull .chaos-node {
  animation: none;
}

.chaos-section.phase-core .chaos-node:nth-child(1) { left: 35%; top: 40%; }
.chaos-section.phase-core .chaos-node:nth-child(2) { left: 62%; top: 38%; }
.chaos-section.phase-core .chaos-node:nth-child(3) { left: 38%; top: 58%; }
.chaos-section.phase-core .chaos-node:nth-child(4) { left: 64%; top: 56%; }
.chaos-section.phase-core .chaos-node:nth-child(5) { left: 48%; top: 34%; }
.chaos-section.phase-core .chaos-node:nth-child(6) { left: 50%; top: 64%; }
.chaos-section.phase-core .chaos-node:nth-child(7) { left: 32%; top: 48%; }
.chaos-section.phase-core .chaos-node:nth-child(8) { left: 68%; top: 48%; }

.chaos-section.phase-align .chaos-node:nth-child(1) { left: 30%; top: 35%; }
.chaos-section.phase-align .chaos-node:nth-child(2) { left: 70%; top: 35%; }
.chaos-section.phase-align .chaos-node:nth-child(3) { left: 30%; top: 65%; }
.chaos-section.phase-align .chaos-node:nth-child(4) { left: 70%; top: 65%; }
.chaos-section.phase-align .chaos-node:nth-child(5) { left: 50%; top: 28%; }
.chaos-section.phase-align .chaos-node:nth-child(6) { left: 50%; top: 72%; }
.chaos-section.phase-align .chaos-node:nth-child(7) { left: 22%; top: 50%; }
.chaos-section.phase-align .chaos-node:nth-child(8) { left: 78%; top: 50%; }
.chaos-section.phase-align .chaos-node {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--text);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.chaos-section.phase-pulse .chaos-node {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--text);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.18);
  animation: chaos-pulse 2.2s ease-in-out infinite;
}

.chaos-warn {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #FECACA;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.chaos-warn.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chaos-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(167, 139, 250, 0.5), transparent 50%),
    radial-gradient(circle at 50% 50%, #3B82F6, #8B5CF6 70%, #1e1b4b);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.35),
    0 0 80px rgba(139, 92, 246, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
  opacity: 0;
  z-index: 4;
  transition: opacity 0.6s ease, transform 0.7s var(--ease-out);
  pointer-events: none;
}
.chaos-core.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.chaos-core::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.25);
  animation: chaos-pulse 2.8s ease-out infinite;
  z-index: 0;
}
.chaos-core-text {
  position: relative;
  z-index: 2;
}

.chaos-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.6s ease;
}
.chaos-lines.show {
  opacity: 0.7;
}
.chaos-lines line,
.chaos-lines path {
  stroke: rgba(139, 92, 246, 0.4);
  stroke-width: 1;
  fill: none;
}

.chaos-finale {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%) translateY(12px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.chaos-finale.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.chaos-finale h3,
.chaos-finale .finale-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.chaos-finale p {
  font-size: 14px;
  color: var(--text-secondary);
}

@keyframes chaos-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
}
@keyframes chaos-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.15); }
}

.chaos-section.chaos-reduced .chaos-node {
  animation: none;
  left: 50% !important;
  top: 50% !important;
  opacity: 0;
}
.chaos-section.chaos-reduced .chaos-node:nth-child(-n+4) {
  opacity: 1;
}
.chaos-section.chaos-reduced .chaos-node:nth-child(1) { left: 30% !important; top: 35% !important; }
.chaos-section.chaos-reduced .chaos-node:nth-child(2) { left: 70% !important; top: 35% !important; }
.chaos-section.chaos-reduced .chaos-node:nth-child(3) { left: 30% !important; top: 65% !important; }
.chaos-section.chaos-reduced .chaos-node:nth-child(4) { left: 70% !important; top: 65% !important; }

.chaos-section.chaos-mobile {
  min-height: 160vh;
}
.chaos-section.chaos-mobile .chaos-sticky {
  padding: 60px 16px;
}
.chaos-section.chaos-mobile .chaos-stage {
  height: min(420px, 65vh);
}
.chaos-section.chaos-mobile .chaos-node {
  font-size: 11px;
  padding: 8px 12px;
}

/* ─── 11. Universe / orbit ─── */
.orbit-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.orbit-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 60px rgba(59, 130, 246, 0.05),
    0 0 80px rgba(139, 92, 246, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
}
.orbit-ring::before,
.orbit-ring::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}
.orbit-ring::after {
  inset: 28%;
  border-style: solid;
  border-color: rgba(139, 92, 246, 0.1);
}

.orbit-core {
  position: relative;
  z-index: 5;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(145deg, #3B82F6, #8B5CF6);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.35),
    0 0 80px rgba(139, 92, 246, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
.orbit-core img {
  width: 48px;
  height: auto;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 16, 28, 0.92);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  will-change: transform, left, top, opacity;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.orbit-node.near {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--text);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
.orbit-node img,
.orbit-node svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.orbit-wrap.orbit-mobile {
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.orbit-wrap.orbit-mobile .orbit-ring {
  display: none;
}
.orbit-wrap.orbit-mobile .orbit-core {
  display: none;
}
.orbit-wrap.orbit-mobile .orbit-node {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 1 !important;
  flex-shrink: 0;
}
.orbit-wrap.orbit-mobile {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 0;
  animation: orbit-marquee 28s linear infinite;
  width: max-content;
  max-width: none;
}
@keyframes orbit-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── 12. Platform ecosystem ─── */
.platform-ecosystem {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 40px auto 0;
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pe-core {
  position: relative;
  z-index: 4;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: var(--glow-violet), inset 0 0 30px rgba(59, 130, 246, 0.15);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.pe-logo {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 16, 28, 0.95);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.pe-logo:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
  transform: scale(1.08);
  z-index: 5;
}
.pe-logo svg,
.pe-logo img {
  width: 26px;
  height: 26px;
}
.pe-logo:nth-child(2) { top: 6%; left: 50%; transform: translateX(-50%); }
.pe-logo:nth-child(3) { top: 22%; right: 8%; }
.pe-logo:nth-child(4) { bottom: 22%; right: 8%; }
.pe-logo:nth-child(5) { bottom: 6%; left: 50%; transform: translateX(-50%); }
.pe-logo:nth-child(6) { bottom: 22%; left: 8%; }
.pe-logo:nth-child(7) { top: 22%; left: 8%; }
.pe-logo:nth-child(2):hover { transform: translateX(-50%) scale(1.08); }
.pe-logo:nth-child(5):hover { transform: translateX(-50%) scale(1.08); }

.pe-tip {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 6;
}
.pe-logo:hover + .pe-tip,
.platform-ecosystem:hover .pe-tip.active,
.pe-tip.show {
  opacity: 1;
}

@media (max-width: 900px) {
  .platform-ecosystem {
    aspect-ratio: auto;
    height: auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    justify-content: flex-start;
  }
  .platform-ecosystem .pe-core {
    display: none;
  }
  .platform-ecosystem .pe-tip {
    display: none;
  }
  .platform-ecosystem .pe-logo {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex-shrink: 0;
  }
  .platform-ecosystem {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 0;
    width: max-content;
    max-width: none;
    animation: pe-marquee 26s linear infinite;
  }
}
@keyframes pe-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── 13. AI Core section ─── */
.ai-core-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139, 92, 246, 0.08), transparent 55%),
    var(--bg);
  --ai-p: 0;
}
.ai-core-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: calc(0.4 + var(--ai-p) * 0.6);
}
.ai-core-orb {
  position: relative;
  z-index: 2;
  width: clamp(120px, 18vw, 180px);
  height: clamp(120px, 18vw, 180px);
  margin: 40px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 50% 50%, #60A5FA, #8B5CF6 55%, #1e1b4b 100%);
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.35),
    0 0 120px rgba(139, 92, 246, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.12);
  transform: scale(calc(0.85 + var(--ai-p) * 0.25));
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}
.ai-core-orb::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.2);
  opacity: calc(var(--ai-p) * 0.9);
}
.ai-core-orb::after {
  content: 'AI';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.ai-core-section .ai-streams,
.ai-core-streams {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.ai-core-section.emitting .ai-streams,
.ai-core-section.emitting .ai-core-streams {
  opacity: 1;
  transform: translateY(0);
}
.ai-stream-label,
.ai-streams span,
.ai-core-streams span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(59, 130, 246, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #93C5FD;
}

.ai-core-section.processing .ai-core-orb {
  box-shadow:
    0 0 70px rgba(59, 130, 246, 0.45),
    0 0 140px rgba(139, 92, 246, 0.28),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
  animation: ai-orb-spin 8s linear infinite;
}
.ai-core-section.emitting .ai-core-orb {
  animation: ai-orb-emit 2.4s ease-in-out infinite;
}
.ai-core-section.collapsing .ai-core-orb {
  transform: scale(0.7);
  filter: brightness(1.2);
  animation: none;
}
.ai-core-section.ai-core-static .ai-core-orb {
  transform: scale(1);
  animation: none;
}
.ai-core-section.ai-core-static .ai-streams,
.ai-core-section.ai-core-static .ai-core-streams {
  opacity: 1;
  transform: none;
}

@keyframes ai-orb-spin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(20deg); }
}
@keyframes ai-orb-emit {
  0%, 100% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.35), 0 0 100px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 90px rgba(96, 165, 250, 0.5), 0 0 140px rgba(167, 139, 250, 0.35); }
}

/* ─── 14. Service worlds ─── */
.sw-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, rgba(5, 7, 15, 0.92), rgba(12, 16, 28, 0.96));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}
.service-card.world-on .sw-stage {
  opacity: 1;
  pointer-events: auto;
}
.service-card.world-on > *:not(.sw-stage):not(.tilt-glow) {
  opacity: 0.08;
  transition: opacity 0.3s ease;
}

.sw-world {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sw-badge {
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6EE7B7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(6px);
}
.service-card.world-on .sw-badge {
  animation: sw-badge-in 0.4s 0.5s var(--ease-out) forwards;
}
@keyframes sw-badge-in {
  to { opacity: 1; transform: translateY(0); }
}

/* auto */
.sw-auto {
  position: relative;
  min-height: 120px;
}
.sw-auto .sw-n {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
  opacity: 0;
}
.service-card.world-on .sw-auto .sw-n {
  animation: sw-node-pop 0.4s calc(var(--i) * 0.12s) var(--ease-out) forwards;
}
.sw-auto .sw-n:nth-child(1) { left: 10%; top: 20%; }
.sw-auto .sw-n:nth-child(2) { right: 14%; top: 18%; }
.sw-auto .sw-n:nth-child(3) { left: 18%; bottom: 28%; }
.sw-auto .sw-n:nth-child(4) { right: 12%; bottom: 24%; }
@keyframes sw-node-pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
.sw-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.sw-flow i {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.6;
}
.service-card.world-on .sw-flow span {
  animation: sw-flow-in 0.35s calc(var(--i, 0) * 0.08s) var(--ease-out) both;
}
@keyframes sw-flow-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* chat */
.sw-chat {
  align-items: stretch;
  gap: 10px;
}
.sw-bubble {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
}
.sw-bubble.user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #BFDBFE;
  border-bottom-right-radius: 4px;
}
.sw-bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.service-card.world-on .sw-bubble.user {
  animation: sw-bubble-in 0.4s 0.1s var(--ease-out) forwards;
}
.service-card.world-on .sw-bubble.ai {
  animation: sw-bubble-in 0.4s 0.45s var(--ease-out) forwards;
}
@keyframes sw-bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

/* web */
.sw-browser {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
}
.service-card.world-on .sw-browser {
  animation: sw-browser-in 0.45s var(--ease-out) forwards;
}
@keyframes sw-browser-in {
  to { opacity: 1; transform: scale(1); }
}
.sw-dots {
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.sw-dots::before,
.sw-dots::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
}
.sw-dots::after {
  box-shadow: 12px 0 0 rgba(148, 163, 184, 0.4);
}
.sw-bar {
  height: 8px;
  margin: 12px 12px 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.45), rgba(139, 92, 246, 0.35));
}
.sw-cards {
  display: flex;
  gap: 8px;
  padding: 0 12px 14px;
}
.sw-cards i {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
}

/* marketing pipe */
.sw-pipe {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.sw-pipe i {
  width: 14px;
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
}
.sw-pipe.vertical {
  flex-direction: column;
  gap: 4px;
}
.sw-pipe.vertical i {
  width: 1px;
  height: 10px;
}
.sw-nums {
  font-size: 13px;
  color: var(--text-muted);
}
.sw-nums b {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-right: 4px;
}

/* ads metrics */
.sw-ads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.sw-metric {
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.sw-metric label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.sw-metric b {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* seo */
.sw-rank {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.sw-rank.flip {
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
}
.sw-hint {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* funnel */
.sw-funnel-shape {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.sw-funnel-shape i {
  display: block;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.45));
  border: 1px solid rgba(139, 92, 246, 0.25);
  opacity: 0;
  transform: scaleX(0.6);
}
.sw-funnel-shape i:nth-child(1) { width: 100%; }
.sw-funnel-shape i:nth-child(2) { width: 72%; }
.sw-funnel-shape i:nth-child(3) { width: 44%; }
.service-card.world-on .sw-funnel-shape i {
  animation: sw-funnel-drop 0.4s calc(var(--n, 0) * 0.12s) var(--ease-out) forwards;
}
.service-card.world-on .sw-funnel-shape i:nth-child(1) { --n: 0; }
.service-card.world-on .sw-funnel-shape i:nth-child(2) { --n: 1; }
.service-card.world-on .sw-funnel-shape i:nth-child(3) { --n: 2; }
@keyframes sw-funnel-drop {
  to { opacity: 1; transform: scaleX(1); }
}

/* whatsapp pipe already covered via .sw-pipe.vertical */

/* ─── 15. Dashboard alive ─── */
.dash-alive {
  position: relative;
}
.dash-alive.in-view {
  animation: dash-breathe 5s ease-in-out infinite;
}
@keyframes dash-breathe {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50% { box-shadow: var(--shadow-lg), 0 0 36px rgba(59, 130, 246, 0.12); }
}

.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #FCA5A5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dash-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.dash-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.dash-status span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
  animation: dash-status-blink 2.4s ease-in-out infinite;
}
.dash-status span:nth-child(2) i { animation-delay: 0.3s; }
.dash-status span:nth-child(3) i { animation-delay: 0.6s; background: #60A5FA; box-shadow: 0 0 6px rgba(96, 165, 250, 0.6); }
.dash-status span:nth-child(4) i { animation-delay: 0.9s; background: #A78BFA; box-shadow: 0 0 6px rgba(167, 139, 250, 0.6); }
@keyframes dash-status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dash-alive .chart-line,
.dash-alive .animate-draw {
  transition: stroke-dashoffset 1.8s var(--ease-out);
}

/* ─── 16. Scroll growth graph ─── */
.scroll-growth {
  position: relative;
  min-height: 180vh;
  padding: 40px 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59, 130, 246, 0.06), transparent 60%),
    var(--bg);
}
.scroll-growth .sg-sticky,
.sg-sticky {
  position: sticky;
  top: 12vh;
  height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sg-chart,
.scroll-growth svg {
  width: min(900px, 100%);
  height: auto;
  max-height: 50vh;
}
.sg-path {
  fill: none;
  stroke: url(#sgStroke);
  stroke: #3B82F6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
}
.sg-fill {
  fill: url(#sgFill);
  fill: rgba(59, 130, 246, 0.12);
  transition: opacity 0.2s linear;
  opacity: 0;
}
.sg-marker {
  position: absolute;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(12, 16, 28, 0.92);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), border-color 0.3s ease, color 0.3s ease;
  pointer-events: none;
}
.sg-marker.on {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}
.sg-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.scroll-growth.sg-complete .sg-glow {
  opacity: 1;
}
.scroll-growth.sg-complete .sg-path {
  stroke: #8B5CF6;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}
.sg-finale,
.scroll-growth .sg-finale {
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.scroll-growth.sg-complete .sg-finale {
  opacity: 1;
  transform: translateY(0);
}
.sg-finale h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.sg-finale p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ─── 17. Case study cinematic ─── */
.cs-cinematic {
  position: relative;
  transition: transform 0.25s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.cs-cinematic .work-visual,
.cs-cinematic .cs-visual {
  position: relative;
  overflow: hidden;
}
.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 15, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
.cs-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 60%
  );
  transform: translateX(-120%);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.cs-cinematic.cs-revealed .cs-overlay {
  opacity: 1;
}
.cs-cinematic.cs-revealed .cs-sheen {
  opacity: 1;
  animation: cs-sheen-run 1.2s 0.2s var(--ease-out) forwards;
}
@keyframes cs-sheen-run {
  to { transform: translateX(120%); }
}
.cs-cinematic.cs-revealed {
  border-color: rgba(139, 92, 246, 0.3);
}
.cs-cinematic:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-md), 0 0 30px rgba(59, 130, 246, 0.1);
}

/* ─── 18. System map overlay ─── */
.system-map {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
  padding: 24px;
}
.system-map.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.system-map.zooming .sm-tree {
  transform: scale(1.08);
}
.sm-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}
.sm-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.sm-tree {
  position: relative;
  width: min(720px, 100%);
  min-height: 360px;
  padding: 40px 24px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(59, 130, 246, 0.08), transparent 70%),
    rgba(12, 16, 28, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease-out);
  overflow: hidden;
}
.sm-node {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), border-color 0.3s ease, color 0.3s ease;
}
.system-map.mapping .sm-node {
  opacity: 1;
  transform: scale(1);
}
.system-map.online .sm-node {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text);
}
.sm-node.sm-root,
.sm-node[data-root] {
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.85);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--text);
  font-weight: 700;
}
.system-map.mapping .sm-node.sm-root,
.system-map.mapping .sm-node[data-root] {
  transform: translate(-50%, -50%) scale(1);
}
.sm-node:nth-of-type(2) { left: 12%; top: 18%; transition-delay: 0.08s; }
.sm-node:nth-of-type(3) { left: 70%; top: 16%; transition-delay: 0.16s; }
.sm-node:nth-of-type(4) { left: 8%; top: 70%; transition-delay: 0.24s; }
.sm-node:nth-of-type(5) { left: 72%; top: 68%; transition-delay: 0.32s; }
.sm-node:nth-of-type(6) { left: 40%; top: 12%; transition-delay: 0.2s; }
.sm-node:nth-of-type(7) { left: 42%; top: 78%; transition-delay: 0.28s; }

.sm-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
  opacity: 0;
  left: 20%;
  top: 30%;
  z-index: 3;
  pointer-events: none;
}
.sm-packet.run,
.system-map.packet-run .sm-packet {
  animation: sm-packet-travel 1.6s var(--ease-out) forwards;
}
@keyframes sm-packet-travel {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  10% { opacity: 1; }
  50% {
    opacity: 1;
    transform: translate(180px, 40px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(320px, 80px) scale(0.4);
  }
}

.sm-status {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6EE7B7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  z-index: 4;
}
.sm-status.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── 19. Hero entrance on site-ready ─── */
html:not(.site-ready) .hero-kicker,
html:not(.site-ready) .hero-title,
html:not(.site-ready) .hero-sub,
html:not(.site-ready) .hero-actions,
html:not(.site-ready) .hero-visual,
html:not(.site-ready) .hero-morph,
html:not(.site-ready) .growth-engine {
  opacity: 0;
}

html.site-ready .hero-kicker {
  animation: hero-enter 0.7s 0.05s var(--ease-out) both;
}
html.site-ready .hero-title {
  animation: hero-enter 0.8s 0.15s var(--ease-out) both;
}
html.site-ready .hero-title-line > span,
html.site-ready .hero-title-line .line-inner {
  animation: hero-line-up 0.85s calc(0.2s + var(--i, 0) * 0.08s) var(--ease-out) both;
}
html.site-ready .hero-sub {
  animation: hero-enter 0.75s 0.32s var(--ease-out) both;
}
html.site-ready .hero-morph {
  animation: hero-enter 0.7s 0.38s var(--ease-out) both;
}
html.site-ready .hero-actions {
  animation: hero-enter 0.7s 0.45s var(--ease-out) both;
}
html.site-ready .hero-visual,
html.site-ready .growth-engine {
  animation: hero-enter-scale 0.9s 0.35s var(--ease-out) both;
}

.title-reveal {
  clip-path: inset(0 0 100% 0);
  animation: title-reveal 0.9s var(--ease-out) both;
}
@keyframes title-reveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-enter-scale {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes hero-line-up {
  from {
    opacity: 0;
    transform: translateY(110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── 20. Reduced motion + mobile guards ─── */
@media (prefers-reduced-motion: reduce) {
  body::before {
    opacity: 0.02;
  }

  .page-loader .loader-bar::after,
  .page-loader .bar::after {
    animation: none;
    width: 100%;
    transform: none;
  }

  .cursor-ring {
    display: none !important;
  }

  .magnetic,
  .tilt-card {
    transition: none !important;
    transform: none !important;
  }
  .tilt-glow {
    display: none;
  }

  .particle-field {
    display: none;
  }

  .hero-morph .morph-inner.in,
  .hero-morph .morph-inner.out {
    animation: none !important;
  }

  .growth-engine.breathing,
  .growth-engine.breathing .ge-node.on circle,
  .ge-packet.run {
    animation: none !important;
  }
  .ge-packet {
    display: none;
  }
  .ge-node,
  .ge-link,
  .ge-metrics {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .chaos-node,
  .chaos-core::after,
  .chaos-section.phase-pulse .chaos-node {
    animation: none !important;
  }

  .orbit-wrap:not(.orbit-mobile) .orbit-ring {
    transform: none !important;
  }
  .orbit-wrap.orbit-mobile,
  .platform-ecosystem {
    animation: none !important;
  }

  .ai-core-section.processing .ai-core-orb,
  .ai-core-section.emitting .ai-core-orb {
    animation: none !important;
  }

  .service-card.world-on .sw-stage * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .sw-badge {
    opacity: 1;
    transform: none;
  }

  .dash-alive.in-view,
  .dash-status span i {
    animation: none !important;
  }

  .cs-cinematic.cs-revealed .cs-sheen {
    animation: none !important;
    opacity: 0;
  }

  .sm-packet.run,
  .system-map.packet-run .sm-packet {
    animation: none !important;
    opacity: 0;
  }

  html.site-ready .hero-kicker,
  html.site-ready .hero-title,
  html.site-ready .hero-sub,
  html.site-ready .hero-actions,
  html.site-ready .hero-visual,
  html.site-ready .hero-morph,
  html.site-ready .growth-engine,
  html.site-ready .hero-title-line > span,
  html.site-ready .hero-title-line .line-inner,
  .title-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  html:not(.site-ready) .hero-kicker,
  html:not(.site-ready) .hero-title,
  html:not(.site-ready) .hero-sub,
  html:not(.site-ready) .hero-actions,
  html:not(.site-ready) .hero-visual,
  html:not(.site-ready) .hero-morph,
  html:not(.site-ready) .growth-engine {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .cursor-ring {
    display: none !important;
  }

  .tilt-card:hover,
  .tilt-card {
    transform: none !important;
  }
  .tilt-glow {
    display: none;
  }

  .magnetic {
    transform: none !important;
  }

  .growth-engine {
    padding: 20px 16px 24px;
  }
  .ge-metrics {
    grid-template-columns: 1fr;
  }

  .chaos-section {
    min-height: 180vh;
  }

  .orbit-wrap {
    max-width: 100%;
  }

  .ai-core-section {
    padding: 72px 0;
  }

  .sw-stage {
    padding: 16px;
  }

  .scroll-growth {
    min-height: 140vh;
  }
  .scroll-growth .sg-sticky,
  .sg-sticky {
    top: 8vh;
    height: 70vh;
  }

  .sm-tree {
    min-height: 300px;
    padding: 28px 16px;
  }

  .system-map {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  body::before {
    opacity: 0.025;
  }

  .page-loader .loader-brand,
  .page-loader .brand {
    font-size: 20px;
  }

  .hero-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .growth-engine {
    margin-top: 28px;
  }
  .ge-svg {
    min-height: 160px;
  }

  .chaos-section {
    min-height: 150vh;
  }
  .chaos-sticky {
    padding: 48px 12px;
  }
  .chaos-node {
    font-size: 10px;
    padding: 6px 10px;
  }
  .chaos-core {
    width: 64px;
    height: 64px;
  }

  .ai-core-orb {
    width: 110px;
    height: 110px;
  }
  .ai-core-section .ai-streams,
  .ai-core-streams {
    gap: 10px;
  }

  .sw-ads {
    grid-template-columns: 1fr;
  }
  .sw-rank {
    font-size: 42px;
  }

  .dash-status {
    gap: 8px 12px;
  }
  .dash-status span {
    font-size: 10px;
  }

  .scroll-growth {
    min-height: 120vh;
  }
  .sg-marker {
    font-size: 11px;
    padding: 6px 10px;
  }

  .sm-node {
    font-size: 11px;
    padding: 8px 12px;
  }
  .sm-close {
    top: 12px;
    right: 12px;
  }

  .demo-badge {
    top: 8px;
    right: 8px;
    font-size: 8px;
  }
}

/* Touch / coarse pointer: disable hover cinema chrome */
@media (hover: none), (pointer: coarse) {
  .cursor-ring {
    display: none !important;
  }
  .tilt-glow {
    display: none;
  }
  .magnetic {
    transform: none !important;
  }
}

/* ═══ FINAL POLISH — CTA / forms / tech / contact ═══ */
.cta-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59,130,246,0.14), transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(139,92,246,0.1), transparent 60%),
    var(--bg) !important;
}
.cta-title { color: var(--text); }
.contact-info,
.contact-form,
.contact-form-wrap {
  background: var(--bg-card) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.contact-item-icon {
  background: rgba(255,255,255,0.04) !important;
  border-color: var(--border) !important;
  color: var(--violet-bright) !important;
}
.form-input,
.form-textarea,
.form-input:focus,
.form-textarea:focus {
  background: rgba(255,255,255,0.03) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.form-input:focus,
.form-textarea:focus {
  border-color: rgba(139,92,246,0.55) !important;
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12) !important;
}
.principle,
.tech-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.tech-pills span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.dash-card { background: var(--bg-card); }

/* Platform ecosystem desktop / marquee mobile */
.platform-ecosystem {
  position: relative;
  min-height: 440px;
  margin: 12px auto 8px;
  max-width: 720px;
}
.pe-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 108px; height: 108px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px; letter-spacing: 0.1em;
  background: var(--gradient);
  box-shadow: 0 0 48px rgba(139,92,246,0.4);
  color: #fff;
}
.pe-orbit { position: absolute; inset: 0; }
.pe-logo {
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10,14,26,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.pe-logo.near,
.pe-logo:hover {
  color: #fff;
  border-color: rgba(139,92,246,0.55);
  box-shadow: 0 0 24px rgba(139,92,246,0.3);
}
.pe-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--text);
  background: rgba(5,7,15,0.95);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pe-logo:hover .pe-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pe-marquee { display: none; margin-top: 8px; }
.platform-ecosystem.pe-mobile { min-height: 0; }
.platform-ecosystem.pe-mobile .pe-core,
.platform-ecosystem.pe-mobile .pe-orbit { display: none; }

@media (max-width: 900px) {
  .platform-ecosystem { min-height: 0; }
  .pe-core, .pe-orbit { display: none !important; }
  .pe-marquee { display: block !important; }
}

/* Keep SVG packets invisible until engine flowing */
.growth-engine:not(.flowing) .ge-packet {
  opacity: 0 !important;
}
.growth-engine.flowing .ge-packet {
  opacity: 1;
}

/* System map: respect fixed overlay even without hidden attr */
.system-map[hidden] { display: none !important; }
.system-map:not([hidden]) {
  display: flex;
}

/* ════════════════════════════════════════════════
   ALIGNMENT + LOGO FIXES (Aug 2026)
   ════════════════════════════════════════════════ */

/* Growth Engine — centered SVG labels */
.ge-node text {
  text-anchor: middle !important;
  dominant-baseline: central;
  fill: #E2E8F0 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  font-family: var(--font), system-ui, sans-serif;
  letter-spacing: 0.04em;
}
.ge-node.core .ge-core-title {
  font-size: 8px !important;
  fill: #fff !important;
  letter-spacing: 0.08em;
}
.ge-node.core .ge-core-sub {
  font-size: 10px !important;
  fill: #fff !important;
  font-weight: 800 !important;
}

/* Growth Engine metrics — stacked cleanly */
.ge-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  align-items: stretch;
}
.ge-metric {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 12px !important;
}
.ge-metric label {
  display: block;
  font-size: 10px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  line-height: 1.2;
}
.ge-metric b {
  display: block;
  font-size: 18px !important;
  line-height: 1.2;
  font-weight: 800;
  color: #fff !important;
}

/* Scroll growth markers — flex row, NOT absolute stack */
.sg-markers {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px 10px !important;
  width: min(900px, 100%) !important;
  margin: 20px auto 0 !important;
}
.sg-marker {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 0.35 !important;
  padding: 8px 12px !important;
  white-space: nowrap;
}
.sg-marker.on {
  opacity: 1 !important;
  transform: none !important;
  color: #fff !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}
.sg-chart-wrap {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
}

/* Universe orbit — clean centered ring */
.orbit-wrap {
  position: relative !important;
  width: min(560px, 100%) !important;
  height: 480px !important;
  margin: 24px auto 0 !important;
  display: block !important;
}
.orbit-core {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 20 !important;
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}
.orbit-ring {
  position: absolute !important;
  inset: 0 !important;
  transform-style: preserve-3d;
}
.orbit-ring > .orbit-node {
  position: absolute !important;
  margin: 0 !important;
  white-space: nowrap;
}
.orbit-fallback {
  display: none !important;
}
.orbit-wrap.orbit-mobile {
  height: auto !important;
  padding: 12px 0 24px;
}
.orbit-wrap.orbit-mobile .orbit-ring {
  display: none !important;
}
.orbit-wrap.orbit-mobile .orbit-core {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 auto 20px !important;
}
.orbit-wrap.orbit-mobile .orbit-fallback {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.orbit-wrap.orbit-mobile .orbit-fallback span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Platform ecosystem — logo tiles with colorful icons */
.platform-ecosystem {
  position: relative !important;
  width: min(560px, 100%) !important;
  height: 460px !important;
  margin: 28px auto 8px !important;
  aspect-ratio: auto !important;
  display: block !important;
}
.pe-core {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 20 !important;
  width: 108px !important;
  height: 108px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
}
.pe-orbit {
  position: absolute !important;
  inset: 0 !important;
}
.pe-logo {
  position: absolute !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(12, 16, 28, 0.95) !important;
  border: 1px solid var(--border) !important;
  padding: 0 !important;
}
.pe-logo .pe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.pe-logo .pe-icon svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
}
.pe-logo:nth-child(n) {
  /* kill static nth-child layout from earlier CSS */
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}
.pe-logo.near,
.pe-logo:hover {
  border-color: rgba(139, 92, 246, 0.55) !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.28) !important;
  z-index: 30 !important;
}
.pe-tip {
  bottom: calc(100% + 10px) !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
.pe-logo:hover .pe-tip {
  opacity: 1 !important;
}
.pe-marquee {
  display: none !important;
}
@media (max-width: 900px) {
  .platform-ecosystem {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
  }
  .pe-core, .pe-orbit { display: none !important; }
  .pe-marquee { display: block !important; }
}

/* Always-colorful marquee / platform logos */
.platform-logo.brand-color,
.platform-logo {
  color: var(--text) !important;
}
.platform-logo .platform-icon {
  background: rgba(255,255,255,0.04) !important;
}
.platform-logo .g-blue { fill: #4285F4 !important; }
.platform-logo .g-green { fill: #34A853 !important; }
.platform-logo .g-yellow { fill: #FBBC05 !important; }
.platform-logo .g-red { fill: #EA4335 !important; }
.platform-logo[data-brand="meta"] .platform-icon svg path { fill: #0668E1 !important; }
.platform-logo[data-brand="facebook"] .platform-icon svg path { fill: #1877F2 !important; }
.platform-logo[data-brand="instagram"] .ig-fill { fill: url(#igGradA) !important; }
.platform-logo[data-brand="youtube"] .yt-bg { fill: #FF0000 !important; }
.platform-logo[data-brand="youtube"] .yt-play { fill: #fff !important; opacity: 1 !important; }
.platform-logo[data-brand="whatsapp"] .platform-icon svg path { fill: #25D366 !important; }
.platform-logo[data-brand="linkedin"] .platform-icon svg path { fill: #0A66C2 !important; }
.platform-logo[data-brand="analytics"] .ga-yellow { fill: #F9AB00 !important; }
.platform-logo[data-brand="analytics"] .ga-orange { fill: #E37400 !important; }
.platform-logo[data-brand="analytics"] .ga-blue { fill: #E37400 !important; }
.platform-logo[data-brand="shopify"] .platform-icon svg path { fill: #95BF47 !important; }
.platform-logo[data-brand="wordpress"] .platform-icon svg path { fill: #21759B !important; }
.platform-logo[data-brand="gbp"] .platform-icon svg path { fill: #EA4335 !important; }

/* System map — vertical flex tree (no absolute pile-up) */
.system-map .sm-panel {
  position: relative;
  width: min(640px, 100%);
  padding: 36px 24px 28px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 40%, rgba(59,130,246,0.1), transparent 70%),
    rgba(12, 16, 28, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.system-map .sm-tree {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.system-map .sm-node {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.system-map.mapping .sm-node,
.system-map.online .sm-node {
  opacity: 1 !important;
  transform: none !important;
}
.system-map .sm-node.core {
  background: var(--gradient) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 0 32px rgba(139,92,246,0.35);
}
.system-map .sm-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
  width: 100%;
}
.system-map .sm-line {
  width: 2px !important;
  height: 18px !important;
  background: var(--gradient) !important;
  opacity: 0.7;
  flex-shrink: 0;
}
.system-map .sm-brand-icon {
  display: inline-flex;
  line-height: 0;
}
.system-map .sm-brand-icon svg {
  width: 18px;
  height: 18px;
}
.system-map .sm-packet {
  position: absolute !important;
  left: 50% !important;
  top: 8% !important;
  margin-left: -5px;
}
.system-map .sm-status {
  position: static !important;
  transform: none !important;
  margin: 22px auto 0 !important;
  text-align: center;
  opacity: 0;
}
.system-map .sm-status.show {
  opacity: 1 !important;
}

/* Kill conflicting absolute nth positions from old system-map CSS */
.sm-node:nth-of-type(n) {
  left: auto;
  top: auto;
}

/* ════════════════════════════════════════════════
   PLATFORM ORBIT — hard fix (all logos visible)
   ════════════════════════════════════════════════ */
.platform-ecosystem,
#platformEco {
  position: relative !important;
  width: min(520px, 92vw) !important;
  height: 520px !important;
  min-height: 520px !important;
  max-width: 520px !important;
  margin: 32px auto 12px !important;
  aspect-ratio: auto !important;
  display: block !important;
  overflow: visible !important;
}

#platformEco .pe-core,
.platform-ecosystem .pe-core {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 30 !important;
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6) !important;
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.45) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
}

#platformEco .pe-orbit,
.platform-ecosystem .pe-orbit {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  inset: auto !important;
  transform-origin: 50% 50% !important;
  animation: pe-spin 48s linear infinite;
}

@keyframes pe-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#platformEco .pe-logo,
.platform-ecosystem .pe-logo {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 64px !important;
  height: 64px !important;
  margin: -32px 0 0 -32px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(12, 16, 28, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
  /* Place evenly on circle: angle = i * (360 / count) */
  transform:
    rotate(calc(var(--i) * (360deg / var(--pe-count, 9))))
    translate(210px)
    rotate(calc(var(--i) * (-360deg / var(--pe-count, 9)))) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

/* Counter-rotate icon only — NOT the tooltip text */
#platformEco.pe-ready .pe-orbit .pe-logo .pe-icon {
  animation: pe-spin-rev 48s linear infinite;
}
#platformEco.pe-ready .pe-orbit .pe-logo .pe-tip {
  animation: none !important;
}
@keyframes pe-spin-rev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

#platformEco .pe-logo:hover {
  border-color: rgba(139, 92, 246, 0.65) !important;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.35) !important;
  z-index: 40 !important;
}

#platformEco .pe-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}
#platformEco .pe-icon svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

#platformEco .pe-tip {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 10px) !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  text-align: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #F8FAFC !important;
  background: rgba(5, 7, 15, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 50 !important;
}
#platformEco .pe-logo:hover .pe-tip {
  opacity: 1 !important;
}

/* Kill old nth-child absolute maps completely */
.pe-logo:nth-child(1),
.pe-logo:nth-child(2),
.pe-logo:nth-child(3),
.pe-logo:nth-child(4),
.pe-logo:nth-child(5),
.pe-logo:nth-child(6),
.pe-logo:nth-child(7),
.pe-logo:nth-child(8),
.pe-logo:nth-child(9) {
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  #platformEco .pe-orbit,
  #platformEco .pe-logo .pe-icon,
  #platformEco .pe-logo .pe-tip {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  #platformEco,
  .platform-ecosystem {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  #platformEco .pe-core,
  #platformEco .pe-orbit,
  .platform-ecosystem .pe-core,
  .platform-ecosystem .pe-orbit {
    display: none !important;
  }
  .pe-marquee {
    display: block !important;
  }
}

@media (min-width: 901px) {
  .pe-marquee {
    display: none !important;
  }
}

/* Tip stays readable: only icon counter-rotates */
#platformEco.pe-ready .pe-orbit .pe-logo .pe-tip {
  animation: none !important;
  transform: translateX(-50%) !important;
}
#platformEco.pe-ready .pe-orbit:hover {
  animation-play-state: paused;
}
#platformEco.pe-ready .pe-orbit:hover .pe-logo .pe-icon {
  animation-play-state: paused;
}

/* ════════════════════════════════════════════════
   PLATFORM ORBIT — VRAIZEN true center lock
   ════════════════════════════════════════════════ */
#platformEco.platform-ecosystem,
#platformEco {
  position: relative !important;
  width: min(520px, 92vw) !important;
  height: 520px !important;
  min-height: 520px !important;
  max-width: 520px !important;
  margin: 28px auto 16px !important;
  display: block !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
}

#platformEco .pe-stage {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none;
}

#platformEco .pe-orbit,
#platformEco .pe-core {
  grid-area: 1 / 1 !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  margin: 0 !important;
  pointer-events: auto;
}

#platformEco .pe-core {
  z-index: 40 !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  transform: none !important;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6) !important;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  border: none !important;
}

#platformEco .pe-orbit {
  z-index: 10 !important;
  width: 420px !important;
  height: 420px !important;
  max-width: 80vw !important;
  max-height: 80vw !important;
  transform-origin: 50% 50% !important;
  animation: pe-spin 50s linear infinite !important;
}

@keyframes pe-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#platformEco .pe-logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 64px !important;
  height: 64px !important;
  margin: -32px 0 0 -32px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(12, 16, 28, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 12 !important;
  transform:
    rotate(calc(var(--i) * (360deg / var(--pe-count, 9))))
    translateY(-180px)
    rotate(calc(var(--i) * (-360deg / var(--pe-count, 9)))) !important;
}

#platformEco .pe-logo .pe-icon {
  display: flex !important;
  animation: pe-spin-rev 50s linear infinite;
}
#platformEco .pe-logo .pe-icon svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}
@keyframes pe-spin-rev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

#platformEco .pe-logo:hover {
  border-color: rgba(139, 92, 246, 0.7) !important;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.4) !important;
  z-index: 50 !important;
}
#platformEco .pe-orbit:hover,
#platformEco .pe-orbit:hover .pe-logo .pe-icon {
  animation-play-state: paused !important;
}

#platformEco .pe-tip {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #fff !important;
  background: rgba(5,7,15,0.95) !important;
  border: 1px solid rgba(148,163,184,0.25) !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 60 !important;
  animation: none !important;
}
#platformEco .pe-logo:hover .pe-tip {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  #platformEco .pe-orbit,
  #platformEco .pe-logo .pe-icon {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  #platformEco {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  #platformEco .pe-stage {
    display: none !important;
  }
  .pe-marquee { display: block !important; }
}

@media (min-width: 901px) {
  .pe-marquee { display: none !important; }
}

@media (max-width: 520px) {
  #platformEco .pe-orbit {
    width: 300px !important;
    height: 300px !important;
  }
  #platformEco .pe-logo {
    transform:
      rotate(calc(var(--i) * (360deg / var(--pe-count, 9))))
      translateY(-130px)
      rotate(calc(var(--i) * (-360deg / var(--pe-count, 9)))) !important;
  }
}

/* ════════════════════════════════════════════════
   CHAOS + PLATFORM — final polish (Aug 2026)
   ════════════════════════════════════════════════ */

/* Faster scroll — less distance */
.chaos-section {
  min-height: 155vh !important;
}

/* Scattered disconnected layout */
.chaos-node[data-id="0"] { left: 8%;  top: 14%; }
.chaos-node[data-id="1"] { left: 82%; top: 12%; }
.chaos-node[data-id="2"] { left: 14%; top: 74%; }
.chaos-node[data-id="3"] { left: 86%; top: 70%; }
.chaos-node[data-id="4"] { left: 46%; top: 6%;  }
.chaos-node[data-id="5"] { left: 54%; top: 86%; }
.chaos-node[data-id="6"] { left: 32%; top: 20%; }

.chaos-section.phase-pull .chaos-node[data-id="0"],
.chaos-section.phase-core .chaos-node[data-id="0"],
.chaos-section.phase-align .chaos-node[data-id="0"],
.chaos-section.phase-pulse .chaos-node[data-id="0"] { left: 50%; top: 18%; }
.chaos-section.phase-pull .chaos-node[data-id="1"],
.chaos-section.phase-core .chaos-node[data-id="1"],
.chaos-section.phase-align .chaos-node[data-id="1"],
.chaos-section.phase-pulse .chaos-node[data-id="1"] { left: 78%; top: 32%; }
.chaos-section.phase-pull .chaos-node[data-id="2"],
.chaos-section.phase-core .chaos-node[data-id="2"],
.chaos-section.phase-align .chaos-node[data-id="2"],
.chaos-section.phase-pulse .chaos-node[data-id="2"] { left: 82%; top: 58%; }
.chaos-section.phase-pull .chaos-node[data-id="3"],
.chaos-section.phase-core .chaos-node[data-id="3"],
.chaos-section.phase-align .chaos-node[data-id="3"],
.chaos-section.phase-pulse .chaos-node[data-id="3"] { left: 62%; top: 78%; }
.chaos-section.phase-pull .chaos-node[data-id="4"],
.chaos-section.phase-core .chaos-node[data-id="4"],
.chaos-section.phase-align .chaos-node[data-id="4"],
.chaos-section.phase-pulse .chaos-node[data-id="4"] { left: 38%; top: 78%; }
.chaos-section.phase-pull .chaos-node[data-id="5"],
.chaos-section.phase-core .chaos-node[data-id="5"],
.chaos-section.phase-align .chaos-node[data-id="5"],
.chaos-section.phase-pulse .chaos-node[data-id="5"] { left: 18%; top: 58%; }
.chaos-section.phase-pull .chaos-node[data-id="6"],
.chaos-section.phase-core .chaos-node[data-id="6"],
.chaos-section.phase-align .chaos-node[data-id="6"],
.chaos-section.phase-pulse .chaos-node[data-id="6"] { left: 22%; top: 32%; }

.chaos-section.phase-pull .chaos-node,
.chaos-section.phase-core .chaos-node,
.chaos-section.phase-align .chaos-node,
.chaos-section.phase-pulse .chaos-node {
  animation: none !important;
}

/* Core text INSIDE sphere */
.chaos-core {
  width: 118px !important;
  height: 118px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.chaos-core-text {
  position: relative;
  z-index: 2;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* SVG connection lines */
.chaos-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.chaos-svg.show { opacity: 1; }

.chaos-line-broken {
  stroke: rgba(248, 113, 113, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
}
.chaos-line-cross {
  stroke: rgba(251, 146, 60, 0.25);
  stroke-width: 1;
  stroke-dasharray: 4 10;
}
.chaos-break-x line {
  stroke: #F87171;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.chaos-line-live {
  stroke: url(#chaosLiveGrad);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.85;
}
.chaos-svg-connected defs {
  position: absolute;
}

/* Warning badges — row at top, no overlap */
.chaos-warns {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.chaos-warns.show { opacity: 1; }
.chaos-warns .chaos-warn {
  position: static !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  opacity: 1 !important;
  padding: 6px 12px;
  font-size: 10px;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #FECACA;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chaos-section.phase-warn .chaos-node {
  border-color: rgba(248, 113, 113, 0.45) !important;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.12);
}

/* ── Platform: orbit ring visible behind logos ── */
#platformEco .pe-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.1);
  pointer-events: none;
  z-index: 0;
}
#platformEco .pe-logo {
  z-index: 2 !important;
}

/* ===== Chaos popups + overlap fix ===== */
.chaos-section {
  min-height: 220vh !important;
}

.chaos-popups {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

.chaos-popup {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fecaca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chaos-popup::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(127, 29, 29, 0.4);
  border-right: 1px solid rgba(248, 113, 113, 0.35);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
}

/* disable old warn row safely */
.chaos-warns {
  display: none !important;
}

/* Final headline lower + nodes lifted, avoids overlap */
.chaos-finale {
  bottom: -2% !important;
  z-index: 10 !important;
}

.chaos-finale h3,
.chaos-finale .finale-title {
  font-size: clamp(16px, 2.2vw, 32px) !important;
  line-height: 1.15;
  max-width: min(500px, 85vw);
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chaos-section.chaos-final .chaos-node {
  transform: translate(-50%, -50%) translateY(-24px) !important;
}

@media (max-width: 900px) {
  .chaos-section {
    min-height: 180vh !important;
  }
  .chaos-popup {
    font-size: 10px;
    padding: 6px 10px;
  }
  .chaos-finale h3,
  .chaos-finale .finale-title {
    font-size: clamp(14px, 5vw, 24px) !important;
  }
}

/* ===== Platform orbit — FINAL (orbit spins, icons stay upright) ===== */
#platformEco .pe-orbit {
  width: 340px !important;
  height: 340px !important;
  transform-origin: 50% 50% !important;
  animation: pe-orbit-spin 55s linear infinite !important;
}
@keyframes pe-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#platformEco .pe-orbit::before {
  z-index: 0 !important;
}

#platformEco .pe-logo {
  width: 54px !important;
  height: 54px !important;
  margin: -27px 0 0 -27px !important;
  z-index: 2 !important;
  transform:
    rotate(calc(var(--i) * (360deg / var(--pe-count, 9))))
    translateY(-148px)
    rotate(calc(var(--i) * (-360deg / var(--pe-count, 9)))) !important;
}

/* Counter-rotate icon so logo stays upright while orbiting */
#platformEco .pe-logo .pe-icon {
  animation: pe-orbit-counter 55s linear infinite !important;
}
@keyframes pe-orbit-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

#platformEco .pe-logo .pe-icon svg {
  width: 24px !important;
  height: 24px !important;
}

/* Hide tooltip text on orbit — only show on hover */
#platformEco .pe-logo .pe-tip {
  animation: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
}
#platformEco .pe-logo:hover .pe-tip {
  visibility: visible !important;
  opacity: 1 !important;
}

#platformEco .pe-orbit:hover {
  animation-play-state: paused !important;
}
#platformEco .pe-orbit:hover .pe-logo .pe-icon {
  animation-play-state: paused !important;
}

@media (max-width: 520px) {
  #platformEco .pe-orbit { width: 270px !important; height: 270px !important; }
  #platformEco .pe-logo {
    width: 44px !important;
    height: 44px !important;
    margin: -22px 0 0 -22px !important;
    transform:
      rotate(calc(var(--i) * (360deg / var(--pe-count, 9))))
      translateY(-115px)
      rotate(calc(var(--i) * (-360deg / var(--pe-count, 9)))) !important;
  }
}

.contact-item-icon svg {
  display: block;
}
.form-success-icon svg {
  display: block;
  color: #34D399;
}

/* ===== Contact popup modal ===== */
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.contact-popup.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.contact-popup[hidden] { display: none !important; }
.contact-popup:not([hidden]) { display: flex !important; }

.cp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.cp-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cp-panel {
  width: min(560px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
    rgba(12, 16, 28, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 28px 24px 24px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
}
.contact-popup.open .cp-panel {
  transform: translateY(0) scale(1);
}

.cp-head {
  margin-bottom: 20px;
  text-align: center;
}
.cp-head h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.cp-head p {
  font-size: 14px;
  color: var(--text-secondary);
}

.cp-form.contact-form {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.contact-cta-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.contact-cta-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .contact-popup { padding: 12px; align-items: flex-end; }
  .cp-panel {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .cp-form .form-row { grid-template-columns: 1fr; }
}
