/* ABBYY FineReader landing — Light & Stylish */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(79, 70, 229, 0.12);
  --accent: #06B6D4;
  --bg: #F8FAFC;
  --bg-elevated: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #F1F5F9;
  --text: #1E293B;
  --text-secondary: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-soft: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
  --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ───── Particles (subtle light version) ───── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
  opacity: .08; animation: float 20s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 8px; height: 8px; }
.particle:nth-child(2) { left: 80%; top: 40%; animation-delay: -4s; }
.particle:nth-child(3) { left: 50%; top: 70%; animation-delay: -8s; width: 10px; height: 10px; }
.particle:nth-child(4) { left: 25%; top: 60%; animation-delay: -12s; }
.particle:nth-child(5) { left: 70%; top: 15%; animation-delay: -16s; width: 7px; height: 7px; }
.particle:nth-child(6) { left: 15%; top: 80%; animation-delay: -6s; width: 9px; height: 9px; }
.particle:nth-child(7) { left: 90%; top: 25%; animation-delay: -10s; width: 6px; height: 6px; }
.particle:nth-child(8) { left: 40%; top: 10%; animation-delay: -14s; width: 8px; height: 8px; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.08; }
  25% { transform: translate(50px, -40px) rotate(90deg); opacity: 0.15; }
  50% { transform: translate(80px, 20px) rotate(180deg); opacity: 0.08; }
  75% { transform: translate(-40px, 40px) rotate(270deg); opacity: 0.15; }
}

/* ───── Top bar ───── */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.top-bar-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { 
  width: 40px; 
  height: 40px; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.brand-logo:hover {
  transform: scale(1.1) rotate(5deg);
}
.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  font-size: .95rem; transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
  transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ───── Header ───── */
header {
  position: relative; z-index: 1; padding: 56px 0 72px;
  background: var(--gradient-hero);
}
header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.header-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.version-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; letter-spacing: .08em; font-weight: 600;
  color: var(--primary); margin-bottom: 12px;
  background: rgba(79, 70, 229, 0.08); padding: 6px 14px;
  border-radius: 20px;
}
.header-text h1 { font-size: 2.25rem; font-weight: 800; margin: 0 0 16px; line-height: 1.2; color: var(--text); }
.header-text h1 span { color: var(--primary); display: block; font-size: 1.15rem; font-weight: 600; margin-top: 4px; }
.header-text p { color: var(--muted); margin: 0 0 28px; max-width: 540px; font-size: .95rem; }
.header-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  font-size: .95rem; transition: all .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--primary); color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}
.btn-secondary {
  background: var(--card); color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  border-color: var(--primary); color: var(--primary);
  box-shadow: var(--shadow);
}
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badge {
  font-size: .78rem; padding: 5px 14px;
  background: rgba(79, 70, 229, 0.06); border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 20px; color: var(--primary); font-weight: 500;
}
.header-image {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  background: #fff;
}
.header-image img { width: 100%; height: auto; display: block; }

