:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #a8b5ad;
  --green: #5dff91;
  --green-deep: #0b2f20;
  --orange: #ff8a46;
  --surface: rgba(12, 31, 23, 0.72);
  --line: rgba(219, 255, 231, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  background: #071912;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding-bottom: 112px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 70% 46%, rgba(36, 123, 75, 0.24), transparent 29rem),
    linear-gradient(135deg, #06140f 0%, #0a2118 55%, #071912 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}

.ambient-one {
  width: 28rem;
  height: 28rem;
  top: -14rem;
  left: -8rem;
  background: rgba(34, 166, 91, 0.14);
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  right: -11rem;
  bottom: -8rem;
  background: rgba(255, 117, 50, 0.09);
}

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(93, 255, 145, 0.35);
  border-radius: 50%;
  background: rgba(93, 255, 145, 0.08);
}

.brand-mark span {
  width: 3px;
  border-radius: 8px;
  background: var(--green);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(4) {
  height: 11px;
}

.brand-mark span:nth-child(2) {
  height: 22px;
}

.brand-mark span:nth-child(3) {
  height: 16px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.13em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.48em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d5ddd8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 138, 70, 0.1);
  animation: pulse 1.8s infinite;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 184px);
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 72px;
  row-gap: 38px;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 7.8rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

h1 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro {
  max-width: 560px;
  margin: 35px 0 38px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.player-card {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: calc(14px + var(--viewport-bottom-offset, 0px));
  left: 16px;
  width: auto;
  max-width: 860px;
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 26, 18, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(18px);
  backface-visibility: hidden;
  contain: layout paint;
  transform: translateZ(0);
  will-change: bottom;
}

.player-status {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
}

.station-art {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(93, 255, 145, 0.2), rgba(93, 255, 145, 0.03)),
    #113a28;
}

.mini-wave,
.large-wave {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-wave {
  height: 25px;
  gap: 3px;
}

.mini-wave i {
  width: 3px;
  height: 10px;
  border-radius: 9px;
  background: var(--green);
}

.mini-wave i:nth-child(2),
.mini-wave i:nth-child(4) {
  height: 21px;
}

.mini-wave i:nth-child(3) {
  height: 15px;
}

.player-status span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-status strong {
  font-size: 17px;
}

.player-controls {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.play-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #062013;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(93, 255, 145, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.play-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 13px 34px rgba(93, 255, 145, 0.3);
}

.play-button:focus-visible,
.volume-control input:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.play-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.play-button .pause-icon {
  display: none;
}

.play-button.is-playing .play-icon {
  display: none;
}

.play-button.is-playing .pause-icon {
  display: block;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
}

.volume-control svg {
  width: 20px;
  fill: #b7c2bb;
}

.volume-control input {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 9px;
  background: linear-gradient(
    to right,
    var(--green) 0%,
    var(--green) 70%,
    rgba(255, 255, 255, 0.12) 70%,
    rgba(255, 255, 255, 0.12) 100%
  );
  cursor: pointer;
}

.volume-control input::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  appearance: none;
  border: 3px solid #0c2419;
  border-radius: 50%;
  background: var(--green);
}

.volume-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid #0c2419;
  border-radius: 50%;
  background: var(--green);
}

.player-message {
  min-width: 140px;
  margin: 0;
  color: #82948a;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.signal-stage {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: min(38vw, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
}

.signal-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 255, 145, 0.13), transparent 68%);
  filter: blur(15px);
  animation: signal-glow 3.4s ease-in-out infinite;
}

.signal-stage::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: rgba(93, 255, 145, 0.14);
  filter: blur(42px);
  animation: core-aura 2.8s ease-in-out infinite alternate;
}

.signal-core {
  position: relative;
  z-index: 3;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 255, 145, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(113, 255, 160, 0.26), transparent 28%),
    linear-gradient(145deg, #164e34, #092519);
  box-shadow:
    inset 0 0 45px rgba(93, 255, 145, 0.08),
    0 0 90px rgba(20, 105, 61, 0.2);
  animation: core-float 4.8s ease-in-out infinite;
}

.large-wave {
  height: 78px;
  gap: 7px;
}

.large-wave i {
  width: 6px;
  height: 31px;
  border-radius: 20px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(93, 255, 145, 0.28);
  transform-origin: center;
  animation: equalize 0.9s ease-in-out infinite alternate;
}

.large-wave i:nth-child(2),
.large-wave i:nth-child(6) {
  height: 51px;
  animation-delay: -0.25s;
}

.large-wave i:nth-child(3),
.large-wave i:nth-child(5) {
  height: 68px;
  animation-delay: -0.55s;
}

.large-wave i:nth-child(4) {
  height: 43px;
  animation-delay: -0.72s;
}

.signal-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(134, 229, 165, 0.14);
  border-radius: 50%;
}

