:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --ethereal-dark: #0b0b15;
  --ethereal-indigo: #15152a;
  --accent-purple: #7c3aed;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --font-display: "Montserrat", sans-serif;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-display);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-color: #000000;
  background-attachment: scroll;
}

/* Animations */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes glow-breath {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }

  100% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes shine {
  from {
    left: -100%;
  }

  to {
    left: 200%;
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Layout */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-content {
  flex: 1 0 auto;
  display: flex;
  align-items: stretch;
  /* Stretch content-wrapper vertically */
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.content-wrapper {
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

/* Background Effects Container */
.bg-effects-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 9999px;
  mix-blend-mode: screen;
}

.blob-blue {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.1);
  filter: blur(100px);
  animation: pulse-slow 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.blob-indigo {
  top: 30%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: rgba(79, 70, 229, 0.1);
  filter: blur(80px);
}

.blob-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: rgba(59, 130, 246, 0.05);
  filter: blur(80px);
}

/* Glass Panel & Logo */
.logo-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-glow-bg {
  position: absolute;
  inset: -40px;

  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.35),
    rgba(59, 130, 246, 0.05) 60%,
    transparent 80%
  );

  filter: blur(60px);
  border-radius: 9999px;

  animation: glow-breath 4s ease-in-out infinite alternate;
}

.glass-panel {
  position: relative;
  width: 8rem;
  height: 8rem;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: float 5s ease-in-out infinite;

  overflow: hidden;
}

@keyframes liquidMove {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(180deg) translateY(-10px);
  }
  100% {
    transform: rotate(360deg) translateY(0);
  }
}

@media (min-width: 768px) {
  .glass-panel {
    width: 10rem;
    height: 10rem;
  }
}

.glass-inner {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.glass-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  pointer-events: none;
}

/* Typography */
.text-section {
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(
    to bottom,
    #ffffff,
    #ffffff,
    rgba(255, 255, 255, 0.7)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04))
    drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  margin: 0 0 0.5rem 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.025em;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Troubleshooting Box */
.troubleshoot-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  margin-top: auto;
  /* Pushes the box and following elements to the bottom */
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  max-width: 24rem;
  width: 100%;
}

.info-icon {
  font-size: 1.25rem;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #e2e8f0;
  margin: 0;
  font-weight: 500;
}

/* Button */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  width: 100%;
  margin: 0 auto;
}

.cta-link {
  display: block;
  width: 100%;
  position: relative;
  text-decoration: none;
}

.cta-glow {
  position: absolute;
  inset: -0.125rem;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  border-radius: 1rem;
  filter: blur(8px);
  opacity: 0.3;
  transition:
    opacity 0.5s,
    filter 0.5s;
}

.cta-link:hover .cta-glow {
  opacity: 0.6;
  filter: blur(12px);
}

.cta-button {
  position: relative;
  width: 100%;
  color: white;
  font-weight: 700;
  padding: 1.125rem 1.5rem;
  border-radius: 1.125rem;
  transition:
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-btn {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-link:hover .primary-btn {
  background: linear-gradient(to right, #1d4ed8, #2563eb);
  transform: scale(1.02);
}

.cta-link:hover .secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.02);
}

.shinny-effect {
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 50%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2));
  opacity: 0.4;
  transform: skewX(-12deg);
  z-index: 5;
}

.cta-link:hover .shinny-effect {
  animation: shine 1.5s ease-in-out;
}

.btn-icon {
  font-size: 1.25rem;
  position: relative;
  z-index: 10;
}

.btn-text {
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 10;
}

/* Badges */
.feature-badges {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  height: 1.75rem;
  box-sizing: border-box;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #cbd5e1;
  white-space: nowrap;
}

.ping-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  width: 16px;
}

.ping-animate {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #34d399;
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-static {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 0.5rem;
  width: 0.5rem;
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.badge-icon {
  font-size: 16px;
  color: #94a3b8;
}

/* Footer */
.app-footer {
  width: 100%;
  padding: 1.5rem;
  /* More bottom padding for mobile safe areas */
  text-align: center;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  font-weight: 600;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.copyright {
  color: #475569;
  transition: color 0.15s;
  cursor: default;
}

.copyright:hover {
  color: #94a3b8;
}
