/* Moved from index.html <style> */
:root {
  --primary: #E91E63;
  --primary-dark: #C2185B;
  --accent: #00BCD4;
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-hover: #1a1a25;
  --border: #2a2a3a;
  --text: #ffffff;
  --text-muted: #8888aa;
  --gradient: linear-gradient(135deg, #E91E63 0%, #9C27B0 50%, #00BCD4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== BACKGROUND EFFECTS ========== */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(156, 39, 176, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ========== HEADER / NAVBAR ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo span {
  font-weight: 400;
  opacity: 0.7;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropdown menu for Tools */
.nav-links { display: flex; align-items: center; gap: 18px; position: relative; }
.nav-links .nav-dropdown { position: relative; }
.dropdown-toggle { background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.dropdown-toggle:hover { background: rgba(255, 255, 255, 0.03); }
.dropdown-toggle { color: var(--text-muted); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.dropdown-toggle.active, .dropdown-toggle:focus, .dropdown-toggle:hover { color: var(--text); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; background: linear-gradient(180deg, rgba(10, 11, 14, 0.98), rgba(20, 21, 25, 0.98)); box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6); border-radius: 10px; padding: 8px; z-index: 60; }
.dropdown-menu.open { display: block; }
.dropdown-menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: 8px; transition: background .12s; }
.dropdown-menu a .badge { margin-left: 8px }
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.025); }
.dropdown-item { display: flex; align-items: center; gap: 8px; }
.badge.new { display: inline-block; margin-left: 8px; background: linear-gradient(90deg, #06b6d4, #7c3aed); color: white; font-size: 11px; padding: 4px 8px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 14px rgba(124,58,237,0.18); }

/* Ensure dropdown doesn't get clipped on small screens */
.nav-dropdown { z-index: 120 }

/* Responsive: stack nav on small widths */
@media (max-width: 720px) {
  .dropdown-menu { left: auto; right: 0; min-width: 180px }
  .nav-links { gap: 10px }
}

/* Small caret */
.chev { font-size: 12px; opacity: 0.9; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(233, 30, 99, 0.3);
}

#user-button {
  display: none;
}

/* Spacer for fixed header */
.header-spacer {
  height: 64px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 80px 5% 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 30, 99, 0.1);
  border: 1px solid rgba(233, 30, 99, 0.3);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 30px;
}

.hero-badge::before {
  content: "✨";
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* ========== UPLOAD ZONE ========== */
.upload-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5%;
}

.upload-zone {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.upload-zone:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.upload-zone:hover::before {
  opacity: 0.05;
}

.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(0, 188, 212, 0.05);
}

.upload-zone.dragover::before {
  opacity: 0.1;
}

.upload-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
}

.upload-zone h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 25px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(233, 30, 99, 0.3);
}

.upload-formats {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.upload-formats span {
  background: var(--bg-hover);
  padding: 4px 10px;
  border-radius: 6px;
  margin: 0 3px;
}

#file-input {
  display: none;
}

/* ========== IMAGE PREVIEW ========== */
.image-preview {
  display: none;
  margin-top: 30px;
}

.image-preview.active {
  display: block;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.preview-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header h4 {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-header h4::before {
  content: "🖼️";
}

.preview-actions {
  display: flex;
  gap: 10px;
}

.preview-actions button {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.preview-actions button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.preview-image-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  max-height: 400px;
  overflow: hidden;
}

.preview-image-container img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ========== ANALYZE BUTTON ========== */
.analyze-section {
  display: none;
  margin-top: 30px;
  text-align: center;
}

.analyze-section.active {
  display: block;
}

.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient);
  color: white;
  padding: 18px 50px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.analyze-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.analyze-btn:hover::before {
  left: 100%;
}

.analyze-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(233, 30, 99, 0.4);
}

.analyze-btn .icon {
  font-size: 24px;
}

