/* ─────────────────────────────────────────────────────────
   AssetScan AI — Landing Page
   Design tokens mirror the desktop app's light system.
   ───────────────────────────────────────────────────────── */

:root {
  --bg-app:      #edf0f7;
  --bg-surface:  #ffffff;
  --bg-elevated: #f5f7fb;

  --b1: rgba(0,0,0,0.04);
  --b2: rgba(0,0,0,0.07);
  --b3: rgba(0,0,0,0.11);
  --b4: rgba(0,0,0,0.18);

  --accent:    #6366f1;
  --accent-lo: #4f46e5;
  --accent-hi: #818cf8;
  --glow:      rgba(99,102,241,0.14);
  --accent-bg: rgba(99,102,241,0.07);
  --accent-t:  #4338ca;

  --t1: #111827;
  --t2: #4b5563;
  --t3: #9ca3af;
  --t4: #d1d5db;

  --green: #059669;

  --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --sh-md: 0 4px 8px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --sh-lg: 0 12px 28px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.05);
  --sh-xl: 0 30px 60px rgba(17,24,39,0.16), 0 12px 24px rgba(17,24,39,0.08);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --maxw: 1140px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  background: var(--bg-app);
  color: var(--t1);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.16s ease; white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-full { width: 100%; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lo) 100%);
  color: #fff; border-color: var(--accent-lo);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 8px 24px var(--glow);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 2px 6px rgba(0,0,0,0.12), 0 12px 32px var(--glow); transform: translateY(-1px); }

.btn-ghost {
  background: var(--bg-surface); color: var(--t1); border-color: var(--b3);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover { border-color: var(--b4); background: var(--bg-elevated); transform: translateY(-1px); }

/* ── Eyebrow / section heads ─────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-t);
  background: var(--accent-bg);
  border: 1px solid rgba(99,102,241,0.18);
  padding: 5px 13px; border-radius: 20px;
}
.eyebrow.light { color: var(--accent-hi); background: rgba(129,140,248,0.12); border-color: rgba(129,140,248,0.28); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--b2); border-bottom: 1px solid var(--b2); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; color: var(--t1); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--t2); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav.scrolled { border-color: var(--b2); box-shadow: var(--sh-xs); background: rgba(255,255,255,0.9); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--bg-surface); border: 1px solid var(--b2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-xs); overflow: hidden;
}
.brand-mark img { width: 22px; height: 22px; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 28px; margin-left: 12px; flex: 1; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--t2); transition: color 0.15s; }
.nav-links a:hover { color: var(--t1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99,102,241,0.10) 0%, rgba(99,102,241,0) 70%),
    var(--bg-app);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { margin-bottom: 22px; }
.hero-title { font-size: clamp(36px, 6vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.grad { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hi) 60%, #a5b4fc 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: 19px; color: var(--t2); line-height: 1.6; }
.hero-sub strong { color: var(--t1); font-weight: 700; }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

.hero-meta { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.check { font-size: 14px; color: var(--t2); display: inline-flex; align-items: center; gap: 8px; }
.check::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0;
  background: var(--green); -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%3Cpolyline points='20 6 9 17 4 12'/%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%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-shot {
  width: 100%; max-width: 980px; margin: 56px auto -60px;
  border-radius: var(--r-lg); background: var(--bg-surface);
  border: 1px solid var(--b3); box-shadow: var(--sh-xl);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--b2); }
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--b4); }
.hero-shot img { width: 100%; display: block; }

/* ── Stats ───────────────────────────────────────────── */
.stats { padding: 108px 0 72px; background: var(--bg-surface); border-bottom: 1px solid var(--b2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 12px; }
.stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--accent-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--t2); font-weight: 500; }

