/*
Theme Name: Naroum Solutions Numériques
Theme URI: https://naroum.com
Author: Naroum Inc.
Author URI: https://naroum.com
Description: Thème one-page Naroum avec animations 3D, scroll fluide et quatre piliers : Créer, Automatiser, Gérer, Élever.
Version: 2.0.0
License: Proprietary
Text Domain: naroum
*/

:root {
  --bg: #161E2B;
  --bg-2: #0F1E33;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #E2E8F0;
  --muted: #8FA0B8;
  --brand: #071F43;
  --action: #2F7FED;
  --secondary: #5BB1EF;
  --complement: #205493;
  --warm: #ff7a59;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --glow-blue: rgba(47, 127, 237, 0.2);
  --glow-teal: rgba(91, 177, 239, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Montserrat, Sora, system-ui, sans-serif;
  background:
    radial-gradient(
      circle at var(--bg-lx, 18%) var(--bg-ly, 15%),
      rgba(47, 127, 237, 0.12),
      transparent 30vw
    ),
    radial-gradient(
      circle at 85% 35%,
      rgba(91, 177, 239, 0.08),
      transparent 28vw
    ),
    linear-gradient(135deg, #161E2B 0%, #0F1E33 54%, #161E2B 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 36, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 36, 64, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background:
    radial-gradient(
      900px circle at var(--mx, -100%) var(--my, -100%),
      rgba(47, 127, 237, 0.35),
      transparent 55%
    ),
    radial-gradient(
      600px circle at calc(var(--mx, -100%) - 10%) calc(var(--my, -100%) - 8%),
      rgba(91, 177, 239, 0.25),
      transparent 55%
    );
}

body.glow-active::after {
  opacity: 1;
}

.bg-glow-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      800px circle at var(--ax, 30%) var(--ay, 40%),
      rgba(47, 127, 237, 0.18),
      transparent 60%
    ),
    radial-gradient(
      650px circle at var(--bx, 70%) var(--by, 60%),
      rgba(91, 177, 239, 0.14),
      transparent 55%
    );
  transition: background 0.3s ease;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

a,
button,
.nav-cta,
.button,
.brand,
.portfolio-card {
  cursor: pointer;
}

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

img {
  max-width: 100%;
  display: block;
}

[data-app-container] {
  position: relative;
  z-index: 2;
}

.experience-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  left: 50%;
  bottom: -20vh;
  width: 120vw;
  max-width: 1200px;
  height: 58vh;
  transform: translateX(-50%) perspective(700px) rotateX(66deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(18, 159, 145, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 127, 237, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.22;
  will-change: transform, opacity;
}

.light-field {
  position: absolute;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.18;
  animation: drift 14s ease-in-out infinite alternate;
  will-change: transform;
}

.light-field-a {
  top: 4%;
  right: -12%;
  background: var(--brand);
}

.light-field-b {
  bottom: 8%;
  left: -14%;
  background: var(--secondary);
  animation-delay: -5s;
}

.light-field-c {
  top: 55%;
  left: 55%;
  width: 32vw;
  background: var(--complement);
  opacity: 0.08;
  animation-delay: -9s;
}

.light-field-d {
  top: 28%;
  left: 18%;
  width: 28vw;
  background: var(--warm);
  opacity: 0.06;
  animation-delay: -3s;
}

.light-field-e {
  bottom: 26%;
  right: 6%;
  width: 36vw;
  background: var(--brand);
  opacity: 0.08;
  animation-delay: -13s;
}

.data-rain span {
  position: absolute;
  top: -18vh;
  width: 1px;
  height: 18vh;
  background: linear-gradient(
    transparent,
    rgba(79, 209, 197, 0.45),
    transparent
  );
  animation: rain 7s linear infinite;
  opacity: 0.4;
}

.data-rain span:nth-child(1) { left: 8%; animation-delay: -1s; }
.data-rain span:nth-child(2) { left: 14%; animation-delay: -5s; }
.data-rain span:nth-child(3) { left: 23%; animation-delay: -3s; }
.data-rain span:nth-child(4) { left: 31%; animation-delay: -6s; }
.data-rain span:nth-child(5) { left: 38%; animation-delay: -2s; }
.data-rain span:nth-child(6) { left: 45%; animation-delay: -7s; }
.data-rain span:nth-child(7) { left: 52%; animation-delay: -4s; }
.data-rain span:nth-child(8) { left: 58%; animation-delay: -8s; }
.data-rain span:nth-child(9) { left: 64%; animation-delay: -1.5s; }
.data-rain span:nth-child(10) { left: 70%; animation-delay: -4.5s; }
.data-rain span:nth-child(11) { left: 76%; animation-delay: -2.7s; }
.data-rain span:nth-child(12) { left: 82%; animation-delay: -6.5s; }
.data-rain span:nth-child(13) { left: 88%; animation-delay: -3.8s; }
.data-rain span:nth-child(14) { left: 94%; animation-delay: -7.4s; }
.data-rain span:nth-child(15) { left: 18%; animation-delay: -8.4s; }
.data-rain span:nth-child(16) { left: 49%; animation-delay: -9.2s; }
.data-rain span:nth-child(17) { left: 67%; animation-delay: -9.8s; }
.data-rain span:nth-child(18) { left: 91%; animation-delay: -10.1s; }

.panel {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(80px, 8dvh, 110px) 0 clamp(60px, 6dvh, 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
  gap: clamp(72px, 10vw, 160px);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  padding-top: clamp(100px, 10dvh, 140px);
  padding-bottom: clamp(140px, 16dvh, 200px);
}

.split.right .copy {
  grid-column: 2;
}

.split.right .visual-stage {
  grid-column: 1;
  grid-row: 1;
}

.vision,
.contact {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(52px, 8vw, 96px);
}

.copy {
  position: relative;
  max-width: 640px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide {
  max-width: 820px;
}

.centered {
  margin-inline: auto;
}

.eyebrow,
.kicker {
  margin: 0 0 24px;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

h1,
h2 {
  margin: 0 0 28px;
  font-family: Sora, Montserrat, system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 5.2vw, 80px);
}

h2 {
  font-size: clamp(28px, 3.2vw, 48px);
  margin-top: 48px;
  margin-bottom: 20px;
}

h1 mark,
h2 mark {
  background: linear-gradient(135deg, var(--action), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead .hl {
  color: var(--action);
  font-weight: 700;
}

.lead .hl-alt {
  color: var(--secondary);
  font-weight: 700;
}

.lead em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--action));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(47, 127, 237, 0.2);
}

.kicker strong {
  color: var(--text);
  font-weight: 900;
}

p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
}

p + p {
  margin-top: 22px;
}

.lead {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--text);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.focus-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 10px;
  padding: 16px 24px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}

.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.primary {
  background: linear-gradient(135deg, var(--action), #2355c9);
  color: #fff;
  box-shadow: 0 14px 34px rgba(47, 127, 237, 0.24);
  border-color: transparent;
}

.primary:hover {
  box-shadow: 0 20px 48px rgba(47, 127, 237, 0.32), 0 0 24px rgba(47, 127, 237, 0.15);
  border-color: transparent;
}

.ghost {
  color: var(--text);
  background: var(--surface);
}

.ghost:hover,
.ghost:focus-visible {
  background: var(--surface-strong);
  border-color: rgba(15, 36, 64, 0.2);
}

.large {
  padding-inline: 30px;
  margin-top: 28px;
}

.visual-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
  opacity: 0;
}

.stage-scene {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.assemble-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  border: 1px solid rgba(47, 127, 237, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 127, 237, 0.95), rgba(18, 159, 145, 0.92));
  background-size: 200% 200%;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 44px rgba(47, 127, 237, 0.25);
  cursor: pointer;
  animation: btnPulse 2.4s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.assemble-button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(47, 127, 237, 0.25);
  animation: btnRing 2.4s ease-out infinite;
  pointer-events: none;
}

