/* Vidzylo marketing homepage — separate from editor tool styles */

:root {
  --lp-bg: #07050f;
  --lp-text: #f8f6ff;
  --lp-muted: #9b93b0;
  --lp-accent: #a855f7;
  --lp-accent-2: #7c3aed;
  --lp-glow: rgba(168, 85, 247, 0.35);
  --lp-glass: rgba(255, 255, 255, 0.06);
  --lp-glass-border: rgba(255, 255, 255, 0.18);
  --lp-blur: blur(48px) saturate(200%);
  --lp-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

.landing-page {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animated ambient background */
.landing-page::before,
.landing-page::after {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.landing-page::before {
  background:
    radial-gradient(circle 480px at 15% 20%, rgba(168, 85, 247, 0.45), transparent 68%),
    radial-gradient(circle 420px at 85% 15%, rgba(124, 58, 237, 0.35), transparent 65%);
  animation: lp-drift-a 32s ease-in-out infinite;
}

.landing-page::after {
  background:
    radial-gradient(circle 440px at 70% 80%, rgba(99, 102, 241, 0.28), transparent 68%),
    radial-gradient(circle 360px at 20% 85%, rgba(168, 85, 247, 0.2), transparent 65%);
  animation: lp-drift-b 38s ease-in-out infinite;
}

@keyframes lp-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2.5%, 1.5%) scale(1.03); }
  66% { transform: translate(-1.5%, 2%) scale(0.98); }
}

@keyframes lp-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -1.5%) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page::before, .landing-page::after { animation: none; }
}

.landing-page > * { position: relative; z-index: 1; }

.glass-panel {
  background: var(--lp-glass);
  backdrop-filter: var(--lp-blur);
  -webkit-backdrop-filter: var(--lp-blur);
  border: 1px solid var(--lp-glass-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow);
}

/* Nav */
.lp-nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1140px;
  margin: 12px auto 0;
  padding: 12px 22px;
  min-height: 74px;
  border-radius: 14px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.vidzylo-logo-header {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(300px, 74vw);
  object-fit: contain;
}

.vidzylo-logo-header-lg {
  height: 49px;
  max-width: min(320px, 78vw);
}

.vidzylo-logo-header-sm {
  height: 38px;
  max-width: min(260px, 68vw);
}

.lp-brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.5));
}

.vidzylo-wordmark {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #f8f6ff;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.12);
}

.vidzylo-wordmark-sm {
  font-size: 1.15rem;
}

.vidzylo-i {
  position: relative;
  display: inline-block;
  font-style: normal;
}

.vidzylo-i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.05em;
  width: 0.34em;
  height: 0.34em;
  margin-left: -0.17em;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8b4fe 0%, #9333ea 100%);
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.55);
}

.lp-brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.lp-brand-mark-sm {
  width: 36px;
  height: 36px;
}

.lp-brand-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  font-size: 11px;
  color: #fff;
}

.lp-nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.lp-nav-links a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.lp-nav-links a:hover { color: var(--lp-text); }

.lp-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s var(--lp-ease), transform 0.12s var(--lp-ease), box-shadow 0.15s;
  border: none;
  white-space: nowrap;
}

.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  color: #fff;
  box-shadow: 0 8px 28px var(--lp-glow);
}

.lp-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px var(--lp-glow);
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lp-glass-border);
  color: var(--lp-text);
  backdrop-filter: blur(20px);
}

.lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.lp-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.lp-btn-wide { width: 100%; }

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

.lp-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.lp-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.lp-gradient {
  background: linear-gradient(135deg, #c4b5fd, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.lp-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.lp-hero-stats {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-hero-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--lp-text);
  margin-bottom: 2px;
}

/* Mock studio preview */
.lp-hero-visual {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.lp-mock-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--lp-glass-border);
}

.lp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.lp-dot:first-child { background: #fb7185; }
.lp-dot:nth-child(2) { background: #fbbf24; }
.lp-dot:nth-child(3) { background: #34d399; }

.lp-mock-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--lp-muted);
  font-weight: 500;
}

.lp-mock-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1030 0%, #0d0818 50%, #1e1240 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.lp-mock-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.2), transparent 60%);
}

.lp-mock-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  z-index: 1;
}

.lp-mock-timeline {
  padding: 12px 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 6px;
}

.lp-mock-track {
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow: hidden;
}

.lp-mock-track.thin { height: 18px; }

.lp-mock-clip {
  border-radius: 4px;
  flex: 1;
  min-width: 40px;
}

