/* ===== Film Negative Scanner — Landing Page Styles ===== */
:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --accent: #FFA726;
  --accent-dark: #E09520;
  --accent-glow: rgba(255, 167, 38, .15);
  --text: #E8E8E8;
  --text-muted: #999;
  --text-dim: #666;
  --border: #2A2A2A;
  --radius: 10px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== SPROCKET HOLES (film perforation) ===== */
.sprocket-strip {
  height: 28px;
  background: #111;
  position: relative;
  overflow: hidden;
}
.sprocket-strip::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 100%; height: 14px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0, transparent 18px,
    var(--bg) 18px, var(--bg) 26px,
    transparent 26px, transparent 48px
  );
  border-radius: 2px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.logo svg { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.logo-line1 { color: var(--text); }
.logo-line2 { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .85rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent-dark); color: #000; transform: translateY(-1px); }

/* Right side of nav */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language switch — single button showing the language to switch to (like oursoft.top) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  border-radius: 7px;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: background .2s, transform .2s;
}
.lang-toggle .lt-en,
.lang-toggle .lt-ru {
  display: none;
  padding: 7px 13px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #000;
}
.lang-toggle.lang-en .lt-ru,
.lang-toggle.lang-ru .lt-en { display: inline-block; }
.lang-toggle:hover { background: var(--accent-dark); transform: translateY(-1px); }
.lang-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile menu */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger svg { stroke: var(--text); }

.nav-links .nav-mobile-only { display: none; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open .nav-mobile-only { display: block; padding-top: 12px; border-top: 1px solid var(--border); }
  .burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,.97);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

/* ===== SECTION HELPERS ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}
.section-title .accent { color: var(--accent); }
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--accent); }
.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); color: #000; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--accent); color: #000; }

/* Hero landscape shot frame */
.hero-visual {
  display: flex;
  justify-content: center;
}
.shot-frame {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #333;
  box-shadow: 0 20px 60px rgba(255,167,38,.15), 0 0 0 1px rgba(255,255,255,.05);
}
.shot-frame img { width: 100%; display: block; }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .shot-frame { max-width: 100%; }
}

/* ===== BEFORE / AFTER SLIDER ===== */
.ba-section { background: #0E0E0E; }
.ba-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  border: 2px solid var(--border);
}
.ba-wrapper img {
  width: 100%;
  display: block;
}
.ba-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.ba-after img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-handle {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  z-index: 10;
  pointer-events: none;
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ba-handle svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.ba-label {
  position: absolute;
  top: 16px;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  pointer-events: none;
}
.ba-label-before { left: 16px; background: rgba(0,0,0,.65); color: var(--text); }
.ba-label-after { right: 16px; background: var(--accent); color: #000; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,167,38,.08);
  background: var(--bg-card-hover);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { color: var(--accent); }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* ===== HOW IT WORKS ===== */
/* Tiles: text + screenshot side by side, alternating sides.
   Film screenshots are landscape (≈2.2:1), so the image column is wider
   than in the portrait-oriented Invoice layout. */
.steps { display: flex; flex-direction: column; gap: 28px; max-width: 1040px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.step:hover { transform: translateY(-3px); border-color: rgba(255,167,38,.35); box-shadow: 0 12px 40px var(--accent-glow); }
.step:nth-child(even) { direction: rtl; }
.step:nth-child(even) > * { direction: ltr; }
.step-content { display: flex; flex-direction: column; align-items: flex-start; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; flex-shrink: 0; }
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.step-content p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.step-img-wrap { display: flex; justify-content: center; }
.step-img-wrap img { width: 100%; border-radius: 12px; border: 2px solid var(--border); background: #000; box-shadow: 0 8px 30px rgba(0,0,0,.3); cursor: zoom-in; display: block; transition: border-color .2s; }
.step-img-wrap img:hover { border-color: var(--accent); }
@media (max-width: 768px) {
  .step { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 22px 18px; direction: ltr !important; }
  .step > * { direction: ltr !important; }
  .step-content { align-items: center; }
  .step-num { margin: 0 auto 14px; }
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255,167,38,.12);
}
.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255,167,38,.1);
}
.price-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
  min-height: 3.2rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.price-amount .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.price-desc {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 28px;
}
.price-features {
  text-align: left;
  margin-bottom: 32px;
  flex: 1 0 auto;
}
.price-card > a { margin-top: auto; }
.price-features li {
  padding: 8px 0;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-features li::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFA726' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-features li.disabled {
  color: var(--text-dim);
}
.price-features li.disabled::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.faq-q:hover { color: var(--accent); }
.faq-q svg {
  flex-shrink: 0;
  transition: transform .3s;
  color: var(--accent);
}
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
}
.faq-item.open .faq-a {
  max-height: 300px;
}
.faq-a p {
  color: var(--text-muted);
  font-size: .95rem;
  padding-bottom: 20px;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0E0E0E;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-contact svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 520px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-content .legal-date {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}
.legal-content a { text-decoration: underline; }

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ===== APPS DROPDOWN ===== */
.nav-apps-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-apps-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .9rem; font-weight: 500; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; padding: 0; line-height: inherit; transition: color .2s; }
.nav-apps-btn svg { transition: transform .2s; }
.nav-apps-btn:hover, .nav-apps-dropdown.open .nav-apps-btn { color: var(--accent); }
.nav-apps-dropdown.open .nav-apps-btn svg { transform: rotate(180deg); }
.nav-apps-menu { display: none; position: absolute; top: calc(100% + 14px); left: 0; min-width: 250px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 8px; z-index: 300; }
.nav-apps-dropdown.open .nav-apps-menu { display: block; animation: appsIn .18s ease; }
@keyframes appsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* .nav-apps-menu prefix outranks the generic ".nav-links a" rule */
.nav-apps-menu .nav-app-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; transition: background .15s; }
.nav-apps-menu .nav-app-item:hover { background: rgba(255,255,255,.07); color: var(--text); }
.nav-apps-menu .nav-app-item--active { opacity: .55; pointer-events: none; }
.nav-app-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: block; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.nav-app-info { display: flex; flex-direction: column; }
.nav-app-name { font-size: .88rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.nav-app-sub { font-size: .75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
/* Mobile: separate group inside the burger menu, always expanded */
@media (max-width: 768px) {
  .nav-apps-dropdown { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .nav-apps-btn { pointer-events: none; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
  .nav-apps-btn svg { display: none; }
  .nav-apps-menu { display: block; position: static; min-width: 0; margin-top: 8px; padding: 0; background: none; border: none; box-shadow: none; animation: none; }
  .nav-apps-menu .nav-app-item { padding: 8px 0; }
}

/* ===== LIGHTBOX ===== */
.lb-overlay { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.lb-overlay.lb-open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(4px); cursor: zoom-out; }
.lb-img { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.7); object-fit: contain; }
.lb-close { position: absolute; top: 20px; right: 24px; z-index: 2; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; opacity: .8; padding: 0; }
.lb-close:hover { opacity: 1; }

/* ===== COMING SOON BADGE (store buttons) ===== */
.is-soon { position: relative; opacity: .55; pointer-events: none; cursor: default; }
.soon-badge { position: absolute; top: -9px; right: -9px; background: var(--accent); color: #000; font-size: 10px; font-weight: 800; line-height: 1.4; letter-spacing: .03em; padding: 2px 8px; border-radius: 20px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* Single "Get App" button at the bottom of each pricing card */
.price-card .price-cta { margin-top: auto; display: flex; justify-content: center; text-align: center; width: 100%; }
#download { scroll-margin-top: 120px; }
