:root {
  --primary-color: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.4);
  --text-main: #111827;
  --text-muted: #6b7280;
  --bg-gradient-start: #f3f4f6;
  --bg-gradient-end: #e5e7eb;
  --card-bg: rgba(255, 255, 255, 0.9);
  --success-color: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
}

/* Background blob decoration */
body::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(99, 102, 241, 0) 70%
  );
  top: -10%;
  left: -10%;
  z-index: -1;
  border-radius: 50%;
}

body::after {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(16, 185, 129, 0) 70%
  );
  bottom: -10%;
  right: -10%;
  z-index: -1;
  border-radius: 50%;
}

.container {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  transform-style: preserve-3d;
  will-change: transform;
  max-width: 480px;
  width: 100%;
  text-align: center;
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -6px rgba(0, 0, 0, 0.01),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.logo {
  display: block;
  max-width: 250px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.hero-img {
  width: 100%;
  max-width: 280px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
  animation: float 6s ease-in-out infinite;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

p strong {
  color: var(--primary-color);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: default;
}

.badge:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* JS Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .hero-img {
    animation: none;
  }
  .container {
    animation: none;
    transition: none;
  }
  .container:hover {
    transform: none;
  }
  .container:hover {
    transform: none;
  }
}

/* Compact Mobile Layout to prevent scroll */
@media (max-height: 800px) {
  .hero-img {
    max-width: 200px;
    margin-bottom: 1rem;
  }
  
  .container {
    padding: 1.5rem;
  }
  
  p {
    margin-bottom: 1.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
}

/* Very small screens & Animation Boost */
@media (max-width: 420px) {
  body {
    padding: 0.5rem;
  }
  .container {
    padding: 1.25rem;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1), sway 8s ease-in-out infinite alternate;
  }
  h1 {
    font-size: 1.5rem;
  }
  p {
    font-size: 1rem;
  }
}

@keyframes sway {
  0% { transform: rotateX(2deg) rotateY(-2deg); }
  100% { transform: rotateX(-2deg) rotateY(2deg); }
}