/* OCR Animation */
.ocr-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 90%;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.ocr-animation .scan-line {
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
  0% { y: 30; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { y: 250; opacity: 0; }
}

.ocr-animation .unrecognized-lines {
  animation: fadeOut 3s ease-in-out infinite;
}

.ocr-animation .recognized-text {
  animation: fadeIn 3s ease-in-out infinite;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  50% { opacity: 0; }
  70% { opacity: 0.5; }
  100% { opacity: 1; }
}

.ocr-animation .checkmarks circle,
.ocr-animation .checkmarks path {
  animation: checkmark 3s ease-in-out infinite;
}

.ocr-animation .checkmarks circle:nth-child(1),
.ocr-animation .checkmarks path:nth-child(2) {
  animation-delay: 1.2s;
}

.ocr-animation .checkmarks circle:nth-child(3),
.ocr-animation .checkmarks path:nth-child(4) {
  animation-delay: 1.5s;
}

.ocr-animation .checkmarks circle:nth-child(5),
.ocr-animation .checkmarks path:nth-child(6) {
  animation-delay: 1.8s;
}

.ocr-animation .checkmarks circle:nth-child(7),
.ocr-animation .checkmarks path:nth-child(8) {
  animation-delay: 2.1s;
}

.ocr-animation .checkmarks circle:nth-child(9),
.ocr-animation .checkmarks path:nth-child(10) {
  animation-delay: 2.4s;
}

.ocr-animation .checkmarks circle:nth-child(11),
.ocr-animation .checkmarks path:nth-child(12) {
  animation-delay: 2.7s;
}

@keyframes checkmark {
  0% { opacity: 0; transform: scale(0.5); }
  40% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
  60% { transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 8px; font-size: .8rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ───── Stats bar ───── */
.stats-bar {
  background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0; position: relative; z-index: 1;
  box-shadow: var(--shadow-soft);
}
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; color: var(--primary); font-size: 1.15rem; }
.stat-item span { font-size: .85rem; color: var(--muted); }

/* ───── Download section ───── */
.download-section { padding: 64px 0; position: relative; z-index: 1; }
.download-box {
  background: var(--gradient-card);
  border-radius: var(--radius); padding: 44px 40px;
  border: 1px solid var(--border); max-width: 540px; margin: 0 auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.download-box h2 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.download-box > p { color: var(--muted); margin: 0 0 32px; font-size: .95rem; }
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.download-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all .2s ease; font-size: 1rem;
}
.download-btn:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}
.download-btn .icon { font-size: 1.2rem; display: flex; align-items: center; }
.download-btn .icon svg { width: 22px; height: 22px; }
.file-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--border);
  text-align: left;
}
.file-specs div { display: flex; flex-direction: column; gap: 4px; }
.file-specs strong {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600;
}
.file-specs span { font-size: .9rem; font-weight: 600; color: var(--text); }

