:root {
  --violet-1: #2a1f8f;
  --violet-2: #3a2fc4;
  --violet-3: #5a4ff0;
  --violet-4: #7c74ff;
  --amber: #fbbf24;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.78);
  --faint: rgba(255, 255, 255, 0.6);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --edge: rgba(255, 255, 255, 0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: linear-gradient(170deg, var(--violet-3) 0%, var(--violet-2) 45%, var(--violet-1) 100%) fixed;
  background-color: var(--violet-2);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--white); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }

/* Drifting light behind everything */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; background: #8b7dff; top: -140px; left: -120px; }
.aurora span:nth-child(2) { width: 420px; height: 420px; background: #fbbf24; opacity: 0.22; top: 30%; right: -160px; animation-duration: 28s; }
.aurora span:nth-child(3) { width: 600px; height: 600px; background: #2a1f8f; bottom: -220px; left: 20%; animation-duration: 34s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.12); }
  100% { transform: translate(-40px, 120px) scale(0.95); }
}

/* Header */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(42, 31, 143, 0.35); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav a { color: var(--soft); text-decoration: none; margin-left: 22px; font-weight: 600; font-size: 15px; transition: color 0.2s; }
nav a:hover { color: var(--white); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 72px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--edge); font-size: 14px; font-weight: 600; color: var(--soft); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.0; margin: 20px 0 18px; font-weight: 900; letter-spacing: -0.03em; }
.hero h1 .shine {
  background: linear-gradient(90deg, #fff 0%, #fde68a 30%, #fbbf24 50%, #fde68a 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--soft); max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { display: inline-flex; flex-direction: column; background: #000; color: #fff; text-decoration: none; padding: 10px 22px; border-radius: 14px; font-weight: 700; font-size: 19px; line-height: 1.15; border: 1px solid rgba(255, 255, 255, 0.25); }
.badge small { font-weight: 500; font-size: 11px; opacity: 0.8; }
.ghost { color: var(--soft); text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--edge); transition: background 0.2s; }
.ghost:hover { background: var(--glass); color: #fff; }

/* Phones */
.stage { position: relative; height: 620px; perspective: 1400px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 1320 / 2868;
  border-radius: 46px; padding: 9px; background: #0c0b17;
  box-shadow: 0 40px 80px rgba(10, 6, 60, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease-out;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone.main { left: 50%; top: 10px; margin-left: -135px; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone.left { left: 0; top: 90px; transform: rotate(-9deg) scale(0.86); opacity: 0.85; animation: floatL 8s ease-in-out infinite; }
.phone.right { right: 0; top: 90px; transform: rotate(9deg) scale(0.86); opacity: 0.85; animation: floatR 9s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -16px; } }
@keyframes floatL { 50% { translate: 0 12px; } }
@keyframes floatR { 50% { translate: 0 -10px; } }
/* Amber scan beam sweeping the main phone */
.phone.main::after {
  content: ""; position: absolute; left: 4%; right: 4%; height: 4px; top: 12%;
  border-radius: 4px; background: var(--amber);
  box-shadow: 0 0 18px 4px rgba(251, 191, 36, 0.75), 0 0 60px 10px rgba(251, 191, 36, 0.35);
  animation: scan 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scan {
  0% { top: 12%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

/* Sections */
section { padding: 96px 0 0; }
.head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
.head p { color: var(--soft); margin: 0; }

.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease; }
.feature:hover { transform: translateY(-6px); background: var(--glass-strong); border-color: rgba(255, 255, 255, 0.3); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, 0.12); margin-bottom: 16px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--soft); font-size: 15px; }
.pro { display: inline-block; font-size: 11px; font-weight: 900; color: #1e1b4b; background: var(--amber); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* Before / after */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.compare { position: relative; aspect-ratio: 1196 / 1690; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px rgba(10, 6, 60, 0.5); cursor: ew-resize; user-select: none; touch-action: pan-y; max-width: 460px; justify-self: center; width: 100%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--amber); box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
.compare .handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: #1e1b4b; font-weight: 900; font-size: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.compare .label { position: absolute; top: 14px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.compare .label.b { left: 14px; background: rgba(30, 27, 75, 0.85); }
.compare .label.a { right: 14px; background: var(--amber); color: #1e1b4b; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.steps b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #1e1b4b; font-size: 15px; }
.steps span { color: var(--soft); font-size: 15px; }
.steps strong { color: #fff; display: block; font-size: 17px; }

/* Privacy band */
.privacy { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 44px; }
.shield { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; font-size: 56px; background: rgba(255, 255, 255, 0.12); position: relative; }
.shield::before, .shield::after { content: ""; position: absolute; inset: -10px; border-radius: 40px; border: 2px solid rgba(251, 191, 36, 0.6); animation: ring 3s ease-out infinite; }
.shield::after { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.privacy h2 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.01em; }
.privacy p { margin: 0; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--edge); font-size: 14px; font-weight: 600; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { padding: 30px; text-align: left; position: relative; transition: transform 0.25s ease; }
.price:hover { transform: translateY(-6px); }
.price h3 { margin: 0; font-size: 18px; color: var(--soft); }
.price .amount { font-size: 44px; font-weight: 900; margin: 6px 0 2px; letter-spacing: -0.02em; }
.price .per { color: var(--faint); margin: 0 0 18px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--soft); }
.price li::before { content: "✓"; color: var(--amber); font-weight: 900; margin-right: 8px; }
.price.best { background: rgba(255, 255, 255, 0.16); border: 2px solid var(--amber); }
.tag { position: absolute; top: -13px; right: 22px; background: var(--amber); color: #1e1b4b; font-weight: 900; font-size: 12px; border-radius: 99px; padding: 4px 12px; }

/* Docs (privacy, support) */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 0; }
.doc .glass { padding: clamp(24px, 5vw, 48px); }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 4px; letter-spacing: -0.02em; line-height: 1.05; }
.doc .date { color: var(--faint); margin: 0 0 24px; }
.doc h2 { font-size: 21px; margin: 32px 0 6px; }
.doc p { color: var(--soft); margin: 0 0 12px; }
.doc strong { color: #fff; }
.doc .contact { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--edge); border-radius: 18px; padding: 20px; margin: 8px 0 8px; }

footer { padding: 96px 0 40px; color: var(--faint); font-size: 14px; text-align: center; }
footer a { color: var(--soft); margin: 0 10px; text-decoration: none; }
footer a:hover { color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .stage { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 230px; }
  .phone.main { margin-left: -115px; }
  .grid, .pricing { grid-template-columns: 1fr 1fr; }
  .compare-wrap { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .chips { justify-content: center; }
}
@media (max-width: 600px) {
  nav a { margin-left: 14px; font-size: 14px; }
  nav a.wide { display: none; }
  .stage { height: 440px; }
  .phone { width: 190px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .phone.main { margin-left: -95px; }
  .phone.left { left: -20px; }
  .phone.right { right: -20px; }
  .grid, .pricing { grid-template-columns: 1fr; }
  section { padding-top: 72px; }
  .privacy { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Extra motion ---------- */

/* Sparkles drifting up behind the page */
#sparkles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Scroll progress bar under the header */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 20; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #fde68a, var(--amber)); box-shadow: 0 0 12px rgba(251, 191, 36, 0.7); }

/* Headline words rise in one by one */
.words .w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(4deg); filter: blur(8px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(0.15s + var(--i) * 0.09s); }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* Viewfinder corners snapping around the main phone */
.phone.main .corner { position: absolute; width: 46px; height: 46px; border: 4px solid #fff; z-index: 3; opacity: 0.95; animation: snap 3.6s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
.phone.main .corner.tl { top: -18px; left: -18px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; --dx: -14px; --dy: -14px; }
.phone.main .corner.tr { top: -18px; right: -18px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; --dx: 14px; --dy: -14px; }
.phone.main .corner.bl { bottom: -18px; left: -18px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; --dx: -14px; --dy: 14px; }
.phone.main .corner.br { bottom: -18px; right: -18px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; --dx: 14px; --dy: 14px; }
@keyframes snap {
  0%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0.4; }
  12%, 85% { transform: none; opacity: 1; }
}
/* A flash when each scan pass finishes */
.phone.main .flash { position: absolute; inset: 9px; border-radius: 38px; background: #fff; opacity: 0; z-index: 2; pointer-events: none; animation: flash 3.6s linear infinite; }
@keyframes flash { 0%, 88% { opacity: 0; } 92% { opacity: 0.35; } 100% { opacity: 0; } }

/* Card spotlight that follows the cursor, plus tilt (set from JS) */
.feature, .price { position: relative; overflow: hidden; transform-style: preserve-3d; }
.feature::before, .price::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 60%);
}
.feature:hover::before, .price:hover::before { opacity: 1; }
.feature .ico { transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.feature:hover .ico { transform: scale(1.15) rotate(-8deg); }

/* Marquee of what you can scan */
.marquee { margin-top: 96px; overflow: hidden; padding: 18px 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(22px, 3vw, 32px); font-weight: 800; white-space: nowrap; }
.marquee .track span { opacity: 0.9; }
.marquee .track i { color: var(--amber); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Rotating glow border on the best price */
.price.best { border: 0; isolation: isolate; }
.price.best::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--amber), #fff, #8b7dff, var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.price.best .tag { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* Steps glow in sequence */
.steps li.in b { animation: pop 0.6s cubic-bezier(0.3, 1.8, 0.5, 1) both; animation-delay: calc(var(--d, 0s) + 0.3s); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Magnetic buttons (offset set from JS) */
.badge, .ghost { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .words .w { opacity: 1; transform: none; filter: none; }
  #sparkles, .phone.main .corner, .phone.main .flash { display: none; }
}
/* The gold words need both the rise-in and the shimmer */
.hero h1.words .w.shine {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards, shine 6s linear infinite;
  animation-delay: calc(0.15s + var(--i) * 0.09s), 0s;
}
/* Cards clip their spotlight, so the badge sits inside the card */
.price .tag { top: 18px; right: 18px; }

/* Tool pages */
.tool .crumb { color: var(--faint); font-size: 14px; margin: 0 0 14px; }
.tool .crumb a { color: var(--soft); text-decoration: none; }
.tool h1 { display: flex; align-items: center; gap: 14px; }
.tool-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--edge); font-size: 28px; }
.tool .lead-in { font-size: 19px; color: var(--soft); margin: 14px 0 22px; }
.tool h3 { font-size: 17px; margin: 18px 0 4px; }
.cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 8px; }
.cta-note { color: var(--faint); font-size: 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--edge); }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #1e1b4b; font-weight: 900; }
.steps li span { color: var(--soft); }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; color: var(--soft); }
.ticks li::before { content: "✓"; color: var(--amber); font-weight: 900; margin-right: 10px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.related a { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--edge); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.related a:hover { background: rgba(255, 255, 255, 0.18); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.tool-card { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--edge); color: #fff; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.tool-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.14); }
.tool-card span:last-child { color: var(--soft); font-size: 14px; }
.tool-card .tool-ico { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.tools-link { text-align: center; margin-top: 22px; }
