/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0b1a;
  color: #fafafa;
  overflow-x: hidden;
}

/* Color Variables */
:root {
  --primary: rgb(59, 130, 246);
  --primary-rgb: 59, 130, 246;
  --background: #0a0b1a;
  --foreground: #fafafa;
  --muted: #64748b;
}

/* Preloader Styles */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

.scan-complete-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-complete-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid var(--primary);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ring-1 {
  width: 128px;
  height: 128px;
}

.ring-2 {
  width: 192px;
  height: 192px;
  border-width: 2px;
  opacity: 0.5;
  animation-delay: 0.1s;
}

.ring-3 {
  width: 256px;
  height: 256px;
  border-width: 1px;
  opacity: 0.25;
  animation-delay: 0.2s;
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transition: all 0.5s ease;
}

.preloader-content.scale-out {
  transform: scale(1.1);
  opacity: 0;
}

.preloader-scan-area {
  position: relative;
  width: 256px;
  height: 256px;
}

.bio-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.bio-ring-2 {
  inset: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  animation-delay: 0.2s;
}

.bio-ring-3 {
  inset: 32px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  animation-delay: 0.4s;
}

.palm-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.4);
}

.glow-1 {
  filter: blur(40px);
  transform: scale(1.1);
}

.glow-2 {
  filter: blur(20px);
  transform: scale(1.05);
}

.palm-image {
  position: relative;
  z-index: 10;
  height: 160px;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

.preloader-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 1), 0 0 40px rgba(59, 130, 246, 0.6);
  animation: preloader-scan-enhanced 2s ease-in-out infinite;
}

.corner-bracket {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.holo-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(to right, rgba(59, 130, 246, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
}

.loading-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scan-status {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.loading-dots {
  display: flex;
  gap: 6px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Main Content Styles */
.main-content {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  animation: fade-in 0.8s ease-out;
}

.main-content.hidden {
  display: none;
}

.animated-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

.floating-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  animation: float-particle ease-in-out infinite;
}

.glow-effect {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.glow-left {
  left: 25%;
  top: 25%;
  background: rgba(59, 130, 246, 0.3);
  filter: blur(100px);
}

.glow-right {
  right: 25%;
  bottom: 25%;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(120px);
  animation-delay: 2s;
}

.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
}

.logo {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
}

.logo img {
  width: 100px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo img:hover {
  opacity: 1;
}

.content-wrapper {
  width: 100%;
  max-width: 56rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.scanning-section {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-rings {
  position: absolute;
  inset: 0;
}

.scan-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.scan-ring.ring-1 {
  inset: 0;
}

.scan-ring.ring-2 {
  inset: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.scan-ring.ring-3 {
  inset: 32px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.palm-scan-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.palm-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
}

.glow-layer-1 {
  background: rgba(59, 130, 246, 0.5);
  filter: blur(40px);
  transform: scale(1.25);
}

.glow-layer-2 {
  background: rgba(59, 130, 246, 0.4);
  filter: blur(20px);
  transform: scale(1.1);
}

.main-palm {
  position: relative;
  z-index: 10;
  height: 160px;
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.5));
}

.main-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 1), 0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3);
  animation: scan-line-enhanced 4s ease-in-out infinite;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(to right, rgb(59, 130, 246), rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto;
}

.launch-date {
  padding: 1rem 0;
}

.launch-date p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 48rem;
  margin: 0 auto;
}

.email-form {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

#notify-form {
  position: relative;
}

.form-glow {
  position: absolute;
  inset: -4px;
  border-radius: 0.5rem;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  opacity: 0.75;
  filter: blur(8px);
}

.form-container {
  position: relative;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

#email {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
}

#email::placeholder {
  color: var(--muted);
}

button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

button:hover {
  background: rgba(59, 130, 246, 0.9);
  transform: translateY(-1px);
}

.success-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.success-message.hidden {
  display: none;
}

.tagline {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tagline-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

.stay-tuned {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  color: var(--foreground);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Animations */
@keyframes grid-move {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes preloader-scan-enhanced {
  0% {
    top: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

@keyframes scan-line-enhanced {
  0% {
    top: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float-particle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    left: 1rem;
    top: 1rem;
  }

  .logo img {
    width: 80px;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle,
  .launch-date p {
    font-size: 1rem;
  }

  .scanning-section {
    width: 200px;
    height: 200px;
  }

  .main-palm,
  .palm-image {
    width: 90px;
    height: 90px;
  }


@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }

  /* LOGO */
  .logo {
    left: 1rem !important;
    top: 1rem !important;
  }

  .logo img {
    width: 85px !important;
    height: auto !important;
  }

  /* MAIN LAYOUT */
  .content-wrapper {
    gap: 2rem !important;
    padding: 0 1rem !important;
  }

  .hero-text {
    gap: 1rem !important;
    padding: 0 1rem !important;
  }

  /* TITLE */
  h1 {
    font-size: 2rem !important;
    line-height: 2.4rem !important;
    text-align: center !important;
  }

  /* SUBTITLE */
  .subtitle {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    padding: 0 1.5rem !important;
    text-align: center !important;
  }

  /* DATE */
  .launch-date p {
    font-size: 1rem !important;
    padding: 0 1rem !important;
    text-align: center !important;
  }

  /* PALM SCAN SECTION */
  .scanning-section {
    width: 180px !important;
    height: 180px !important;
    margin-bottom: 2rem !important;
  }

  .main-palm,
  .palm-image {
    height: 110px !important;
    width: auto !important;
  }

  /* RINGS SCALE */
  .scan-ring.ring-1 {
    inset: 0 !important;
  }
  .scan-ring.ring-2 {
    inset: 12px !important;
  }
  .scan-ring.ring-3 {
    inset: 24px !important;
  }

  /* SCAN LINE */
  .main-scan-line {
    height: 6px !important;
  }

  /* EMAIL FORM */
  .email-form {
    width: 100% !important;
    padding: 0 1rem !important;
  }

  .form-container {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  #email {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
  }

  button {
    width: 100% !important;
    padding: 0.9rem !important;
    font-size: 1rem !important;
  }

  /* SOCIAL ICONS */
  .social-icons {
    gap: 1rem !important;
    padding-top: 1rem !important;
  }

  .social-icons a {
    width: 40px !important;
    height: 40px !important;
  }

  .social-icons a img,
  .social-icons img {
    width: 22px !important;
    height: 22px !important;
  }
}


@media (max-width: 480px) {

  .logo img {
    width: 70px !important;
  }

  h1 {
    font-size: 1.6rem !important;
    line-height: 2rem !important;
  }

  .subtitle {
    font-size: 0.9rem !important;
  }

  .scanning-section {
    width: 160px !important;
    height: 160px !important;
  }

  .main-palm,
  .palm-image {
    height: 95px !important;
  }

  .social-icons {
    gap: 0.8rem !important;
  }

  .social-icons a {
    width: 34px !important;
    height: 34px !important;
  }

  .social-icons img {
    width: 20px !important;
    height: 20px !important;
  }
}
