/* ===== OurSoft.top — Landing Page Styles (ported from Film Negative Scanner design system) ===== */
:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  /* Main brand accent derived from the logo — electric blue / indigo neon */
  --accent: #4F8CFF;
  --accent-dark: #3B78F0;
  --accent-glow: rgba(79, 140, 255, .15);
  --purple: #A855F7;
  --magenta: #D946EF;
  /* Per-product brand accents */
  --film: #FFA726;
  --film-dark: #E09520;
  --invoice: #00BFA5;
  --invoice-dark: #00A892;
  --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;
}

/* ===== 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; }

/* ===== 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: 11px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.logo img { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; }
.logo-wordmark { color: var(--text); }
.logo-wordmark span { 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 toggle */
.lang-toggle {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 7px;
  transition: filter .15s;
}
.lang-toggle:hover { filter: brightness(1.1); }

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

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .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 (tighter spacing between blocks) ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 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 40px;
  font-size: 1.05rem;
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  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 h1 .purple { color: var(--purple); }
.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}
.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 visual — glowing logo */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-logo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(168,85,247,.35), rgba(79,140,255,.18) 45%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.hero-logo-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { max-width: 240px; }
}

/* ===== HERO BADGES ===== */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
}
.hero-badges .badge svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 768px) { .hero-badges { justify-content: center; } }

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.product-card {
  --card-accent: var(--accent);
  --card-accent-glow: var(--accent-glow);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
}
.product-card.film { --card-accent: var(--film); --card-accent-glow: rgba(255,167,38,.14); }
.product-card.invoice { --card-accent: var(--invoice); --card-accent-glow: rgba(0,191,165,.14); }
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent);
  box-shadow: 0 14px 44px var(--card-accent-glow);
  background: var(--bg-card-hover);
}
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.product-icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: var(--card-accent-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.product-icon svg { color: var(--card-accent); }
.product-card h3 { font-size: 1.35rem; font-weight: 800; }
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--card-accent);
  margin-bottom: 14px;
}
.product-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--card-accent); }
.product-tagline { color: var(--text); font-weight: 600; font-size: 1.02rem; margin-bottom: 8px; }
.product-card > p.product-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.55; margin-bottom: 18px; }
.product-features { margin-bottom: 26px; }
.product-features li {
  padding: 7px 0;
  font-size: .92rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.product-features li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  background: var(--card-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.product-card .product-cta { margin-top: auto; }
.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-accent);
  color: #000;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  font-family: var(--font);
}
.btn-product:hover { filter: brightness(1.08); color: #000; transform: translateY(-2px); }
.btn-product-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--card-accent);
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--card-accent);
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--font);
}
.btn-product-outline:hover { background: var(--card-accent); color: #000; }

/* ===== PHILOSOPHY / 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(79,140,255,.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;
}

/* ===== CONTACT ===== */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 18px 0 26px;
}
.contact-email svg { flex-shrink: 0; }

/* ===== MODAL (Invoice Scanner details) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--invoice);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  padding: 36px 34px 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.modal h2 span { color: var(--invoice); }
.modal .product-status { color: var(--invoice); }
.modal .product-status .dot { background: var(--invoice); }
.modal-sub { color: var(--text-muted); margin-bottom: 26px; }
.modal h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 14px; }
.roadmap { display: grid; gap: 12px; }
.roadmap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.roadmap-item .rm-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(0,191,165,.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--invoice);
}
.roadmap-item h4 { font-size: .98rem; font-weight: 700; margin-bottom: 3px; }
.roadmap-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
}
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.beta-box {
  margin-top: 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  text-align: center;
}
.beta-box p { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.beta-box .btn-product { background: var(--invoice); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0E0E0E;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 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); }
@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: 56px 24px 72px;
}
.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; }
