/* ==========================================================================
   MovieAssembler CSS Stylesheet
   Designed with premium, NLE dark-mode aesthetics by VidSeeds.ai
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - HSL-tailored premium values */
  --bg-deep: hsl(230, 30%, 5%);
  --bg-panel: hsl(228, 25%, 10%);
  --bg-card: hsl(228, 25%, 13%);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: hsl(263, 70%, 55%);
  
  --text-main: hsl(220, 20%, 92%);
  --text-muted: hsl(220, 10%, 65%);
  --text-dimmed: hsl(220, 8%, 45%);
  
  --primary-glow: linear-gradient(135deg, hsl(263, 80%, 60%), hsl(220, 85%, 55%));
  --primary-color: hsl(263, 80%, 60%);
  --secondary-color: hsl(190, 90%, 50%);
  
  --color-success: hsl(150, 75%, 45%);
  --color-error: hsl(355, 80%, 55%);
  
  --success-bg: rgba(16, 185, 129, 0.08);
  --error-bg: rgba(239, 68, 68, 0.08);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-deep);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Decorative Background Glows */
.glow-orb {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-purple {
  top: -10%;
  right: -5%;
  background: var(--primary-color);
}

.glow-blue {
  bottom: 20%;
  left: -10%;
  background: var(--secondary-color);
}

/* Header Styles */
.app-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
  background-color: rgba(9, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.25rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 50%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
}

.brand-name {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 5;
  padding: 5rem 0;
  text-align: center;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: hsl(263, 90%, 80%);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: hsl(263, 90%, 65%);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

/* Waitlist Form Card */
.form-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
  position: relative;
  text-align: left;
}

/* Glassmorphism utility on the form card */
@supports (backdrop-filter: blur(12px)) {
  .form-card {
    background-color: rgba(17, 19, 28, 0.75);
    backdrop-filter: blur(16px);
  }
}

.form-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Form Fields */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.textarea-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.textarea-label-row label {
  margin-bottom: 0;
  padding-right: 1rem;
}

.char-count {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  white-space: nowrap;
}

.hint-msg {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  margin-bottom: 0.35rem;
}

.error-msg {
  display: none;
  font-size: 0.825rem;
  color: var(--color-error);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Form Inputs & Styling */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Waitlist Form Interaction Styling (User Validation) */
input:user-invalid {
  border-color: var(--color-error);
  background-color: rgba(239, 68, 68, 0.03);
}

input:user-invalid + .error-msg {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

input:user-valid {
  border-color: var(--color-success);
}

/* Submit Button & Animations */
.submit-button {
  width: 100%;
  padding: 1.1rem;
  border-radius: 8px;
  border: none;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-glow);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  transition: var(--transition-smooth);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, hsl(263, 85%, 65%), hsl(220, 90%, 60%));
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading Spinner styles */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success/Error States */
.status-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.status-container h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.status-container p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 450px;
  margin-bottom: 1.25rem;
}

.ideas-feedback {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  text-align: left;
}

.status-subtext {
  font-size: 0.85rem !important;
  color: var(--text-dimmed) !important;
  margin-top: 1rem;
}

.reset-button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reset-button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features Grid Section */
.features-section {
  position: relative;
  z-index: 5;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  text-align: center;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

/* Development Status Section */
.feedback-section {
  position: relative;
  z-index: 5;
  padding: 6rem 0;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feedback-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.feedback-text h2 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.feedback-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.dev-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2.25rem;
}

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

.stat-num {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  font-weight: 500;
}

/* Roadmap List Panel */
.roadmap-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 16px;
}

.roadmap-card h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roadmap-list li {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.roadmap-list li::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 30px;
  bottom: -22px;
  width: 2px;
  background-color: var(--border-light);
}

.roadmap-list li:last-child::after {
  display: none;
}

.roadmap-list .badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 24px;
  min-width: 58px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.roadmap-list .completed .badge {
  background-color: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
  color: hsl(150, 75%, 70%);
}

.roadmap-list .in-progress .badge {
  background-color: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.25);
  color: hsl(217, 90%, 75%);
}

.roadmap-list .badge.active {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { border-color: rgba(59, 130, 246, 0.25); }
  50% { border-color: rgba(59, 130, 246, 0.7); }
  100% { border-color: rgba(59, 130, 246, 0.25); }
}

.roadmap-list .content strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.roadmap-list .content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-light);
  background-color: #050608;
  padding: 3rem 0;
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dimmed);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand-footer {
  margin-top: 0.25rem;
}

.brand-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.brand-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Keyboard Focus Outline Accessibility */
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* FAQ / Q&A Section Styles (GEO & SEO optimizations) */
.faq-section {
  position: relative;
  z-index: 5;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  padding: 6rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

@supports (backdrop-filter: blur(12px)) {
  .faq-item {
    background-color: rgba(20, 22, 33, 0.5);
    backdrop-filter: blur(8px);
  }
}

.faq-item h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.4;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