.assemble-button::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 127, 237, 0.1);
  animation: btnRing 2.4s ease-out infinite;
  animation-delay: 0.8s;
  pointer-events: none;
}

.assemble-button:hover {
  filter: brightness(1.18);
}

.reset-animation-button {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    background 0.25s ease,
    opacity 1.6s ease;
  white-space: nowrap;
}

.reset-animation-button.is-visible {
  opacity: 0.6;
  pointer-events: auto;
}

.reset-animation-button:hover {
  background: var(--surface-strong);
  opacity: 1;
}

.reset-br {
  right: 20px;
  top: auto;
  bottom: 20px;
}

.stage-scene.is-assembled .assemble-button {
  opacity: 0;
  pointer-events: none;
  animation: none;
  transition:
    transform 0.25s ease,
    opacity 1.4s ease,
    box-shadow 0.25s ease;
}

.stage-scene.is-assembled .assemble-button::before,
.stage-scene.is-assembled .assemble-button::after {
  animation: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-system {
  min-height: 700px;
}

.system-core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 80px rgba(47, 127, 237, 0.4);
  will-change: transform, opacity, filter;
}

.system-core img {
  width: 120px;
  transform: translateZ(0);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(18, 159, 145, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 18s linear infinite;
}

.orbit-a {
  width: 340px;
  height: 340px;
}
.orbit-b {
  width: 440px;
  height: 250px;
  animation-duration: 22s;
}
.orbit-c {
  width: 540px;
  height: 380px;
  animation-duration: 28s;
  animation-direction: reverse;
}

.process-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.build-board,
.automation-lab,
.ops-room {
  min-height: 560px;
  position: relative;
}

.automation-lab {
  overflow: visible;
}

.build-board,
.ops-room {
  overflow: hidden;
}



.process-column {
  position: absolute;
  left: 5%;
  top: 12%;
  width: min(270px, 35%);
  height: 64%;
}

.process-column::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 17px;
  width: 194px;
  height: 280px;
  border-radius: 20px;
  background: rgba(255, 122, 89, 0.07);
  border: 1px dashed rgba(255, 122, 89, 0.28);
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 50px rgba(255, 122, 89, 0.08);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transform-origin: top left;
}

.stage-scene.is-assembled .process-column::before {
  opacity: 0;
  transform: scale(0.6);
}

.process-column::after {
  content: "";
  position: absolute;
  left: 196px;
  top: 214px;
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 122, 89, 0.36), rgba(47, 127, 237, 0.44));
  box-shadow: 0 0 14px rgba(47, 127, 237, 0.12);
  pointer-events: none;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transform-origin: right center;
}

.stage-scene.is-assembled .process-column::after {
  opacity: 0;
  transform: scaleX(0.3);
}

.process-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  width: 170px;
  height: 62px;
  padding: 10px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 6px 24px rgba(37, 55, 85, 0.09),
    0 18px 44px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: manualFloat 3.4s ease-in-out infinite;
  transition:
    left 0.7s cubic-bezier(0.12, 0.75, 0.25, 1),
    top 0.7s cubic-bezier(0.12, 0.75, 0.25, 1),
    width 0.7s cubic-bezier(0.12, 0.75, 0.25, 1),
    height 0.7s cubic-bezier(0.12, 0.75, 0.25, 1),
    transform 0.4s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease;
  will-change: left, top, transform;
  z-index: 1;
  overflow: hidden;
}

.manual-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 18px;
  opacity: 0.25;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    width 0.5s ease,
    height 0.5s ease,
    border-radius 0.5s ease;
}

.paper-icon,
.doc-icon {
  background: none;
}

.doc-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 36px;
  border: 2px solid rgba(47, 127, 237, 0.2);
  border-radius: 4px;
  transform: translate(-50%, -50%);
}

.doc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: rgba(47, 127, 237, 0.18);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 7px 0 rgba(47, 127, 237, 0.14),
    0 14px 0 rgba(47, 127, 237, 0.1);
}

.paper-icon {
  background: none;
}

.paper-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 122, 89, 0.45);
  border-radius: 2px;
  transform: translateY(-50%);
  box-shadow:
    0 16px 0 -1px rgba(255, 122, 89, 0.45),
    0 32px 0 -1px rgba(255, 122, 89, 0.45);
}

.paper-icon::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  transform: translateY(-50%);
  box-shadow:
    0 16px 0 var(--line),
    0 32px 0 var(--line);
}

