/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: #0B1220;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: #2563EB;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
}

/* ===== Background Effects ===== */
.grid-pattern {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-gradient {
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  animation: gradientPulse 8s ease-in-out infinite;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 20s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.3);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(6, 182, 212, 0.25);
  top: 50%;
  right: -5%;
  animation-delay: -7s;
}

.gradient-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(37, 99, 235, 0.2);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}

.gradient-light {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: moveLight 15s ease-in-out infinite;
}

.gradient-light-1 {
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  top: 20%;
  right: 20%;
}

.gradient-light-2 {
  background: linear-gradient(225deg, #06B6D4, #2563EB);
  bottom: 30%;
  left: 10%;
  animation-delay: -8s;
}

@keyframes gradientPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

@keyframes moveLight {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, -30px); }
  66% { transform: translate(-40px, 40px); }
}

/* ===== Typography ===== */
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #2563EB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-title {
  letter-spacing: -0.02em;
}

/* ===== Fade-in Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.25s; }
.fade-in-delay-3 { animation-delay: 0.4s; }
.fade-in-delay-4 { animation-delay: 0.55s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Countdown ===== */
.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow:
    0 0 20px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.countdown-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.countdown-value.tick {
  animation: countdownTick 0.4s ease;
}

@keyframes countdownTick {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.countdown-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

@media (min-width: 640px) {
  .countdown-value {
    font-size: 2.75rem;
  }
}

/* ===== Subscribe Form ===== */
.subscribe-input {
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.subscribe-input::placeholder {
  color: #64748b;
}

.subscribe-input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.subscribe-btn {
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #3b82f6 0%, #2563EB 100%);
}

.subscribe-btn:active {
  transform: translateY(0);
}

.subscribe-btn:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
}

.form-message {
  min-height: 1.25rem;
  color: #06B6D4;
  transition: opacity 0.3s;
}

.form-message.error {
  color: #f87171;
}

.form-message.success {
  color: #06B6D4;
}

/* ===== Feature Cards ===== */
.feature-card {
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow:
    0 12px 40px rgba(37, 99, 235, 0.15),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  padding: 0.625rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: 0.75rem;
  color: #06B6D4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.feature-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* ===== CTA Panel ===== */
.glass-panel {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: transparent;
  border: 1px solid rgba(37, 99, 235, 0.5);
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563EB;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

.cta-btn:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
}

/* ===== Social Links ===== */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.social-link:hover {
  color: white;
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.social-link:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
}

/* ===== Footer ===== */
.footer-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #06B6D4;
}

.footer-link:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Logo ===== */
.logo-link {
  text-decoration: none;
  color: white;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .reveal {
    opacity: 1;
    transform: none;
  }

  #particles-canvas {
    display: none;
  }
}