/* Password block */
.password-block {
  background: #ECFDF5; border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm); padding: 18px 20px;
  margin-top: 20px; text-align: center;
}
.password-block strong { display: block; font-size: 1rem; margin-bottom: 8px; color: #065F46; }
.password-value {
  display: block; font-size: 1.3rem; font-weight: 700; font-family: 'Courier New', monospace;
  margin: 8px 0; color: #059669; letter-spacing: 0.05em;
}
.password-hint { margin: 8px 0 0; font-size: .85rem; color: #047857; opacity: 0.8; }

/* Licenses table */
.licenses-table-wrapper {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); margin-top: 32px;
}
.licenses-table { width: 100%; border-collapse: collapse; background: var(--card); }
.licenses-table th, .licenses-table td {
  padding: 16px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.licenses-table th { font-weight: 600; color: var(--muted); font-size: .9rem; background: var(--bg); }
.licenses-table td { font-size: .95rem; color: var(--text); }
.license-highlight { background: var(--primary-light); }
.license-highlight td { color: var(--text); font-weight: 500; }

/* ───── Compatibility ───── */
.compatibility-notice { padding: 24px 0; position: relative; z-index: 1; }
.compat-box {
  display: flex; align-items: flex-start; gap: 22px;
  background: var(--gradient-card);
  border-radius: var(--radius); padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.compat-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.compat-icon svg { width: 24px; height: 24px; }
.compat-content h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.compat-content p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ───── Sections common ───── */
section { position: relative; z-index: 1; padding: 56px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin: 0 0 8px; font-size: 1.85rem; font-weight: 800; color: var(--text); }
.section-header h2 span { color: var(--primary); }
.section-header p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ───── About / intro ───── */
.intro-box { max-width: 720px; margin: 0 auto; }
.intro-box p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.blockquote.check, blockquote.check {
  border-left: 4px solid var(--primary); padding: 18px 22px; margin: 24px 0;
  background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

/* ───── Features grid ───── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border);
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.2);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ───── Article content ───── */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h3 {
  margin: 40px 0 16px; font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
.article-content h4 { margin: 28px 0 10px; font-size: 1rem; font-weight: 600; color: var(--primary); }
.article-content p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* Details/Spoiler */
.menu-details {
  margin: 28px 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.menu-details summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600;
  font-size: 1rem; color: var(--text); user-select: none;
  transition: background .2s; display: flex; align-items: center; gap: 10px;
}
.menu-details summary:hover { background: var(--primary-light); color: var(--primary); }
.menu-details summary::marker { color: var(--primary); }
.menu-content { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.menu-details h3 { margin: 24px 0 16px; }
.menu-details h4 { margin: 20px 0 10px; }
.menu-details p { margin: 0 0 12px; }

.screenshot-inline {
  margin: 16px auto; max-width: 220px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.screenshot-inline img { width: 100%; height: auto; display: block; vertical-align: top; max-height: 180px; object-fit: contain; object-position: top; }
.screenshot-inline figcaption {
  padding: 10px 14px; font-size: .8rem; color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.screenshot-inline.screenshot-wide { max-width: 420px; }
.screenshot-inline.screenshot-wide img { max-height: 260px; }

/* ───── Compact cards ───── */
.compact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compact-card {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--border);
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
}
.compact-card:hover {
  background: var(--card); border-color: rgba(79,70,229,.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.compact-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.compact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.compact-icon svg { width: 20px; height: 20px; }
.compact-card h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.compact-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.req-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.req-list li { margin-bottom: 8px; }

/* License */
.license-section .section-header { margin-bottom: 0; }
.license-notice {
  max-width: 640px; margin: 0 auto; padding: 22px 30px;
  background: var(--primary-light); border: 1px solid rgba(79,70,229,.15);
  border-radius: var(--radius); text-align: center;
  color: var(--text); font-size: 1rem; line-height: 1.6;
}

/* ───── Tabs ───── */
.tabs-nav { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card); color: var(--muted); font-weight: 600; cursor: pointer;
  transition: all .2s; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.25); }
.tab-btn.active svg { color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ───── Steps ───── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border);
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
}
.step-card:hover { border-color: rgba(79,70,229,.2); box-shadow: var(--shadow-md); }
.step-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(79,70,229,.25);
}
.step-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.step-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ───── Tips ───── */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tip-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
}
.tip-card:hover { border-color: rgba(79,70,229,.2); box-shadow: var(--shadow-md); }
.tip-icon {
  width: 42px; height: 42px; min-width: 42px; border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.tip-icon svg { width: 20px; height: 20px; }
.tip-content h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--text); }
.tip-content p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ───── Comparison table ───── */
.comparison-table-wrapper {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.comparison-table { width: 100%; border-collapse: collapse; background: var(--card); }
.comparison-table th, .comparison-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th { font-weight: 600; color: var(--muted); font-size: .9rem; background: var(--bg); }
.comparison-table td { font-size: .95rem; color: var(--text); }
.highlight-col { background: var(--primary-light); }

/* ───── Lightbox ───── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.9); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; }
.lightbox-image {
  max-width: 90vw; max-height: 85vh;
  width: auto; height: auto;
  border-radius: var(--radius); object-fit: contain;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
.lightbox-caption {
  position: absolute; bottom: 24px;
  left: 50%; transform: translateX(-50%);
  color: #fff; text-align: center; font-size: 1rem; max-width: 80%;
  background: rgba(0,0,0,.5); padding: 8px 20px; border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2.5rem; color: #fff;
  cursor: pointer; z-index: 1001;
  transition: color .2s;
}
.lightbox-close:hover { color: var(--primary); }
@keyframes slideIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ───── Alternatives ───── */
.alternatives-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.alt-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: all .25s ease;
}
.alt-card:hover { box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.2); }
.alt-card h4 { margin: 0 0 8px; font-size: 1rem; color: var(--text); font-weight: 700; }
.alt-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ───── Pros / cons ───── */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.pros-card, .cons-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}
.pros-card { border-top: 3px solid #10B981; }
.cons-card { border-top: 3px solid #EF4444; }
.pros-card h3, .cons-card h3 { margin: 0 0 16px; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pros-card ul, .cons-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.pros-card li, .cons-card li { margin-bottom: 10px; line-height: 1.5; }

/* ───── Reviews ───── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: all .25s;
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.reviewer-info h4 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.reviewer-info span { font-size: .85rem; color: var(--muted); }
.review-text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ───── FAQ ───── */
.faq-accordion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.faq-accordion-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79,70,229,.25);
}

.faq-accordion-header {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.faq-accordion-header:hover {
    background: rgba(79,70,229,.03);
}

.faq-accordion-item.active .faq-accordion-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(139, 92, 246, 0.05));
}

.faq-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79,70,229,1), rgba(139,92,246,1));
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.faq-title {
    flex: 1;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    color: rgba(79,70,229,1);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 600px;
    padding: 0 1rem 1rem;
}

.faq-accordion-content p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.875rem;
    margin: 0;
}

