/* ============================================
   OFFLIN Design System — Light Theme
   Clean, minimal, breathable — teal accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7f8;
  --bg-elevated: #f0f2f4;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --accent: #0d9488;
  --accent-dim: #0f766e;
  --accent-light: #ccfbf1;
  --accent-glow: rgba(13, 148, 136, 0.08);
  --accent-glow-strong: rgba(13, 148, 136, 0.15);

  --accent-2: #0284c7;
  --accent-3: #ea580c;

  --border-color: #e5e7eb;
  --border-hover: #d1d5db;

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

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 30px rgba(13,148,136,0.12);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-dim); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Subtle dot grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, #d1d5db 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none; z-index: 0;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a { padding: 8px 16px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; border-radius: var(--radius-full); transition: all var(--transition-fast); }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text-primary); background: var(--bg-elevated); }
.nav-desktop .nav-cta { background: var(--accent); color: #fff !important; font-weight: 600; padding: 8px 20px; margin-left: 8px; }
.nav-desktop .nav-cta:hover { background: var(--accent-dim); box-shadow: var(--shadow-glow); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text-primary); }
.nav-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none; position: fixed; inset: 0; top: var(--header-height);
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  z-index: 999; padding: 24px; flex-direction: column; gap: 4px; overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { display: block; padding: 16px 20px; color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; border-radius: var(--radius-md); }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--text-primary); background: var(--bg-elevated); }
.nav-mobile .nav-cta { margin-top: 16px; background: var(--accent); color: #fff !important; font-weight: 600; text-align: center; border-radius: var(--radius-md); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 65%);
  opacity: 0.5; pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--accent-light);
  border: 1px solid rgba(13,148,136,0.2); border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase;
  animation: fadeInDown 0.6s ease;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ========== DOWNLOAD BOX ========== */
.download-box { position: relative; z-index: 1; width: 100%; max-width: 680px; margin: 0 auto; animation: fadeInUp 0.6s ease 0.3s both; }
.download-input-wrapper {
  display: flex; background: var(--bg-card); border: 2px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.download-input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md); }
.download-input-wrapper input { flex: 1; background: transparent; border: none; padding: 18px 24px; font-size: 1rem; font-family: 'Outfit', sans-serif; color: var(--text-primary); outline: none; }
.download-input-wrapper input::placeholder { color: var(--text-muted); }
.download-input-wrapper button { padding: 18px 32px; background: var(--accent); color: #fff; border: none; font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.download-input-wrapper button:hover { background: var(--accent-dim); }

.download-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }
.download-hint svg { width: 14px; height: 14px; }