.sheet-icon {
  background:
    linear-gradient(rgba(47, 127, 237, 0.12) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(47, 127, 237, 0.12) 1.5px, transparent 1.5px);
  background-size: 18px 16px;
  background-position: center center;
  background-repeat: no-repeat;
}

.mail-icon {
  border-radius: 10px;
  background: rgba(18, 159, 145, 0.06);
  overflow: hidden;
}

.mail-icon::before,
.mail-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.mail-icon::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mail-icon::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

.process-card small {
  color: var(--warm);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.process-card strong {
  max-width: 106px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

.process-card i {
  display: block;
  width: 76px;
  height: 7px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(91, 177, 239, 0.3));
}

.process-card i::after {
  content: "";
  display: block;
  width: 46px;
  height: 7px;
  margin-top: 11px;
  border-radius: inherit;
  background: var(--line);
}

.process-card:nth-child(even) {
  background:
    linear-gradient(145deg, var(--surface-strong), var(--surface));
}

.process-card:nth-child(even) small {
  color: var(--brand);
}

.stage-scene.is-assembled .process-card {
  z-index: 20;
  opacity: 0.98;
  animation-play-state: paused;
}

.product-window {
  position: absolute;
  right: 3%;
  top: 14%;
  width: 56%;
  height: 62%;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  box-shadow:
    0 40px 100px rgba(47, 127, 237, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.product-box {
  position: relative;
  overflow: hidden;
}

.stage-scene.is-connected .product-box {
  overflow: visible;
}

.stage-scene.is-assembled .product-box {
  border-color: rgba(32, 170, 96, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(32, 170, 96, 0.12),
    0 18px 36px rgba(37, 55, 85, 0.08);
  animation: boxReveal 0.5s ease-out both;
}

.stage-scene.is-assembled .product-box:nth-child(1) { animation-delay: 1s; }
.stage-scene.is-assembled .product-box:nth-child(2) { animation-delay: 1.25s; }
.stage-scene.is-assembled .product-box:nth-child(3) { animation-delay: 1.5s; }
.stage-scene.is-assembled .product-box:nth-child(4) { animation-delay: 1.75s; }

.dashboard-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px;
}

.kpi-card {
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(47, 127, 237, 0.25),
    rgba(79, 209, 197, 0.12)
  );
}

.chart-card {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(18, 159, 145, 0.2),
    rgba(18, 159, 145, 0.05)
  );
}

.activity-card {
  height: 120px;
  border-radius: 12px;
  background: rgba(15, 36, 64, 0.06);
}

.success-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}

.success-badges span {
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(18, 159, 145, 0.12), rgba(47, 127, 237, 0.08));
  color: var(--secondary);
  border: 1px solid rgba(18, 159, 145, 0.15);
  opacity: 0;
}

.stage-scene.is-wired .success-badges span {
  animation: badgeIn 0.4s ease forwards;
}
.stage-scene.is-wired .success-badges span:nth-child(1) { animation-delay: 0.2s; }
.stage-scene.is-wired .success-badges span:nth-child(2) { animation-delay: 0.4s; }
.stage-scene.is-wired .success-badges span:nth-child(3) { animation-delay: 0.6s; }

.product-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stage-scene.is-wired .highlight-card {
  opacity: 1;
  transform: translateY(0);
}
.stage-scene.is-wired .highlight-card:nth-child(1) { transition-delay: 0.15s; }
.stage-scene.is-wired .highlight-card:nth-child(2) { transition-delay: 0.45s; }

.highlight-card strong {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.hl-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.hl-icon::before,
.hl-icon::after {
  position: absolute;
  content: "";
}

.hl-site {
  background: rgba(47, 127, 237, 0.1);
}
.hl-site::before {
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--action);
  border-radius: 3px;
  transform: translate(-50%, -50%);
}
.hl-site::after {
  top: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
  transform: translate(-50%);
}

.hl-app {
  background: rgba(18, 159, 145, 0.1);
}
.hl-app::before {
  top: 50%;
  left: 50%;
  width: 16px;
  height: 10px;
  border: 2px solid var(--secondary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.hl-app::after {
  bottom: 6px;
  left: 50%;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--secondary);
  transform: translate(-50%);
}

.manual-form { left: 10px; top: 0; transform: rotate(-5deg); animation-delay: 0s; }
.manual-paper { left: 30px; top: 74px; transform: rotate(4deg); animation-delay: 0.35s; z-index: 2; }
.manual-sheet { left: 6px; top: 148px; transform: rotate(-2deg); animation-delay: 0.7s; z-index: 3; }
.manual-mail { left: 40px; top: 222px; transform: rotate(3deg); animation-delay: 1.05s; z-index: 4; }

.product-window {
  position: absolute;
  right: 9%;
  top: 18%;
  width: 48%;
  height: 74%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: inset 0 0 34px rgba(47, 127, 237, 0.08);
  transition:
    right 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 1s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 1s ease;
}

.stage-scene.is-connected .product-window {
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  transform: none;
  border-color: rgba(47, 127, 237, 0.12);
  box-shadow:
    0 40px 100px rgba(47, 127, 237, 0.12),
    inset 0 0 60px rgba(47, 127, 237, 0.06);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

.window-bar .window-close,
.window-bar .window-maximize {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.window-bar .window-close:hover,
.window-bar .window-maximize:hover {
  filter: brightness(1.5);
}

.stage-scene.is-connected .process-column::before,
.stage-scene.is-connected .process-column::after {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.stage-scene.is-connected .process-card {
  transition:
    left 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s ease,
    background 0.6s ease,
    border-color 0.6s ease,
    box-shadow 0.6s ease,
    backdrop-filter 0.6s ease;
}

.stage-scene.is-connected .process-card strong {
  transition: color 0.5s ease, opacity 0.35s ease;
}

.process-card.is-transformed {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.process-card.is-transformed::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  animation: cardFlash 0.6s ease-out forwards;
}

.process-card.is-transformed .manual-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  width: 80px;
  height: 80px;
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card.is-transformed .manual-icon.web-icon,
.process-card.is-transformed .manual-icon.chart-icon,
.process-card.is-transformed .manual-icon.grid-icon,
.process-card.is-transformed .manual-icon.notif-icon {
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(1);
}

.process-card.is-transformed strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 18px;
  max-width: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.process-card.is-transformed::after {
  opacity: 0;
}

.manual-icon.web-icon::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 40px;
  height: 34px;
  border: 2.5px solid var(--action);
  border-radius: 7px;
  transform: translateX(-50%);
}
.manual-icon.web-icon::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 50%;
  width: 24px;
  height: 2.5px;
  background: var(--action);
  border-radius: 1.5px;
  transform: translateX(-50%);
  box-shadow:
    0 9px 0 -0.5px var(--action),
    0 16px 0 -0.5px var(--action);
}

.manual-icon.chart-icon::before,
.manual-icon.chart-icon::after {
  content: "";
  position: absolute;
  bottom: 17px;
  width: 12px;
  background: var(--secondary);
  border-radius: 3px;
}
.manual-icon.chart-icon::before { left: 20px; height: 22px; }
.manual-icon.chart-icon::after { right: 20px; height: 38px; }

.manual-icon.grid-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: var(--complement);
  box-shadow:
    -20px -20px 0 0 var(--complement),
    20px -20px 0 0 var(--complement),
    -20px 20px 0 0 var(--complement),
    20px 20px 0 0 var(--complement);
  border-radius: 2px;
}

.manual-icon.notif-icon::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  width: 38px;
  height: 30px;
  border: 2.5px solid var(--warm);
  border-radius: 9px;
  transform: translateX(-50%);
}
.manual-icon.notif-icon::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: var(--warm);
  border-radius: 50%;
}

