/* Global Aesthetics */
:root {
  --bg-primary: #1F2937;
  /* Black main background */
  --bg-secondary: #003D99;
  /* Blue-dark background for panel 2 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;

  --figma-blue: #1f2937;
  /* Updated dark grey footer */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
}

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

.text-accent {
  color: var(--accent-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h2.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-primary-light {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-primary-light:hover {
  background-color: rgba(59, 130, 246, 0.2);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Figma Header Styles */
.figma-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f3f4f6;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 73px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 36px;
  height: 36px;
  position: relative;
}

.header-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.0703px;
  color: #000000;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.3125px;
  color: #364153;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #000000;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary-light {
  background-color: #4f39f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  line-height: 24px;
  height: 40px;
}

.btn-primary-light:hover {
  background-color: #3a26cd;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: #4f39f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  line-height: 24px;
  height: 40px;
}

.btn-primary:hover {
  background-color: #3a26cd;
  transform: none;
  box-shadow: none;
}

/* Panel Base */
.panel {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero Panel (Panel 1) */
.hero-panel {
  padding-top: 8rem;
  min-height: calc(100vh - 80px);
  background-color: var(--bg-primary);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-graphic {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-graphic:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Panel (Panel 2) */
.features-panel {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.zigzag-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.zigzag-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.zigzag-item.reverse .zigzag-content {
  order: 2;
}

.zigzag-item.reverse .zigzag-image {
  order: 1;
}

.zigzag-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.zigzag-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.feature-list li strong {
  color: var(--text-primary);
}

.zigzag-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* How It Works (Panel 3) */
.how-it-works-panel {
  background-color: var(--bg-primary);
  z-index: 3;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
}

.step-icon-circle {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem;
  color: var(--accent-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.multi-icons {
  display: flex;
  gap: 5px;
  font-size: 1.25rem;
}

.step-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step-details p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.step-details h5 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cta-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(5, 5, 5, 1));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Reviews Panel (Panel 4) */
.reviews-panel {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 4;
}

.reviews-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.reviews-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  flex-grow: 1;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.review-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
}

.author-info h5 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.slider-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  flex-shrink: 0;
  margin: 0 10px;
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .review-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .review-card {
    flex: 0 0 100%;
  }
}

/* Figma Footer */
.figma-footer {
  background-color: var(--figma-blue);
  padding: 48px 24px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  z-index: 5;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-col {
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon {
  width: 36px;
  height: 36px;
}

.brand-text-footer {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #ffffff;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-col ul li a:hover {
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: white;
  font-size: 20px;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(79, 57, 246, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.75;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-up {
  transform: translateY(40px);
}

.slide-up {
  transform: translateY(60px) scale(0.95);
}

.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 200ms;
}

.delay-3 {
  transition-delay: 300ms;
}

.delay-4 {
  transition-delay: 400ms;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

  .hero-container,
  .zigzag-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .zigzag-item.reverse .zigzag-content {
    order: 1;
  }

  .zigzag-item.reverse .zigzag-image {
    order: 2;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }

  .feature-list li {
    text-align: left;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .social-links {
    justify-content: center;
  }
}