/* ===================================
   BATCHIFY – REDESIGNED STYLESHEET
   Modern, clean, professional design
=================================== */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --panel: #f1f5f9;
  --panel-soft: #f8fafc;

  --text: #1e293b;
  --text-secondary: #475569;
  --muted: #94a3b8;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;
  --accent-glow: rgba(99, 102, 241, 0.15);

  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --header-bg: rgba(15, 23, 42, 0.95);
  --header-border: rgba(255,255,255,0.06);
  --header-text: #ffffff;
  --header-text-muted: #c7d2fe;

  --heading-primary: #0f172a;
  --heading-secondary: #1e293b;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  color: var(--heading-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 1.85rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p, li, .section p, .section li, .card p, .card li, .review-card p {
  color: var(--text);
}

strong {
  color: var(--accent);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* --- SECTION DIVIDER --- */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 40px 0;
  opacity: 0.3;
}

/* ===================================
   HEADER – Glassmorphism sticky
=================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--header-border);
  transition: background 0.3s;
}

.header-flex {
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  height: 100%;
}

.brand-icon {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.brand-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--header-text);
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  height: auto;
  margin-left: 0;
}

nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

nav a.active {
  background: transparent;
  color: #ffffff;
}

nav a.active::after {
  display: none;
}

/* ==========================
   DROPDOWN MENU
========================== */

.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Hidden by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* ===================================
   HERO SECTION – Gradient backdrop
=================================== */
.hero {
  background: var(--gradient-hero);
  padding: 60px 24px 50px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-dark {
  background: var(--gradient-hero);
}

.hero-content {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  flex: 0 0 550px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-copy h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-copy h1 span {
  color: #ffffff;
  -webkit-text-fill-color: initial;
}

.hero h1, .hero p, .lead {
  margin-top: 0;
  margin-bottom: 6px;
}

.lead {
  margin: 14px 0 20px;
  color: rgba(255,255,255,0.7);
}

/* --- HERO BADGES --- */
.hero-badges {
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  list-style: none;
  padding: 0;
}

.hero-badges li {
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}

.hero-badges li:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* --- CTA BUTTONS --- */
.cta-row {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

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

.btn.ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn.ghost:hover {
  background: var(--accent-light);
}

.download-card .btn {
  margin-top: 5px;
}

/* --- HERO VISUAL / IMAGE CAROUSEL --- */
.hero-visual {
  flex: 1;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.image-viewer {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}

.image-viewer img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: auto;
  background: #0f172a;
}

input[type="radio"] { display: none; }
.images img { display: none; }

#img1:checked ~ .images img:nth-child(1),
#img2:checked ~ .images img:nth-child(2),
#img3:checked ~ .images img:nth-child(3),
#img4:checked ~ .images img:nth-child(4),
#img5:checked ~ .images img:nth-child(5),
#img6:checked ~ .images img:nth-child(6),
#img7:checked ~ .images img:nth-child(7),
#img8:checked ~ .images img:nth-child(8),
#img9:checked ~ .images img:nth-child(9),
#img10:checked ~ .images img:nth-child(10),
#img11:checked ~ .images img:nth-child(11),
#img12:checked ~ .images img:nth-child(12) {
  display: block;
}

.nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.nav:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.05);
}

.prev { left: 16px; }
.next { right: 16px; }

#img1:checked ~ .prev1, #img1:checked ~ .next1 { display: block; }
#img2:checked ~ .prev2, #img2:checked ~ .next2 { display: block; }
#img3:checked ~ .prev3, #img3:checked ~ .next3 { display: block; }
#img4:checked ~ .prev4, #img4:checked ~ .next4 { display: block; }
#img5:checked ~ .prev5, #img5:checked ~ .next5 { display: block; }
#img6:checked ~ .prev6, #img6:checked ~ .next6 { display: block; }
#img7:checked ~ .prev7, #img7:checked ~ .next7 { display: block; }
#img8:checked ~ .prev8, #img8:checked ~ .next8 { display: block; }
#img9:checked ~ .prev9, #img9:checked ~ .next9 { display: block; }
#img10:checked ~ .prev10, #img10:checked ~ .next10 { display: block; }
#img11:checked ~ .prev11, #img11:checked ~ .next11 { display: block; }
#img12:checked ~ .prev12, #img12:checked ~ .next12 { display: block; }