.window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}
.window-grid b {
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(47, 127, 237, 0.38),
    rgba(79, 209, 197, 0.12)
  );
}

.code-strip {
  margin: 0 18px;
  height: 52px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(246, 200, 95, 0.45) 0 24px,
    transparent 24px 36px
  );
  opacity: 0.48;
}

.avatar {
  position: absolute;
  left: 12%;
  bottom: 16%;
  width: 76px;
  height: 118px;
  border-radius: 42px 42px 8px 8px;
  background: linear-gradient(180deg, #1a2d45 0 34%, var(--brand) 35%);
}

.avatar span {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--surface-strong);
}

.paper-stack i {
  position: absolute;
  left: 5%;
  top: 26%;
  width: 92px;
  height: 120px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(var(--r));
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.paper-stack i:nth-child(1) { --r: -10deg; }
.paper-stack i:nth-child(2) { --r: 3deg; left: 8%; top: 30%; }
.paper-stack i:nth-child(3) { --r: 14deg; left: 11%; top: 34%; }

.gear {
  position: absolute;
  border: 14px dashed var(--secondary);
  border-radius: 50%;
  animation: spin 9s linear infinite;
  box-shadow: 0 0 30px rgba(79, 209, 197, 0.24);
}

.gear::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  border: 10px solid var(--line);
}

.gear-lg { left: calc(100% - 200px); top: 50px; width: 150px; height: 150px; }
.gear-md { left: calc(100% - 290px); top: 161px; width: 110px; height: 110px; border-width: 12px; animation-duration: 8s; animation-direction: reverse; }
.gear-sm { left: calc(100% - 321px); top: 275px; width: 92px; height: 92px; border-width: 10px; animation-duration: 7s; }

.gear-flash {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: rgba(79, 209, 197, 0.25);
  pointer-events: none;
}

.gear-lg,
.gear-md,
.gear-sm {
  cursor: pointer;
}

.wind-ring {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 2px solid rgba(79, 209, 197, 0.2);
  pointer-events: none;
  z-index: 2;
  filter: blur(1px);
}

.punch-line {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
  opacity: 0;
  transition: none;
}

.punch-line.is-visible {
  opacity: 1;
  animation: punchIn 0.3s ease-out forwards;
}

.punch-text {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 40px rgba(47, 127, 237, 0.8),
    0 0 80px rgba(47, 127, 237, 0.4),
    0 0 120px rgba(47, 127, 237, 0.2);
  white-space: nowrap;
}

.ai-core {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
}

.ai-core.is-awake {
  opacity: 1;
}

.ai-robot {
  position: relative;
  width: 120px;
  height: 150px;
}

/* --- Ears --- */
.ai-ear {
  position: absolute;
  top: 40px;
  width: 14px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(200, 220, 240, 0.5), rgba(180, 200, 225, 0.4));
  border: 1px solid rgba(47, 127, 237, 0.2);
  box-shadow: 0 0 12px rgba(47, 127, 237, 0.08);
}

.ai-ear-l { left: -16px; }
.ai-ear-r { right: -16px; }

.ai-ear::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 4px;
  border-radius: 1px;
  background: rgba(47, 127, 237, 0.3);
  animation: earLed 1.8s ease-in-out infinite;
}

@keyframes earLed {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- Cranium --- */
.ai-cranium {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(160deg, rgba(220, 235, 250, 0.6), rgba(200, 215, 235, 0.45));
  border: 2px solid rgba(47, 127, 237, 0.2);
  box-shadow:
    0 0 40px rgba(47, 127, 237, 0.06),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* Cable detail behind head */
.ai-cranium::after {
  content: "";
  position: absolute;
  top: 60px;
  right: -8px;
  width: 6px;
  height: 14px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, rgba(200, 218, 240, 0.4), rgba(180, 200, 225, 0.3));
  border: 1px solid rgba(47, 127, 237, 0.08);
  border-left: none;
}

/* --- Forehead --- */
.ai-forehead-panel {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 10px;
  border-radius: 4px;
  background: rgba(15, 30, 60, 0.15);
  border: 1px solid rgba(47, 127, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-forehead-panel::before {
  content: "■ ■ ■";
  position: absolute;
  font-size: 5px;
  letter-spacing: 6px;
  color: rgba(47, 127, 237, 0.2);
  top: -8px;
}

.ai-forehead-led {
  position: absolute;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.ai-forehead-led-1 {
  left: 50%;
  margin-left: -16px;
  background: #5bb1ef;
  color: rgba(91, 177, 239, 0.6);
  animation: ledBlink 2s step-end infinite;
}

.ai-forehead-led-2 {
  left: 50%;
  margin-left: -3px;
  background: #2f7fed;
  color: rgba(47, 127, 237, 0.7);
  animation: ledBlink 1.6s step-end infinite 0.4s;
}

.ai-forehead-led-3 {
  left: 50%;
  margin-left: 10px;
  background: #5bb1ef;
  color: rgba(91, 177, 239, 0.5);
  animation: ledBlink 2.4s step-end infinite 1s;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px currentColor; }
  50% { opacity: 0.15; box-shadow: none; }
}

/* --- Eyes --- */
.ai-eyes {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  position: relative;
  z-index: 3;
}

.ai-eye {
  position: relative;
  width: 32px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(47, 127, 237, 0.25);
  border-radius: 4px;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(47, 127, 237, 0.08);
  overflow: hidden;
}

/* Outer frame */
.ai-eye::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  border: 1px solid rgba(47, 127, 237, 0.12);
  pointer-events: none;
  z-index: 5;
}

/* Scan line */
.ai-eye::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 177, 239, 0.5), transparent);
  animation: scanLine 2s linear infinite;
  z-index: 2;
  will-change: transform;
}

