:root {
  color-scheme: dark;
  --bg: #02050a;
  --panel: rgba(4, 9, 16, 0.82);
  --line: rgba(51, 155, 255, 0.24);
  --blue: #32a8ff;
  --blue-2: #1769dd;
  --text: #f4f8ff;
  --muted: #91a1b7;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(17, 91, 165, 0.16), transparent 33%),
    radial-gradient(circle at 50% 120%, rgba(0, 109, 255, 0.16), transparent 46%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#energy-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.88;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 35%, rgba(0, 20, 45, 0.1)),
    radial-gradient(circle at 50% 45%, transparent 0 24%, rgba(0, 121, 255, 0.035) 35%, transparent 58%);
  animation: ambient-breathe 8s ease-in-out infinite;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    max(clamp(18px, 3vw, 38px), env(safe-area-inset-top))
    max(clamp(20px, 4vw, 58px), env(safe-area-inset-right))
    0
    max(clamp(20px, 4vw, 58px), env(safe-area-inset-left));
  pointer-events: none;
}

.mini-brand,
.sound-toggle {
  pointer-events: auto;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.mini-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 14px rgba(35, 151, 255, 0.18));
}

.mini-brand span {
  display: grid;
  line-height: 1;
}

.mini-brand strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.35em;
}

.mini-brand small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  letter-spacing: 0.66em;
}

.sound-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(145, 182, 219, 0.34);
  border-radius: 50%;
  background: rgba(2, 6, 12, 0.72);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: rgba(70, 178, 255, 0.78);
  box-shadow: 0 0 24px rgba(35, 151, 255, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.sound-toggle svg {
  position: absolute;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-on-icon {
  opacity: 0;
}

.sound-toggle[aria-pressed="true"] .sound-on-icon {
  opacity: 1;
}

.sound-toggle[aria-pressed="true"] .sound-off-icon {
  opacity: 0;
}

.sound-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(53, 176, 255, 0.75);
  border-radius: inherit;
  opacity: 0;
}

.sound-toggle[aria-pressed="true"] .sound-ring {
  opacity: 1;
  animation: sound-pulse 2.4s ease-out infinite;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 78px 24px 125px;
}

.hero {
  width: min(1500px, 100%);
}

.orbit-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 700px);
  min-height: 530px;
  isolation: isolate;
  opacity: 0;
  transform: scale(0.985);
  animation: stage-in 1.2s 120ms cubic-bezier(.2, .78, .2, 1) forwards;
}

.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orbit {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.orbit-outer {
  stroke-dasharray: 0.4 1.15;
  opacity: 0.7;
}

.orbit-middle {
  opacity: 0.48;
}

.orbit-inner {
  opacity: 0.28;
}

.pulse {
  fill: none;
  stroke: #55beff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 0.55 99.45;
  filter: url(#blueGlow);
  opacity: 0.95;
}

.pulse-a {
  animation: pulse-orbit 11s linear infinite;
}

.pulse-b {
  stroke: #1769dd;
  animation: pulse-orbit-reverse 15s linear infinite;
  animation-delay: -4s;
}

.pulse-c {
  stroke-width: 1.7;
  animation: pulse-orbit 18s linear infinite;
  animation-delay: -9s;
  opacity: 0.6;
}

.brand-core {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(35vw, 500px);
  min-width: 315px;
  display: grid;
  place-items: center;
  gap: 13px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.main-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(31, 132, 255, 0.22))
    drop-shadow(0 0 30px rgba(31, 132, 255, 0.14));
  animation: logo-breathe 5.5s ease-in-out infinite;
}

.hero-summary {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0;
  color: rgba(220, 234, 248, 0.66);
  font-size: clamp(11px, 0.92vw, 14px);
  line-height: 1.55;
  letter-spacing: 0.035em;
  text-align: center;
  text-wrap: balance;
}

.logo-halo {
  position: absolute;
  width: 86%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 129, 255, 0.18), rgba(7, 57, 118, 0.06) 45%, transparent 72%);
  filter: blur(25px);
  animation: halo-breathe 5.5s ease-in-out infinite;
}

.companies {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.company-node {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: clamp(250px, 21vw, 330px);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.node-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 78px;
  padding: 5px 16px 5px 5px;
  overflow: hidden;
  border: 1px solid rgba(111, 169, 218, 0.35);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.96), rgba(3, 7, 12, 0.86)),
    rgba(2, 5, 10, 0.9);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 0 0 rgba(36, 157, 255, 0);
  backdrop-filter: blur(14px);
  transition:
    transform 320ms cubic-bezier(.2, .8, .2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.node-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 15%, rgba(75, 184, 255, 0.1) 46%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 650ms ease;
}

.company-node:hover .node-card,
.company-node:focus-visible .node-card {
  transform: scale(1.055) translateY(-2px);
  border-color: rgba(67, 180, 255, 0.78);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(28, 150, 255, 0.18),
    inset 0 0 20px rgba(28, 150, 255, 0.05);
  outline: none;
}

.company-node:hover .node-card::before,
.company-node:focus-visible .node-card::before {
  transform: translateX(120%);
}

.node-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(180, 205, 229, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.09), transparent 24%),
    radial-gradient(circle, rgba(18, 27, 41, 0.98), rgba(1, 3, 6, 0.98));
  color: #f5f8fc;
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.04),
    0 0 14px rgba(51, 154, 255, 0.1);
  transition: color 260ms ease, box-shadow 260ms ease, transform 320ms ease;
}

.node-icon svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.balls-icon svg {
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.25));
}

.company-s {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 41px;
  font-style: italic;
  line-height: 1;
}

