html, body {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(2, 5, 15, 0.36), rgba(2, 5, 15, 0.78)),
    url("/static/img/gale-sera-nebula-bg.png") center / cover fixed no-repeat,
    url("/static/images/gale-sera-nebula-bg.png") center / cover fixed no-repeat,
    #050816;
  background-blend-mode: normal, screen, normal, normal;
}

body {
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  display: none;
}

.jupiter {
  position: fixed;
  width: clamp(560px, 72vw, 900px);
  height: clamp(560px, 72vw, 900px);
  top: clamp(-210px, -16vw, -120px);
  right: clamp(-745px, -59vw, -455px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
  background: #4d423f;
  box-shadow:
    0 0 42px rgba(127, 240, 245, 0.025),
    0 0 118px rgba(75, 132, 150, 0.036),
    inset -176px -102px 286px rgba(0, 0, 0, 0.68);
  filter: saturate(0.62) contrast(0.84) brightness(0.72);
  opacity: 0.68;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, rgba(0, 0, 0, 0.72) 65%, rgba(0, 0, 0, 0.22) 82%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 50%, #000 48%, rgba(0, 0, 0, 0.72) 65%, rgba(0, 0, 0, 0.22) 82%, transparent 100%);
}

.jupiter-image,
.jupiter-shade,
.jupiter-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.jupiter-image {
  background-image:
    linear-gradient(90deg, rgba(172, 207, 204, 0.10), rgba(255, 242, 211, 0.025) 30%, rgba(42, 54, 62, 0.16) 70%, rgba(4, 6, 13, 0.36)),
    url("/static/img/jupiter-giant.png");
  background-repeat: no-repeat;
  background-size: 150% 112%, 104% auto;
  background-position: 0% 50%, 10% 50%;
  background-blend-mode: color, normal;
  filter: saturate(0.48) contrast(0.82) brightness(0.62);
  opacity: 0.60;
  animation: jupiterImageDrift 260s linear infinite;
}

.jupiter-image::before,
.jupiter-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.jupiter-image::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 239, 209, 0.045) 0 1px,
      rgba(123, 78, 58, 0.035) 5px 7px,
      rgba(255, 255, 255, 0) 14px 29px
    ),
    linear-gradient(180deg, rgba(34, 45, 48, 0.08), rgba(140, 224, 224, 0.022) 29%, rgba(47, 42, 43, 0.10) 59%, rgba(142, 191, 195, 0.026));
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

.jupiter-image::after {
  background:
    radial-gradient(ellipse at 16% 38%, rgba(185, 232, 228, 0.045), transparent 34%),
    radial-gradient(ellipse at 29% 64%, rgba(79, 54, 49, 0.07), transparent 32%),
    radial-gradient(ellipse at 38% 27%, rgba(190, 220, 216, 0.035), transparent 26%),
    linear-gradient(90deg, rgba(127, 240, 245, 0.022), rgba(0, 0, 0, 0.14) 78%);
  opacity: 0.34;
  mix-blend-mode: soft-light;
}

.jupiter-shade {
  background:
    radial-gradient(circle at 17% 31%, rgba(168, 229, 226, 0.052), rgba(255, 231, 190, 0.018) 21%, transparent 35%),
    radial-gradient(circle at 74% 63%, rgba(3, 4, 11, 0.82), transparent 58%),
    radial-gradient(circle at 50% 50%, transparent 27%, rgba(5, 8, 16, 0.46) 58%, rgba(1, 3, 9, 0.96) 100%),
    linear-gradient(92deg, rgba(127, 240, 245, 0.034), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0.28) 78%);
  box-shadow:
    inset 72px 30px 116px rgba(127, 240, 245, 0.026),
    inset -238px -118px 308px rgba(0, 0, 0, 0.82),
    inset -56px 0 124px rgba(0, 0, 0, 0.64);
  opacity: 0.96;
}

.jupiter-rim {
  box-shadow:
    inset 0 0 0 1px rgba(127, 240, 245, 0.022),
    inset 22px 0 42px rgba(127, 240, 245, 0.038),
    inset -42px 0 92px rgba(2, 4, 11, 0.42),
    inset 0 0 84px rgba(2, 4, 12, 0.66),
    0 0 58px rgba(127, 240, 245, 0.025);
  filter: blur(1.1px);
}