@keyframes scanLine {
  0% { transform: translateY(-2px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(26px); opacity: 0; }
}

/* Pupil */
.ai-eye > i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(91, 177, 239, 1), rgba(47, 127, 237, 0.5));
  box-shadow:
    0 0 14px rgba(47, 127, 237, 0.6),
    0 0 35px rgba(47, 127, 237, 0.2);
  z-index: 1;
  animation: pupilGlow 3s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes pupilGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(47, 127, 237, 0.6), 0 0 35px rgba(47, 127, 237, 0.2); }
  50% { box-shadow: 0 0 20px rgba(47, 127, 237, 0.8), 0 0 45px rgba(47, 127, 237, 0.3); }
}

/* Eyelid cover for wink */
.ai-eye-cover {
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  height: 52%;
  background: rgba(200, 218, 240, 0.92);
  border-radius: 0 0 4px 4px;
  z-index: 3;
  transform: translateY(-100%);
  animation: eyelidWink 5s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes eyelidWink {
  0%, 93%, 100% { transform: translateY(-100%); }
  95% { transform: translateY(0); }
  97% { transform: translateY(-100%); }
}

.ai-eye-corner {
  position: absolute;
  width: 4px;
  height: 4px;
  border-color: rgba(91, 177, 239, 0.25);
  border-style: solid;
  pointer-events: none;
  z-index: 6;
}

.ai-eye-corner-tl { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 2px 0 0 0; }
.ai-eye-corner-tr { top: -3px; right: -3px; border-left: none; border-bottom: none; border-radius: 0 2px 0 0; }
.ai-eye-corner-bl { bottom: -3px; left: -3px; border-right: none; border-top: none; border-radius: 0 0 0 2px; }
.ai-eye-corner-br { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 2px 0; }

/* --- Divider --- */
.ai-divider {
  width: 60%;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, rgba(47, 127, 237, 0.12), transparent);
  position: relative;
  z-index: 2;
}

/* --- Mouth --- */
.ai-mouth {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  position: relative;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(5, 15, 35, 0.25);
  border: 1px solid rgba(47, 127, 237, 0.12);
}

.ai-mouth-slot {
  width: 6px;
  height: 10px;
  border-radius: 1px;
  background: rgba(5, 15, 35, 0.3);
  transition: background 0.3s ease;
}

.ai-mouth-slot-1 { animation: mouthSlot 1.8s ease-in-out infinite 0s; }
.ai-mouth-slot-2 { animation: mouthSlot 1.8s ease-in-out infinite 0.3s; }
.ai-mouth-slot-3 { animation: mouthSlot 1.8s ease-in-out infinite 0.6s; }
.ai-mouth-slot-4 { animation: mouthSlot 1.8s ease-in-out infinite 0.9s; }
.ai-mouth-slot-5 { animation: mouthSlot 1.8s ease-in-out infinite 1.2s; }

@keyframes mouthSlot {
  0%, 100% { background: rgba(5, 15, 35, 0.3); }
  50% { background: #2f7fed; box-shadow: 0 0 10px rgba(47, 127, 237, 0.3); }
}

/* --- Chin LED --- */
.ai-chin-led {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7fed;
  border: 1px solid rgba(47, 127, 237, 0.2);
  box-shadow: 0 0 10px rgba(47, 127, 237, 0.2);
  animation: chinLed 2.2s ease-in-out infinite;
}

@keyframes chinLed {
  0%, 100% { background: #2f7fed; box-shadow: 0 0 10px rgba(47, 127, 237, 0.2); opacity: 0.4; }
  50% { background: #5bb1ef; box-shadow: 0 0 20px rgba(47, 127, 237, 0.4); opacity: 1; }
}

/* --- Bolts --- */
.ai-bolt {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(5, 15, 35, 0.2);
  border: 1px solid rgba(47, 127, 237, 0.12);
}

.ai-bolt-1 { top: 6px; left: 8px; }
.ai-bolt-2 { top: 6px; right: 8px; }
.ai-bolt-3 { bottom: 6px; left: 8px; }
.ai-bolt-4 { bottom: 6px; right: 8px; }

/* --- Neck --- */
.ai-neck {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 12px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(200, 218, 240, 0.4), rgba(180, 200, 225, 0.3));
  border: 1px solid rgba(47, 127, 237, 0.1);
  border-top: none;
  z-index: 1;
}

.ai-neck::before,
.ai-neck::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 8px;
  height: 6px;
  border-radius: 2px;
  background: rgba(47, 127, 237, 0.08);
}

.ai-neck::before { left: 2px; }
.ai-neck::after { right: 2px; }

/* --- Speech bubble --- */
.ai-speech {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(5, 10, 28, 0.9);
  border: 1px solid rgba(47, 127, 237, 0.2);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
}

.ai-speech::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(5, 10, 28, 0.9);
  border-right: 1px solid rgba(47, 127, 237, 0.2);
  border-bottom: 1px solid rgba(47, 127, 237, 0.2);
  border-radius: 0 0 3px 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.ai-speech strong {
  color: #5bb1ef;
}

@media (max-width: 679px) {
  .ai-ear::after { animation: none; opacity: 0.4; }
  .ai-forehead-led { animation: none; opacity: 0.6; }
  .ai-eye-cover { animation: none; display: none; }
  .ai-eye::after { animation: none; opacity: 0; }
  .ai-chin-led { animation: none; opacity: 0.5; }
  .ai-mouth-slot { animation: none; background: rgba(47, 127, 237, 0.3); }
}

.data-flow {
  position: absolute;
  left: 33%;
  top: 22%;
  width: 28%;
  height: 50%;
  pointer-events: none;
}

.data-flow::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 47%;
  width: 78%;
  height: 2px;
  background: linear-gradient(90deg, var(--warm), var(--brand));
  box-shadow: 0 0 24px rgba(47, 127, 237, 0.24);
}

