* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --text: rgba(255, 255, 255, .94);
  --soft: rgba(227, 236, 255, .72);
  --muted: rgba(209, 221, 255, .58);
  --glass: rgba(8, 11, 35, .38);
  --glass-strong: rgba(8, 12, 39, .62);
  --line: rgba(255, 255, 255, .15);
  --cyan: #8fe8ff;
  --blue: #7f9cff;
  --violet: #c9a7ff;
  --pink: #ff8fe8;
}

html,
body {
  width: 100%;
  min-height: 100svh;
  -webkit-text-size-adjust: 100%;
  background: #030512;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(106,134,255,.24), transparent 34%),
    radial-gradient(circle at 16% 64%, rgba(255,117,231,.14), transparent 30%),
    radial-gradient(circle at 86% 52%, rgba(90,244,255,.13), transparent 31%),
    linear-gradient(180deg, #030512 0%, #070923 34%, #0a0f2c 66%, #040512 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 42%, rgba(1, 2, 8, .2) 70%, rgba(0, 0, 0, .68) 100%);
}


#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
}

.nebula-sheet,
.nebula-sheet::before,
.nebula-sheet::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.nebula-sheet {
  z-index: 2;
  opacity: .94;
  filter: blur(22px) saturate(1.24);
  animation: nebulaDrift 24s ease-in-out infinite alternate;
  background:
    radial-gradient(ellipse at 12% 72%, rgba(255, 111, 238, .21), transparent 37%),
    radial-gradient(ellipse at 36% 76%, rgba(143, 111, 255, .2), transparent 39%),
    radial-gradient(ellipse at 72% 70%, rgba(94, 131, 255, .19), transparent 38%),
    radial-gradient(ellipse at 92% 62%, rgba(74, 255, 225, .16), transparent 31%);
}

.nebula-sheet::before {
  opacity: .72;
  filter: blur(70px);
  animation: nebulaCounter 32s ease-in-out infinite alternate;
  background:
    radial-gradient(ellipse at 24% 84%, rgba(255, 172, 252, .25), transparent 27%),
    radial-gradient(ellipse at 55% 80%, rgba(123, 118, 255, .22), transparent 31%),
    radial-gradient(ellipse at 83% 78%, rgba(142, 235, 255, .2), transparent 27%);
}

.nebula-sheet::after {
  opacity: .9;
  filter: blur(45px);
  animation: pulseGlow 9s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 26%, rgba(235, 250, 255, .15), transparent 8%),
    radial-gradient(circle at 84% 32%, rgba(120, 220, 255, .13), transparent 12%),
    radial-gradient(circle at 17% 28%, rgba(255, 120, 222, .12), transparent 13%);
}

.fog-bank {
  position: fixed;
  inset: auto -14vw -12vh -14vw;
  height: 46vh;
  z-index: 3;
  pointer-events: none;
  opacity: .95;
  filter: blur(36px);
  animation: fogShift 20s ease-in-out infinite alternate;
  background:
    radial-gradient(ellipse at 8% 80%, rgba(231, 116, 255, .3), transparent 33%),
    radial-gradient(ellipse at 34% 77%, rgba(135, 117, 255, .25), transparent 34%),
    radial-gradient(ellipse at 73% 75%, rgba(87, 132, 255, .23), transparent 35%),
    radial-gradient(ellipse at 94% 70%, rgba(88, 255, 218, .19), transparent 31%);
}

.lens-flare {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--flare-x, 50%) var(--flare-y, 42%), rgba(255, 255, 255, .14), transparent 3.5%),
    radial-gradient(circle at var(--flare-x, 50%) var(--flare-y, 42%), rgba(143, 232, 255, .1), transparent 14%);
  transition: opacity .8s ease;
}

.lens-flare::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(12vw, 170px);
  height: 96vh;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(8deg);
  transform-origin: center;
  opacity: .34;
  filter: blur(18px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0) 13%, rgba(170,200,255,.045) 30%, rgba(255,255,255,.105) 50%, rgba(170,200,255,.045) 70%, rgba(255,255,255,0) 87%, transparent 100%);
}

.lens-flare::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(3vw, 38px);
  height: 88vh;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(8deg);
  transform-origin: center;
  opacity: .2;
  filter: blur(9px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0) 16%, rgba(255,255,255,.045) 36%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.045) 64%, rgba(255,255,255,0) 84%, transparent 100%);
}

.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.meteor {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--meteor-width, 170px);
  height: 2px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .96));
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .72));
  transform: translate3d(-40vw, -40vh, 0) rotate(155deg);
  will-change: transform, opacity;
}

.meteor::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 11px white, 0 0 24px rgba(126, 215, 255, .9);
}

.meteor.shooting {
  animation: meteorShoot var(--meteor-duration, 10s) cubic-bezier(.22, .03, .28, 1) forwards;
}

@keyframes nebulaDrift {
  from { transform: translate3d(-1.5vw, .8vh, 0) scale(1.02); }
  to { transform: translate3d(1.8vw, -1vh, 0) scale(1.07); }
}

@keyframes nebulaCounter {
  from { transform: translate3d(1.6vw, -1vh, 0) scale(1.04); }
  to { transform: translate3d(-1.2vw, 1.3vh, 0) scale(1.1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: .62; transform: scale(1); }
  50% { opacity: .94; transform: scale(1.04); }
}

@keyframes fogShift {
  from { transform: translate3d(-2vw, .8vh, 0) scale(1.02); }
  to { transform: translate3d(2vw, -1.2vh, 0) scale(1.08); }
}

@keyframes meteorShoot {
  0% { opacity: 0; transform: translate3d(var(--meteor-start-x), var(--meteor-start-y), 0) rotate(155deg) scaleX(.55); }
  8% { opacity: .96; }
  72% { opacity: .84; }
  100% { opacity: 0; transform: translate3d(var(--meteor-end-x), var(--meteor-end-y), 0) rotate(155deg) scaleX(1); }
}

.contact-header {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
}

.contact-brand img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(143, 232, 255, .24));
}

