/* Base styles */
:root {
  --primary-color: #6473e3;
  --secondary-color: #7d45ad;
  --text-color: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.15);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Satoshi", sans-serif;
  background: linear-gradient(180deg, #6473E3 0%, #7D45AD 100%);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background elements */
.bg-gradient {
  position: fixed;
  inset: 0;
  /* background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); */
  z-index: -20;
}

.bg-texture {
  position: fixed;
  inset: 0;
  background-image: url("./img/texture-liquid.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  mix-blend-mode: overlay;
  z-index: -10;
}

/* Layout */
.content-container {
  max-width: 904px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

@media (min-width: 768px) {
  .content-container {
    padding: 0 16px;
  }
}

/* Hero Graphic */
.hero-graphic-container {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-graphic {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -10;
  opacity: 0.2;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-graphic {
    opacity: 1;
  }
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  height: 24px;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

.divider {
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding-top: 80px;
  position: relative;
}

.hero-text {
  text-align: center;
  max-width: 768px;
}

@media (min-width: 768px) {
  .hero-text {
    text-align: left;
  }
}

h1 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  padding-bottom: 16px;
  min-height: 120px;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 64px;
  min-height: 60px;
}

/* Responsive content */
.mobile-only {
  display: inline-block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: inline-block;
  }
}

/* Waitlist Section */
.waitlist-section {
  margin-bottom: 64px;
  text-align: center;
}

.first-waitlist-section {
  margin-top: 0;
}

@media (min-width: 768px) {
  .first-waitlist-section {
    margin-top: 144px !important;
  }
}

.waitlist-content {
  padding: 32px 0;
}

.waitlist-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.waitlist-section p {
  margin-bottom: 24px;
  opacity: 0.8;
}

.waitlist-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-input-container {
  position: relative;
}

.waitlist-form input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  font-family: inherit;
}

.waitlist-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.waitlist-form input::placeholder {
  color: white;
  opacity: 0.4;
}

.submit-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: #37377c;
  border: none;
  border-radius: 9999px;
  padding: 8px 24px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.error-message {
  margin-top: 8px;
  color: #ffa5a5;
  font-size: 14px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(55, 55, 124, 0.25);
  border-top-color: rgba(55, 55, 124, 0.75);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.hidden {
  display: none;
}

.extra-padding {
  height: 64px;
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-container {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 200px;
  box-shadow: var(--card-shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  z-index: 0;
  transition: opacity 1s ease;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
}

@media (min-width: 768px) {
  .card-content {
    padding: 16px;
  }
}

.card-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-weight: 500;
  text-align: center;
  font-size: 14px;
  margin-bottom: 32px;
}

/* Benefit Cards */
.benefit-cards {
  margin-bottom: 32px;
}

.benefit-card-container {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .benefit-card-container {
    margin-bottom: 24px;
  }
}

.benefit-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.responsive-img {
  width: 100%;
  max-height: 165px;
}

.responsive-img_v1 {
  width: 100%;
  max-height: 165px;
}

.benefit-card-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.1);
}

.ai-powered .benefit-card-content {
  padding: 48px;
}

@media (max-width: 768px) {
  .show-desktop {
    display: none;
  }

  .hide-descktop {
    display: block;
  }

  .responsive-img_v1 {
    width: 284px;
  }
}

.show-footer {
  display: none !important;
}

@media (max-width: 520px) {
  .show-footer {
    display: flex !important;
  }

  .hide-footer {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .show-desktop {
    display: block;
  }

  .hide-descktop {
    display: none;
  }

  .responsive-img {
    width: 100%;
    height: auto;
  }

  .benefit-card-content_height {
    height: 312px !important;
  }

  .benefit-card-content_height_380 {
    height: 382px !important;
  }

  .benefit-card-content_desc {
    min-height: 75px;
  }

  .benefit-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 412px;
  }

  .benefit-card-content_v1 {
    /* display: flex; */
    flex-direction: row;
    align-items: center;
    height: 412px;
  }

  .ai-powered .benefit-card-content {
    height: 266px;
  }
}

.card-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.benefit-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-card p {
  opacity: 0.8;
  max-width: 402px;
  /* max-width: 512px; */
  margin-bottom: 16px;
}

.benefit-card p:last-child {
  margin-bottom: 0;
}

.benefit-card-graphic {
  margin-bottom: 32px;
}

.personalization-graphic {
  display: none;
}

.automatic-graphic {
  display: flex;
  justify-content: center;
}

.center-graphic {
  display: flex;
  justify-content: center;
}

.text-right {
  text-align: right;
}

@media (min-width: 768px) {
  .benefit-card-graphic {
    margin-bottom: 0;
  }

  .personalization-graphic {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
  }

  .automatic-graphic {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .optimization-graphic {
    margin-bottom: -32px;
  }

  .results-graphic {
    display: flex;
    justify-content: flex-end;
  }
}

/* Two Column Layout */
.two-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .two-column {
    flex-direction: row;
    gap: 24px;
    margin-bottom: 24px;
  }

  .column-40 {
    width: 40%;
  }

  .column-60 {
    width: 60%;
  }
}

/* Footer */
footer {
  padding: 32px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copyright {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .copyright {
    margin-bottom: 0;
  }
}

/* Fade In Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* Header Fade Overlay */
.header-fade-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 40;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* Utility Classes */
.mt-32 {
  margin-top: 32px;
}