/* ───── Feedback ───── */
.feedback-section { background: var(--border-light); padding: 64px 0; }
.feedback-container { max-width: 560px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  font-family: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ───── Footer ───── */
footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-content { display: grid; grid-template-columns: 1fr auto; gap: 48px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-icon { 
  width: 36px; 
  height: 36px; 
  display: block;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.15));
}
.footer-text { margin: 0; color: var(--muted); font-size: .9rem; max-width: 320px; line-height: 1.6; }
.footer-links-grid { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-section h4 { margin: 0 0 14px; font-size: .95rem; font-weight: 700; color: var(--text); }
.footer-section ul { margin: 0; padding: 0; list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-section a:hover { color: var(--primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ───── Back to top ───── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 1.2rem; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,70,229,.4);
}

/* ───── Toast ───── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  padding: 14px 28px; background: #059669; color: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px; z-index: 1001;
  opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
  box-shadow: 0 8px 24px rgba(5,150,105,.3);
  font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* ───── Screenshots ───── */
.screenshots-section { padding: 56px 0; }
.screenshots-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.screenshot-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: all .25s ease; cursor: pointer; box-shadow: var(--shadow-soft);
}
.screenshot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.screenshot-wrapper { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.screenshot-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.screenshot-card:hover .screenshot-wrapper img { transform: scale(1.05); }
.screenshot-card figcaption {
  padding: 12px; font-size: .8rem; color: var(--muted);
  background: var(--card); border-top: 1px solid var(--border); text-align: center;
}

/* Interface sections */
.interface-description-section { padding: 56px 0; }
.interface-guide { max-width: 1000px; margin: 0 auto; }
.guide-section { margin-bottom: 48px; }
.guide-section h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin: 0 0 24px; padding-bottom: 12px; border-bottom: 2px solid rgba(79,70,229,.15); }

.menu-items-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.menu-item {
  display: flex; gap: 16px;
  background: var(--card); border-radius: var(--radius-sm);
  padding: 18px; border: 1px solid var(--border); transition: all .2s;
}
.menu-item:hover { border-color: rgba(79,70,229,.2); background: var(--primary-light); transform: translateX(4px); }
.menu-item-icon { font-size: 1.8rem; flex-shrink: 0; }
.menu-item-content h4 { margin: 0 0 6px; font-weight: 600; font-size: 1rem; color: var(--text); }
.menu-item-content p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.toolbar-description { background: var(--card); border-radius: var(--radius-sm); padding: 22px; border: 1px solid var(--border); }
.toolbar-description p { margin: 0 0 16px; color: var(--muted); }
.toolbar-items { margin: 0; padding-left: 20px; list-style: none; }
.toolbar-items li { margin-bottom: 10px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.toolbar-items strong { color: var(--text); }

.workspace-description { background: var(--card); border-radius: var(--radius-sm); padding: 22px; border: 1px solid var(--border); }
.workspace-description p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.workspace-description ul { margin: 8px 0; padding-left: 20px; list-style: none; }
.workspace-description li { margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
.workspace-description strong { color: var(--text); }

.settings-description { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.settings-item { background: var(--card); border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--border); }
.settings-item h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--primary); }
.settings-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.workflow-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border-radius: var(--radius-sm); padding: 24px;
  border: 1px solid var(--border); position: relative;
}
.workflow-step:not(:last-child)::after { content: '→'; position: absolute; right: -20px; font-size: 1.5rem; color: var(--primary); font-weight: bold; }
.workflow-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  font-size: 1.1rem; margin-bottom: 12px;
}
.workflow-content h4 { margin: 0 0 8px; font-size: .95rem; font-weight: 600; }
.workflow-content p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .header-content { grid-template-columns: 1fr; }
  .header-image { order: -1; max-width: 560px; }
  .file-specs { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .alternatives-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-accordion { grid-template-columns: 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .screenshots-gallery { grid-template-columns: repeat(3, 1fr); }
  .menu-items-grid { grid-template-columns: 1fr; }
  .settings-description { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:not(:last-child)::after { right: auto; bottom: -20px; content: '↓'; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 640px) {
  .file-specs { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .password-block { text-align: left; }
  .password-value { font-size: 1.1rem; }
  .header-text h1 { font-size: 1.5rem; }
  .screenshots-gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox-image { max-width: 95vw; max-height: 80vh; }
  .workflow-steps { grid-template-columns: 1fr; }
  .menu-items-grid { grid-template-columns: 1fr; }
  .settings-description { grid-template-columns: 1fr; }
}