.signal-orbit::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 12%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 138, 70, 0.65);
}

.orbit-one {
  inset: 19%;
  border-color: rgba(93, 255, 145, 0.24);
  animation: rotate 9s linear infinite;
}

.orbit-two {
  inset: 8%;
  border-style: dashed;
  animation: rotate 17s linear infinite reverse;
}

.orbit-two::after {
  background: var(--green);
}

.orbit-three {
  inset: 0;
  opacity: 0.55;
  animation: rotate 26s linear infinite;
}

.signal-ripple {
  position: absolute;
  z-index: 1;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(93, 255, 145, 0.34);
  border-radius: 50%;
  opacity: 0;
  animation: radio-ripple 4.5s ease-out infinite;
}

.ripple-two {
  animation-delay: 1.5s;
}

.ripple-three {
  animation-delay: 3s;
}

.orbit-particle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 8px var(--green),
    0 0 22px rgba(93, 255, 145, 0.5);
  pointer-events: none;
}

.particle-one {
  animation: particle-orbit-one 7s linear infinite;
}

.particle-two {
  width: 5px;
  height: 5px;
  margin: -2.5px;
  background: var(--orange);
  box-shadow:
    0 0 8px var(--orange),
    0 0 20px rgba(255, 138, 70, 0.55);
  animation: particle-orbit-two 11s linear infinite reverse;
}

.particle-three {
  width: 4px;
  height: 4px;
  margin: -2px;
  opacity: 0.75;
  animation: particle-orbit-three 18s linear infinite;
}

.signal-stage p {
  position: absolute;
  bottom: 9%;
  margin: 0;
  color: rgba(221, 242, 228, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 23px 0 27px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #71837a;
  font-size: 12px;
}

footer a {
  color: #91a49a;
  text-decoration: none;
}

footer a:hover {
  color: var(--green);
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 0 8px rgba(255, 138, 70, 0.04);
  }
}

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

@keyframes equalize {
  to {
    transform: scaleY(0.3);
    opacity: 0.52;
  }
}

@keyframes signal-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes core-aura {
  to {
    opacity: 0.45;
    transform: scale(1.35);
  }
}

@keyframes core-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.025);
  }
}

@keyframes radio-ripple {
  0% {
    opacity: 0.65;
    transform: scale(0.96);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(2.28);
  }
}

@keyframes particle-orbit-one {
  from {
    transform: rotate(0deg) translateX(clamp(92px, 12vw, 151px)) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(clamp(92px, 12vw, 151px))
      rotate(-360deg);
  }
}

@keyframes particle-orbit-two {
  from {
    transform: rotate(40deg) translateX(clamp(130px, 18vw, 210px))
      rotate(-40deg);
  }

  to {
    transform: rotate(400deg) translateX(clamp(130px, 18vw, 210px))
      rotate(-400deg);
  }
}

@keyframes particle-orbit-three {
  from {
    transform: rotate(180deg) translateX(clamp(155px, 22vw, 245px))
      rotate(-180deg);
  }

  to {
    transform: rotate(540deg) translateX(clamp(155px, 22vw, 245px))
      rotate(-540deg);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 28px;
    padding-top: 50px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .player-card {
    right: 14px;
    left: 14px;
    width: auto;
  }

  .player-status,
  .player-controls {
    text-align: left;
  }

  .signal-stage {
    grid-column: 1;
    width: min(76vw, 430px);
    grid-row: 1;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    min-height: auto;
    padding: 34px 0 46px;
    grid-template-rows: auto auto;
    row-gap: 30px;
  }

  .hero-copy {
    align-self: center;
  }

  .intro {
    margin-top: 24px;
    margin-bottom: 0;
  }

  .signal-stage {
    grid-row: 1;
    width: min(34vw, 410px);
  }

  .player-card {
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 98px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 21px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .live-pill {
    padding: 8px 10px;
    font-size: 9px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5.3rem);
  }

  .intro {
    margin-top: 26px;
    font-size: 0.98rem;
  }

  .player-card {
    right: 8px;
    bottom: calc(
      max(8px, env(safe-area-inset-bottom)) +
        var(--viewport-bottom-offset, 0px)
    );
    left: 8px;
    width: auto;
    min-height: 70px;
    padding: 9px 10px;
    gap: 11px;
    border-radius: 16px;
  }

  .player-message {
    display: block;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 11px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-status {
    display: none;
  }

  .player-controls {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 10px;
  }

  .play-button {
    width: 45px;
    height: 45px;
  }

  .volume-control {
    max-width: 92px;
    gap: 7px;
  }

  .volume-control svg {
    width: 17px;
  }

  .signal-stage {
    width: min(90vw, 365px);
  }

  footer {
    gap: 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .player-card {
    gap: 8px;
  }

  .volume-control {
    max-width: 68px;
  }

  .player-message {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
