/* ============================================
   Clove.com Exact Replica - TideSpark
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F7F4F0;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1204px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1440px;
  }
}

/* Header */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem 0;
  z-index: 1000;
  background: transparent;
}

@media (min-width: 1024px) {
  header {
    padding: 2rem 0;
  }
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1536px) {
  .header-content {
    max-width: 1440px;
  }
}

.logo {
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  height: 60px;
  width: auto;
  display: block;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

@media (min-width: 1024px) {
  .logo-image {
    height: 80px;
  }
}

.book-demo-button {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid #ffffff;
  border-radius: 50px;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-block;
}

.book-demo-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
  min-height: calc(100vh - 6rem);
  padding: 0;
  background-color: #F7F4F0;
  display: flex;
  align-items: stretch;
  position: relative;
}

@media (max-width: 768px) {
  main {
    min-height: 100vh;
    align-items: stretch;
  }
}

/* Hero Image Container */
.hero-image-container {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
  overflow: visible;
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #F7F4F0;
}

@media (max-width: 768px) {
  .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .hero-image {
    object-position: center;
  }
}

@media (min-width: 768px) {
  .hero-image {
  }
}

@media (min-width: 1024px) {
  .hero-image {
  }
}

/* Hero Text Section */
.hero-text-section {
  position: absolute;
  left: 4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  max-width: 700px;
}

@media (max-width: 768px) {
  .hero-text-section {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    text-align: center;
  }
}

.hero-main-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
}

@media (max-width: 768px) {
  .hero-main-title {
    text-align: center;
  }
}

.hero-main-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  text-align: left;
  letter-spacing: -0.05em;
}

@media (max-width: 768px) {
  .hero-main-subtitle {
    text-align: center;
  }
}

.hero-waitlist-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .hero-waitlist-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

.hero-email-input {
  flex: 0 0 auto;
  width: 280px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  outline: none;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hero-email-input {
    width: 100%;
    max-width: 350px;
  }
}

.hero-email-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-email-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-waitlist-button {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #ffffff;
  border-radius: 50px;
  background-color: rgba(26, 26, 26, 0.8);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.hero-waitlist-button:hover {
  background-color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Overlay - Text on Image */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-overlay {
    padding: 4rem 3rem;
  }
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 800px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: #ffffff;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .cta-button {
    font-size: 1.125rem;
  }
}

.cta-button:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Fade-in Animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sequential fade-in order */
.hero-image-container.fade-in-element {
  transform: translateY(0);
}

.hero-image-container.fade-in-element.visible {
  transition-delay: 0s;
  transition-duration: 0.5s;
}

header.fade-in-element.visible {
  transition-delay: 0.3s;
}

/* Hero text elements - fade in place without movement */
.hero-main-title.fade-in-element,
.hero-main-subtitle.fade-in-element,
.hero-waitlist-form.fade-in-element {
  transform: translateY(0);
  transition: opacity 0.6s ease-out;
}

.hero-main-title.fade-in-element.visible {
  transition-delay: 0.6s;
}

.hero-main-subtitle.fade-in-element.visible {
  transition-delay: 0.9s;
}

.hero-waitlist-form.fade-in-element.visible {
  transition-delay: 1.2s;
}

.hero-title.fade-in-element.visible {
  transition-delay: 0.3s;
}

.hero-subtitle.fade-in-element.visible {
  transition-delay: 0.6s;
}

.cta-button.fade-in-element.visible {
  transition-delay: 0.9s;
}

/* Footer */
footer {
  padding: 5rem 1rem 5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

@media (min-width: 1024px) {
  footer {
    padding: 5rem 1.5rem 5rem;
  }
}

.footer-content {
  max-width: 1204px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1536px) {
  .footer-content {
    max-width: 1440px;
  }
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
}

@media (min-width: 1024px) {
  .social-icon {
    width: 18px;
    height: 18px;
  }
}

.social-icon:hover {
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: rgba(26, 26, 26, 0.7);
}

.footer-links a {
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.75;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(26, 26, 26, 0.45);
  line-height: 1.6;
  max-width: 800px;
}

.footer-disclaimer p {
  margin-bottom: 1rem;
  color: rgba(26, 26, 26, 0.45);
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 26, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-overlay.active {
  display: flex;
}

.loading-logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Link Styles */
a {
  color: inherit;
  text-decoration: none;
}
