/* SOURCE SPHERE PREVIEW */
/* Transparent, homepage-ready orb section */

.source-preview-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(96px, 10vw, 160px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  overflow: hidden;
  color: #f7ead0;
  background:
    radial-gradient(circle at 72% 45%, rgba(217, 164, 65, 0.12), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 235, 176, 0.06), transparent 28%),
    linear-gradient(180deg, #020202 0%, #080705 50%, #020202 100%);
}

.source-preview-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 232, 180, 0.26) 1px, transparent 1.5px);
  background-size: 42px 42px;
  opacity: 0.08;
  animation: sourceMinorTwinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.source-preview-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.source-kicker {
  margin: 0 0 22px;
  color: #d9a441;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.source-preview-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  color: #fff4d8;
}

.source-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.7;
  color: rgba(247, 234, 208, 0.82);
}

.source-preview-copy p {
  line-height: 1.75;
  color: rgba(247, 234, 208, 0.68);
}

.source-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 38px 0 34px;
}

.source-feature-grid article {
  padding: 22px;
  border: 1px solid rgba(217, 164, 65, 0.18);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 24px rgba(255, 210, 120, 0.025);
}

.source-feature-grid span {
  display: block;
  margin-bottom: 18px;
  color: rgba(217, 164, 65, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.source-feature-grid h3 {
  margin: 0 0 10px;
  color: #ffe8ad;
  font-size: 1rem;
}

.source-feature-grid p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(247, 234, 208, 0.6);
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.source-button.primary {
  color: #080705;
  background: linear-gradient(135deg, #fff0b7, #d9a441 58%, #8a621c);
  box-shadow: 0 0 28px rgba(217, 164, 65, 0.28);
}

.source-button.secondary {
  color: #f7ead0;
  border: 1px solid rgba(217, 164, 65, 0.35);
  background: rgba(0, 0, 0, 0.22);
}

.source-preview-art,
.source-sphere-scene {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 560px;
  background: transparent;
}

.source-preview-art {
  pointer-events: none;
}

.source-sphere-scene {
  width: min(760px, 100%);
}

.source-sphere {
  position: relative;
  width: min(560px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50%;
  isolation: isolate;
  transform-style: preserve-3d;
}

.source-sphere-scene .source-label {
  position: absolute;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(3, 7, 8, 0.62);
  backdrop-filter: blur(14px);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  color: #ddd;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.source-sphere-scene .l1 {
  top: 8%;
  left: 47%;
  transform: translateX(-50%);
}

.source-sphere-scene .l2 {
  top: 27%;
  left: 0;
}

.source-sphere-scene .l3 {
  top: 31%;
  right: -2%;
}

.source-sphere-scene .l4 {
  bottom: 22%;
  left: 1%;
}

.source-sphere-scene .l5 {
  bottom: 20%;
  right: 2%;
}

.source-aura {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.aura-one {
  width: 82%;
  aspect-ratio: 1;
  box-shadow:
    0 0 34px rgba(255, 226, 152, 0.15),
    0 0 92px rgba(217, 164, 65, 0.13),
    0 0 160px rgba(217, 164, 65, 0.07);
  opacity: 0.55;
  animation: auraLoop 8s ease-in-out infinite;
}

.aura-two {
  width: 104%;
  aspect-ratio: 1;
  box-shadow:
    0 0 50px rgba(255, 226, 152, 0.08),
    0 0 140px rgba(217, 164, 65, 0.06),
    0 0 240px rgba(217, 164, 65, 0.035);
  opacity: 0.45;
  animation: auraLoop 11s ease-in-out infinite reverse;
}

.physics-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 221, 150, 0.16);
  box-shadow: 0 0 22px rgba(217, 164, 65, 0.06);
  opacity: 0.7;
  background: transparent;
}

.orbit-one {
  width: 86%;
  height: 28%;
  transform: rotate(18deg);
  animation: orbitDriftOne 18s linear infinite;
}

.orbit-two {
  width: 86%;
  height: 28%;
  transform: rotate(-18deg);
  animation: orbitDriftTwo 21s linear infinite;
}

.orbit-three {
  width: 62%;
  height: 62%;
  border-color: rgba(255, 221, 150, 0.12);
  animation: ringBreath 9s ease-in-out infinite;
}

.sacred-ring {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(231, 182, 83, 0.68);
  box-shadow:
    0 0 18px rgba(231, 182, 83, 0.24),
    inset 0 0 18px rgba(231, 182, 83, 0.14);
  animation: ringBreath 6.5s ease-in-out infinite;
}

.fractal-star {
  position: absolute;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fff4c8, #d9a441 56%, #805b1a);
  clip-path: polygon(
    50% 0%,
    61% 39%,
    100% 50%,
    61% 61%,
    50% 100%,
    39% 61%,
    0% 50%,
    39% 39%
  );
  filter:
    drop-shadow(0 0 10px rgba(255, 226, 152, 0.55))
    drop-shadow(0 0 28px rgba(217, 164, 65, 0.18));
  opacity: 0.76;
}

.star-large {
  width: 20%;
  animation: starLightLoop 5.8s ease-in-out infinite;
}

.star-medium {
  width: 10%;
  transform: translate(-92px, -68px) rotate(22deg);
  opacity: 0.42;
  animation: smallStarOrbit 13s ease-in-out infinite;
}

.star-small {
  width: 7%;
  transform: translate(118px, 82px) rotate(-18deg);
  opacity: 0.38;
  animation: smallStarOrbitTwo 15s ease-in-out infinite;
}

.source-core {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%,
      rgba(255, 249, 218, 0.68) 0%,
      rgba(255, 222, 140, 0.42) 24%,
      rgba(217, 164, 65, 0.22) 50%,
      rgba(217, 164, 65, 0.08) 72%,
      rgba(0, 0, 0, 0) 100%);
  filter:
    blur(4px)
    drop-shadow(0 0 22px rgba(255, 226, 152, 0.34))
    drop-shadow(0 0 72px rgba(217, 164, 65, 0.16));
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: coreLightDarkLoop 6s ease-in-out infinite;
}

.source-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 232, 170, 0.75);
  box-shadow: 0 0 10px rgba(255, 232, 170, 0.6);
  opacity: 0.35;
  animation: particleFloat 10s ease-in-out infinite alternate;
}

