:root {
  color-scheme: light;
  --bg: #f6f4ff;
  --bg-secondary: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-alt: #f1eeff;
  --border: rgba(97, 76, 214, 0.12);
  --border-strong: rgba(97, 76, 214, 0.2);
  --text: #1f2340;
  --muted: #63698b;
  --primary: #6554e8;
  --primary-dark: #4c3fc2;
  --secondary: #f05bb4;
  --success: #26b67d;
  --success-soft: rgba(38, 182, 125, 0.14);
  --accent-soft: rgba(101, 84, 232, 0.1);
  --pink-soft: rgba(240, 91, 180, 0.12);
  --shadow: 0 24px 60px rgba(76, 63, 194, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(101, 84, 232, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(240, 91, 180, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfaff 0%, #f6f4ff 52%, #eff3ff 100%);
}

body::selection {
  background: rgba(101, 84, 232, 0.16);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  opacity: 0.55;
}

.orb-a {
  top: 120px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: rgba(101, 84, 232, 0.16);
}

.orb-b {
  right: -40px;
  top: 420px;
  width: 220px;
  height: 220px;
  background: rgba(240, 91, 180, 0.15);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero,
.section,
.site-footer {
  margin-top: 24px;
}

.topbar,
.hero-grid,
.overview-grid,
.steps-grid,
.feature-layout,
.security-grid,
.privacy-grid {
  display: grid;
  gap: 24px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.hero-actions,
.hero-metrics,
.device-header,
.loyalty-card,
.counter-row,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #8d62ff 100%);
  box-shadow: 0 16px 28px rgba(101, 84, 232, 0.24);
}

.brand strong,
.brand small,
.hero-copy h1,
.section-heading h2,
.loyalty-card h2,
.merchant-banner h2,
.site-footer strong {
  display: block;
}

.brand small,
.hero-lead,
.merchant-note,
.hero-metrics dd,
.section-heading p,
.overview-card p,
.step-card p,
.feature-panel p,
.check-list,
.security-card p,
.privacy-card p,
.detail-list,
.site-footer p,
.mini-list,
.progress-copy span,
.loyalty-card p,
.panel-screen,
.search-bar,
.merchant-banner p,
.contact-card p {
  color: var(--muted);
}

.nav-links {
  gap: 20px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.hero {
  padding-top: 8px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 470px);
  align-items: center;
  padding: 48px 0 12px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(101, 84, 232, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  line-height: 0.96;
}

.hero-lead,
.section-heading p,
.overview-card p,
.step-card p,
.security-card p,
.privacy-card p,
.detail-list,
.merchant-banner p,
.check-list,
.mini-list,
.contact-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #7d66ff 100%);
  box-shadow: 0 20px 36px rgba(101, 84, 232, 0.24);
}

.button-secondary {
  color: var(--primary);
  border-color: rgba(101, 84, 232, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.button-full {
  width: 100%;
}

.merchant-note {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(101, 84, 232, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.hero-metrics {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-metrics div,
.device-card,
.overview-card,
.step-card,
.feature-panel,
.visual-panel,
.security-card,
.privacy-card,
.merchant-banner,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  flex: 1 1 180px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
}

.hero-metrics dt {
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
}

.hero-showcase {
  position: relative;
  min-height: 620px;
}

.device-card {
  position: absolute;
  width: min(100%, 390px);
  padding: 22px;
  border-radius: 38px;
}

.primary-device {
  top: 0;
  left: 0;
  z-index: 2;
}

.secondary-device {
  right: 0;
  bottom: 24px;
  width: min(86%, 320px);
  z-index: 1;
}

.primary-device,
.secondary-device,
.panel-screen,
.loyalty-card,
.progress-card,
.scanner-card,
.callout-card,
.search-bar,
.merchant-chip,
.toggle-line,
.counter-line,
.server-line,
.config-row,
.camera-zone,
.server-badge {
  background: var(--surface-strong);
}

.device-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.device-pill,
.scan-ready,
.server-badge,
.merchant-chip.active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.device-pill {
  color: var(--primary);
  background: rgba(101, 84, 232, 0.1);
}

.seller-pill {
  color: var(--success);
  background: rgba(38, 182, 125, 0.12);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success) 0%, #53d69f 100%);
  box-shadow: 0 0 0 8px rgba(38, 182, 125, 0.1);
}

.scan-ready,
.server-badge,
.server-line {
  color: var(--success);
  background: var(--success-soft);
}

.loyalty-card,
.progress-card,
.scanner-card,
.callout-card,
.panel-screen {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
}

.loyalty-card {
  justify-content: space-between;
  gap: 18px;
}

.mini-label,
.panel-title {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loyalty-card h2,
.section-heading h2,
.merchant-banner h2 {
  margin: 0 0 6px;
}

.store-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, #ff8a7a 100%);
}

.progress-card {
  margin: 18px 0;
}

.progress-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stamp {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(101, 84, 232, 0.08);
  background: linear-gradient(180deg, #f5f2ff 0%, #ece9ff 100%);
}

.stamp::after {
  content: "○";
  color: rgba(101, 84, 232, 0.38);
  font-size: 1rem;
  font-weight: 700;
}

.stamp.filled {
  background: linear-gradient(135deg, var(--primary) 0%, #8a6dff 100%);
}

.stamp.filled::after {
  content: "✓";
  color: #fff;
}

.qr-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f9f7ff 0%, #ffffff 100%);
}

.qr-panel.is-visible {
  animation: rise 0.3s ease;
}

.qr-panel p {
  margin: 14px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.qr-code {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 11px, transparent 11px) 0 0 / 38px 38px,
    linear-gradient(#fff 11px, transparent 11px) 0 0 / 38px 38px,
    linear-gradient(90deg, #251d61 18px, transparent 18px) 10px 10px / 38px 38px,
    linear-gradient(#251d61 18px, transparent 18px) 10px 10px / 38px 38px,
    linear-gradient(135deg, #fff 0%, #f2efff 100%);
  box-shadow: inset 0 0 0 10px #fff;
}

.scanner-card {
  margin-bottom: 18px;
}

.scanner-frame,
.camera-zone {
  min-height: 180px;
  border-radius: 22px;
  border: 1px dashed rgba(101, 84, 232, 0.26);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(101, 84, 232, 0.06), rgba(240, 91, 180, 0.08)),
    #fdfcff;
}

.counter-row {
  justify-content: center;
  gap: 16px;
  margin: 18px 0 14px;
}

.counter-row button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--primary);
  background: var(--accent-soft);
}

.counter-row strong,
.counter-line strong,
.config-row strong,
.toggle-line strong {
  color: var(--text);
}

.mini-list,
.check-list,
.detail-list {
  margin: 0;
  padding-left: 20px;
}

.mini-list li + li,
.check-list li + li,
.detail-list li + li {
  margin-top: 10px;
}

.section {
  padding-top: 36px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading.narrow {
  max-width: 640px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

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

.overview-card,
.step-card,
.feature-panel,
.visual-panel,
.security-card,
.privacy-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.overview-card h3,
.step-card h3,
.feature-panel h3,
.security-card h3,
.privacy-card h3,
.callout-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #8a6dff 100%);
}

.feature-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: stretch;
  margin-top: 24px;
}

.reverse-layout {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.visual-panel {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 244, 255, 0.9));
}

.panel-screen {
  display: grid;
  gap: 12px;
}

.search-bar,
.merchant-chip,
.toggle-line,
.counter-line,
.server-line,
.config-row {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.merchant-chip.active {
  justify-self: start;
}

.toggle-line,
.counter-line,
.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.callout-card {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(101, 84, 232, 0.08), rgba(255, 255, 255, 0.92));
}

.callout-card p {
  margin: 0 0 18px;
}

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

.security-card {
  min-height: 100%;
}

.privacy-stack {
  display: grid;
  gap: 24px;
}

.wide-card {
  padding-bottom: 8px;
}

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

.compact-list {
  font-size: 0.98rem;
}

.contact-card {
  background: linear-gradient(180deg, rgba(101, 84, 232, 0.08), rgba(255, 255, 255, 0.94));
}

.merchant-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(101, 84, 232, 0.08) 0%, rgba(240, 91, 180, 0.08) 100%),
    rgba(255, 255, 255, 0.88);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 28px;
}

.footer-links {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .overview-grid,
  .steps-grid,
  .feature-layout,
  .reverse-layout,
  .security-grid,
  .privacy-grid,
  .merchant-banner,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .hero-showcase {
    min-height: auto;
    display: grid;
    gap: 20px;
  }

  .device-card {
    position: static;
    width: 100%;
  }

  .merchant-banner,
  .site-footer {
    display: grid;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    border-radius: 28px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .overview-grid,
  .steps-grid,
  .security-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .topbar,
  .overview-card,
  .step-card,
  .feature-panel,
  .visual-panel,
  .security-card,
  .privacy-card,
  .merchant-banner,
  .site-footer,
  .device-card {
    border-radius: 24px;
  }

  .button,
  .footer-links a {
    width: 100%;
  }

  .footer-links {
    width: 100%;
  }

  .stamp-grid {
    gap: 10px;
  }
}
