:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --premium: #7c3aed;
  --premium-dark: #5b21b6;
  --ink: #0d0f14;
  --ink-soft: #4b5563;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --border: #e5e7eb;
  --radius: 16px;
  --max-width: 1100px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.store-badge:hover {
  text-decoration: none;
  opacity: 0.85;
}

.store-badge small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.85;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 18% 18%, #e8eeff 0%, var(--bg) 58%);
  padding: 72px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: #eaf0ff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f8ef;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 10px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  z-index: 0;
}

.hero-visual::before {
  width: 240px;
  height: 240px;
  background: rgba(37, 99, 235, 0.26);
  top: 0;
  right: 16px;
}

.hero-visual::after {
  width: 190px;
  height: 190px;
  background: rgba(6, 182, 212, 0.22);
  bottom: 8px;
  left: 6px;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
}

/* Phone mockups */
.phone-mock {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 40px;
  background: linear-gradient(160deg, #1f2937, #0b0b0f);
  box-shadow: var(--shadow);
  padding: 12px;
  position: relative;
}

.phone-mock .screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #0f1116;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  padding: 22px 18px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.phone-mock .caption {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

/* Scanner viewfinder with a page + detected edges */
.doc-view {
  position: relative;
  width: 152px;
  height: 200px;
  flex-shrink: 0;
}

.doc-view .page {
  position: absolute;
  inset: 0;
  background: #edeff2;
  border-radius: 4px;
  transform: rotate(-2.5deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-view .page i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #ccd2dc;
}

.doc-view .page i.head {
  height: 7px;
  width: 52%;
  background: #98a1af;
  margin-bottom: 4px;
}

.doc-view .page i:nth-child(3) { width: 92%; }
.doc-view .page i:nth-child(5) { width: 78%; }
.doc-view .page i:nth-child(7) { width: 88%; }

.doc-view .edge {
  position: absolute;
  inset: -4px 2px 2px -4px;
  border: 2.5px solid #3b82f6;
  background: rgba(37, 99, 235, 0.14);
  border-radius: 3px;
  transform: rotate(-2.5deg);
}

.doc-view .dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #3b82f6;
}

.doc-view .dot.tl { top: -10px; left: -10px; }
.doc-view .dot.tr { top: -12px; right: -6px; }
.doc-view .dot.bl { bottom: -4px; left: -8px; }
.doc-view .dot.br { bottom: -6px; right: -4px; }

.doc-view .scan-line {
  position: absolute;
  left: -2px;
  right: -2px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: scan-move 2.6s ease-in-out infinite;
}

@keyframes scan-move {
  0%, 100% { top: 10%; }
  50% { top: 88%; }
}

.shutter {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  position: relative;
}

.shutter::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.hero-badge {
  position: absolute;
  bottom: 15%;
  left: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.hero-badge .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Real app screenshots in device frames */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.device {
  width: 100%;
  max-width: 260px;
  border-radius: 34px;
  background: linear-gradient(160deg, #23262e, #0b0b0f);
  padding: 9px;
  box-shadow: 0 18px 40px rgba(20, 24, 40, 0.22);
}

.device img {
  width: 100%;
  border-radius: 26px;
  display: block;
}

.shot figcaption {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 26ch;
}

.shot figcaption b {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
  margin-bottom: 2px;
}

.shot-note {
  text-align: center;
  font-size: 13.5px;
  color: #9ca3af;
  margin: 36px 0 0;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Tools grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.tool-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tool-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.tool-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.tool-card .pro {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--premium);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.i-purple { background: #f1e9fe; color: #7c3aed; }
.i-orange { background: #fff1e6; color: #ea580c; }
.i-cyan   { background: #e6f6fb; color: #0891b2; }
.i-red    { background: #fde8e8; color: #dc2626; }
.i-indigo { background: #eaf0ff; color: #4f46e5; }
.i-blue   { background: #e6eeff; color: #2563eb; }
.i-green  { background: #e7f8ef; color: #16a34a; }
.i-amber  { background: #fef3e2; color: #d97706; }

/* Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 8px;
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Privacy highlight band */
.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.privacy-band h2 {
  font-size: 30px;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.privacy-band p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7f8ef;
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lock-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: linear-gradient(140deg, #0f172a, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.lock-visual svg {
  position: relative;
  z-index: 1;
}

.lock-visual::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.25);
  filter: blur(50px);
}

/* Pricing */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  text-align: center;
}

.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.14);
}

.plan .tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--premium);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.plan .price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.plan .note {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.plan-foot {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 24px;
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 0 28px;
  opacity: 0.92;
}

.cta-band .store-badge {
  background: #fff;
  color: #111;
}

/* Legal / content pages */
.legal-page {
  padding: 56px 0 80px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: 34px;
  margin-bottom: 4px;
}

.legal-meta {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal-page ul {
  padding-left: 22px;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.toc p {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #d1d5db;
  font-size: 14.5px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid,
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-band {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 33px;
  }

  .section-head h2 {
    font-size: 27px;
  }

  .feature-grid,
  .step-grid,
  .tool-grid,
  .plan-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
  }
}