.jupiter-rim::after {
  content: "";
  position: absolute;
  inset: -2.2%;
  border-radius: 50%;
  box-shadow:
    inset 22px 0 38px rgba(127, 240, 245, 0.032),
    inset -34px 0 62px rgba(0, 0, 0, 0.38),
    0 0 44px rgba(127, 240, 245, 0.018);
  filter: blur(14px);
  opacity: 0.58;
}

body::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 52% 34%, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0) 28%),
    radial-gradient(ellipse at 16% 64%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 24%),
    radial-gradient(ellipse at 70% 76%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 22%),
    radial-gradient(ellipse at center, rgba(8, 12, 28, 0.10), rgba(1, 3, 10, 0.72) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, 0.28));
  opacity: 0.82;
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.container {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(94vw, 980px);
  margin: 0 auto;
  padding-top: clamp(3.5rem, 7vh, 6rem);
  padding-bottom: 10rem;
}

h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
  text-shadow:
    0 0 18px rgba(119, 224, 255, 0.22),
    0 2px 18px rgba(0, 0, 0, 0.62);
}

p {
  font-size: 1.2em;
  color: #d7e3f2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.62);
}

.ourobind-blueprint {
  --blueprint-cyan: 127, 240, 245;
  --blueprint-orange: 255, 92, 52;
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 920 / 520;
  margin: clamp(1rem, 2.5vh, 1.5rem) auto clamp(1.15rem, 2.5vh, 1.7rem);
  overflow: hidden;
  border: 1px solid rgba(var(--blueprint-cyan), 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 48% 52%, rgba(80, 232, 238, 0.075), transparent 38%),
    radial-gradient(circle at 31% 47%, rgba(var(--blueprint-orange), 0.048), transparent 24%),
    linear-gradient(145deg, rgba(7, 34, 37, 0.94), rgba(1, 10, 15, 0.98) 62%, rgba(4, 21, 23, 0.96)),
    #020a0d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 34px rgba(var(--blueprint-cyan), 0.10),
    0 18px 58px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.ourobind-blueprint::before,
.ourobind-blueprint::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.ourobind-blueprint::before {
  z-index: 2;
  opacity: 0.32;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 15% 26%, rgba(255, 255, 255, 0.22) 0 0.55px, transparent 0.8px),
    radial-gradient(circle at 52% 72%, rgba(255, 255, 255, 0.18) 0 0.45px, transparent 0.75px),
    repeating-radial-gradient(circle at 47% 51%, rgba(255, 255, 255, 0.030) 0 0.8px, transparent 1px 3px),
    repeating-linear-gradient(93deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 5px);
  background-size: 37px 31px, 43px 39px, 100% 100%, 100% 100%;
}

.ourobind-blueprint::after {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow:
    inset 0 0 46px rgba(var(--blueprint-cyan), 0.07),
    inset 0 0 118px rgba(0, 0, 0, 0.42);
}

.ourobind-blueprint__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ourobind-blueprint__field circle {
  fill: rgb(var(--blueprint-cyan));
  opacity: 0.68;
  filter: drop-shadow(0 0 5px rgba(var(--blueprint-cyan), 0.55));
}

.ourobind-blueprint__lines {
  fill: none;
  stroke: url(#ourobindCyanLine);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
  filter: drop-shadow(0 0 6px rgba(var(--blueprint-cyan), 0.20));
}

.ourobind-blueprint__axis {
  stroke-dasharray: 8 10;
  opacity: 0.48;
}

.ourobind-blueprint__trace {
  stroke-width: 1.35;
  stroke-dasharray: 52 11 4 11;
  opacity: 0.45;
}

.ourobind-blueprint__trace--dim {
  opacity: 0.28;
  stroke-dasharray: 22 13;
}

.ourobind-blueprint__spheres circle {
  stroke: rgba(var(--blueprint-cyan), 0.22);
  stroke-width: 1.25;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px rgba(var(--blueprint-cyan), 0.09));
}

.ourobind-blueprint__spheres circle:nth-last-child(-n + 2) {
  fill: rgba(113, 234, 241, 0.035);
  stroke-dasharray: 5 9;
  opacity: 0.78;
}

