/* ===== CSS Variables ===== */
:root {
  /* Desert Color Palette */
  --sand-light: #f5e6d3;
  --sand: #e8d4b8;
  --sand-dark: #d4b896;
  --terracotta: #c4704a;
  --terracotta-dark: #a85d3b;
  --adobe: #a68b68;
  --dusk: #2a2420;
  --night: #1a1612;
  --cream: #faf6f1;
  --gold: #d4a574;
  --sage: #8b9e74;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 50%, var(--terracotta-dark) 100%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* ===== Desert Background ===== */
.desert-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dune {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  background: var(--sand-dark);
  border-radius: 100% 100% 0 0;
  opacity: 0.15;
}

.dune-1 {
  left: -50%;
  height: 60%;
  animation: dune-drift 30s infinite ease-in-out alternate;
}

.dune-2 {
  left: -30%;
  height: 45%;
  background: var(--adobe);
  opacity: 0.1;
  animation: dune-drift 25s infinite ease-in-out alternate-reverse;
}

.dune-3 {
  left: -70%;
  height: 30%;
  background: var(--terracotta);
  opacity: 0.08;
  animation: dune-drift 35s infinite ease-in-out alternate;
}

@keyframes dune-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(10%); }
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== Brand Section ===== */
.brand {
  margin-bottom: var(--space-xl);
}

.logo {
  margin-bottom: var(--space-md);
}

.camel-icon {
  width: 120px;
  height: 80px;
  color: var(--gold);
  filter: drop-shadow(0 4px 20px rgba(212, 165, 116, 0.4));
  animation: camel-walk 4s infinite ease-in-out;
}

@keyframes camel-walk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-xs);
}

.ai-text {
  color: var(--terracotta);
  margin-left: 0.1em;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== Coming Soon Section ===== */
.coming-soon {
  margin-bottom: var(--space-2xl);
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.coming-soon-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
}

.coming-soon-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon-desc strong {
  color: var(--gold);
  font-weight: 600;
}

/* ===== Features Section ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  width: 100%;
  max-width: 900px;
  margin-bottom: var(--space-2xl);
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--terracotta);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  color: var(--terracotta);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.feature p {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.6;
}

/* ===== Signup Section ===== */
.signup {
  margin-bottom: var(--space-2xl);
}

.signup-text {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.signup-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--cream);
  outline: none;
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: var(--adobe);
}

.email-input:focus {
  border-color: var(--terracotta);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(196, 112, 74, 0.2);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--cream);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(196, 112, 74, 0.4);
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

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

.signup-note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--sage);
  min-height: 1.5em;
}

.signup-note.success {
  color: var(--sage);
}

.signup-note.error {
  color: var(--terracotta);
}

/* ===== Footer ===== */
.footer {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  font-size: 0.85rem;
  color: #ffffff;
}

.footer-tagline {
  font-style: italic;
  margin-top: var(--space-xs);
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: var(--space-lg) var(--space-sm);
  }

  .brand-name {
    letter-spacing: 0.05em;
  }

  .tagline {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .coming-soon-desc {
    font-size: 1rem;
  }

  .coming-soon-desc br {
    display: none;
  }

  .features {
    gap: var(--space-md);
  }

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

  .email-input {
    min-width: 100%;
  }

  .submit-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .camel-icon {
    width: 100px;
    height: 65px;
  }

  .feature {
    padding: var(--space-md);
  }
}

/* ===== Animations ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  animation: fade-in-up 1s ease-out;
}

.coming-soon {
  animation: fade-in-up 1s ease-out 0.2s both;
}

.features {
  animation: fade-in-up 1s ease-out 0.4s both;
}

.signup {
  animation: fade-in-up 1s ease-out 0.6s both;
}

.footer {
  animation: fade-in-up 1s ease-out 0.8s both;
}