.company-node:hover .node-icon,
.company-node:focus-visible .node-icon {
  color: #71c8ff;
  transform: rotate(-4deg) scale(1.045);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.055),
    0 0 24px rgba(47, 169, 255, 0.26);
}

.node-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-left: 5px;
}

.node-copy strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-copy small {
  max-height: 0;
  overflow: hidden;
  color: #74bcf4;
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition: max-height 280ms ease, opacity 280ms ease, transform 280ms ease;
}

.company-node:hover .node-copy small,
.company-node:focus-visible .node-copy small {
  max-height: 22px;
  opacity: 0.82;
  transform: translateY(0);
}

.external-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #55bcff;
  font-size: 16px;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.company-node:hover .external-mark,
.company-node:focus-visible .external-mark {
  opacity: 1;
  transform: translate(0, 0);
}

.contact-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  width: min(1370px, calc(100% - 48px));
  min-height: 82px;
  padding: 12px 35px;
  border: 1px solid rgba(153, 183, 213, 0.24);
  border-radius: 25px;
  background: rgba(2, 5, 9, 0.84);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  transform: translate(-50%, 24px);
  opacity: 0;
  animation: footer-in 900ms 650ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.25vw, 20px);
  transition: color 220ms ease, transform 220ms ease;
}

.contact-bar a:hover,
.contact-bar a:focus-visible {
  color: white;
  transform: translateY(-1px);
  outline: none;
}

.contact-bar a svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #16a9ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(22, 169, 255, 0.3));
}

.separator {
  width: 1px;
  height: 33px;
  background: rgba(255, 255, 255, 0.25);
}

.noscript-message {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 8px;
  width: min(680px, calc(100% - 24px));
  padding: 12px 16px;
  border: 1px solid rgba(93, 174, 237, 0.3);
  border-radius: 12px;
  background: #07111d;
  color: #dcecff;
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
}

@keyframes stage-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes footer-in {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes ambient-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes logo-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 0 8px rgba(31, 132, 255, 0.18))
      drop-shadow(0 0 25px rgba(31, 132, 255, 0.1));
  }
  50% {
    filter:
      drop-shadow(0 0 12px rgba(54, 166, 255, 0.3))
      drop-shadow(0 0 42px rgba(31, 132, 255, 0.19));
  }
}

@keyframes halo-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.58; }
  50% { transform: scale(1.06); opacity: 0.92; }
}

@keyframes pulse-orbit {
  to { stroke-dashoffset: -100; }
}

@keyframes pulse-orbit-reverse {
  to { stroke-dashoffset: 100; }
}

@keyframes sound-pulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 1180px) {
  .company-node {
    width: 265px;
  }

  .node-card {
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    min-height: 68px;
  }

  .node-icon {
    width: 60px;
    height: 60px;
  }

  .node-icon svg {
    width: 33px;
    height: 33px;
  }

  .brand-core {
    width: min(34vw, 430px);
    min-width: 290px;
  }
}

@media (max-width: 960px), (max-width: 1100px) and (orientation: portrait) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .topbar {
    position: absolute;
    padding:
      max(17px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      0
      max(18px, env(safe-area-inset-left));
  }

  .mini-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
  }

  .mini-brand strong {
    font-size: 14px;
  }

  .mini-brand small {
    font-size: 7px;
  }

  .sound-toggle {
    width: 48px;
    height: 48px;
  }

  .page-shell {
    min-height: auto;
    padding: 108px 18px 30px;
  }

  .orbit-stage {
    height: auto;
    min-height: 0;
    display: grid;
    gap: 30px;
  }

  .orbit-lines {
    top: -32px;
    height: 440px;
    opacity: 0.66;
  }

  .brand-core {
    position: relative;
    left: auto;
    top: auto;
    width: min(78vw, 470px);
    min-width: 0;
    margin: 64px auto 4px;
    transform: none !important;
  }

  .hero-summary {
    max-width: 470px;
    font-size: 12px;
  }

  .companies {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .company-node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    opacity: 1 !important;
    transform: none !important;
  }

  .node-card {
    grid-template-columns: 55px minmax(0, 1fr) 18px;
    min-height: 68px;
    padding-right: 12px;
  }

  .node-icon {
    width: 54px;
    height: 54px;
  }

  .node-copy strong {
    font-size: 14px;
  }

  .node-copy small {
    max-height: 22px;
    color: rgba(116, 188, 244, 0.75);
    opacity: 1;
    transform: none;
  }

  .external-mark {
    opacity: 0.7;
    transform: none;
  }

  .contact-bar {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 9px;
    width: calc(100% - 36px);
    max-width: 920px;
    min-height: 0;
    margin: 0 auto max(18px, env(safe-area-inset-bottom));
    padding: 15px 20px;
    border-radius: 22px;
    transform: translateY(20px);
    animation-name: mobile-footer-in;
  }

  .contact-bar a {
    justify-content: flex-start;
    gap: 14px;
    font-size: 14px;
  }

  .contact-bar a svg {
    width: 24px;
    height: 24px;
  }

  .separator {
    display: none;
  }
}

@media (max-width: 560px) {
  .mini-brand span {
    display: none;
  }

  .page-shell {
    padding-inline: 14px;
  }

  .brand-core {
    width: min(88vw, 420px);
    margin-top: 58px;
  }

  .companies {
    grid-template-columns: 1fr;
  }

  .node-card {
    min-height: 70px;
  }

  .contact-bar {
    width: calc(100% - 28px);
  }
}

@media (max-height: 720px) and (min-width: 961px) {
  .orbit-stage {
    height: 610px;
    min-height: 0;
  }

  .brand-core {
    width: min(31vw, 430px);
  }

  .contact-bar {
    min-height: 72px;
  }
}

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

  #energy-canvas {
    opacity: 0.42;
  }
}

@keyframes mobile-footer-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