.ourobind-blueprint__orbit {
  fill: none;
  stroke: rgba(var(--blueprint-orange), 0.72);
  stroke-width: 2;
  stroke-linecap: round;
  filter:
    drop-shadow(0 0 8px rgba(var(--blueprint-orange), 0.22))
    drop-shadow(0 0 18px rgba(var(--blueprint-orange), 0.08));
}

.ourobind-blueprint__orbit circle:first-child {
  stroke-width: 2.3;
  opacity: 0.86;
}

.ourobind-blueprint__orbit circle:last-child {
  fill: rgba(var(--blueprint-orange), 0.82);
  stroke: rgba(255, 199, 151, 0.62);
}

.ourobind-blueprint__annotations {
  fill: rgba(195, 252, 255, 0.58);
  font: 600 12px/1 "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-anchor: start;
}

.ourobind-blueprint__annotations text:nth-child(3),
.ourobind-blueprint__annotations text:nth-child(4) {
  fill: rgba(195, 252, 255, 0.38);
  font-size: 10px;
}

.ourobind-blueprint__ruler {
  fill: none;
  stroke: url(#ourobindRulerFade);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.74;
}

.nav {
  margin-top: 2em;
}

.feature-card {
  display: block;
  max-width: 460px;
  margin: 2em auto 0;
  padding: 1em 1.1em;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(127, 224, 229, 0.4);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(12, 20, 42, 0.78), rgba(20, 15, 42, 0.62)),
    rgba(7, 12, 28, 0.72);
  box-shadow:
    0 0 24px rgba(127, 224, 229, 0.09),
    0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px) saturate(118%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 224, 229, 0.68);
  box-shadow: 0 0 28px rgba(127, 224, 229, 0.14);
}

.feature-card span,
.feature-card small {
  display: block;
}

.feature-card small {
  margin-top: 0.45em;
  color: #c9d7df;
}

.nav a {
  color: #8debf0;
  text-decoration: none;
  margin: 0 1.2em;
  font-weight: bold;
  font-size: 1.1em;
  display: inline-block;
  position: relative;
  padding: 0.15em 0;
  transition: transform 160ms ease, text-shadow 160ms ease, color 160ms ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.62);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.25em;
  height: 1px;
  width: 72%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, rgba(127, 224, 229, 0) 0%, rgba(127, 224, 229, 0.65) 18%, rgba(255, 255, 255, 0.85) 50%, rgba(127, 224, 229, 0.65) 82%, rgba(127, 224, 229, 0) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  opacity: 0.9;
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

@keyframes navShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.nav a:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 5px #a2ffff;
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(162, 255, 255, 0.35));
  animation: navShimmer 520ms ease-out 1;
}

.nav a:active {
  transform: translateY(0);
  text-shadow: 0 0 2px rgba(162, 255, 255, 0.6);
}

.nav a:active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
  animation: navShimmer 520ms ease-out 1;
}

.nav a:focus-visible {
  outline: 2px solid rgba(127, 224, 229, 0.6);
  outline-offset: 6px;
  border-radius: 6px;
}

.poem-overlay {
  position: fixed;
  bottom: 6vh;
  width: 100%;
  text-align: center;
  font-size: 1em;
  color: #9fb8d7;
  opacity: 0.86;
  font-style: italic;
  line-height: 1.6;
  z-index: 1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.72), 0 0 18px rgba(105, 191, 230, 0.12);
}

.poem-line {
  opacity: 0;
  animation: fadeInOut 12s ease-in-out infinite;
}

.poem-line:nth-child(2) {
  animation-delay: 4s;
}

.poem-line:nth-child(3) {
  animation-delay: 8s;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
}

@keyframes jupiterImageDrift {
  from {
    background-position: 0% 50%, 10% 50%;
  }
  to {
    background-position: 8% 50%, 17% 50%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(92vw, 520px);
    padding-top: 4.5rem;
    padding-bottom: 8rem;
  }

  h1 {
    font-size: clamp(2.1rem, 13vw, 3rem);
  }

  p {
    font-size: 1rem;
  }

  .ourobind-blueprint {
    border-radius: 14px;
    margin-top: 1rem;
  }

  .ourobind-blueprint__annotations {
    font-size: 14px;
  }

  .nav {
    margin-top: 1.35rem;
  }

  .nav a {
    margin: 0.35rem 0.55rem;
  }

  .jupiter {
    width: 650px;
    height: 650px;
    top: -160px;
    right: -590px;
  }
}