.data-flow span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(18, 159, 145, 0.8);
  animation: flowParticle 3s linear infinite;
}

.data-flow span:nth-child(2) { animation-delay: 0.75s; }
.data-flow span:nth-child(3) { animation-delay: 1.5s; }
.data-flow span:nth-child(4) { animation-delay: 2.25s; }

.naroum-core {
  position: absolute;
  left: 46%;
  top: 42%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid rgba(47, 127, 237, 0.15);
  box-shadow:
    0 0 50px rgba(47, 127, 237, 0.15),
    0 0 90px rgba(18, 159, 145, 0.12);
  z-index: 5;
}

/* Managed Hub / Govern Section */
.managed-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 92%);
  aspect-ratio: 1.15;
  transform: translate(-50%, -50%);
}

.hub-orbit {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(47, 127, 237, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 70px rgba(47, 127, 237, 0.08),
    0 0 60px rgba(79, 209, 197, 0.1);
}

.hub-orbit::before,
.hub-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68%;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(47, 127, 237, 0.35), transparent);
}

.hub-orbit::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.hub-ring-inner {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79, 209, 197, 0.12);
  box-shadow: 0 0 30px rgba(47, 127, 237, 0.06), inset 0 0 30px rgba(79, 209, 197, 0.04);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.shield-ring {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(79, 209, 197, 0.5);
  box-shadow: 0 0 40px rgba(47, 127, 237, 0.15), inset 0 0 40px rgba(79, 209, 197, 0.1);
  z-index: 2;
  pointer-events: none;
}

.shield-ring:last-of-type {
  border-color: rgba(47, 127, 237, 0.35);
  box-shadow: 0 0 60px rgba(47, 127, 237, 0.1), inset 0 0 60px rgba(47, 127, 237, 0.05);
}

.shield-field {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 280px;
  height: 320px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 86% 16%, 80% 62%, 50% 100%, 20% 62%, 14% 16%);
  background: radial-gradient(circle at 50% 50%, rgba(79, 209, 197, 0.06), transparent 65%);
  border: 1px solid rgba(79, 209, 197, 0.15);
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.shield-grid {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 280px;
  height: 320px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 86% 16%, 80% 62%, 50% 100%, 20% 62%, 14% 16%);
  background-image:
    linear-gradient(60deg, rgba(79, 209, 197, 0.04) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(79, 209, 197, 0.04) 1px, transparent 1px);
  background-size: 24px 42px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 197, 0.4), rgba(47, 127, 237, 0.6), rgba(79, 209, 197, 0.4), transparent);
  box-shadow: 0 0 20px rgba(79, 209, 197, 0.2);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
}

.energy-orb {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(79, 209, 197, 0.7);
  box-shadow: 0 0 6px rgba(79, 209, 197, 0.4);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.energy-orb.pos-tl { margin-left: -50px; margin-top: -30px; }
.energy-orb.pos-tr { margin-left: 50px; margin-top: -30px; }
.energy-orb.pos-bl { margin-left: -50px; margin-top: 30px; }
.energy-orb.pos-br { margin-left: 50px; margin-top: 30px; }

.hub-label {
  position: absolute;
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 127, 237, 0.15);
  border-radius: 999px;
  background: rgba(5, 10, 28, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(200, 215, 240, 0.8);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hub-label.pos-tl { left: 5%; top: 14%; }
.hub-label.pos-tr { right: 5%; top: 14%; }
.hub-label.pos-bl { left: 5%; bottom: 14%; }
.hub-label.pos-br { right: 5%; bottom: 14%; }

.hub-core {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 164px;
  height: 164px;
  transform: translate(-50%, -50%);
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(79, 209, 197, 0.22), transparent 34%),
    var(--surface-strong);
  box-shadow: 0 28px 80px rgba(15, 36, 64, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.hub-core span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 64px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 86% 16%, 80% 62%, 50% 100%, 20% 62%, 14% 16%);
  background: linear-gradient(180deg, rgba(79, 209, 197, 0.62), rgba(47, 127, 237, 0.36));
  box-shadow: 0 0 36px rgba(79, 209, 197, 0.24);
}

.hub-core i {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 74px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--line);
}

.server-rack {
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(5, 10, 28, 0.6);
  border: 1px solid rgba(47, 127, 237, 0.1);
  z-index: 4;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.server-unit {
  position: relative;
  width: 40px;
  height: 32px;
  border-radius: 3px;
  background: rgba(10, 20, 50, 0.5);
  border: 1px solid rgba(47, 127, 237, 0.08);
}

.server-led {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(79, 209, 197, 0.15);
  box-shadow: 0 0 4px rgba(79, 209, 197, 0.1);
}

.server-label {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: rgba(200, 215, 240, 0.3);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Elevate / Tree Section */
.growth-tree {
  min-height: 700px;
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
  overflow: visible;
  position: relative;
}

.elevate-panel {
  overflow: visible;
}

.elevate-panel .copy {
  grid-column: 2;
  grid-row: 1;
}

.tree-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tree-stage {
  overflow: visible;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: transparent;
  color: var(--muted);
  padding: 80px 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 127, 237, 0.2), rgba(18, 159, 145, 0.15), transparent);
}

.footer-inner {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 36px;
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  font-family: Sora, system-ui, sans-serif;
}

.footer-logo {
  width: 328px;
  height: auto;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a,
.footer-link {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-nav a::after,
.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--action), var(--secondary));
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after,
.footer-link:hover::after,
.footer-link:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  margin: 0 20px;
  opacity: 0.35;
}

