/**
 * Landing page – Liza branding. Inspired by competitor layout; distinct look and no free trial.
 */

:root {
  --liza-start: #6366f1;
  --liza-mid: #8b5cf6;
  --liza-end: #a855f7;
  --liza-gradient: linear-gradient(135deg, var(--liza-start) 0%, var(--liza-mid) 50%, var(--liza-end) 100%);
  --bg: #0f0e17;
  --bg-elevated: #1a1926;
  --bg-card: #1e1b2e;
  --text: #f4f3f8;
  --text-muted: #9ca3af;
  --border: rgba(139, 92, 246, 0.25);
  --glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --section-padding: 4rem 1.5rem;
  --content-max: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Playfair Display', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

main {
  position: relative;
  z-index: 1;
}

/* ----- Night sky (stars + shooting star) ----- */
.landing-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-stars {
  position: absolute;
  inset: 0;
}

.landing-stars .star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.4);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----- Header ----- */
.landing-header {
  position: static;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.landing-header-logo {
  font-family: 'Playfair Display', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  background: var(--liza-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-header-logo::after {
  content: ' • Smarter Outreach';
  font-family: 'Playfair Display', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.55em;
  font-weight: 400;
  background: var(--liza-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0.45em;
}

.landing-header-tagline {
  font-family: 'Playfair Display', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .landing-header-tagline {
    white-space: normal;
    font-size: 0.9rem;
  }
}

.landing-header-signin {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.landing-header-signin:hover {
  color: var(--liza-mid);
}

/* ----- Hero ----- */
.landing-hero {
  position: relative;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--liza-gradient);
  opacity: 0.06;
  pointer-events: none;
}

.landing-hero-bg::after {
  content: '';
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  top: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 60%);
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.landing-hero-copy {
  max-width: 560px;
}

.landing-hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-rail {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.45) 0%, rgba(15, 23, 42, 0) 60%);
  filter: blur(6px);
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-carousel-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  inset: 0;
}

.hero-carousel-image.is-active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.hero-carousel-arrow {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hero-carousel-arrow:hover {
  background: rgba(30, 64, 175, 0.95);
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-1px);
}

.hero-carousel-arrow-left {
  margin-right: 0.25rem;
}

.hero-carousel-arrow-right {
  margin-left: 0.25rem;
}

.landing-hero-card {
  position: relative;
  background: linear-gradient(145deg, #111827, #020617);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
  min-width: 260px;
}

.landing-hero-avatar-circle {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97316 0%, #ec4899 35%, #6366f1 80%);
  margin-bottom: 0.85rem;
}

.landing-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-bottom: 0.75rem;
}

.landing-hero-stats {
  display: flex;
  gap: 1rem;
}

.landing-hero-stat .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.landing-hero-stat .value {
  font-size: 1.1rem;
  font-weight: 600;
}

@media (min-width: 960px) {
  .landing-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .landing-hero-copy {
    max-width: 560px;
  }

  .landing-hero-cta {
    justify-content: flex-start;
  }
}

.landing-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.landing-hero-line {
  display: block;
}

.landing-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.landing-hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.landing-signed-in {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #6ee7b7;
  text-align: center;
  display: none;
}

.landing-signed-in.visible {
  display: block;
}

/* ----- Buttons ----- */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.landing-btn-chrome {
  background: var(--liza-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.landing-btn-chrome:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

.landing-btn-chrome:active {
  transform: translateY(0) scale(0.98);
}

@keyframes landing-cta-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 6px 22px rgba(139, 92, 246, 0.5); }
}

.landing-hero-cta .landing-btn-chrome {
  animation: landing-cta-pulse 2.5s ease-in-out infinite;
}

.landing-hero-cta .landing-btn-chrome:hover {
  animation: none;
}

.landing-btn-chrome-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C8.21 0 4.831 1.757 2.65 4.501l3.953 6.848A5.5 5.5 0 0 1 12 6.5h9.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H12a3.5 3.5 0 0 0-3.5 3.5 3.5 3.5 0 0 0 3.5 3.5h.5a2.5 2.5 0 0 1 2.5 2.5v.5a.5.5 0 0 1-.5.5H12A5.5 5.5 0 0 1 6.5 12a5.5 5.5 0 0 1 5.5-5.5h9.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H12a3.5 3.5 0 0 0-3.5 3.5 3.5 3.5 0 0 0 3.5 3.5h.5a2.5 2.5 0 0 1 2.5 2.5v.5a.5.5 0 0 1-.5.5H12a5.5 5.5 0 0 1-5.5-5.5 5.5 5.5 0 0 1 5.5-5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.landing-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.landing-btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--liza-mid);
}

.landing-btn-outline {
  background: transparent;
  color: var(--liza-mid);
  border: 1px solid var(--liza-mid);
}

.landing-btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
}

/* ----- Sections ----- */
.landing-section {
  padding: var(--section-padding);
  max-width: var(--content-max);
  margin: 0 auto;
}

.landing-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.landing-section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Scroll reveal (base state) ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].landing-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] .landing-how-card,
[data-reveal] .landing-feature-card {
  transition: transform 0.3s ease, border-color 0.2s, box-shadow 0.2s;
}

[data-reveal] .landing-how-card:hover,
[data-reveal] .landing-feature-card:hover {
  transform: translateY(-4px);
}

[data-reveal] .landing-how-icon,
[data-reveal] .landing-feature-icon {
  transition: transform 0.25s ease;
}

[data-reveal] .landing-how-card:hover .landing-how-icon,
[data-reveal] .landing-feature-card:hover .landing-feature-icon {
  transform: scale(1.1);
}

/* Staggered card reveal when section is visible */
.landing-how-grid .landing-how-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out, border-color 0.2s, box-shadow 0.2s;
}

[data-reveal].landing-revealed .landing-how-grid .landing-how-card:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].landing-revealed .landing-how-grid .landing-how-card:nth-child(2) { transition-delay: 0.15s; }
[data-reveal].landing-revealed .landing-how-grid .landing-how-card:nth-child(3) { transition-delay: 0.25s; }

[data-reveal].landing-revealed .landing-how-grid .landing-how-card {
  opacity: 1;
  transform: translateY(0);
}

.landing-features-grid .landing-feature-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, border-color 0.2s, box-shadow 0.2s;
}

[data-reveal].landing-revealed .landing-features-grid .landing-feature-card {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].landing-revealed .landing-features-grid .landing-feature-card:nth-child(1) { transition-delay: 0.03s; }
[data-reveal].landing-revealed .landing-features-grid .landing-feature-card:nth-child(2) { transition-delay: 0.08s; }
[data-reveal].landing-revealed .landing-features-grid .landing-feature-card:nth-child(3) { transition-delay: 0.13s; }
[data-reveal].landing-revealed .landing-features-grid .landing-feature-card:nth-child(4) { transition-delay: 0.18s; }
[data-reveal].landing-revealed .landing-features-grid .landing-feature-card:nth-child(5) { transition-delay: 0.23s; }
[data-reveal].landing-revealed .landing-features-grid .landing-feature-card:nth-child(6) { transition-delay: 0.28s; }
