/* How It Works Page Specific Styles */

/* Page Background */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-attachment: fixed;
}

/* Add subtle pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 122, 182, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(216, 154, 216, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 122, 182, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.how-it-works-hero {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Steps Container */
.steps-container {
  position: relative;
  padding-left: 1rem;
}

.steps-container::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff7ab6, #d89ad8, transparent);
  opacity: 0.3;
}

/* Step Item */
.step-item {
  position: relative;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}
.step-item:nth-child(2) {
  animation-delay: 0.2s;
}
.step-item:nth-child(3) {
  animation-delay: 0.3s;
}
.step-item:nth-child(4) {
  animation-delay: 0.4s;
}

.step-item::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  z-index: 2;
}

/* Step Card */
.step-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-left: 5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 182, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  border-color: rgba(255, 122, 182, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.step-card:hover::before {
  opacity: 1;
}

/* Step Number */
.step-number {
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: black;
  border: 4px solid #0a0a0a;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(255, 122, 182, 0.3);
}

/* Step Content */
.step-content {
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #ff7ab6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Step Features */
.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-tag {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 122, 182, 0.1);
  border: 1px solid rgba(255, 122, 182, 0.3);
  border-radius: 1rem;
  color: #ff7ab6;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Step List */
.step-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.step-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.step-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff7ab6;
  font-weight: bold;
  font-size: 1.125rem;
}

/* Connection Highlight */
.connection-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 122, 182, 0.05);
  border: 1px solid rgba(255, 122, 182, 0.2);
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.highlight-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  flex-shrink: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 122, 182, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  flex-shrink: 0;
}

.feature-item span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Coming Soon Feature */
.feature-item.coming-soon {
  position: relative;
  opacity: 0.8;
}

.coming-soon-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  color: black;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Disclosures Section */
.disclosures-section {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.disclosures-card {
  background: rgba(255, 193, 7, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.disclosures-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 193, 7, 0.5),
    transparent
  );
}

.disclosures-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.warning-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #ffc107, #ffeb3b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  flex-shrink: 0;
}

.disclosures-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffc107;
  margin: 0;
}

.disclosures-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.disclosures-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1rem;
}

.disclosures-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffc107;
  font-weight: bold;
  font-size: 1.125rem;
}

/* CTA Section */
.cta-section {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 182, 0.5),
    transparent
  );
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  color: black;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-primary-btn:hover::before {
  left: 100%;
}

.cta-primary-btn:hover {
  background: linear-gradient(135deg, #ff6ba8, #ff8bb8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 122, 182, 0.3);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 122, 182, 0.5);
  transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .steps-container::before {
    display: none;
  }
  
  .step-card {
    margin-left: 0rem;
    margin-top: 2rem;
  }
  
  .step-number {
    position: static;
    margin: 0 auto 1rem auto;
    display: flex;
  }
  
  .step-item::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .steps-container::before {
    left: 2rem;
  }

  .step-item::before {
    left: 1.5rem;
  }

  .step-card {
    margin-left: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .step-number {
    left: -2rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
  }

  .step-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .step-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* Step Features Mobile */
  .step-features {
    gap: 0.375rem;
    margin-top: 0.75rem;
  }

  .feature-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Step List Mobile */
  .step-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
  }

  .step-list li::before {
    font-size: 1rem;
  }

  /* Connection Highlight Mobile */
  .connection-highlight {
    padding: 0.75rem;
    margin-top: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .highlight-icon {
    width: 2rem;
    height: 2rem;
  }

  /* Features Grid Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .feature-item {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .feature-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .feature-item span {
    font-size: 0.875rem;
  }

  /* Disclosures Mobile */
  .disclosures-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .disclosures-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .warning-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .disclosures-title {
    font-size: 1.25rem;
  }

  .disclosures-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
  }

  .disclosures-list li::before {
    font-size: 1rem;
  }

  /* CTA Section Mobile */
  .cta-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }

  .cta-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .cta-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .cta-primary-btn,
  .cta-secondary-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .help-back-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Hero Section Small Mobile */
  .how-it-works-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .how-it-works-hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  /* Steps Container Small Mobile */
  .steps-container {
    padding-left: 0.25rem;
  }

  .steps-container::before {
    left: 1.25rem;
  }

  .step-item {
    margin-bottom: 2.5rem;
  }

  .step-item::before {
    left: 0.75rem;
    width: 0.625rem;
    height: 0.625rem;
  }

  .step-card {
    margin-left: 0rem;
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  .step-number {
    left: -1.75rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }

  .step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .step-description {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  /* Step Features Small Mobile */
  .step-features {
    gap: 0.25rem;
    margin-top: 0.5rem;
  }

  .feature-tag {
    padding: 0.1875rem 0.625rem;
    font-size: 0.75rem;
  }

  /* Step List Small Mobile */
  .step-list li {
    padding-left: 1.25rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
  }

  /* Connection Highlight Small Mobile */
  .connection-highlight {
    padding: 0.625rem;
    margin-top: 0.5rem;
  }

  .highlight-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  /* Features Grid Small Mobile */
  .features-grid {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .feature-item {
    padding: 0.625rem;
  }

  .feature-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .feature-item span {
    font-size: 0.8125rem;
  }

  /* Disclosures Small Mobile */
  .disclosures-card {
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  .disclosures-header {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .warning-icon {
    width: 2rem;
    height: 2rem;
  }

  .disclosures-title {
    font-size: 1.125rem;
  }

  .disclosures-list li {
    padding-left: 1.25rem;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
  }

  /* CTA Section Small Mobile */
  .cta-card {
    padding: 1.5rem 1.25rem;
    border-radius: 0.875rem;
  }

  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .cta-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .cta-buttons {
    gap: 0.625rem;
  }

  .cta-primary-btn,
  .cta-secondary-btn {
    max-width: 260px;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
  /* Improve touch targets */
  .cta-primary-btn,
  .cta-secondary-btn {
    min-height: 44px;
  }

  /* Better spacing for mobile */
  .step-item:last-child {
    margin-bottom: 2rem;
  }

  /* Improve readability on mobile */
  .step-description,
  .cta-description {
    text-align: left;
  }

  /* Better mobile navigation spacing */
  .how-it-works-hero {
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile improvements */
  .cta-primary-btn,
  .cta-secondary-btn {
    min-height: 48px;
  }

  /* Reduce margins for better space usage */
  .step-item:last-child {
    margin-bottom: 1.5rem;
  }

  .how-it-works-hero {
    margin-bottom: 2rem;
  }

  .help-back-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

/* Focus visible for accessibility */
.step-card:focus-visible,
.feature-item:focus-visible,
.cta-primary-btn:focus-visible,
.cta-secondary-btn:focus-visible,
.help-back-btn:focus-visible {
  outline: 2px solid #ff7ab6;
  outline-offset: 2px;
}

/* Back to Home CTA */
.help-cta {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  text-align: center;
}

.help-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.help-back-btn:hover {
  background: rgba(255, 122, 182, 0.1);
  border-color: rgba(255, 122, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 182, 0.2);
  color: white;
  text-decoration: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
