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

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px 0;
  padding: 15px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  font-size: 2.5rem;
  animation: bounce 2s infinite;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #4a5568;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.3rem;
  color: #718096;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.feature-pill {
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: float 3s ease-in-out infinite;
}

.feature-pill:nth-child(2) {
  animation-delay: 0.5s;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.feature-pill:nth-child(3) {
  animation-delay: 1s;
  background: linear-gradient(45deg, #a8edea, #fed6e3);
  color: #2d3748;
}

/* LINI Character */
.lini-character {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-circle {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.character-face {
  color: white;
  font-size: 2rem;
}

.eyes {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  justify-content: center;
}

.eye {
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  animation: blink 3s infinite;
}

.mouth {
  width: 30px;
  height: 15px;
  border: 3px solid white;
  border-top: none;
  border-radius: 0 0 30px 30px;
  margin: 0 auto;
}

.sound-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wave {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: wave 2s ease-out infinite;
}

.wave-1 {
  width: 250px;
  height: 250px;
  top: -25px;
  left: -25px;
}

.wave-2 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
  animation-delay: 0.3s;
}

.wave-3 {
  width: 350px;
  height: 350px;
  top: -75px;
  left: -75px;
  animation-delay: 0.6s;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin: 40px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #2d3748;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.3s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 0.6s;
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2d3748;
}

.feature-card p {
  color: #718096;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Signup Section */
.signup {
  padding: 80px 0;
}

.signup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.signup-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2d3748;
}

.signup-description {
  font-size: 1.2rem;
  color: #718096;
  margin-bottom: 40px;
  line-height: 1.6;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #4a5568;
  font-size: 1rem;
}

.form-group input {
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.signup-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.signup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.signup-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.form-message {
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-message.success {
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.form-message.error {
  background: #fed7d7;
  color: #742a2a;
  border: 1px solid #fc8181;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  color: #718096;
}

.login-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Signup Visual */
.signup-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-emoji {
  position: absolute;
  font-size: 3rem;
  animation: float 4s ease-in-out infinite;
}

.floating-emoji:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 0.8s;
}

.floating-emoji:nth-child(3) {
  bottom: 30%;
  left: 10%;
  animation-delay: 1.6s;
}

.floating-emoji:nth-child(4) {
  bottom: 10%;
  right: 30%;
  animation-delay: 2.4s;
}

.floating-emoji:nth-child(5) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 3.2s;
  font-size: 4rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin: 40px 0 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-text {
  color: #718096;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Device ID Container */
.device-id-container {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.device-id-container input {
  flex: 1;
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.generate-btn {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  min-width: 120px;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
  background: linear-gradient(45deg, #218838, #1e7e8c);
}

.generate-btn:active {
  transform: translateY(0);
}

.form-help {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 5px;
  display: block;
  font-style: italic;
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

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

@keyframes wave {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes blink {
  0%,
  90%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content,
  .signup-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }

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

  .nav {
    flex-direction: column;
    gap: 15px;
  }

  .header {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
