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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #09090b;
  color: #fafafa;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated gradient background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(16, 185, 129, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fafafa;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: #8b5cf6;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fafafa;
}

.nav-cta {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #09090b !important;
  background: linear-gradient(135deg, #fafafa 0%, #e4e4e7 100%);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  margin-top: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: #fafafa !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: background 0.15s ease;
  position: relative;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

.dropdown-desc {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: rgba(250, 250, 250, 0.5) !important;
  margin-top: 0.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.6);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #09090b;
  background: linear-gradient(135deg, #fafafa 0%, #e4e4e7 100%);
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.8);
  background: transparent;
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Features Section */
.features {
  position: relative;
  z-index: 1;
}

.feature-block {
  padding: 6rem 2rem;
}

.feature-block.alt-bg {
  background: rgba(255, 255, 255, 0.02);
}

.feature-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.feature-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.tryon-badge {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.cleanup-badge {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.feature-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.feature-header p {
  font-size: 1.1rem;
  color: rgba(250, 250, 250, 0.6);
}

/* Cards */
.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: rgba(255, 255, 255, 0.8);
}

.success-label {
  background: linear-gradient(to top, rgba(16, 185, 129, 0.4), transparent);
  color: #6ee7b7;
}

/* Try-On Showcase */
.showcase-tryon {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.tryon-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.input-column,
.center-column,
.output-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.4);
  margin-bottom: 1rem;
}

.result-label {
  color: #10b981;
}

.garment-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.garment-card {
  width: 180px;
  border-color: rgba(99, 102, 241, 0.25);
}

.garment-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.garment-card img {
  height: 250px;
  object-fit: cover;
}

.model-card {
  width: 220px;
  border-color: rgba(139, 92, 246, 0.25);
}

.model-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.model-card img {
  height: 320px;
  object-fit: cover;
}

.output-card {
  width: 340px;
  border-color: rgba(16, 185, 129, 0.25);
}

.output-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

.output-card img {
  height: 480px;
  object-fit: cover;
}

/* Flow Connectors */
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.curved-arrow {
  width: 80px;
  height: 180px;
}

.plus-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(139, 92, 246, 0.5);
  margin: -2rem 0;
}

.flow-connector.horizontal {
  padding: 0 1rem;
}

.straight-arrow {
  width: 70px;
  height: 40px;
}

/* Cleanup Showcase */
.showcase-cleanup {
  max-width: 1000px;
  margin: 0 auto;
}

.cleanup-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cleanup-before,
.cleanup-after {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cleanup-before .input-label,
.cleanup-after .input-label {
  position: absolute;
  top: -2rem;
}

.cleanup-before,
.cleanup-after {
  position: relative;
  padding-top: 2.5rem;
}

.before-card {
  width: 280px;
  border-color: rgba(245, 158, 11, 0.25);
}

.before-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1);
}

.before-card img {
  height: 380px;
  object-fit: cover;
}

.after-card {
  width: 280px;
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
}

.after-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.after-card img {
  height: 380px;
  object-fit: contain;
  background: #ffffff;
}

.transform-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
}

.transform-arrow {
  width: 120px;
  height: 40px;
}

/* Image Popup */
.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.image-popup.active {
  opacity: 1;
  visibility: visible;
}

.image-popup img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-popup.active img {
  transform: scale(1);
}

/* How it works */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2,
.how-it-works h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  max-width: 240px;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.5);
}

.step-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(16, 185, 129, 0.3));
  margin-top: 1.75rem;
  border-radius: 1px;
}

/* Contact */
.contact {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: rgba(250, 250, 250, 0.5);
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #fafafa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.contact-form input::placeholder {
  color: rgba(250, 250, 250, 0.35);
}

.contact-form input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(250, 250, 250, 0.35);
  margin-top: 1.25rem;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.6);
}

.footer-logo .logo-icon {
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(250, 250, 250, 0.35);
}

/* Responsive */
@media (max-width: 1100px) {
  .tryon-flow {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .flow-connector {
    display: none;
  }

  .garment-stack {
    flex-direction: row;
  }

  .output-card {
    width: 300px;
  }

  .output-card img {
    height: 420px;
  }
}

@media (max-width: 900px) {
  .cleanup-flow {
    flex-direction: column;
    gap: 1.5rem;
  }

  .transform-connector {
    transform: rotate(90deg);
    padding: 0;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links a:not(.nav-cta),
  .nav-dropdown {
    display: none;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
    min-height: 70vh;
  }

  .subtitle {
    font-size: 1rem;
  }

  .feature-block {
    padding: 4rem 1.5rem;
  }

  .tryon-flow {
    flex-direction: column;
  }

  .garment-stack {
    flex-direction: row;
    gap: 0.75rem;
  }

  .garment-card {
    width: 140px;
  }

  .garment-card img {
    height: 195px;
  }

  .model-card {
    width: 180px;
  }

  .model-card img {
    height: 260px;
  }

  .output-card {
    width: 260px;
  }

  .output-card img {
    height: 370px;
  }

  .before-card,
  .after-card {
    width: 220px;
  }

  .before-card img,
  .after-card img {
    height: 300px;
  }

  .steps {
    flex-direction: column;
    gap: 2rem;
  }

  .step-divider {
    display: none;
  }

  footer {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .garment-card {
    width: 110px;
  }

  .garment-card img {
    height: 154px;
  }

  .model-card {
    width: 140px;
  }

  .model-card img {
    height: 200px;
  }

  .output-card {
    width: 200px;
  }

  .output-card img {
    height: 285px;
  }

  .before-card,
  .after-card {
    width: 180px;
  }

  .before-card img,
  .after-card img {
    height: 245px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
