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

body {
  font-family: "Poppins", sans-serif;
  /* iOS-compatible background */
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 25%, #2c5aa0 50%, #1a365d 75%, #0f2027 100%);
  background-size: 400% 400%;
  background-attachment: fixed; /* Add this for iOS */
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS viewport fix */
  overflow-x: hidden;
  position: relative;
  /* iOS-specific fixes */
  -webkit-background-size: 400% 400%;
  -webkit-transform: translateZ(0); /* Force hardware acceleration */
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* iOS-specific animation fix */
@-webkit-keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* iOS fix */
  animation: float 6s ease-in-out infinite;
  /* iOS performance optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  animation-delay: 0s;
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.4);
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  background: linear-gradient(45deg, #2c5aa0, #1a365d);
  animation-delay: 2s;
  box-shadow: 0 0 40px rgba(44, 90, 160, 0.4);
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  background: linear-gradient(45deg, #44a08d, #2c5aa0);
  animation-delay: 4s;
  box-shadow: 0 0 25px rgba(68, 160, 141, 0.4);
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  background: linear-gradient(45deg, #1a365d, #0f2027);
  animation-delay: 1s;
  box-shadow: 0 0 35px rgba(26, 54, 93, 0.4);
}

.shape-5 {
  width: 140px;
  height: 140px;
  top: 10%;
  right: 5%;
  background: linear-gradient(45deg, #4ecdc4, #1a365d);
  animation-delay: 3s;
  box-shadow: 0 0 45px rgba(78, 205, 196, 0.4);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* iOS-specific fixes */
html {
  height: 100%;
  height: -webkit-fill-available;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS fix */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  /* iOS performance fixes */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Header */
.header {
  padding: 40px 0;
  text-align: center;
}

.logo-container {
  display: inline-block;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* iOS fix */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 50px rgba(78, 205, 196, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  /* iOS performance fixes */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.logo-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.logo-container:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 80px rgba(78, 205, 196, 0.5);
}

.logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

/* Hero Section */
.hero {
  margin-bottom: 60px;
  max-width: 800px;
}

.main-headline {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #4ecdc4, #44a08d, #2c5aa0, #1a365d);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s ease infinite;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

@keyframes gradientText {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.sub-headline {
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.intro-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.launch-note {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 50px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.launch-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Countdown Section */
.countdown-section {
  margin-bottom: 60px;
}

.countdown-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.countdown-item:hover::before {
  left: 100%;
}

.countdown-item:nth-child(1) {
  box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3);
}

.countdown-item:nth-child(2) {
  box-shadow: 0 8px 32px rgba(68, 160, 141, 0.3);
}

.countdown-item:nth-child(3) {
  box-shadow: 0 8px 32px rgba(44, 90, 160, 0.3);
}

.countdown-item:nth-child(4) {
  box-shadow: 0 8px 32px rgba(26, 54, 93, 0.3);
}

.countdown-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.countdown-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Subscription Section */
.subscription-section {
  margin-bottom: 60px;
  max-width: 600px;
  width: 100%;
}

.subscription-container {
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-radius: 30px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 60px rgba(255, 107, 107, 0.2);
  position: relative;
  overflow: hidden;
}

.subscription-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #4ecdc4, #44a08d, #2c5aa0, #1a365d, #4ecdc4);
  animation: rotate 10s linear infinite;
  opacity: 0.1;
  z-index: -1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.subscription-title {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subscription-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.5;
}

.input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

#email {
  flex: 1;
  padding: 18px 25px;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#email:focus {
  background: white;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.submit-btn {
  padding: 18px 35px;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.3);
  font-family: "Poppins", sans-serif;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(78, 205, 196, 0.4);
  background: linear-gradient(135deg, #44a08d, #2c5aa0);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

.form-message {
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
  opacity: 1;
}

.form-message.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  opacity: 1;
}

/* Social Section */
.social-section {
  margin-bottom: 40px;
}

.social-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.social-link:nth-child(1) {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
  box-shadow: 0 4px 20px rgba(0, 119, 181, 0.3);
}

.social-link:nth-child(2) {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.3);
}

.social-link:nth-child(3) {
  background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045);
  box-shadow: 0 4px 20px rgba(228, 64, 95, 0.3);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: white;
}

.alephcode-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.alephcode-link:hover {
  color: #4ecdc4;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.alephcode-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  transition: width 0.3s ease;
}

.alephcode-link:hover::after {
  width: 100%;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays */
.hero {
  animation-delay: 0.2s;
}
.countdown-section {
  animation-delay: 0.4s;
}
.subscription-section {
  animation-delay: 0.6s;
}
.social-section {
  animation-delay: 0.8s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-headline {
    font-size: 2.5rem;
  }

  .sub-headline {
    font-size: 1.4rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .countdown-container {
    gap: 15px;
  }

  .countdown-item {
    min-width: 100px;
    padding: 20px;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .input-group {
    flex-direction: column;
  }

  .subscription-container {
    padding: 30px 20px;
  }

  .logo {
    height: 60px;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .main-headline {
    font-size: 2rem;
  }

  .sub-headline {
    font-size: 1.2rem;
  }

  .countdown-container {
    gap: 10px;
  }

  .countdown-item {
    min-width: 80px;
    padding: 15px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
