/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body */
body {
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #1f2937;
  overflow-x: hidden;
}

/* Header / Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero .logo {
  width: 280px;
  max-width: 90%;
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  animation: fadeInDown 0.8s ease-out;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtext {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.85;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-button {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 87, 108, 0.6);
}

.cta-button:active {
  transform: translateY(0);
}

/* Hero animation */
.hero-animation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 50px 0;
  animation: fadeIn 1s ease-out 0.5s both;
}

.block {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.4s; }
.block:nth-child(4) { animation-delay: 0.6s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
  75% {
    transform: translateY(-20px) rotate(-3deg);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #1f2937;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature:nth-child(4) .feature-icon { animation-delay: 0.6s; }

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

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1f2937;
  font-weight: 700;
}

.feature p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Signup Section */
.signup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 20px;
  border-radius: 0;
  margin-top: 60px;
}

.signup h2 {
  color: white;
  margin-bottom: 20px;
}

.signup h2::after {
  background: white;
}

.signup .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.signup-content {
  max-width: 600px;
  margin: 0 auto;
}

.signup form {
  margin-top: 30px;
}

.form-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  padding: 16px 24px;
  width: 100%;
  max-width: 350px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.signup input[type="email"]:focus {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  background: white;
}

.signup button {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 16px 35px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.signup button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.signup button:active {
  transform: translateY(0);
}

.form-note {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Footer */
.footer {
  padding: 40px 20px;
  background: #1f2937;
  text-align: center;
  font-size: 0.95rem;
  color: #9ca3af;
}

.footer a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #93c5fd;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero .logo {
    width: 220px;
  }

  .section h2 {
    font-size: 2rem;
  }

  .features {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .block {
    width: 40px;
    height: 40px;
  }

  .hero-animation {
    gap: 12px;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .signup input[type="email"] {
    max-width: 100%;
  }
}

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .feature {
    padding: 30px 20px;
  }
}