.footer-bottom {
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.footer-bottom small {
  font-size: 12px;
  color: var(--muted);
}

/* Contact Popup */
.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 32, 51, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
}
.popup-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    visibility 0s 0s,
    opacity 0.3s ease;
}

.popup-content {
  position: relative;
  width: min(640px, 100%);
  max-height: 100vh;
  max-height: 100svh;
  background: var(--bg-2);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.08);
}

.popup-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.popup-content iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 60vh;
  min-height: 60dvh;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup-content iframe.is-loaded {
  opacity: 1;
}

.popup-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.loader-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--action);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.popup-extra {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.popup-extra-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.popup-extra-text a {
  color: var(--action);
  font-weight: 700;
  text-decoration: none;
}

.popup-extra-text a:hover {
  text-decoration: underline;
}

/* Noise + Vignette */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 50% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.3) 100%),
    radial-gradient(ellipse 60% 40% at 50% 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* Progress bar */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: rgba(0,0,0,.05);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--action), var(--secondary));
  transition: width .15s linear;
}

/* Gear toast + Shield toast */
.gear-toast,
.shield-toast {
  position: absolute;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(5, 8, 22, 0.92);
  border: 1px solid rgba(255, 200, 50, 0.3);
  color: #ffe066;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Animations */
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -18px) scale(1.05); }
}

@keyframes rain {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(calc(100vh + 18vh)); opacity: 0; }
}

@keyframes orbit-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes manualFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 18px 44px rgba(47, 127, 237, 0.25); }
  50% { box-shadow: 0 18px 56px rgba(47, 127, 237, 0.5), 0 0 80px rgba(47, 127, 237, 0.15); }
}

@keyframes btnRing {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes badgeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes boxReveal {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(32, 170, 96, 0.12),
      0 18px 36px rgba(37, 55, 85, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(47, 127, 237, 0.5),
      0 0 24px rgba(47, 127, 237, 0.2),
      0 18px 36px rgba(37, 55, 85, 0.08);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(32, 170, 96, 0.28),
      0 18px 36px rgba(37, 55, 85, 0.08);
  }
}

@keyframes cardFlash {
  0% { opacity: 0; box-shadow: 0 0 0 rgba(47, 127, 237, 0); }
  25% { opacity: 1; box-shadow: 0 0 50px rgba(47, 127, 237, 0.4); }
  100% { opacity: 0; box-shadow: 0 0 60px rgba(47, 127, 237, 0); }
}

@keyframes iconPop {
  0% { opacity: 0; transform: scale(0); }
  65% { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes flowParticle {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate(120px, 80px); }
  100% { transform: translate(240px, 180px); opacity: 0; }
}

@keyframes punchIn {
  0% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


@keyframes ledBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 980px) {
  .panel,
  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 760px);
    padding: 70px 0 50px;
    gap: 52px;
  }
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 140px 0 80px;
  }
  .split.right .copy,
  .split.right .visual-stage {
    grid-column: auto;
    grid-row: auto;
  }
  .visual-stage {
    min-height: 480px;
    width: 100%;
  }
  .managed-hub {
    width: min(500px, 100%);
  }
  .copy,
  .wide {
    max-width: none;
    width: 100%;
    text-align: center;
  }
  .focus-tags {
    justify-content: center;
  }
  .actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body::after { display: none }
  .bg-glow-ambient { display: none }
  .copy, .topbar, .dropdown-menu, .hub-core, .hub-node, .client-focus, .hub-label, .process-card, .node, .portfolio-card, .metric-card, .gear-toast, .shield-toast, .audiences span, .tree-branch span, .message-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .process-card { animation: none; }
  .data-rain span { animation: none; opacity: 0.15 }
  .light-field { animation: none; opacity: 0.08 }
  .grid-plane { opacity: 0.12 }
  .orbit { animation-duration: 30s }
  .hero-system { min-height: 400px }
  .system-core { width: 140px; height: 140px }
  .system-core img { width: 80px }
  .orbit-a { width: 220px; height: 220px }
  .orbit-b { width: 300px; height: 180px }
  .orbit-c { width: 380px; height: 260px }
  .hero .actions .button {
    font-size: clamp(12px, 2.5vw, 16px);
    padding: 12px 16px;
    min-height: 44px;
    flex: 1 1 auto;
  }
  .noise { display: none; }
  .vignette { display: none; }
  .custom-cursor { display: none; }
  .growth-tree { min-height: 520px; }
  .split.right .copy,
  .split.right .visual-stage,
  .elevate-panel .copy,
  .growth-tree {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .panel,
  .hero {
    width: min(100% - 28px, 560px);
    padding: 50px 0 40px;
    gap: 40px;
  }
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 90px 0 60px;
  }
  .contact {
    padding: 50px 0 40px;
  }
  h1 {
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1.05;
  }
  h2 {
    font-size: clamp(34px, 10vw, 50px);
  }
  .visual-stage {
    min-height: 400px;
  }
  .hero-system {
    min-height: 340px;
  }
  .actions {
    margin-top: 32px;
  }
  .process-column {
    left: 2%;
    top: 12%;
    width: 40%;
    height: 66%;
  }
  .process-card {
    width: min(128px, 88%);
    min-height: 58px;
    padding: 10px 11px;
  }
  .process-card strong {
    font-size: 12px;
  }
  .manual-icon {
    right: 10px;
    top: 10px;
    width: 24px;
    height: 28px;
  }
  .manual-form { left: 4px; top: 0; }
  .manual-paper { left: 18px; top: 56px; }
  .manual-sheet { left: 0; top: 110px; }
  .manual-mail { left: 22px; top: 164px; }
  .paper-stack i {
    width: 70px;
    height: 96px;
  }
  .product-window {
    width: 58%;
    right: 5%;
  }
  .managed-hub {
    width: min(390px, 100%);
  }
  .hub-core {
    width: 132px;
    height: 132px;
  }
  .hub-node {
    min-width: 96px;
    padding: 10px 11px;
    font-size: 10px;
  }
  .hub-label {
    min-width: 80px;
    padding: 8px 10px;
    font-size: 9px;
  }
  .server-unit {
    width: 28px;
    height: 24px;
  }
  .server-label {
    display: none;
  }
  .client-focus {
    width: 124px;
    height: 78px;
    padding: 11px;
  }
  .metric-card {
    width: 120px;
  }
  .popup-body iframe {
    height: 75vh;
    height: 75dvh;
  }
}