.contact-brand span {
  color: rgba(255, 255, 255, .96);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.07em;
  text-shadow: 0 0 26px rgba(143, 232, 255, .2), 0 24px 85px rgba(0, 0, 0, .36);
  white-space: nowrap;
}

.back-to-galaxy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 2px;
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(143, 232, 255, .24), 0 0 38px rgba(201, 167, 255, .2);
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.back-to-galaxy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(143, 232, 255, .9), rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px rgba(143, 232, 255, .5);
  transform: scaleX(.72);
  opacity: .72;
  transition: transform .22s ease, opacity .22s ease;
}

.back-to-galaxy:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 18px rgba(143, 232, 255, .28));
}

.back-to-galaxy:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.page-shell {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  min-height: 0;
  padding: clamp(22px, 4vh, 48px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-title {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin: 0 0 clamp(26px, 3.5vh, 42px);
  color: rgba(255, 255, 255, .96);
  font-size: clamp(56px, 8vw, 96px);
  line-height: .9;
  letter-spacing: -.07em;
  text-align: center;
  text-shadow: 0 0 26px rgba(143, 232, 255, .2), 0 24px 85px rgba(0, 0, 0, .36);
}

.page-card {
  position: relative;
  width: min(960px, 100%);
  padding: clamp(40px, 4.4vw, 56px) clamp(28px, 3.6vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
    rgba(8, 12, 39, .5);
  backdrop-filter: blur(22px);
  box-shadow:
    0 30px 110px rgba(0, 0, 0, .34),
    inset 0 0 24px rgba(255, 255, 255, .045),
    0 0 70px rgba(143, 232, 255, .10);
}

.page-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(circle at 14% 18%, rgba(143, 232, 255, .16), transparent 27%),
    radial-gradient(circle at 86% 84%, rgba(201, 167, 255, .13), transparent 29%);
}

.page-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(143, 232, 255, .7), rgba(255, 255, 255, 0));
  box-shadow: 0 0 18px rgba(143, 232, 255, .34);
}

.page-card > * {
  position: relative;
  z-index: 1;
}

.page-card p {
  margin-top: clamp(12px, 1.8vh, 16px);
  color: rgba(226, 235, 255, .76);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.72;
}

.page-card p:first-child {
  margin-top: 0;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: clamp(16px, 2.4vh, 24px);
  color: rgba(226, 235, 255, .84);
}

.contact-details p {
  margin-top: 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.contact-details strong {
  color: rgba(255, 255, 255, .94);
  font-weight: 900;
}

.contact-details a {
  color: rgba(143, 232, 255, .94);
  text-decoration: none;
  font-weight: 800;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-footer {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 22px);
  color: rgba(226, 235, 255, .48);
  font-size: 12px;
  text-align: center;
}

.ship-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform: translate3d(-100px, -100px, 0) rotate(0deg) scale(1);
  transition: opacity .24s ease, filter .24s ease;
  filter: drop-shadow(0 0 10px rgba(143, 232, 255, .35)) drop-shadow(0 0 24px rgba(122, 157, 255, .22));
}

.ship-cursor svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ship-cursor .thruster {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, 5px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .98), rgba(143, 232, 255, .82) 24%, rgba(111, 126, 255, .38) 52%, rgba(111, 126, 255, 0) 78%);
  filter: blur(1px);
  opacity: .75;
  mix-blend-mode: screen;
}

.ship-cursor .pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle, rgba(143, 232, 255, .2) 0%, rgba(143, 232, 255, .1) 38%, rgba(143, 232, 255, 0) 72%);
  filter: blur(9px);
  opacity: .55;
  transform: scale(.82);
  mix-blend-mode: screen;
}

body.has-ship-cursor,
body.has-ship-cursor * {
  cursor: none !important;
}

.engine-particle {
  position: fixed;
  will-change: transform, opacity;
  left: 0;
  top: 0;
  z-index: 59;
  width: 7px;
  height: 7px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(143, 232, 255, .62) 36%, rgba(143, 232, 255, 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(1);
  filter: blur(.2px) drop-shadow(0 0 10px rgba(143, 232, 255, .65));
}

@media (max-width: 850px), (pointer: coarse) {
  .lens-flare {
    display: none;
  }

  .ship-cursor,
  .engine-particle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .contact-header {
    width: min(100% - 28px, 1180px);
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }

  .contact-brand {
    gap: 8px;
  }

  .contact-brand img {
    width: 42px;
    height: 42px;
  }

  .contact-brand span {
    font-size: 24px;
  }

  .back-to-galaxy {
    min-height: 38px;
    font-size: 12px;
  }

  .back-to-galaxy::after {
    bottom: 5px;
  }

  .page-shell {
    width: min(100% - 28px, 1180px);
    padding: clamp(20px, 4vh, 34px) 0;
    align-items: center;
    justify-content: center;
  }

  .page-title {
    width: 100%;
    font-size: clamp(52px, 14vw, 76px);
    margin-bottom: 34px;
  }

  .page-card {
    border-radius: 26px;
    padding: 34px 24px;
  }
}
