/* =============================================================================
   HOME PAGE - BEM Naming Convention
   Path: /public/pages/www/home.css
   ============================================================================= */

.home {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

.home__nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home__nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.home__logo:hover {
  transform: scale(1.02);
}

.home__logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.home__nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home__nav-menu {
    display: flex;
  }
}

.home__nav-link {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: color 0.2s ease;
}

.home__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.3s ease;
}

.home__nav-link:hover {
  color: #2563eb;
}

.home__nav-link:hover::after {
  width: 100%;
}

.home__nav-link--login {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.home__nav-link--login::after {
  display: none;
}

.home__nav-link--login:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

.home__urgency-banner {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-bottom: 1px solid #bfdbfe;
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.home__urgency-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.home__urgency-close:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.home__hero {
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  position: relative;
  overflow: hidden;
}

.home__hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 70%);
  pointer-events: none;
}

.home__hero-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home__hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .home__hero-title {
    font-size: 3.75rem;
  }
}

.home__hero-title-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.home__hero-demo-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.home__hero-demo-container:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.home__demo-intro-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home__demo-input-container {
  display: flex;
  gap: 0.75rem;
}

.home__demo-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.home__demo-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.home__demo-analyze-btn {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.home__demo-analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

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

.home__hero-cta-container {
  margin-bottom: 2.5rem;
}

.home__btn-primary-hero {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
  display: inline-block;
  text-decoration: none;
}

.home__btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.home__btn-primary-hero:active {
  transform: translateY(-1px);
}

.home__cta-subtext {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.home__hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.home__hero-stat {
  text-align: left;
}

.home__hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.home__hero-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

.home__hero-visual {
  display: none;
}

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

.home__hero-demo-preview {
  animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

.home__demo-browser-frame {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.home__demo-browser-header {
  background: #f9fafb;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home__demo-browser-dots {
  display: flex;
  gap: 0.375rem;
}

.home__demo-browser-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #d1d5db;
}

.home__demo-browser-dots span:nth-child(1) {
  background: #ef4444;
}

.home__demo-browser-dots span:nth-child(2) {
  background: #f59e0b;
}

.home__demo-browser-dots span:nth-child(3) {
  background: #10b981;
}

.home__demo-browser-url {
  flex: 1;
  background: white;
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.home__demo-browser-content {
  padding: 2rem;
  background: #fafafa;
}

.home__section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.home__section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.home__section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home__benefits {
  background: white;
}

.home__benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .home__benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home__benefit-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.home__benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.home__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #2563eb;
}

.home__benefit-card:hover::before {
  transform: scaleX(1);
}

.home__benefit-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.home__benefit-card:hover .home__benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.home__benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.home__benefit-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

.home__how-it-works {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.home__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .home__steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home__step-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.home__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.home__step-number {
  position: absolute;
  top: -1.5rem;
  left: 2.5rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.home__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.home__step-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.home__social-proof {
  background: white;
}

.home__testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .home__testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home__testimonial-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.home__testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #2563eb;
}

.home__testimonial-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.home__testimonial-text {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.home__testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home__author-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.home__author-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.9375rem;
}

.home__author-title {
  font-size: 0.875rem;
  color: #6b7280;
}

.home__final-cta {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.home__cta-card {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.home__cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

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

.home__cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.home__cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.home__mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: block;
  animation: slideUp 0.3s ease;
}

@media (min-width: 768px) {
  .home__mobile-sticky-cta {
    display: none;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.home__mobile-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home__mobile-cta-btn:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: no-preference) {
  .home__hero,
  .home__benefits,
  .home__how-it-works,
  .home__social-proof,
  .home__final-cta {
    animation: fadeInUp 0.6s ease-out;
  }
}

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

.home__cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.home__cta-button--primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

.home__cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.4);
}

.home__cta-button--primary:active {
  transform: translateY(0);
}

/* Footer Styles */
.home__footer {
  background: #1e293b;
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
}

.home__footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.home__footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .home__footer-top {
    grid-template-columns: 2fr 3fr;
  }
}

.home__footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home__footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
}

.home__footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.home__footer-tagline {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.home__footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.home__footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

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

.home__footer-list li {
  margin-bottom: 0.75rem;
}

.home__footer-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.home__footer-list a:hover {
  color: #2563eb;
}

.home__footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  flex-wrap: wrap;
  gap: 1rem;
}

.home__footer-bottom p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.home__footer-social {
  display: flex;
  gap: 1.5rem;
}

.home__footer-social a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.home__footer-social a:hover {
  color: #2563eb;
}

/* Demo Browser Visual Elements */
.home__demo-browser-frame {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.home__demo-browser-header {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home__demo-browser-dots {
  display: flex;
  gap: 0.375rem;
}

.home__demo-browser-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.home__demo-browser-dots span:nth-child(1) {
  background: #ef4444;
}

.home__demo-browser-dots span:nth-child(2) {
  background: #f59e0b;
}

.home__demo-browser-dots span:nth-child(3) {
  background: #10b981;
}

.home__demo-browser-url {
  flex: 1;
  background: white;
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.home__demo-browser-content {
  padding: 2rem;
  background: #fafafa;
}

.home__demo-dashboard-preview h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.home__demo-lead-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

.home__demo-lead-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home__demo-lead-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.home__demo-lead-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.home__demo-lead-info p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.125rem 0 0;
}

.home__demo-match-score {
  margin-left: auto;
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.home__demo-insights {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.home__demo-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.home__demo-outreach {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.home__demo-outreach p {
  font-size: 0.875rem;
  color: #475569;
  font-style: italic;
  margin: 0;
}

/* Hero Demo Preview Container */
.home__hero-visual {
  position: relative;
}

.home__hero-demo-preview {
  /* Float animation handled by inline styles in HTML */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home__hero-stats {
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }

  .home__footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .home__footer-social {
    justify-content: center;
  }
}
