@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050b17;
  color: #e7f6ff;
  font-family: 'Exo 2', sans-serif;
  min-height: 100vh;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 75% 15%, #8eeaff, transparent),
    radial-gradient(1px 1px at 65% 75%, #fff, transparent),
    radial-gradient(1px 1px at 35% 85%, #8eeaff, transparent);
  background-size: 180px 220px;
  opacity: .45;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  padding: 22px 20px 45px;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: #80eaff;
  border-bottom: 1px solid #254057;
  padding-bottom: 18px;
}

.signal {
  color: #7ef7ba;
}

.screen {
  display: none;
  animation: appear .6s ease;
}

.screen.active {
  display: block;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orb-wrap {
  height: 280px;
  display: grid;
  place-items: center;
  position: relative;
}

.orb-wrap.small {
  height: 220px;
}

.orb {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #d5ffff 0%,
    #4ad8ff 15%,
    #1166b7 45%,
    #071b44 75%,
    #020915 100%
  );
  box-shadow:
    0 0 30px #159fff88,
    0 0 80px #168fff55,
    inset -20px -20px 35px #0009;
  animation: pulse 4s ease-in-out infinite;
}

.orbit {
  position: absolute;
  width: 240px;
  height: 90px;
  border: 1px solid #74eaff99;
  border-radius: 50%;
  transform: rotate(-30deg);
  box-shadow: 0 0 15px #32cfff44;
  animation: orbitMove 8s linear infinite;
}

.orb-center {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #efffff;
  border-radius: 50%;
  box-shadow: 0 0 20px #fff;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.07);
    filter: brightness(1.3);
  }
}

@keyframes orbitMove {
  0%, 100% { transform: rotate(-30deg); }
  50% { transform: rotate(150deg); }
}

.code {
  color: #65e3ff;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 20px;
}

h1 {
  font-size: clamp(36px, 10vw, 49px);
  line-height: 1.08;
  letter-spacing: 2px;
  margin: 15px 0 25px;
  text-shadow: 0 0 25px #2bbfff66;
}

h2 {
  font-size: 32px;
  letter-spacing: 2px;
  margin: 22px 0;
}

h3 {
  font-size: 25px;
  margin: 10px 0;
}

p {
  line-height: 1.65;
}

.terminal {
  background: linear-gradient(145deg, #102239, #091424);
  border: 1px solid #294b67;
  border-radius: 14px;
  padding: 22px;
  margin: 25px 0;
  box-shadow: inset 0 0 35px #071321;
}

.terminal p {
  font-size: 14px;
}

.cyan {
  color: #6ceaff;
  font-weight: 700;
  letter-spacing: 1px;
}

.muted {
  color: #8299ac;
  font-size: 12px !important;
}

button {
  width: 100%;
  min-height: 54px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid #73e9ff;
  border-radius: 9px;
  background: linear-gradient(90deg, #0674aa, #13bbd6);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 25px #12a9df44;
}

button:active {
  transform: scale(.98);
}

button.secondary {
  background: transparent;
  color: #8eddf3;
  box-shadow: none;
}

label {
  display: block;
  color: #b9d9e8;
  font-size: 13px;
  margin: 18px 0 10px;
}

.number {
  font-size: 35px;
  font-weight: 800;
  color: #70eaff;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  accent-color: #49d9f6;
  margin: 18px 0;
}

textarea, select {
  width: 100%;
  background: #071525;
  border: 1px solid #36546a;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.crystal {
  text-align: center;
  font-size: 145px;
  color: #9cefff;
  text-shadow: 0 0 40px #29caff;
  animation: pulse 3s infinite;
  margin: 30px 0;
}

.record {
  background: #101f33;
  border: 1px solid #294b67;
  border-radius: 12px;
  padding: 18px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}

.record p {
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}