/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --brand-orange: #F6A823;
  --brand-orange-dark: #A06600;
  --brand-orange-light: #fff9eb;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --card-bg: rgba(20, 20, 20, 0.6);
  --border-color: rgba(246, 168, 35, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  position: relative;
  line-height: 1.6;
}

/* ============================================
   BACKGROUND ANIMATIONS
   ============================================ */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#particleCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%,
      rgba(246, 168, 35, 0.08) 0%,
      rgba(10, 10, 10, 0.95) 60%,
      var(--bg-dark) 100%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

/* ============================================
   LOGO
   ============================================ */
.logo-container {
  text-align: center;
  margin-bottom: 1rem;
}

.logo {
  width: 160px;
  height: 160px;
}

/* ============================================
   MAIN CARD (GLASSMORPHISM)
   ============================================ */
.main-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 700px;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg at 50% 50%,
      rgba(246, 168, 35, 0) 0deg,
      rgba(246, 168, 35, 0.1) 60deg,
      rgba(246, 168, 35, 0) 120deg);
  animation: rotate-glow 10s linear infinite;
  pointer-events: none;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg,
      var(--text-primary) 0%,
      var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-word {
  display: inline-block;
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.title-word:nth-child(1) {
  animation-delay: 0.3s;
}

.title-word:nth-child(2) {
  animation-delay: 0.4s;
  margin-left: 0.5rem;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.highlight {
  color: var(--brand-orange);
  font-weight: 600;
  position: relative;
}



/* ============================================
   EMAIL SIGNUP
   ============================================ */
.signup-container {
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(246, 168, 35, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-input::placeholder {
  color: var(--text-secondary);
}

.email-input:focus {
  border-color: var(--brand-orange);
  background: rgba(246, 168, 35, 0.05);
  box-shadow: 0 0 0 3px rgba(246, 168, 35, 0.1);
}

.submit-btn {
  padding: 1rem 2rem;
  background: var(--brand-orange);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(246, 168, 35, 0.3);
  position: relative;
  overflow: hidden;
  animation: subtle-pulse 3s ease-in-out infinite;
  /* ✅ Added subtle pulse */
}

/* ✅ Subtle pulse animation to draw attention */
@keyframes subtle-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(246, 168, 35, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(246, 168, 35, 0.5);
  }
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(246, 168, 35, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  transition: transform 0.3s;
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

.signup-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.signup-message.success {
  color: #4ade80;
}

.signup-message.error {
  color: #ef4444;
}

/* ✅ Error Message for Email Validation */
.error-message {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #ef4444;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
  min-height: 1.5rem;
}

/* ✅ Success Container Styles */
.success-container {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 16px;
  animation: fade-in-scale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-container.show {
  display: block;
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  animation: check-draw 0.8s ease-out 0.2s backwards;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes check-draw {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ✅ Reset Button */
.reset-btn {
  background: transparent;
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

.reset-btn:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ade80;
  color: #4ade80;
  transform: translateY(-2px);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 168, 35, 0.15);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.feature-item:hover {
  background: rgba(246, 168, 35, 0.05);
  border-color: var(--brand-orange);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(246, 168, 35, 0.3));
  transition: filter 0.3s;
}

.feature-item:hover .feature-icon svg {
  filter: drop-shadow(0 4px 16px rgba(246, 168, 35, 0.6));
  transform: scale(1.1);
}

.feature-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.feature-item:hover .feature-text {
  color: var(--text-primary);
}



/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: 2rem;
  text-align: center;
}

/* ✅ Footer Social Links */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 168, 35, 0.2);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  background: rgba(246, 168, 35, 0.1);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-3px);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fade-in 1s ease-out backwards;
}

.fade-in-delay {
  animation: fade-in 1s ease-out 0.2s backwards;
}

.fade-in-delay-2 {
  animation: fade-in 1s ease-out 0.4s backwards;
}

.fade-in-delay-3 {
  animation: fade-in 1s ease-out 0.6s backwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
  background: var(--brand-orange);
  color: #000;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  .main-card {
    padding: 2rem 1.5rem;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-item {
    min-width: 60px;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .submit-btn {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .countdown {
    gap: 0.25rem;
  }

  .countdown-item {
    min-width: 50px;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }

  .countdown-separator {
    display: none;
  }
}