/* ===================================
   MAIN CONTENT AREA
=================================== */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- SECTIONS --- */
.section {
  background: var(--bg-white);
  padding: 32px;
  margin: 32px 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.section:hover {
  box-shadow: var(--shadow-md);
}

.section h2 {
  position: relative;
  padding-bottom: 12px;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 4px;
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  gap: 0;
}

.features-grid .card + .card {
  margin-top: 16px;
}

/* --- CARDS --- */
.card {
  padding: 24px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--heading-primary);
  margin-top: 0;
}

/* ===================================
   DEMO VIDEOS
=================================== */
.demo-videos h2 {
  text-align: center;
}

.demo-videos .center {
  text-align: center;
  color: var(--text-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.video-card {
  text-align: center;
}

.video-card h4 {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.06);
}

.video-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
}

/* ===================================
   HOW-TO STEPS
=================================== */
.howto-steps {
  display: grid;
  gap: 32px;
}

.step-item {
  position: relative;
  padding-left: 0;
}

.step-item h3 {
  color: var(--accent);
  font-size: 1.15rem;
}

.step-item img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-item img:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ===================================
   PRIVACY / INFO SECTIONS
=================================== */
.privacy {
  background: var(--panel);
  border: 1px solid var(--border);
}

/* ===================================
   REVIEW FORM & CARDS
=================================== */
.review-form {
  max-width: 520px;
  margin: auto;
  display: grid;
  gap: 14px;
}

.review-form input,
.review-form select,
.review-form textarea {
  height: 50px;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.review-form textarea {
  height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.review-form button {
  height: 50px;
  font-size: 15px;
}

.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
  color: var(--text-secondary);
  transition: border-color 0.2s;
}

.review-card:hover {
  border-color: var(--accent);
}

/* ===================================
   GRID UTILITIES
=================================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

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

/* ===================================
   FAQ SEARCH
=================================== */
.faq-search-wrapper {
  max-width: 420px;
  width: 100%;
  margin: 16px auto 30px;
  padding: 0 16px;
  box-sizing: border-box;
}

#faqSearch {
  width: 100%;
  max-width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
  background: var(--bg-white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s;
}

#faqSearch::placeholder {
  color: var(--muted);
}

#faqSearch:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===================================
   REQUIREMENTS
=================================== */
.requirements ul {
  list-style: none;
  padding-left: 0;
}

.requirements ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.requirements ul li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ===================================
   FOOTER – Clean & modern
=================================== */
footer {
  text-align: center;
  padding: 15px 0;
  background: var(--bg-white);
  color: var(--muted);
  width: 100%;
}

.footer-premium {
  background: var(--bg-white);
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.footer-column {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-column h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-column a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 768px) {
  .image-viewer {
    border-radius: var(--radius-md);
  }

  .image-viewer img {
    max-height: 65vh;
  }

  .nav {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 18px;
  }

  .hero {
    padding: 40px 16px 36px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }

  .hero-copy {
    flex: auto;
    width: 100%;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .section {
    padding: 24px 18px;
    margin: 20px 0;
    border-radius: var(--radius-lg);
  }

  .card {
    padding: 18px;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 650px) {
  nav a { display: none; }
  .hero-copy { text-align: left; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }

  .container-main {
    padding: 0 14px;
  }

  .hero {
    padding: 32px 14px 28px;
  }
}

@media (max-width: 900px) {
  .faq-search-wrapper {
    position: static;
    margin-top: 15px;
    text-align: center;
  }

  #faqSearch {
    width: 90%;
    max-width: 320px;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
  }
}