.p1 { top: 18%; left: 32%; animation-delay: 0s; }
.p2 { top: 24%; right: 26%; animation-delay: 1.1s; }
.p3 { bottom: 23%; left: 24%; animation-delay: 2.3s; }
.p4 { bottom: 28%; right: 21%; animation-delay: 3.4s; }
.p5 { top: 49%; left: 13%; animation-delay: 4.2s; }
.p6 { top: 55%; right: 12%; animation-delay: 5.3s; }

@keyframes coreLightDarkLoop {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.78;
  }
}

@keyframes auraLoop {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.72;
  }
}

@keyframes ringBreath {
  0%, 100% {
    transform: scale(0.985);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.035);
    opacity: 0.82;
  }
}

@keyframes starLightLoop {
  0%, 100% {
    transform: scale(0.92) rotate(0deg);
    opacity: 0.46;
  }
  50% {
    transform: scale(1.07) rotate(45deg);
    opacity: 0.92;
  }
}

@keyframes orbitDriftOne {
  from { transform: rotate(18deg); }
  to { transform: rotate(378deg); }
}

@keyframes orbitDriftTwo {
  from { transform: rotate(-18deg); }
  to { transform: rotate(-378deg); }
}

@keyframes smallStarOrbit {
  0%, 100% {
    transform: translate(-92px, -68px) rotate(22deg) scale(0.8);
    opacity: 0.24;
  }
  50% {
    transform: translate(-74px, -54px) rotate(74deg) scale(1);
    opacity: 0.54;
  }
}

@keyframes smallStarOrbitTwo {
  0%, 100% {
    transform: translate(118px, 82px) rotate(-18deg) scale(0.78);
    opacity: 0.2;
  }
  50% {
    transform: translate(96px, 65px) rotate(-82deg) scale(1);
    opacity: 0.5;
  }
}

@keyframes particleFloat {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.18;
  }
  to {
    transform: translate3d(10px, -14px, 0);
    opacity: 0.55;
  }
}

@keyframes sourceMinorTwinkle {
  0% { opacity: 0.045; }
  50% { opacity: 0.095; }
  100% { opacity: 0.065; }
}

@media (max-width: 980px) {
  .source-preview-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .source-feature-grid {
    grid-template-columns: 1fr;
  }

  .source-actions {
    justify-content: center;
  }

  .source-preview-art,
  .source-sphere-scene {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .source-sphere-scene .source-label {
    font-size: 10px;
    padding: 9px 11px;
  }

  .source-sphere-scene .l3 {
    right: 0;
  }

  .source-sphere-scene .l2 {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-preview-section::before,
  .source-aura,
  .physics-orbit,
  .sacred-ring,
  .fractal-star,
  .source-core,
  .source-particle {
    animation: none !important;
  }
}