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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050814;
  color: #f5f7ff;
}

a {
  color: #7bdcff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden { display: none !important; }

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  background: rgba(5, 8, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 152, 255, 0.25);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 20%, #7bf5ff, #3e7bff);
  box-shadow: 0 0 15px rgba(123, 245, 255, 0.7);
}

.topbar-title {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.plan-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 41, 255, 0.25);
  border: 1px solid rgba(124, 152, 255, 0.6);
  font-size: 0.75rem;
}

/* Layout */

.mainwrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 1rem;
}

.hero-left h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.lead {
  color: #c5c9ff;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.hero-badges span {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 255, 0.35);
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.keyword-line {
  font-size: 0.78rem;
  color: #8b91ff;
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.7);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7ff;
  border: 1px solid rgba(148, 163, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: #c7d2fe;
  border: 1px solid rgba(148, 163, 255, 0.4);
}

.btn-mini {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7ff;
  border: 1px solid rgba(148, 163, 255, 0.6);
  cursor: pointer;
}

/* Hero right */

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-intro-card {
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), rgba(15, 23, 42, 0.98));
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 255, 0.5);
}

.pricing-intro-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.pricing-intro-card p {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.85rem;
  color: #c7d2fe;
}

.pricing-toggle-info {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #e5e7ff;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.1rem;
  padding: 0.9rem 0.9rem 1.1rem;
  border: 1px solid rgba(75, 85, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.highlight {
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.6);
  border-color: rgba(96, 165, 250, 0.9);
}

.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pricing-header h3 {
  margin: 0;
  font-size: 1.0rem;
}

.price {
  margin: 0;
  font-weight: 600;
  color: #e0e7ff;
}

.badge {
  font-size: 0.7rem;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.8);
  margin-top: 0.15rem;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.pricing-list li {
  margin-bottom: 0.25rem;
}

/* SEO text section */

.section.seo-text {
  margin-top: 2.5rem;
  padding: 1.4rem 1.2rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(55, 65, 194, 0.8);
  font-size: 0.9rem;
  color: #e5e7ff;
}

/* Scanner Overlay */

.scanner-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.scanner-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

.icon-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.cv-status {
  font-size: 0.8rem;
  color: #a5b4fc;
}

.scanner-view {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.scanner-view video,
.scanner-view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-bottom {
  padding: 0.5rem 0.75rem 0.75rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  border-top: 1px solid rgba(30, 64, 175, 0.8);
}

.plan-info-bar {
  font-size: 0.78rem;
  color: #c7d2fe;
  margin-bottom: 0.35rem;
}

.scanner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scan-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.shutter-btn {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 4px solid #e5e7eb;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.shutter-btn::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #f97316;
}

.page-counter {
  font-size: 0.75rem;
  color: #e5e7ff;
}

.multi-page-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
}

.modal-content {
  position: relative;
  background: #020617;
  border-radius: 1.2rem;
  border: 1px solid rgba(129, 140, 248, 0.7);
  padding: 1.25rem 1.4rem 1.4rem;
  max-width: 420px;
  width: 92%;
  color: #e5e7ff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.modal-content p {
  font-size: 0.85rem;
  color: #c7d2fe;
}

.modal-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #a5b4fc;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

/* PWA Install Button */

.pwa-install-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  z-index: 45;
}

/* Footer */

.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
}

/* Responsive */

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

@media (max-width: 640px) {
  .mainwrap {
    padding-inline: 0.85rem;
  }
  .hero-left h1 {
    font-size: 1.8rem;
  }
  .pricing-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .scanner-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .multi-page-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}
