:root {
  --bg: #05060d;
  --bg-soft: #0e1121;
  --card: rgba(20, 23, 38, 0.74);
  --text: #f1f3ff;
  --muted: #a6accd;
  --red: #ff1f4a;
  --blue: #37a1ff;
  --purple: #934bff;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 10%, #1a1f46 0%, transparent 33%),
    radial-gradient(circle at 80% 20%, #430d23 0%, transparent 30%),
    linear-gradient(180deg, #03050d 0%, #070a15 45%, #020306 100%);
  overflow-x: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f1330 0%, #06070f 60%, #020205 100%);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  z-index: 99;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

@media (max-width: 900px), (pointer: coarse) {
  .loader {
    display: none !important;
  }
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader p {
  letter-spacing: 2px;
  font-size: 0.82rem;
  color: #b7bfdf;
}

.loader-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--red);
  border-right-color: var(--blue);
  box-shadow: 0 0 26px rgba(255, 31, 74, 0.35);
  animation: spin 1s linear infinite;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #f81845 0%, #953aff 60%, #26b0ff 100%);
  box-shadow: 0 0 18px rgba(255, 27, 82, 0.66);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(58, 160, 255, 0.22) 0%, rgba(255, 33, 84, 0.05) 45%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: transform 0.08s linear;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 24px));
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  background: rgba(10, 12, 22, 0.66);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
}

.brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-family: "Montserrat", sans-serif;
}

.brand span {
  margin-left: 6px;
  color: var(--red);
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  opacity: 0.88;
}

nav a:hover {
  color: white;
  opacity: 1;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 30, 70, 0.18), transparent 34%),
    radial-gradient(circle at 30% 20%, rgba(112, 17, 43, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(1, 1, 4, 0.86) 0%, rgba(4, 5, 13, 0.62) 46%, rgba(5, 9, 21, 0.92) 100%),
    image-set(
      url("./assets/earth-night-1024.webp") type("image/webp") 1x,
      url("./assets/earth-night-1600.webp") type("image/webp") 1.5x,
      url("./assets/earth-night-1920.webp") type("image/webp") 2x,
      url("./assets/earth-night-2560.webp") type("image/webp") 3x,
      url("./assets/earth-night-1024.jpg") type("image/jpeg") 1x,
      url("./assets/earth-night-1600.jpg") type("image/jpeg") 1.5x,
      url("./assets/earth-night-1920.jpg") type("image/jpeg") 2x,
      url("./assets/earth-night-2560.jpg") type("image/jpeg") 3x
    );
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  filter: saturate(1.02) contrast(1.04);
  z-index: -1;
  opacity: 0;
  transform: translateY(46px) scale(1.02);
  transition: opacity 4s linear, transform 4.8s linear, filter 3.8s linear;
}

.hero-bg.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1.05) contrast(1.06) brightness(1.02);
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity 1.4s ease;
}

.hero-stage.cleared .planet,
.hero-stage.cleared .hero-links,
.hero-stage.cleared .hero-hint {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-stars,
.hero-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-stars {
  background-image:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 68%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 18%, rgba(138, 198, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 76%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px);
  opacity: 0.45;
  animation: starsPulse 4s ease-in-out infinite alternate;
}

.hero-stage::before {
  background: radial-gradient(circle at center, transparent 0%, rgba(1, 2, 6, 0.1) 40%, rgba(1, 2, 6, 0.88) 100%);
}

.hero-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-links line {
  stroke: rgba(95, 189, 255, 0.9);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(64, 181, 255, 0.8));
}

.hero-links line.preview {
  stroke-dasharray: 10 14;
  animation: linkFlow 2.2s linear infinite;
}

.planet-grid {
  position: absolute;
  inset: 0;
}

.planet {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.1);
  background-image: var(--planet-img, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 10px rgba(75, 132, 255, 0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.42);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  cursor: grab;
}

.planet.visible {
  opacity: 0.78;
  transform: scale(1);
  filter: blur(1px);
}

