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

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --accent: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.5);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(10, 15, 30, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: #070a13;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Background Slider */
#bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background-color: #070a13;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transform: scale(1.02);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  opacity: 1;
  z-index: 2;
  animation: kenBurns 25s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-1%, -0.5%);
  }
}

/* Background Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(7, 10, 19, 0.4) 0%, rgba(4, 6, 12, 0.88) 100%);
}

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

/* Main Layout */
main {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem 6.5rem 1.5rem; /* Space at bottom for controls */
  position: relative;
  z-index: 5;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 28px;
  padding: 4rem 3.5rem;
  max-width: 640px;
  width: 100%;
  text-align: center;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08), 
              inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

/* Brand styling */
.brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  display: inline-block;
}

/* Main Heading */
h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 70%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

p.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.8rem;
  font-weight: 300;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Countdown Timer */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.4rem 0.5rem;
  backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.countdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.countdown-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

/* Subscription Form Area */
.subscription-container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.subscription-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subscription-title svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  color: var(--secondary);
}

.form-group {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.form-group input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.form-group button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.form-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  filter: brightness(1.15);
}

.form-group button:active {
  transform: translateY(0);
}

.form-group button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.form-group button:hover svg {
  transform: translateX(3px);
}

/* Success Message Overlay */
.success-message {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  border: 1px solid var(--secondary);
  padding: 1.5rem;
}

.success-message.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.15);
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.success-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.success-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@keyframes scaleIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Social links */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.8rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Slider Controls on bottom of the page */
.slider-controls {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(10, 15, 30, 0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-controls:hover {
  background: rgba(10, 15, 30, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.control-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.control-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn.active {
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.12);
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Tooltip for control buttons */
.control-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.control-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.progress-container {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.image-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 600;
  min-width: 38px;
  text-align: center;
  letter-spacing: 0.05em;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  main {
    padding: 1.5rem 1rem 7rem 1rem;
  }
  
  .glass-card {
    padding: 3rem 1.8rem;
    border-radius: 22px;
  }
  
  h1 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
  }
  
  p.subtitle {
    font-size: 0.95rem;
    margin-bottom: 2.2rem;
  }
  
  .countdown {
    gap: 0.5rem;
    margin-bottom: 2.2rem;
  }
  
  .countdown-item {
    padding: 1rem 0.2rem;
    border-radius: 12px;
  }
  
  .countdown-number {
    font-size: 1.6rem;
  }
  
  .countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }
  
  .form-group {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .form-group button {
    justify-content: center;
    padding: 0.9rem 1.2rem;
  }
}
