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

:root {
  --primary: #ff0050;
  --primary-dark: #cc0040;
  --secondary: #1a1a2e;
  --dark: #16213e;
  --light: #f5f5f7;
  --white: #ffffff;
  --gray: #6e6e73;
  --success: #34c759;
  --error: #ff3b30;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--secondary);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 20px 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--white);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Download Form */
.download-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--dark);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.input-group input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--secondary);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: var(--primary);
}

.input-group input::placeholder {
  color: var(--gray);
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: var(--gray);
  cursor: not-allowed;
  transform: none;
}

.supported-platforms {
  margin-top: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

.supported-platforms span {
  display: inline-flex;
  gap: 15px;
  margin-top: 8px;
}

.supported-platforms span img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--dark);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

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

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--secondary);
  border-radius: 16px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 200px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--dark);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

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

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

.footer p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Result Page */
.result-container {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background: var(--dark);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.result-header {
  text-align: center;
  margin-bottom: 30px;
}

.status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-badge.queued,
.status-badge.processing {
  background: rgba(255, 149, 0, 0.2);
  color: #ff9500;
}

.status-badge.completed {
  background: rgba(52, 199, 89, 0.2);
  color: var(--success);
}

.status-badge.failed {
  background: rgba(255, 59, 48, 0.2);
  color: var(--error);
}

.video-preview {
  margin: 30px 0;
}

.video-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.video-info h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.video-meta {
  display: flex;
  gap: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

.download-links {
  margin-top: 30px;
}

.download-links h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.download-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--secondary);
  border-radius: 10px;
  margin-bottom: 10px;
}

.download-option .format {
  font-weight: 600;
}

.download-option .size {
  color: var(--gray);
  font-size: 0.9rem;
}

.download-option .btn {
  padding: 10px 20px;
}

.btn-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-back:hover {
  color: var(--white);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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

/* Error Message */
.error-message {
  padding: 15px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--error);
  border-radius: 10px;
  color: var(--error);
  margin-top: 15px;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .input-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav {
    display: none;
  }

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

/* SEO Meta - Hidden but important */
.seo-meta {
  display: none;
}