.planet.active {
  opacity: 1;
  filter: blur(0);
  box-shadow: 0 0 18px rgba(66, 185, 255, 0.75), 0 0 42px rgba(91, 72, 255, 0.28);
}

.planet.dragging {
  cursor: grabbing;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18), 0 0 34px rgba(255, 31, 74, 0.55), 0 0 50px rgba(77, 140, 255, 0.45);
}

.planet::before,
.planet::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
}

.planet::before {
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.18), transparent 18%);
}

.planet::after {
  inset: -8px;
  border: 1px solid rgba(70, 168, 255, 0.12);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.planet.active::after {
  opacity: 1;
}

.planet.connected {
  opacity: 1;
  filter: blur(0);
}

.planet.connected .planet-label {
  opacity: 0.9;
}

.planet-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  color: rgba(225, 234, 255, 0.7);
  letter-spacing: 0.8px;
  white-space: nowrap;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.planet-neighbor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.big-bang {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(116, 203, 255, 0.88) 18%, rgba(121, 83, 255, 0.44) 42%, transparent 74%);
  opacity: 0;
  pointer-events: none;
}

.big-bang.explode {
  animation: bigBang 1.7s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
}

.earth-reveal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  height: auto;
  transform: translate(-50%, -50%) scale(0.16);
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}

.earth-reveal.show {
  opacity: 1;
  animation: earthArrival 8.2s cubic-bezier(0.18, 0.86, 0.26, 1) forwards;
}

.earth-reveal.show.collapse {
  animation: earthCollapse 2.6s cubic-bezier(0.24, 0.82, 0.25, 1) forwards;
}

.earth-halo,
.earth-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.earth-halo {
  inset: -5%;
  background:
    radial-gradient(circle, rgba(88, 203, 255, 0.34) 0%, rgba(59, 157, 255, 0.18) 28%, rgba(63, 129, 255, 0.08) 52%, transparent 72%);
  filter: blur(20px);
}

.earth-halo::before,
.earth-halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.earth-halo::before {
  background: radial-gradient(circle at 36% 34%, rgba(177, 240, 255, 0.24), transparent 34%);
  filter: blur(18px);
}

.earth-halo::after {
  inset: 2.5%;
  border: 2px solid rgba(122, 217, 255, 0.15);
  box-shadow: 0 0 28px rgba(74, 193, 255, 0.22);
}

.earth-core {
  overflow: hidden;
  box-shadow:
    inset -80px -40px 120px rgba(0, 0, 0, 0.42),
    inset 22px 18px 50px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(42, 177, 255, 0.32);
  background: radial-gradient(circle at 45% 42%, rgba(7, 36, 83, 0.35), rgba(3, 19, 55, 0.75) 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 84%, rgba(0, 0, 0, 0.98) 89%, rgba(0, 0, 0, 0.84) 93%, rgba(0, 0, 0, 0.35) 98%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 84%, rgba(0, 0, 0, 0.98) 89%, rgba(0, 0, 0, 0.84) 93%, rgba(0, 0, 0, 0.35) 98%, transparent 100%);
}

.earth-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  transform: scale(1.015);
  filter: saturate(1.06) contrast(1.08) brightness(1.02);
  animation: earthImageTurn 18s ease-in-out infinite alternate;
}

.earth-core::before,
.earth-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.earth-core::before {
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.44), transparent 18%),
    radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.15), transparent 22%),
    radial-gradient(circle at 58% 58%, rgba(255, 255, 255, 0.12), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.earth-core::after {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 36% 42%, rgba(255, 255, 255, 0.12), transparent 14%),
    radial-gradient(circle at 68% 54%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 34%, rgba(255, 255, 255, 0.06) 58%, transparent 72%);
  filter: blur(11px);
  opacity: 0.42;
}

.earth-core::before {
  box-shadow: inset 0 0 16px rgba(140, 216, 255, 0.22);
}

.earth-reveal::before,
.earth-reveal::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
}

