* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d4956d;
  --primary-dark: #c4845a;
  --secondary-color: #b8804f;
  --accent-color: #e6a77a;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f0eb;
  --bg-gradient: linear-gradient(135deg, #d4956d 0%, #e6a77a 50%, #f2c49a 100%);
  --text-primary: #2c2c2c;
  --text-secondary: #6b5b4a;
  --shadow-soft: 0 10px 30px rgba(212, 149, 109, 0.15);
  --shadow-hover: 0 20px 40px rgba(212, 149, 109, 0.25);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: #f9f5f1;
  overflow-x: hidden;
}

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

/* Header Section */
header {
  background: var(--bg-gradient);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s ease-in-out infinite;
}

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

.header-content {
  position: relative;
  z-index: 2;
}

.logo {
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

.logo img {
  width: 120px;
  height: 120px;
  border-radius: 25%;
  box-shadow: 0 10px 30px rgba(212, 149, 109, 0.3);
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 149, 109, 0.4);
}

header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b4513, #d4956d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #fefcfa;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(212, 149, 109, 0.15);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.feature-card:hover::before {
  left: 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Form Section */
.signup-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #d4956d 0%, #b8804f 100%);
  color: white;
  text-align: center;
  position: relative;
}

.signup-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="a" patternUnits="userSpaceOnUse" width="20" height="20" patternTransform="scale(2) rotate(0)"><rect x="0" y="0" width="100%" height="100%" fill="none"/><path d="M 10 2 L 10 18 M 2 10 L 18 10" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>')
    repeat;
}

.signup-content {
  position: relative;
  z-index: 2;
}

.signup-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.signup-section p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.submit-button {
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #f2c49a, #e6a77a);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(242, 196, 154, 0.4);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 196, 154, 0.5);
}

.success-message {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

.error-message {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: #8b4513;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  opacity: 0.8;
}

/* Screenshots Section */
.screenshots-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  position: relative;
}

.screenshots-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="screenshots-pattern" patternUnits="userSpaceOnUse" width="60" height="60"><circle cx="30" cy="30" r="1.5" fill="rgba(212,149,109,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23screenshots-pattern)"/></svg>') repeat;
}

.screenshots-section .container {
  position: relative;
  z-index: 2;
}

.screenshots-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.screenshot-item {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(212, 149, 109, 0.15);
  position: relative;
  overflow: hidden;
}

.screenshot-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.screenshot-item:hover::before {
  left: 0;
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.screenshot-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(212, 149, 109, 0.2);
  transition: var(--transition);
  border: 2px solid rgba(212, 149, 109, 0.1);
}

.screenshot-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(212, 149, 109, 0.3);
}

.screenshot-item h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.screenshot-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

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

  .subtitle {
    font-size: 1.1rem;
  }

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

  .signup-form {
    padding: 0 1rem;
  }

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

  .screenshots-section {
    padding: 4rem 0;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 3rem 0;
  }

  header h1 {
    font-size: 2rem;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .signup-section h2 {
    font-size: 2.2rem;
  }
  
  .screenshot-img {
    max-width: 200px;
  }
  
  .screenshot-item h3 {
    font-size: 1.2rem;
  }
  
  .screenshot-item p {
    font-size: 0.95rem;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