.analyze-hint {
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== LOADING STATE ========== */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-overlay.active {
  display: flex;
}



.loading-steps {
  margin-top: 30px;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.loading-step.active {
  color: var(--accent);
}

.loading-step.done {
  color: #4CAF50;
}

.loading-step .check {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.loading-step.done .check::after {
  content: "✓";
}

.loading-step.active .check {
  border-color: var(--accent);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========== FLOW SECTION ========== */
.flow-section {
  position: relative;
  z-index: 10;
  padding: 100px 5%;
  text-align: center;
}

.flow-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.flow-steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: nowrap;
  max-width: 1400px;
  margin: 0 auto;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 20px;
  flex: 1;
  min-width: 0;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.flow-step:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.flow-step .number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.flow-step .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.flow-step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 30px;
}

/* ========== FEATURES ========== */
.features-section {
  position: relative;
  z-index: 10;
  padding: 60px 5% 100px;
}

.features-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.feature .icon {
  font-size: 28px;
  flex-shrink: 0;
}

.feature h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 5%;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

/* ========== PRICING ========== */
.pricing-section {
  position: relative;
  z-index: 10;
  padding: 10px 5%;
  text-align: center;
}

.pricing-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-section .subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 50px;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 35px;
  flex: 1;
  max-width: 420px;
  text-align: left;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(233, 30, 99, 0.15);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-card .plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .price-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.pricing-card ul li .check {
  color: #4CAF50;
  font-size: 16px;
  flex-shrink: 0;
}

.pricing-card ul li .cross {
  color: #666;
  font-size: 16px;
  flex-shrink: 0;
}

.pricing-card ul li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

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

.pricing-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.3);
}

.pricing-btn.secondary {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-btn.secondary:hover {
  border-color: var(--text-muted);
}

/* ========== FAQ (Pricing) ========== */
.faq-section {
  position: relative;
  z-index: 10;
  padding: 60px 5% 90px;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-section h3 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 6px;
}

.faq-section .subtitle { color: var(--text-muted); margin-bottom: 20px; font-size:16px }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column, one-per-row */
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.faq-q {
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-right: 6px;
  font-size: 18px;
}

.faq-q .arrow { color: var(--text-muted); font-size: 16px; }

.faq-a {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
  font-size: 16px;
}

.faq-a.open { display: block; }

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 40px 5% 60px; }
  .faq-section h3 { font-size: 28px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .flow-arrow {
    display: none;
  }
  
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .pricing-card {
    max-width: 100%;
  }
  
  .features-grid {
    flex-wrap: wrap;
  }
  
  .feature {
    flex: 1 1 100%;
  }
  
  .upload-zone {
    padding: 40px 20px;
  }
  
  .nav-links {
    display: none;
  }
}

/* ========== LANG SWITCH ========== */
.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switch button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
}
.lang-switch button svg {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  display: block;
}
.lang-switch button.active {
  opacity: 1;
  border-color: var(--accent);
}

/* ========== WAITLIST MODAL ========== */
.wl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.wl-overlay.active { display: flex; }
.wl-card {
  background: #12121A;
  border: 1px solid #3a3a50;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.wl-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #8888aa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.wl-close:hover { color: #fff; }
.wl-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f0f5;
}
.wl-card p {
  font-size: 0.9rem;
  color: #747686;
  margin-bottom: 20px;
  line-height: 1.5;
}
.wl-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3a3a50;
  background: #2a2a3e;
  color: #f0f0f5;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.wl-input:focus { border-color: #E91E63; }
.wl-input::placeholder { color: #747686; }
.wl-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}
.wl-submit:hover { opacity: 0.9; }
.wl-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.wl-error {
  color: #f44336;
  font-size: 0.82rem;
  margin-bottom: 10px;
  display: none;
}
.wl-success-msg {
  text-align: center;
  color: #4CAF50;
  font-size: 1rem;
  font-weight: 500;
  padding: 20px 0;
  line-height: 1.6;
}
