/* MrScanner — Deep Purple Pro */
:root {
  --bg: #0E0817;
  --surface: #160D24;
  --border: rgba(139, 92, 246, 0.15);
  --primary: #8B5CF6;
  --secondary: #A78BFA;
  --gradient: linear-gradient(135deg, #8B5CF6, #C026D3);
  --text: #FFFFFF;
  --text-2: #C4B5FD;
  --muted: #9CA3AF;
  --glow: 0 0 30px rgba(139, 92, 246, 0.2);
  --card-hover: 0 8px 32px rgba(139, 92, 246, 0.25);
  --alt-bg: rgba(139, 92, 246, 0.04);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2) !important;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--alt-bg);
  color: #fff !important;
}

.btn-lg { padding: 18px 40px; font-size: 17px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 8, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

.nav-links a:hover { color: #fff; }

.nav-cta .btn { padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--alt-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-icon {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.5), 0 0 30px rgba(192, 38, 211, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.section-alt {
  background: var(--alt-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-2);
  font-size: 17px;
}

/* Grid / Cards */
.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
  border-color: rgba(139, 92, 246, 0.35);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--glow);
}

.card .icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--card-hover);
  transform: scale(1.02);
}

.price-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover); }
.price-card.featured:hover { transform: translateY(-4px) scale(1.02); }

.price-card .tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: var(--glow);
}

.price-card h3 {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.price-card .price-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.pricing-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 32px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--glow);
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-right: 48px;
}

.step p { color: var(--text-2); font-size: 15px; }

/* CTA section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(192, 38, 211, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.cta-section p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Footer */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-links a {
  color: var(--text-2);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom small {
  color: var(--muted);
  font-size: 13px;
}

/* Legal / long-text pages */
.page {
  padding: 72px 0 80px;
}

.page h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.page .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p, .prose li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--card-hover);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--secondary);
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
}

/* Blog skeleton cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}

.blog-card .thumb {
  height: 180px;
  background: var(--gradient);
  opacity: 0.6;
  position: relative;
  overflow: hidden;
}

.blog-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 50%);
}

.blog-card .body { padding: 22px 24px; }

.blog-card .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.blog-card p { color: var(--text-2); font-size: 14px; }

.blog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 40px;
}

/* Contact block */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  max-width: 640px;
  margin: 48px auto 0;
}

.contact-block h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-block p { color: var(--text-2); margin-bottom: 16px; }

.contact-block a {
  display: inline-block;
  background: var(--gradient);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--glow);
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .pricing-grid, .steps, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-icon { width: 140px; height: 140px; border-radius: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open, .nav-cta.open { display: flex; }
  .nav-links.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    align-items: stretch;
  }
  .nav-links.open li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-cta.open { position: absolute; top: calc(100% + 250px); left: 24px; right: 24px; }
  .hamburger { display: flex; }
  .grid-3, .pricing-grid, .steps, .grid-2, .blog-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 72px; }
}
