* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  height: 100%;
  background: linear-gradient(-45deg, #0a1628, #1a365d, #0f2044, #0a1628, #1a4d5f);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 120, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 200, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 120, 255, 0.05) 0%, transparent 60%);
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.baize-app {
  position: relative;
  max-width: 1000px;
  margin: 20px auto;
  padding: 40px 30px;
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(0, 150, 255, 0.3);
  border-radius: 20px;
  box-shadow:
    0 0 60px rgba(0, 100, 255, 0.15),
    0 0 30px rgba(0, 150, 255, 0.1),
    inset 0 0 60px rgba(0, 100, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeInUp 1s ease-out;
  z-index: 1;
}

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

.app-title {
  color: #00a8ff;
  text-align: center;
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow:
    0 0 20px rgba(0, 168, 255, 0.5),
    0 0 40px rgba(0, 168, 255, 0.3),
    0 0 60px rgba(0, 168, 255, 0.1);
  letter-spacing: 3px;
  animation: titleGlow 3s ease-in-out infinite;
  position: relative;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow:
      0 0 20px rgba(0, 168, 255, 0.5),
      0 0 40px rgba(0, 168, 255, 0.3),
      0 0 60px rgba(0, 168, 255, 0.1);
  }
  50% {
    text-shadow:
      0 0 30px rgba(0, 200, 255, 0.7),
      0 0 60px rgba(0, 200, 255, 0.5),
      0 0 90px rgba(0, 200, 255, 0.2);
  }
}

.app-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 168, 255, 0.8),
    rgba(0, 200, 255, 1),
    rgba(0, 168, 255, 0.8),
    transparent
  );
  animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
  0%,
  100% {
    width: 200px;
  }
  50% {
    width: 250px;
  }
}

.info-banner {
  background: linear-gradient(135deg, rgba(0, 150, 100, 0.2) 0%, rgba(0, 200, 150, 0.15) 100%);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-banner .icon {
  font-size: 1.5em;
}

.info-banner .text {
  color: #a0e0c0;
  font-size: 0.95em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.status-card {
  background: linear-gradient(135deg, rgba(0, 100, 200, 0.2) 0%, rgba(0, 150, 255, 0.15) 100%);
  border: 1px solid rgba(0, 150, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.status-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 150, 255, 0.3);
  border-color: rgba(0, 200, 255, 0.5);
}

.status-card .icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.status-card .label {
  color: #a0d0ff;
  font-size: 0.9em;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-card .value {
  color: #00d4ff;
  font-size: 1.5em;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.status-card .value.online {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-card .value.offline {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 5px #00ff88;
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 15px #00ff88;
  }
}

.feature-section {
  margin: 40px 0;
}

.section-title {
  color: #00a8ff;
  font-size: 1.5em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.3);
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-item {
  background: rgba(10, 30, 60, 0.6);
  border: 1px solid rgba(0, 150, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(0, 200, 255, 0.4);
  background: rgba(10, 40, 80, 0.7);
}

.feature-item h4 {
  color: #00d4ff;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.feature-item p {
  color: #a0c0e0;
  font-size: 0.9em;
  line-height: 1.6;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 5px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
  text-decoration: none;
  display: inline-block;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0077cc 0%, #00a8ff 100%);
  color: white;
  box-shadow:
    0 0 20px rgba(0, 168, 255, 0.4),
    0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 30px rgba(0, 168, 255, 0.6),
    0 6px 25px rgba(0, 168, 255, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
  color: #a0d0ff;
  box-shadow:
    0 0 15px rgba(0, 100, 200, 0.3),
    0 3px 10px rgba(0, 100, 200, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 25px rgba(0, 100, 200, 0.5),
    0 5px 20px rgba(0, 100, 200, 0.3);
  background: linear-gradient(135deg, #2a5a8c 0%, #3a7abc 100%);
}

.footer-info {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 150, 255, 0.2);
  color: #6090b0;
  font-size: 0.85em;
}

.footer-info a {
  color: #00a8ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@media (max-width: 768px) {
  .baize-app {
    padding: 30px 20px;
    margin: 10px;
  }

  .app-title {
    font-size: 2em;
  }

  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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