/* ========== PLATFORM ICONS ROW ========== */
.platforms-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.4s both; }
.platform-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); transition: all var(--transition-base); cursor: pointer; box-shadow: var(--shadow-sm);
}
.platform-icon:hover { border-color: var(--accent); background: var(--accent-light); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.platform-icon svg { width: 22px; height: 22px; fill: var(--text-muted); transition: fill var(--transition-fast); }
.platform-icon:hover svg { fill: var(--accent); }

/* ========== DOWNLOAD RESULT ========== */
.download-result { display: none; margin-top: 24px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.download-result.active { display: block; animation: fadeInUp 0.3s ease; }
.download-result .result-preview { display: flex; gap: 16px; align-items: center; }
.download-result .result-preview img, .download-result .result-preview video { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.download-result .result-info { flex: 1; }
.download-result .result-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.download-result .result-info p { font-size: 0.8rem; color: var(--text-muted); }
.download-result .result-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.btn-download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); }
.btn-download:hover { background: var(--accent-dim); box-shadow: var(--shadow-glow); color: #fff; }
.btn-download.secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-download.secondary:hover { border-color: var(--border-hover); }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition-base); box-shadow: var(--shadow-sm); }
.feature-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Platform Cards */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.platform-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition-base); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.platform-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-accent, var(--accent)); opacity: 0; transition: opacity var(--transition-base); }
.platform-card:hover::before { opacity: 1; }
.platform-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.platform-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.platform-card-header svg { width: 36px; height: 36px; flex-shrink: 0; }
.platform-card-header h3 { font-size: 1.2rem; font-weight: 700; }
.platform-card-links { list-style: none; }
.platform-card-links li { margin-bottom: 4px; }
.platform-card-links a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--text-secondary); font-size: 0.9rem; border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.platform-card-links a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.platform-card-links a svg { width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 2; }
.platform-card-links a:hover svg { stroke: var(--accent); }
.platform-card[data-platform="facebook"] { --card-accent: #1877f2; }
.platform-card[data-platform="instagram"] { --card-accent: #e1306c; }
.platform-card[data-platform="twitter"] { --card-accent: #1da1f2; }
.platform-card[data-platform="youtube"] { --card-accent: #ff0000; }
.platform-card[data-platform="linkedin"] { --card-accent: #0a66c2; }
.platform-card[data-platform="tiktok"] { --card-accent: #00f2ea; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step-counter; }
.step-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; position: relative; counter-increment: step-counter; box-shadow: var(--shadow-sm); }
.step-card::before { content: counter(step-counter); position: absolute; top: -14px; left: 24px; width: 28px; height: 28px; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 800; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; }
.step-card .step-icon { width: 56px; height: 56px; margin-bottom: 20px; background: var(--accent-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.step-card .step-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 2; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; background: none; border: none; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; text-align: left; }
.faq-question svg { width: 20px; height: 20px; stroke: var(--text-muted); fill: none; stroke-width: 2; flex-shrink: 0; transition: transform var(--transition-base); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 24px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* CTA */
.cta-section { text-align: center; padding: 80px 24px; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 65%); opacity: 0.5; pointer-events: none; }
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; position: relative; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-full); font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition-base); position: relative; }
.btn-primary:hover { background: var(--accent-dim); box-shadow: var(--shadow-glow); transform: translateY(-1px); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: var(--radius-full); font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition-base); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--text-primary); color: #d1d5db;
  padding: 0 0 32px; position: relative; z-index: 1; overflow: hidden;
}

.footer-svg-art { display: block; width: 100%; height: auto; margin-bottom: 48px; }

.footer-svg-art .draw-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawLine 3s ease forwards; }
.footer-svg-art .draw-line-d1 { stroke-dasharray: 800; stroke-dashoffset: 800; animation: drawLine 3s ease 0.4s forwards; }
.footer-svg-art .draw-line-d2 { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLine 3s ease 0.8s forwards; }
.footer-svg-art .float-dot { animation: floatDot 6s ease-in-out infinite; }
.footer-svg-art .float-dot-alt { animation: floatDot 6s ease-in-out 2s infinite; }
.footer-svg-art .pulse-ring { animation: pulseRing 4s ease-in-out infinite; transform-origin: center; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes floatDot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseRing { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.15); } }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { filter: brightness(0) invert(1); height: 36px; }
.footer-brand p { font-size: 0.88rem; color: #9ca3af; line-height: 1.6; max-width: 300px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7280; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; font-size: 0.88rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: #ccfbf1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.78rem; color: #6b7280; }
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: #ccfbf1; }
.footer-credits { font-size: 0.75rem; color: #6b7280; text-align: center; margin-top: 16px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========== MISC PAGES ========== */
.breadcrumb { padding: calc(var(--header-height) + 24px) 0 0; font-size: 0.82rem; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { color: var(--text-muted); font-size: 0.7rem; }

.page-hero { padding: calc(var(--header-height) + 60px) 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 32px 0 12px; }
.prose p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose li { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(13,148,136,0.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--bg-elevated); padding: 2px 8px; border-radius: 4px; color: var(--accent); }
.prose pre { background: #1e293b; border-radius: var(--radius-md); padding: 20px; overflow-x: auto; margin: 24px 0; }
.prose pre code { background: none; padding: 0; font-size: 0.85rem; line-height: 1.6; color: #e2e8f0; }

.api-endpoint { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.api-method { display: inline-block; padding: 4px 10px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.api-method.get { background: var(--accent-light); color: var(--accent); }
.api-method.post { background: #dbeafe; color: var(--accent-2); }
.api-path { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text-primary); margin-left: 12px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 120px; resize: vertical; }

.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
.spinner.active { display: inline-block; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.stats-row { display: flex; justify-content: center; gap: 48px; padding: 48px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-full); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all var(--transition-base); z-index: 900; box-shadow: var(--shadow-md); }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.scroll-top svg { width: 20px; height: 20px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; max-width: 500px; width: 100%; position: relative; animation: fadeInUp 0.3s ease; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.modal-box .modal-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }

@media (max-width: 768px) {
  .hero { min-height: auto; padding: calc(var(--header-height) + 40px) 16px 60px; }
  .download-input-wrapper { flex-direction: column; }
  .download-input-wrapper button { border-radius: 0; }
  .section { padding: 60px 0; }
  .result-preview { flex-direction: column; }
  .result-preview img, .result-preview video { width: 100% !important; height: auto !important; }
}
/* Preview Grid for download results */
.download-result .result-header { margin-bottom: 20px; }
.download-result .result-header h4 { font-size: 1.1rem; margin-top: 8px; }
.download-result .platform-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.preview-card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.preview-card video, .preview-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.preview-card .btn-download { display: block; text-align: center; padding: 12px 16px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.2s ease; border: none; cursor: pointer; }
.preview-card .btn-download:hover { background: var(--accent-dark, #0b7e74); }
@media (max-width: 600px) {
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card video, .preview-card img { height: 220px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 16px; }
}