@media (max-width: 420px) {
  .hero .actions { flex-direction: column; gap: 10px; }
  .hero .actions .button { width: 100%; font-size: 14px; }
}

/* ===== Topbar styles (from TopBar.vue scoped) ===== */
.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.topbar.is-hidden {
  transform: translateX(-50%) translateY(-120px);
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-family: Sora, system-ui, sans-serif;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand span {
  white-space: nowrap;
  font-size: clamp(11px, 2.2vw, 16px);
  line-height: 1.2;
}

@media (max-width: 520px) {
  .brand span { white-space: normal; font-size: 13px; }
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.desktop-nav {
  display: flex;
  gap: 22px;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--action), var(--secondary));
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: var(--text); }

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: translateX(-50%) scaleX(1); }

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.3s ease;
  position: relative;
}

.dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
}

.dropdown-trigger:hover,
.dropdown-trigger.is-open { color: var(--text); }

.chevron { transition: transform 0.3s ease; }

.dropdown-trigger.is-open .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 18, 34, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown-menu.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  animation: breathe 3s ease-in-out infinite;
}

.dropdown-item {
  position: relative;
  display: block;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible { color: var(--text); }

.dropdown-item::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--action), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-item:hover::after,
.dropdown-item:focus-visible::after { transform: scaleX(1); }

.nav-cta {
  position: relative;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--action), var(--secondary));
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(47, 127, 237, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.nav-cta-link:hover,
.nav-cta-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.bar {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.bar:nth-child(1) { background: #2f7fed; }
.bar:nth-child(2) { background: #205493; }
.bar:nth-child(3) { background: #143148; }

.has-menu .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.has-menu .bar:nth-child(2) { opacity: 0; }
.has-menu .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .topbar { border-radius: 20px; }
  .desktop-nav { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 32, 51, 0.97);
  visibility: hidden;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s 0.4s;
}
.mobile-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  background: rgba(15, 32, 51, 0.97);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s 0s;
}
.mobile-overlay.is-closing {
  transition:
    opacity 0.3s cubic-bezier(0.55, 0, 1, 0.45),
    transform 0.3s cubic-bezier(0.55, 0, 1, 0.45),
    visibility 0s 0.3s;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-link {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    color 0.25s ease;
}

.mobile-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--action), var(--secondary));
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-link:hover,
.mobile-link:focus-visible { color: #fff; }

.mobile-link:hover::after,
.mobile-link:focus-visible::after { transform: translateX(-50%) scaleX(1); }

.mobile-cta-link {
  margin-top: 14px;
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.mobile-cta-link:hover,
.mobile-cta-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.mobile-cta {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--action), var(--complement));
  border: none;
  border-radius: 999px;
  padding: 14px 44px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.mobile-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.mobile-cta:hover,
.mobile-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(47, 127, 237, 0.35);
}

.mobile-cta::after { display: none }

.mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.mobile-dropdown-trigger .chevron { transition: transform 0.3s ease; }

.mobile-dropdown-trigger.is-open .chevron { transform: rotate(180deg); }

.mobile-submenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.mobile-sub-link {
  position: relative;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.mobile-sub-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--action), var(--secondary));
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-sub-link:hover,
.mobile-sub-link:focus-visible { color: #fff; }

.mobile-sub-link:hover::after,
.mobile-sub-link:focus-visible::after { transform: translateX(-50%) scaleX(1); }

/* Mobile link stagger animation */
.mobile-overlay:not(.is-open) .mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition-delay: calc((4 - var(--i)) * 40ms);
}
.mobile-overlay.is-open .mobile-link {
  transition-delay: calc(var(--i) * 60ms);
}

/* Mobile submenu transition */
.mobile-submenu {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-submenu.is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(47, 127, 237, 0.12); }
}

@media (max-width: 1100px) and (min-width: 801px) {
  .topbar { border-radius: 20px; padding: 10px 14px; }
  .desktop-nav { order: 3; width: 100%; justify-content: center; gap: 20px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
  .desktop-nav a, .dropdown-trigger { font-size: 12px; }
  .nav-actions { gap: 6px; }
  .nav-cta { font-size: 13px; padding: 9px 16px; }
  .nav-cta-link { font-size: 13px; padding: 9px 14px; }
}

/* ===== Conway canvas ===== */
.conway-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.conway-canvas.is-active {
  z-index: 999;
  pointer-events: auto;
  opacity: 1;
  background: #0a0a0a;
}

.conway-return {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.conway-return:hover { background: rgba(0, 0, 0, 0.8); }

/* ===== Milestone labels in Elevate section ===== */
.milestone-label {
  position: absolute;
  left: 24px;
  z-index: 3;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 0.6s ease;
}

/* ===== Popup transitions ===== */
.popup-content {
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.popup-backdrop.is-open .popup-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.popup-backdrop.is-closing .popup-content {
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* ===== Mobile responsive override for elevate section ===== */
@media (max-width: 1024px) {
  .growth-tree { min-height: 560px; }
}

@media (max-width: 768px) {
  .elevate-panel .copy,
  .split.right .copy,
  .split.right .visual-stage,
  .growth-tree {
    grid-column: auto;
    grid-row: auto;
  }
}

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

.naroum-archive-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 40px;
}

.naroum-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Date */
.naroum-archive-card .wp-block-post-date {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Title */
.naroum-archive-card .wp-block-post-title {
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 16px;
}

.naroum-archive-card .wp-block-post-title a {
  color: #ffffff;
  text-decoration: none;
}

/* Excerpt */
.naroum-archive-card .wp-block-post-excerpt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA */
.naroum-cta {
  margin-top: 80px;
  padding: 60px 32px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  text-align: center;
}

.naroum-cta h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
}

.naroum-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  margin-bottom: 24px;
}

.naroum-cta .wp-element-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;

  transition: all 0.25s ease;
}

.naroum-cta .wp-element-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}