/* ===================== KEYFRAMES ===================== */
@keyframes buttonPopIn {
  0% { opacity: 0; transform: scale(0.96) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeSlideLeft {
  0% { opacity: 0; transform: translateX(-40px) scale(0.98); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeSlideRight {
  0% { opacity: 0; transform: translateX(40px) scale(0.98); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ===================== GLOBAL STYLES ===================== */
body {
  background-color: #000;
  color: #e0e6f0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, sans-serif;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(25, 35, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===================== NAV ===================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
}
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 600;
  font-size: 1.25rem;
  background: linear-gradient(90deg, #fff, #b3c5e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-cta {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ===================== LOGO HEADER ===================== */
.logo-header {
  display: flex;
  justify-content: center;
  padding: 40px 24px 0;
  margin-bottom: -40px;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #b3c5e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

/* ===================== HERO ===================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
  padding: 120px 24px 80px;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}
.hero h1 {
  animation: fadeUp 1s ease-out forwards;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #b3c5e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h2 {
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
  color: #8fa1b8;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  margin: 0 0 40px;
  max-width: 600px;
}

/* ===================== CTA BUTTON ===================== */
.cta-button {
  padding: 0 32px;
  height: 48px;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  top: -1rem;
  opacity: 0;
  transition: all 0.3s ease;
  animation: buttonPopIn 0.8s cubic-bezier(.1,.2,.2,1) 0.4s forwards;
}

.cta-button {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
    animation-delay: 1s; /* delay before animation starts */

}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cta-button {
  z-index: 10; /* above everything else */
  pointer-events: auto;
}
.cta-button:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


.cta-button::before {
    pointer-events: none; /* prevent pseudo-element from blocking clicks */

  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.cta-button:hover::before {
  opacity: 1;
  animation: shine 0.8s ease-in-out infinite;
}
.cta-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===================== SHOWCASE / MIDDLE SECTION ===================== */
.showcase {
  padding: 120px 24px;
  margin: 0 auto;
  max-width: 1200px;
}
.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase-text .overline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: linear-gradient(90deg, #b3c5e6, #8fa1b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: block;
}
.showcase-text h2 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #b3c5e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.showcase-text p {
  font-size: 1.125rem;
  color: #8fa1b8;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}
.showcase-image {
  position: relative;
}
.showcase-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.showcase-image:hover::before { opacity: 1; }
.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(.3,.7,.4,1);
  box-shadow: 0 4px 24px -1px rgba(0,0,0,0.2), 0 16px 32px -4px rgba(0,0,0,0.1);
}
.showcase-image img:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 20px 40px -8px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.08);
}

/* ===================== FEATURES / PANELS ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.feature-item {
  text-align: center;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(.3,.7,.4,1);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  --mouse-x: 50%;
  --mouse-y: 50%;
}
.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.025) rotateX(1deg) rotateY(-1deg);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px -1px rgba(0,0,0,0.2), 0 16px 32px -4px rgba(0,0,0,0.1);
}
.feature-item:hover::before { opacity: 1; }
.feature-icon {
  font-size: 32px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.feature-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #ffffff 30%, #b3c5e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}
.feature-item p {
  font-size: 16px;
  color: #8fa1b8;
  line-height: 1.6;
  margin: 0;
}
.logo {
    width: 1250px;   /* Increase or decrease */
    height: auto;   /* Maintain aspect ratio */
}

/* ===================== WAITLIST ===================== */
.waitlist {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) max(24px, 5vw);
  max-width: 800px;
  margin: 0 auto;
}
.waitlist h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: clamp(24px, 5vw, 40px);
  background: linear-gradient(180deg, #ffffff 0%, #b3c5e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 clamp(16px, 3vw, 32px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-form {
  display: flex;
  gap: clamp(12px, 2vw, 16px);
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 0;
}
.email-input {
  flex: 1;
  min-width: 200px; /* Minimum width to prevent excessive narrowing */
  width: 100%;
  height: 48px; /* Fixed height instead of clamp for consistency */
  padding: 0 24px;
  font-size: 16px; /* Fixed font size for better readability */
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.email-input:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.email-input::placeholder { color: rgba(255,255,255,0.4); }

/* Responsive adjustments for mobile and narrow screens */
@media (max-width: 640px), (max-height: 800px) and (max-width: 768px) {
  .waitlist {
    padding: clamp(40px, 8vw, 80px) max(16px, 4vw);
  }
  
  .waitlist h2 {
    font-size: clamp(20px, 3.5vw, 28px);
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 16px;
    width: min(100%, 400px);
    padding: 0 16px;
  }
  
  .waitlist-form .cta-button {
    width: 100%;
    height: 48px;
    font-size: 16px;
    margin: 0;
  }
  
  .email-input {
    width: 100%;
    text-align: center;
    height: 48px;
    font-size: 16px;
    padding: 0 20px;
  }
}

/* Additional adjustments for very narrow screens */
@media (max-width: 380px) {
  .waitlist-form {
    padding: 0 12px;
  }
  
  .email-input,
  .waitlist-form .cta-button {
    height: 44px;
    font-size: 15px;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .showcase-content { grid-template-columns: 1fr; gap: 40px; }
  .showcase-text { padding-right: 0; text-align: center; }
  .showcase-image { order: -1; }
  .features { grid-template-columns: 1fr; gap: 24px; padding: 60px 24px; }
  .waitlist-form { flex-direction: column; gap: 16px; }
  .feature-item { padding: 24px; }
  .hero { padding: 100px 24px 60px; }
  .nav-content { padding: 0 16px; }
}
/* ===================== UNIVERSE / BACKGROUND STARS ===================== */
#universe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #0a1528 100%);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.star {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
}

/* ===================== PREVIEW / GRAPHIC + TEXT ===================== */
#preview-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  position: relative;
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.preview-gif {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  max-width: 380px;
  padding: 0 12px;
}
.preview-gif img {
  width: 320px;
  max-width: 90vw;
  border-radius: 1rem;
  box-shadow: 0 2px 24px #10182855;
  background: linear-gradient(180deg, #101624 0%, #151e2b 100%);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.preview-gif img:hover {
  transform: translateY(-2px) scale(1.01);
}
.preview-description {
  color: #e0e6f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: flex-start;
  min-width: 160px;
  max-width: 340px;
  padding: 0 18px;
}
.preview-description.right {
  align-items: flex-start;
}
.preview-description h3 {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #b6c8e6 0%, #9fb3d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
}
.preview-description p {
  font-size: 1.05rem;
  color: #8fa1b8;
  line-height: 1.6;
  margin: 0;
}

/* ===================== PREVIEW SECTION RESPONSIVE ===================== */
@media (max-width: 1100px) {
  #preview-section {
    grid-template-columns: 1fr 280px 1fr;
    padding: 28px 8px;
    gap: 1.5rem;
  }
  .preview-description.right {
    align-items: flex-start;
    text-align: left;
  }
}