.earth-reveal::before {
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 255, 255, 0.3), transparent 24%),
    conic-gradient(
      from 220deg,
      rgba(255, 196, 90, 0) 0deg 112deg,
      rgba(255, 196, 90, 0.28) 132deg 156deg,
      rgba(255, 214, 126, 0.06) 166deg 182deg,
      rgba(255, 196, 90, 0) 194deg 360deg
    );
  mix-blend-mode: screen;
  filter: blur(5px);
  opacity: 0.82;
}

.earth-reveal::after {
  inset: 10%;
  background:
    radial-gradient(circle at 70% 44%, rgba(255, 208, 112, 0.95) 0 0.8%, transparent 2.2%),
    radial-gradient(circle at 66% 50%, rgba(255, 196, 102, 0.92) 0 0.7%, transparent 2%),
    radial-gradient(circle at 62% 58%, rgba(255, 181, 88, 0.85) 0 0.6%, transparent 1.8%),
    radial-gradient(circle at 58% 62%, rgba(255, 214, 128, 0.72) 0 0.5%, transparent 1.6%),
    radial-gradient(circle at 55% 37%, rgba(255, 208, 118, 0.72) 0 0.5%, transparent 1.5%),
    radial-gradient(circle at 49% 52%, rgba(255, 178, 77, 0.7) 0 0.45%, transparent 1.4%),
    radial-gradient(circle at 44% 60%, rgba(255, 194, 104, 0.68) 0 0.45%, transparent 1.4%);
  filter: blur(2px);
  opacity: 0.78;
  animation: earthNightLights 8s ease-in-out infinite alternate;
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 31, 0.5);
  color: rgba(214, 222, 247, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.hero-content {
  width: min(1040px, 100%);
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(5px);
  background: linear-gradient(135deg, rgba(11, 14, 26, 0.55), rgba(10, 13, 24, 0.28));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  position: relative;
  z-index: 2;
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.hero-content-hidden {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  pointer-events: none;
}

.hero-content-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-static-hero .hero-stage {
  display: none;
}

.mobile-static-hero .hero-bg {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: none;
}

.mobile-static-hero .hero-content,
.mobile-static-hero .hero-content-hidden,
.mobile-static-hero .hero-content-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mobile-static-hero .hero-content > *,
.mobile-static-hero .hero-content-visible > * {
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
}

.hero-content-visible > * {
  animation: contentFadeUp 1.2s ease forwards;
}

.hero-content-visible .tag {
  animation-delay: 0.15s;
}

.hero-content-visible .hero-title-line:nth-child(1) {
  animation-delay: 0.55s;
}

.hero-content-visible .hero-title-line:nth-child(2) {
  animation-delay: 1s;
}

.hero-content-visible .hero-subtitle {
  animation-delay: 1.45s;
}

.hero-content-visible .hero-actions {
  animation-delay: 1.85s;
}

.hero-content-visible .trust-points {
  animation-delay: 2.15s;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 0 28px rgba(118, 194, 255, 0.12);
}

.tag {
  color: #cf4b65;
  letter-spacing: 1.8px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle,
.section-intro,
p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(120deg, #ef1a46, #5b28fb);
  color: white;
  border-radius: 999px;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(152, 55, 255, 0.35);
}

.btn-ghost,
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: rgba(255, 31, 74, 0.58);
  box-shadow: 0 10px 22px rgba(255, 31, 74, 0.2);
}

.trust-points {
  margin-top: 36px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.trust-points strong {
  display: block;
  font-size: 2rem;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 6px;
}

.trust-points span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(1120px, calc(100% - 30px));
  margin: 0 auto 68px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 14px;
}

.services {
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 74, 0.42);
}

.card h3 {
  margin-bottom: 10px;
}

.timeline {
  margin-top: 26px;
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline .line {
  position: absolute;
  left: -8px;
  top: 8px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--red), transparent);
}

.timeline article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(14, 16, 26, 0.65);
  padding: 18px 20px;
}

