/* VideoAIPro — Public marketing & auth pages */

:root {
  --bg-base: #f9fafb;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

body.public-page {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1f2937;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f3f4f6;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-stats strong {
  color: var(--text-primary);
}

.hero-card {
  padding: 1.25rem;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.green {
  background: #22c55e;
}

.hero-prompt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 1rem;
  font-style: italic;
}

.hero-progress {
  height: 6px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.hero-progress-bar {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 99px;
  animation: pulse-bar 2s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Features grid */
.features-grid-public {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card-public {
  padding: 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card-public:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-icon.indigo { background: #eef2ff; }
.feature-icon.purple { background: #f3e8ff; }
.feature-icon.teal { background: #ecfeff; }
.feature-icon.amber { background: #fffbeb; }
.feature-icon.rose { background: #fff1f2; }
.feature-icon.emerald { background: #ecfdf5; }

.feature-card-public h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card-public p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Demo */
.demo-player {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.demo-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: var(--text-secondary);
}

.demo-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.demo-placeholder span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.pricing-card {
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.pricing-featured {
  border-color: var(--accent);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
}

.pricing-price {
  margin: 0 0 0.25rem;
}

.pricing-price span {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-credits {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA */
.cta-inner {
  text-align: center;
  padding: 3rem 2rem;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
}

.cta-inner p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* Auth */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  width: min(420px, 100%);
  padding: 2rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.auth-sub {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-footer,
.auth-legal {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}

.auth-legal {
  font-size: 0.8rem;
}

.auth-footer a,
.auth-legal a {
  color: var(--accent);
}

/* Legal */
.legal-section {
  padding: 3rem 0 4rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem;
}

.legal-content h1 {
  margin: 0 0 0.25rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  width: 100%;
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .features-grid-public,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-featured {
    transform: none;
  }

  .site-nav a:not(.btn) {
    display: none;
  }
}
