/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #070913;
  --card-bg: rgba(13, 18, 33, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #8b5cf6;
  --glow-1: rgba(0, 242, 254, 0.15);
  --glow-2: rgba(139, 92, 246, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background glows */
.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: pulse 16s infinite alternate ease-in-out;
}

.glow-circle-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.glow-circle-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -8s;
}

@keyframes pulse {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(80px, 40px) scale(1.15);
    opacity: 0.6;
  }
  100% {
    transform: translate(-40px, -60px) scale(0.9);
    opacity: 0.4;
  }
}

/* Main Container */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 3rem 1.5rem;
}

/* Card glassmorphism */
.redirect-card {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Soundwave / Sintonia Visualizer Logo */
.logo-container {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  z-index: -1;
  opacity: 0.6;
  filter: blur(10px);
}

.soundwave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}

.soundwave-bar {
  width: 4px;
  background-color: var(--text-primary);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite alternate;
}

.soundwave-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.soundwave-bar:nth-child(3) { height: 95%; animation-delay: 0.3s; }
.soundwave-bar:nth-child(4) { height: 50%; animation-delay: 0.4s; }
.soundwave-bar:nth-child(5) { height: 80%; animation-delay: 0.5s; }
.soundwave-bar:nth-child(6) { height: 40%; animation-delay: 0.6s; }

@keyframes wave {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--accent-cyan), #ffffff, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typography */
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 50%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c084fc;
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
}

.alert-badge svg {
  flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030610;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: all 0.6s ease;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

/* Timer and Progress */
.timer-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.timer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timer-text span {
  font-weight: 600;
  color: var(--accent-cyan);
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  border-radius: 10px;
  transform-origin: left;
}

.timer-controls {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 12px;
}

.timer-controls:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
}

/* Footer styling */
footer {
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 10;
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* Toast Notification for Clipboard Copy */
.toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(13, 18, 33, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .redirect-card {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}
