/* ==================== Hero Background (Alien Orbital) ==================== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg__svg {
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

.hero-bg__ring--outer {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: orbitSpin 75s linear infinite;
}
.hero-bg__ring--middle {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: orbitSpinReverse 52s linear infinite;
}
.hero-bg__ring--inner {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: orbitSpin 32s linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes orbitSpinReverse {
  to { transform: rotate(-360deg); }
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  z-index: 1;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.logo {
  width: clamp(280px, 55vw, 480px);
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-tagline {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 500;
}

/* ==================== Instagram CTA (Quiet) ==================== */
.instagram-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.55);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(58, 228, 255, 0.35);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: manipulation;
}

.instagram-cta:hover {
  background: rgba(58, 228, 255, 0.08);
  border-color: rgba(58, 228, 255, 0.7);
  color: var(--accent);
  transform: translateY(-1px);
}

.instagram-cta:active {
  transform: translateY(0);
}

.instagram-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(58, 228, 255, 0.45);
}

.instagram-cta__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}

.instagram-cta__label {
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .instagram-cta {
    padding: 0.5rem 0.95rem 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .instagram-cta__icon { width: 16px; height: 16px; }
}

/* ==================== Hero Panel (Alien Glyph Row) ==================== */
.hero-panel {
  position: relative;
  margin-top: 0.6rem;
  padding: 0.5rem 0.2rem 0.2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-glyph-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.6vw, 1rem);
  color: var(--accent);
}

.hero-glyph {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  opacity: 0.62;
}
.hero-glyph:nth-child(1) { opacity: 0.55; }
.hero-glyph:nth-child(3) { opacity: 0.72; }
.hero-glyph:nth-child(7) { opacity: 0.72; }
.hero-glyph:nth-child(9) { opacity: 0.55; }
.hero-glyph--center {
  width: 50px;
  height: 50px;
  opacity: 1;
}
.hero-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-glyph-link {
  flex: 0 0 auto;
  width: clamp(18px, 5vw, 44px);
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    currentColor 50%,
    transparent 100%);
  opacity: 0.45;
  position: relative;
}
.hero-glyph-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  animation: linkPulse 3.6s linear infinite;
  box-shadow: 0 0 6px var(--accent);
}
.hero-glyph-row > .hero-glyph-link:nth-of-type(2)::after { animation-delay: -0.9s; }
.hero-glyph-row > .hero-glyph-link:nth-of-type(4)::after { animation-delay: -1.8s; }
.hero-glyph-row > .hero-glyph-link:nth-of-type(6)::after { animation-delay: -2.7s; }

@keyframes linkPulse {
  0%   { left: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

@keyframes ledBreathe {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* Glyph 1 — Concentric arcs (radar) */
.hero-glyph:nth-child(1) path:nth-of-type(1) { animation: arcRipple 2.8s ease-out infinite; }
.hero-glyph:nth-child(1) path:nth-of-type(2) { animation: arcRipple 2.8s ease-out infinite -0.9s; }
.hero-glyph:nth-child(1) path:nth-of-type(3) { animation: arcRipple 2.8s ease-out infinite -1.8s; }

@keyframes arcRipple {
  0%   { opacity: 0.1; }
  30%  { opacity: 1; }
  100% { opacity: 0.1; }
}

/* Glyph 3 — Triangle/constellation: subtle rotation */
.hero-glyph:nth-child(3) {
  animation: glyphSpin 28s linear infinite;
}
@keyframes glyphSpin {
  to { transform: rotate(360deg); }
}

/* Glyph 4 (center) — Sweeping arc */
.hero-glyph__sweep {
  transform-origin: 25px 25px;
  animation: sweep 4.5s linear infinite;
  filter: drop-shadow(0 0 3px currentColor);
}
@keyframes sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Glyph 6 — Compass needle */
.hero-glyph__needle {
  transform-origin: 16px 16px;
  animation: needle 11s linear infinite;
}
@keyframes needle {
  to { transform: rotate(360deg); }
}

/* Glyph 8 — Branching: nodes pulse in sequence */
.hero-glyph__node:nth-of-type(1) { animation: nodePulse 2.4s ease-in-out infinite; }
.hero-glyph__node:nth-of-type(2) { animation: nodePulse 2.4s ease-in-out infinite -0.8s; }
.hero-glyph__node:nth-of-type(3) { animation: nodePulse 2.4s ease-in-out infinite -1.6s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.3; r: 1.7; }
  50%      { opacity: 1;   r: 2.4; }
}

@media (max-width: 600px) {
  .hero-glyph { width: 24px; height: 24px; }
  .hero-glyph--center { width: 40px; height: 40px; }
  .hero-glyph-link { width: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glyph-link::after,
  .hero-glyph__sweep,
  .hero-glyph__needle,
  .hero-glyph:nth-child(1) path,
  .hero-glyph:nth-child(3),
  .hero-glyph__node {
    animation: none !important;
  }
  .hero-glyph__sweep { opacity: 0.7; }
  .hero-glyph__needle { transform: rotate(45deg); transform-origin: 16px 16px; }
}

.lang-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  position: relative;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.55);
  border: 1px solid var(--border-subtle);
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-switch::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: calc(50% - 0.225rem);
  height: calc(100% - 0.3rem);
  border-radius: 999px;
  background: linear-gradient(135deg, #3ae4ff, #4af2c5);
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.lang-switch[data-lang="en"]::before {
  transform: translateX(calc(100% + 0.15rem));
}

.lang-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: transparent;
  color: var(--muted);
  min-width: 36px;
  position: relative;
  z-index: 1;
  transition: color 180ms ease;
}

.lang-btn[aria-pressed="true"] {
  color: #020309;
  background: transparent;
  box-shadow: none;
}

.lang-btn[aria-pressed="false"] {
  color: rgba(245, 246, 251, 0.78);
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch::before {
    transition: none;
  }
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

