/* ============================================
   Landing Page Styles
   ============================================ */

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f8fdf9 0%, #f0fdf4 25%, #ecfdf5 50%, #f0f9ff 75%, #fefce8 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(34, 197, 94, 0.15);
  top: -10%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.1);
  bottom: 10%;
  left: -5%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(249, 115, 22, 0.1);
  top: 30%;
  left: 40%;
  animation: float 12s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-4xl) 0;
}

.hero-text {
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  margin-bottom: var(--space-lg);
  color: var(--neutral-900);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neutral-900);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--neutral-200);
}

/* ---------- Hero Visual / Dashboard Mockup ---------- */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-dashboard {
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-2xl), 0 0 80px rgba(34, 197, 94, 0.08);
  overflow: hidden;
  position: relative;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--neutral-100);
  background: var(--neutral-50);
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-dots span:nth-child(1) { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #eab308; }
.dashboard-dots span:nth-child(3) { background: #22c55e; }

.dashboard-title {
  font-size: 0.8rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.dashboard-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.dash-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
}

.dash-card-main {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04), rgba(34, 197, 94, 0.01));
  border-color: rgba(34, 197, 94, 0.15);
}

.dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dash-card-label {
  font-size: 0.78rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.dash-card-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dash-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.dash-trend.up {
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary-600);
}

.dash-mini-chart {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
}

.dash-bar {
  flex: 1;
  background: var(--neutral-200);
  border-radius: 4px 4px 0 0;
  transition: all var(--transition-base);
}

.dash-bar.active {
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.dash-alert {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  font-size: 0.78rem;
  color: var(--info);
  font-weight: 500;
}

.dash-alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--neutral-100);
  z-index: 3;
}

.floating-card-1 {
  top: 15%;
  right: -15px;
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  bottom: 20%;
  left: -20px;
  animation: float 5s ease-in-out infinite reverse;
}

/* Trusted Section */
.hero-trusted {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-3xl);
}

.trusted-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.trusted-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--surface-primary);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-card .text-h3 {
  margin-bottom: var(--space-sm);
}

.feature-card .text-body {
  margin-bottom: var(--space-lg);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- How It Works (Dark Section) ---------- */
.section-dark {
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

.steps-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-600), rgba(34, 197, 94, 0.1));
}

.step-item {
  display: flex;
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.step-content .text-h3 {
  margin-bottom: var(--space-sm);
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.step-tags span {
  font-size: 0.78rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Comparison Table ---------- */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}

.comparison-table th {
  padding: var(--space-lg);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-500);
  background: var(--neutral-50);
  border-bottom: 2px solid var(--neutral-200);
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-700);
}

.comparison-table td:first-child {
  text-align: left;
  min-width: 220px;
}

.check-yes {
  color: var(--primary-500);
  font-weight: 700;
  font-size: 1.2rem;
}

.check-no {
  color: var(--neutral-300);
  font-size: 1.1rem;
}

.highlight-row {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04), rgba(34, 197, 94, 0.02));
}

.highlight-row td {
  border-bottom: none;
  font-weight: 600;
  color: var(--primary-700);
}

.highlight-row td:first-child {
  color: var(--primary-700);
}

.highlight-row .check-yes {
  color: var(--primary-600);
  font-size: 1.3rem;
}

/* ---------- Tech Stack ---------- */
.section-subtle {
  background: var(--neutral-50);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.tech-card {
  text-align: center;
  padding: var(--space-2xl);
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.tech-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--neutral-800);
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--neutral-500);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-2xl);
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #eab308;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--neutral-600);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--neutral-800);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding-bottom: var(--space-4xl);
}

.cta-card {
  position: relative;
  background: var(--surface-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  overflow: hidden;
}

.cta-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(34, 197, 94, 0.2);
  top: -20%;
  right: -10%;
}

.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.12);
  bottom: -20%;
  left: -5%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .floating-card-1 {
    right: -5px;
  }

  .floating-card-2 {
    left: -5px;
  }

  .features-grid,
  .tech-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .tech-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: var(--space-2xl);
  }

  .floating-card {
    display: none;
  }
}
