/**
 * YTubeGen Public Landing – design system
 * Cards, buttons, typography, icons for landing and public pages
 */
:root {
  --lp-primary: #6366f1;
  --lp-primary-dark: #4f46e5;
  --lp-primary-light: #818cf8;
  --lp-accent: #ec4899;
  --lp-hero-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  --lp-card-bg: rgba(255, 255, 255, 0.95);
  --lp-card-border: rgba(0, 0, 0, 0.06);
  --lp-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --lp-card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --lp-radius-sm: 8px;
  --lp-radius-md: 12px;
  --lp-radius-lg: 16px;
  --lp-radius-xl: 24px;
  --lp-radius-full: 9999px;
  --lp-space-1: 0.25rem;
  --lp-space-2: 0.5rem;
  --lp-space-3: 0.75rem;
  --lp-space-4: 1rem;
  --lp-space-5: 1.25rem;
  --lp-space-6: 1.5rem;
  --lp-space-8: 2rem;
  --lp-space-10: 2.5rem;
  --lp-space-12: 3rem;
  --lp-text-hero: 3rem;
  --lp-text-hero-md: 4rem;
  --lp-text-hero-lg: 4.5rem;
  --lp-text-title: 1.875rem;
  --lp-text-title-lg: 2.25rem;
  --lp-text-card: 1.25rem;
  --lp-text-body: 1rem;
  --lp-text-sm: 0.875rem;
  --lp-text-xs: 0.75rem;
  --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Typography */
.lp-hero-title {
  font-family: var(--lp-font);
  font-size: clamp(2.25rem, 5vw, var(--lp-text-hero-lg));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lp-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.5;
  opacity: 0.92;
}

.lp-section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--lp-space-2);
  padding: var(--lp-space-2) var(--lp-space-4);
  border-radius: var(--lp-radius-full);
  font-size: var(--lp-text-sm);
  font-weight: 600;
}

.lp-section-title {
  font-size: clamp(1.75rem, 3vw, var(--lp-text-title-lg));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lp-section-desc {
  font-size: var(--lp-text-body);
  line-height: 1.6;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.lp-card {
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-lg);
  padding: var(--lp-space-8);
  box-shadow: var(--lp-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-card-shadow-hover);
  border-color: rgba(99, 102, 241, 0.15);
}

.lp-card-coming-soon:hover {
  transform: none;
  box-shadow: var(--lp-card-shadow);
}

/* Compact feature cards – single row on large screens */
.lp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lp-space-4);
}
@media (min-width: 640px) {
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lp-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .lp-features-grid { grid-template-columns: repeat(5, 1fr); }
}

.lp-card-compact {
  padding: var(--lp-space-4);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lp-card-compact .lp-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.125rem;
  margin-bottom: var(--lp-space-3);
  flex-shrink: 0;
}

.lp-card-compact .lp-card-title {
  font-size: 1rem;
  margin-bottom: var(--lp-space-2);
  flex-shrink: 0;
}

.lp-card-compact .lp-card-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: var(--lp-space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 2.9em;
}

.lp-card-compact .lp-card-footer {
  margin-top: auto;
  gap: var(--lp-space-2);
  flex-shrink: 0;
  align-items: center;
  min-height: 2.25rem;
}

.lp-card-compact .lp-btn {
  padding: var(--lp-space-2) var(--lp-space-3);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.lp-card-compact .lp-card-meta {
  font-size: 0.6875rem;
}

.lp-card-compact.lp-card-coming-soon .absolute {
  top: var(--lp-space-3);
  right: var(--lp-space-3);
  font-size: 0.625rem;
  padding: 2px 6px;
}

.lp-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--lp-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--lp-space-5);
  flex-shrink: 0;
}

.lp-card-title {
  font-size: var(--lp-text-card);
  font-weight: 700;
  margin-bottom: var(--lp-space-3);
  letter-spacing: -0.01em;
}

.lp-card-text {
  font-size: var(--lp-text-sm);
  line-height: 1.6;
  margin-bottom: var(--lp-space-5);
}

.lp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--lp-space-3);
}

.lp-card-meta {
  font-size: var(--lp-text-xs);
  font-weight: 500;
  opacity: 0.8;
}

/* Buttons – icon + text alignment */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lp-space-2);
  padding: var(--lp-space-3) var(--lp-space-6);
  font-family: var(--lp-font);
  font-size: var(--lp-text-sm);
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--lp-radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-btn i,
.lp-btn .lp-btn-icon {
  font-size: 1em;
  opacity: 0.95;
}

.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.lp-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.lp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.lp-btn-white {
  background: #fff;
  color: var(--lp-primary-dark);
}

.lp-btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.lp-btn-lg {
  padding: var(--lp-space-4) var(--lp-space-8);
  font-size: 1.0625rem;
}

/* Stats / metrics */
.lp-stat {
  text-align: center;
}

.lp-stat-value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.lp-stat-label {
  font-size: var(--lp-text-sm);
  opacity: 0.85;
  margin-top: 2px;
}

/* Section spacing */
.lp-section {
  padding-top: var(--lp-space-12);
  padding-bottom: var(--lp-space-12);
}

.lp-section-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lp-space-4);
  padding-right: var(--lp-space-4);
}

@media (min-width: 640px) {
  .lp-section-inner { padding-left: var(--lp-space-6); padding-right: var(--lp-space-6); }
}

@media (min-width: 1024px) {
  .lp-section-inner { padding-left: var(--lp-space-8); padding-right: var(--lp-space-8); }
}

/* Hero overrides when using design system */
.lp-hero {
  background: var(--lp-hero-bg);
  position: relative;
  overflow: hidden;
}

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

/* CTA section */
.lp-cta {
  background: linear-gradient(135deg, var(--lp-primary) 0%, #7c3aed 100%);
}

/* Footer list links with icons */
.lp-footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--lp-space-2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.lp-footer-link:hover {
  transform: translateX(2px);
}