.lp-mock-clip.c1 { background: linear-gradient(90deg, #6366f1, #8b5cf6); flex: 2; }
.lp-mock-clip.c2 { background: linear-gradient(90deg, #7c3aed, #a855f7); flex: 1.5; }
.lp-mock-clip.c3 { background: linear-gradient(90deg, #9333ea, #c026d3); flex: 1; }

.lp-mock-wave {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(52, 211, 153, 0.5) 0px,
    rgba(52, 211, 153, 0.5) 2px,
    transparent 2px,
    transparent 5px
  );
}

.lp-mock-wave.music {
  background: repeating-linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.4) 0px,
    rgba(251, 191, 36, 0.4) 2px,
    transparent 2px,
    transparent 4px
  );
}

/* Logos strip */
.lp-logos {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-logos p {
  font-size: 13px;
  color: var(--lp-muted);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.lp-logo-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.lp-logo-row span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

/* Sections */
.lp-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
}

.lp-section-alt {
  background: rgba(255, 255, 255, 0.02);
  max-width: 100%;
}

.lp-section-alt > * {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.lp-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.lp-section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  line-height: 1.2;
}

.lp-section-sub {
  margin-top: 12px;
  font-size: 16px;
}

.muted { color: var(--lp-muted); }
.tiny { font-size: 12px; }

/* Features grid */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-feature {
  padding: 28px 24px;
  transition: transform 0.2s var(--lp-ease), box-shadow 0.2s;
}

.lp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lp-feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.lp-feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.lp-feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-muted);
  margin: 0;
}

/* Steps */
.lp-steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
  justify-content: center;
}

.lp-step {
  flex: 1;
  max-width: 300px;
  padding: 32px 24px;
  text-align: center;
}

.lp-step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.lp-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.lp-step p {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.6;
  margin: 0;
}

.lp-step-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--lp-muted);
  opacity: 0.4;
}

/* Testimonial */
.lp-testimonial {
  padding-top: 0;
}

.lp-testimonial blockquote {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 40px;
  text-align: center;
}

.lp-testimonial p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 16px;
  font-style: italic;
}

.lp-testimonial footer {
  font-size: 14px;
  color: var(--lp-muted);
}

/* Blurred preview sections (features, steps, pricing) */
.lp-blur-wrap {
  position: relative;
}

.lp-blur-wrap .lp-blur-target {
  pointer-events: none;
  user-select: none;
}

.lp-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(7, 5, 15, 0.28);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.28);
}

.lp-blur-soon {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Pricing */
.lp-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.lp-plan {
  padding: 32px 28px;
  position: relative;
}

.lp-plan-featured {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 16px 56px rgba(168, 85, 247, 0.2), var(--lp-shadow);
  transform: scale(1.03);
}

.lp-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lp-plan h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.lp-price {
  margin-bottom: 24px;
}

.lp-price-amount {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.lp-price-period {
  font-size: 16px;
  color: var(--lp-muted);
  font-weight: 500;
}

.lp-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.lp-plan li {
  font-size: 14px;
  color: var(--lp-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-plan li::before {
  content: "✓ ";
  color: #34d399;
  font-weight: 700;
}

/* CTA banner */
.lp-cta-banner {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 48px 40px;
  text-align: center;
  border-radius: 20px;
}

.lp-cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.lp-cta-banner p {
  color: var(--lp-muted);
  font-size: 16px;
  margin: 0 0 28px;
}

/* Footer */
.lp-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.lp-footer-links {
  display: flex;
  gap: 20px;
}

.lp-footer-links a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 13px;
}

.lp-footer-links a:hover { color: var(--lp-text); }

/* Signed-in user chip */
.lp-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.lp-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-user-credits {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

/* Google sign-in modal */
.lp-google-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(8px);
}

.lp-google-modal[hidden] {
  display: none !important;
}

.lp-google-modal-card {
  position: relative;
  width: min(100%, 380px);
  padding: 28px 24px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 24, 40, 0.98), rgba(16, 14, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.lp-google-modal-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--lp-text);
}

.lp-google-modal-sub {
  margin: 0 0 20px;
  color: var(--lp-muted);
  font-size: 14px;
}

.lp-google-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lp-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lp-google-modal-close:hover {
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.12);
}

.lp-google-btn-mount {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

/* Responsive */
@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .lp-hero-visual { order: -1; }

  .lp-nav-links { display: none; }

  .lp-features,
  .lp-pricing {
    grid-template-columns: 1fr;
  }

  .lp-plan-featured { transform: none; }

  .lp-steps {
    flex-direction: column;
    align-items: center;
  }

  .lp-step-arrow { transform: rotate(90deg); }

  .lp-hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .lp-user-chip {
    display: none;
  }

  .lp-nav-actions {
    gap: 8px;
  }
}
