:root {
  --hue: 176;
  --bg: #040d14;
  --bg-2: #081e2a;
  --bg-3: #0a1d2f;
  --panel: rgba(10, 29, 36, 0.8);
  --panel-strong: #0d2430;
  --primary: #33FFF3;
  --primary-2: #80FFF9;
  --primary-3: #0FE7D7;
  --primary-4: #35B7FF;
  --text: #ebfffe;
  --muted: #a7d9d8;
  --line: rgba(51, 255, 243, 0.22);
  --glow: 0 0 22px rgba(51, 255, 243, 0.42);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

body {
  background:
    radial-gradient(circle at 15% 20%, rgba(51, 255, 243, 0.14), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(53, 183, 255, 0.10), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(51, 255, 243, 0.07), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(51,255,243,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,255,243,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: -20% -15% auto auto;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,255,243,0.22), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
  z-index: -1;
}

.magic-bg {
  background: radial-gradient(circle at 20% 35%, rgba(51,255,243,0.18), transparent 18%),
              radial-gradient(circle at 80% 25%, rgba(53,183,255,0.10), transparent 20%);
}

.site-header {
  background: rgba(5, 18, 23, 0.62);
  border-bottom: 1px solid rgba(51,255,243,0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.brand,
.site-header nav a,
.button,
.social-card,
.project-card,
.donate-card,
.status-strip,
.music-player,
.profile-panel,
.bot-live,
.bot-log-menu,
.log-entry {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.brand {
  color: var(--primary-2);
  text-shadow: 0 0 18px rgba(51,255,243,0.3);
}

.site-header nav a {
  color: var(--text);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--primary-2);
  text-shadow: 0 0 16px rgba(51,255,243,0.85);
}

.site-header nav a::after {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.eyebrow,
.section-heading .eyebrow,
.card-kicker,
.log-menu-head .eyebrow {
  color: var(--primary-2);
  letter-spacing: 0.22em;
}

.eyebrow::before,
.eyebrow::after,
.section-heading .eyebrow::before,
.section-heading .eyebrow::after {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.button {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 600;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 0.55s ease;
}

.button:hover::before {
  transform: translateX(140%);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: #02161b;
  box-shadow: 0 0 22px rgba(51,255,243,0.44), 0 10px 30px rgba(15, 231, 215, 0.28);
  border: 1px solid rgba(255,255,255,0.34);
}

.button-primary:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 0 26px rgba(51,255,243,0.6), 0 16px 38px rgba(15, 231, 215, 0.36);
}

.button-ghost {
  background: rgba(12, 33, 38, 0.7);
  border: 1px solid rgba(51,255,243,0.28);
  color: var(--text);
}

.button-ghost:hover {
  background: rgba(12, 33, 38, 0.92);
  border-color: rgba(51,255,243,0.65);
  box-shadow: 0 0 18px rgba(51,255,243,0.18);
}

.status-strip,
.status-badge,
.bot-live,
.bot-log-menu,
.log-entry,
.profile-panel,
.music-player,
.social-card,
.project-card,
.donate-card {
  background: rgba(9, 24, 30, 0.76);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 30px rgba(0,0,0,0.18);
}

.social-card:hover,
.project-card:hover,
.donate-card:hover,
.music-player:hover,
.profile-panel:hover,
.bot-live:hover,
.bot-log-menu:hover,
.log-entry:hover {
  transform: translateY(-7px);
  border-color: rgba(51,255,243,0.61);
  box-shadow: 0 0 26px rgba(51,255,243,0.18), 0 16px 42px rgba(6, 22, 29, 0.48);
}

.social-card::after,
.project-card::after,
.donate-card::after {
  background: radial-gradient(circle, rgba(51,255,243,0.18), transparent 60%);
}

.social-icon,
.donate-icon,
.bot-live-orb,
.log-badge {
  box-shadow: 0 0 18px rgba(51,255,243,0.2);
}

.status-pill {
  color: #041d1e;
}

.status-pill {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 16px rgba(51,255,243,0.38);
}

.hero h1,
.hero h2,
.hero h3,
.about-copy h2,
.section-heading h2,
.closing h2 {
  text-shadow: 0 0 18px rgba(51,255,243,0.22);
}

.hero h1 span,
.accent {
  color: var(--primary-2);
}

.hero { position: relative; }

.hero::before {
  content: "";
  position: absolute;
  inset: 6% auto auto 33%;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, rgba(51,255,243,0.22), transparent 60%);
  filter: blur(20px);
  animation: floatOrb 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 8% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,183,255,0.18), transparent 60%);
  filter: blur(20px);
  animation: floatOrb 16s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

.hero-subtitle,
.hero-copy,
.about-copy p,
.project-info p,
.bot-tagline,
.social-card p,
.donate-card,
.log-desc,
.bot-live-sub,
.status-summary,
.web-update-list li,
.music-status {
  color: var(--muted);
}

.status-badge {
  background: rgba(51,255,243,0.12);
  border-color: rgba(51,255,243,0.32);
  color: var(--primary-2);
  box-shadow: 0 0 16px rgba(51,255,243,0.18);
}

.status-badge::before {
  background: var(--primary-2);
  box-shadow: 0 0 10px rgba(51,255,243,0.8), 0 0 18px rgba(51,255,243,0.5);
}

.bot-live[data-state="online"] {
  --live: #55ffe1;
  --live-rgb: 85, 255, 225;
}

.bot-live[data-state="offline"] {
  --live: #ff7ba8;
  --live-rgb: 255, 123, 168;
}

.bot-live[data-state="unknown"] {
  --live: #d7ebff;
  --live-rgb: 215, 235, 255;
}

.bot-live-orb {
  background: rgba(var(--live-rgb), 0.12);
  border-color: rgba(var(--live-rgb), 0.55);
}

.bot-live-icon {
  color: var(--live);
}

.log-entry::before {
  background: linear-gradient(90deg, transparent, rgba(51,255,243,0.18), transparent);
}

.log-badge {
  background: rgba(51,255,243,0.14);
  border-color: rgba(51,255,243,0.4);
  color: var(--primary-2);
}

.music-track-button {
  background: rgba(11, 30, 36, 0.76);
  border-color: rgba(51,255,243,0.18);
  color: var(--text);
}

.music-track-button:hover,
.music-track-button[aria-current="true"] {
  background: rgba(51,255,243,0.09);
  border-color: rgba(51,255,243,0.52);
  box-shadow: 0 0 18px rgba(51,255,243,0.12);
}

.music-track-button::before {
  border-color: rgba(51,255,243,0.28);
  color: var(--primary-2);
}

.music-track-button.is-playing::before {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border-color: rgba(255,255,255,0.64);
  color: #031b22;
}

.floating-player {
  background: rgba(8, 24, 30, 0.84);
  border-color: rgba(51,255,243,0.32);
  box-shadow: 0 0 24px rgba(51,255,243,0.18);
}

.floating-player .floating-play {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: #02161b;
}

.floating-player button:hover:not(:disabled) {
  box-shadow: 0 0 18px rgba(51,255,243,0.4);
}

.back-to-top {
  background: rgba(9, 24, 30, 0.85);
  border-color: rgba(51,255,243,0.4);
  box-shadow: 0 0 20px rgba(51,255,243,0.16);
}

.back-to-top:hover {
  border-color: rgba(51,255,243,0.7);
  box-shadow: 0 0 26px rgba(51,255,243,0.32);
}

.scroll-progress {
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary-4));
  box-shadow: 0 0 14px rgba(51,255,243,0.8);
}

.motion-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.motion-enabled .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(18px, -18px, 0) scale(1.1); }
}

@keyframes statusGlow {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(51,255,243,0.22); }
  50% { box-shadow: 0 0 24px rgba(51,255,243,0.8); }
}

.hero-orb,
.status-badge::after,
.bot-live-orb::after {
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(90deg, var(--text), var(--primary-2), var(--text));
}

@media (hover: hover) and (pointer: fine) {
  .social-card:hover,
  .project-card:hover,
  .donate-card:hover,
  .music-player:hover,
  .profile-panel:hover,
  .bot-live:hover {
    transform: translateY(-8px) scale(1.01);
  }
}

@media (max-width: 640px) {
  .site-header {
    background: rgba(5, 18, 23, 0.8);
  }

  .button,
  .button-primary,
  .button-ghost {
    width: 100%;
    justify-content: center;
  }
}

.bot-live {
  --live: #33fff3;
  --live-rgb: 51, 255, 243;
}