.timeline article h3 {
  margin-bottom: 8px;
}

.jobs {
  margin-top: 24px;
}

.job-filters {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: rgba(255, 31, 74, 0.58);
  color: #fff;
  background: rgba(255, 31, 74, 0.14);
}

.job-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 16, 29, 0.84), rgba(13, 17, 31, 0.54));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 210px;
  transition: all 0.25s ease;
}

.job-card.hide {
  display: none;
}

.job-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 31, 74, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

.job-card h3 {
  margin-bottom: 8px;
}

.gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease, filter 0.28s ease;
  cursor: zoom-in;
}

.gallery img:hover {
  transform: scale(1.02);
  filter: saturate(1.08);
}

.join {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 20px;
  background: linear-gradient(120deg, rgba(255, 26, 70, 0.12), rgba(66, 37, 254, 0.08));
}

.join-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-modal.show {
  display: flex;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(6px);
}

.qr-modal-card {
  position: relative;
  width: min(92vw, 420px);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(16, 20, 34, 0.96), rgba(10, 13, 24, 0.95));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.45);
  padding: 24px 20px 20px;
  text-align: center;
}

.qr-modal-card h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.qr-modal-card p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.qr-modal-card img {
  width: min(72vw, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.image-modal.show {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, 0.85);
  backdrop-filter: blur(6px);
}

.image-modal-content {
  position: relative;
  z-index: 1;
  width: min(94vw, 1160px);
  max-height: min(92vh, 900px);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 11, 24, 0.9);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.48);
  display: grid;
  place-items: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: calc(92vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.image-modal-content p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(226, 234, 255, 0.9);
}

.image-modal-close,
.image-modal-nav {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.image-modal-close {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
}

.image-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
}

.image-modal-prev {
  left: 10px;
}

.image-modal-next {
  right: 10px;
}

footer {
  text-align: center;
  padding: 28px 12px 44px;
  color: #8f94af;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes starsPulse {
  from {
    opacity: 0.25;
    transform: scale(1);
  }

  to {
    opacity: 0.55;
    transform: scale(1.02);
  }
}

@keyframes bigBang {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(8);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(12);
  }
}

@keyframes linkFlow {
  from {
    stroke-dashoffset: 32;
    opacity: 0.1;
  }

  50% {
    opacity: 0.55;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 0.24;
  }
}

@keyframes earthImageTurn {
  from {
    transform: rotate(-8deg) scale(1);
  }

  to {
    transform: rotate(6deg) scale(1.03);
  }
}

@keyframes earthArrival {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
    filter: blur(18px);
  }

  22% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.45);
    filter: blur(10px);
  }

  52% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
    filter: blur(0);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, -49%) scale(1.26);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -48%) scale(0.72);
    filter: blur(0);
  }
}

@keyframes earthCollapse {
  0% {
    opacity: 1;
    transform: translate(-50%, -48%) scale(0.72);
    filter: blur(0);
  }

  58% {
    opacity: 0.88;
    transform: translate(-50%, -51%) scale(0.42);
    filter: blur(2px);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(0.08);
    filter: blur(10px);
  }
}

@keyframes contentFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes earthNightLights {
  from {
    opacity: 0.45;
    transform: rotate(0deg) scale(1);
  }

  to {
    opacity: 0.85;
    transform: rotate(6deg) scale(1.02);
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .hero-content {
    padding: 28px;
  }

  .earth-reveal {
    width: min(64vw, 520px);
  }
}

@media (max-width: 680px) {
  .cursor-glow {
    display: none;
  }

  .hero {
    padding-top: 154px;
  }

  .site-header {
    top: 10px;
    padding: 10px 12px;
  }

  .planet {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
  }

  .hero-hint {
    width: calc(100% - 32px);
    bottom: 72px;
    text-align: center;
    border-radius: 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .join-actions .btn {
    width: auto;
  }

  .job-list {
    grid-template-columns: 1fr;
  }
}