/* ── Features ────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--b2); border-radius: var(--r);
  padding: 28px; box-shadow: var(--sh-sm); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--b3); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-bg); border: 1px solid rgba(99,102,241,0.18);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { margin-top: 8px; font-size: 15px; color: var(--t2); }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 26px 22px; background: var(--bg-app); border: 1px solid var(--b2); border-radius: var(--r); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; color: var(--accent); background: var(--accent-bg); border: 1px solid rgba(99,102,241,0.18); width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { margin-top: 7px; font-size: 14.5px; color: var(--t2); }

/* ── Showcase rows ───────────────────────────────────── */
.show-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-top: 72px; }
.show-row:first-of-type { margin-top: 0; }
.show-row.reverse { direction: rtl; }
.show-row.reverse > * { direction: ltr; }
.show-text h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.show-text p { margin-top: 14px; font-size: 16.5px; color: var(--t2); }
.show-img { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--b3); box-shadow: var(--sh-lg); background: var(--bg-surface); }
.show-img img { width: 100%; display: block; }

.ticks { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--t2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--accent-bg); border: 1px solid rgba(99,102,241,0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}

/* ── Mobile band ─────────────────────────────────────── */
.mobile-band { background: linear-gradient(145deg, #0d0d1a 0%, #160d2a 48%, #0d1a2e 100%); color: #fff; padding: 96px 0; overflow: hidden; }
.mobile-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.mobile-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 18px; color: rgba(255,255,255,0.95); }
.mobile-text p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,0.55); max-width: 460px; }
.mobile-text .hero-actions { justify-content: flex-start; }
.mobile-shot { display: flex; justify-content: center; }
.mobile-shot img { width: 100%; max-width: 520px; border-radius: var(--r-lg); box-shadow: 0 40px 80px rgba(0,0,0,0.5); }

/* ── Pricing ─────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; background: var(--bg-app); border: 1px solid var(--b2);
  border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
}
.price-card.featured { background: var(--bg-app); border: 1.5px solid var(--accent); box-shadow: var(--sh-lg); transform: translateY(-8px); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-lo)); padding: 5px 14px; border-radius: 20px; box-shadow: var(--sh-sm); }
.price-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.price-desc { margin-top: 6px; font-size: 14px; color: var(--t2); min-height: 40px; }
.price-amount { margin-top: 18px; font-size: 17px; color: var(--t3); display: flex; align-items: baseline; gap: 6px; }
.price-amount strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--t1); }
.price-amount span { font-size: 15px; color: var(--t3); }
.price-setup { font-size: 13px; color: var(--t3); margin-top: 2px; }
.price-card .ticks { margin-top: 22px; margin-bottom: 26px; flex: 1; }
.price-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--t3); }
.price-note a { color: var(--accent); font-weight: 600; }

/* ── CTA ─────────────────────────────────────────────── */
.cta { padding: 104px 0; background: var(--bg-surface); border-top: 1px solid var(--b2); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.cta p { margin-top: 14px; font-size: 18px; color: var(--t2); }
.cta-form { display: flex; gap: 10px; margin: 30px auto 0; max-width: 480px; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1; min-width: 220px; padding: 13px 16px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--b3); border-radius: var(--r-sm); background: var(--bg-elevated); color: var(--t1);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.cta-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); background: var(--bg-surface); }
.cta-thanks { width: 100%; color: var(--green); font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.cta-fine { margin-top: 16px; font-size: 13.5px; color: var(--t3); }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--bg-app); border-top: 1px solid var(--b2); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--t2); max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--t2); padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--b2); font-size: 13.5px; color: var(--t3); flex-wrap: wrap; gap: 12px; }
.footer-legal a:hover { color: var(--accent); }

/* ── Reveal animation ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .feature-grid, .steps, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .show-row, .show-row.reverse { grid-template-columns: 1fr; gap: 28px; direction: ltr; }
  .mobile-inner { grid-template-columns: 1fr; text-align: center; }
  .mobile-text .hero-actions { justify-content: center; }
  .mobile-text p { margin-left: auto; margin-right: auto; }
  .price-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-bottom: -32px; }
  .nav-cta .btn-ghost { display: none; }
}
