
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body, html { overflow-x: hidden; }

body { font-family: 'DM Sans', sans-serif; background: #ffffff; color: #363636; }

.hero-bg {
  background:
    radial-gradient(ellipse 60% 55% at 70% 40%, rgba(14,149,225,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 70%, rgba(14,149,225,.04) 0%, transparent 70%),
    #ffffff;
}

.glass {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(14,149,225,.15);
  backdrop-filter: blur(8px);
}

.blue-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #0e95e1 40%, transparent);
}

.blue-text {
  background: linear-gradient(135deg, #62caff 0%, #0e95e1 55%, #0a72ae 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card:hover {
  border-color: rgba(14,149,225,.45);
  box-shadow: 0 0 28px rgba(14,149,225,.12);
}

.feature-card {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14,149,225,.4);
  box-shadow: 0 16px 40px rgba(14,149,225,.1);
}

.nav-link-custom { position: relative; }
.nav-link-custom::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: #0e95e1;
  transition: width .3s ease;
}
.nav-link-custom:hover::after { width: 100%; }

.store-btn { transition: transform .2s ease, filter .2s ease; }
.store-btn:hover { transform: scale(1.04); filter: brightness(1.1); }

.anim-delay-1 { animation-delay: .1s;  opacity: 0; }
.anim-delay-2 { animation-delay: .22s; opacity: 0; }
.anim-delay-3 { animation-delay: .34s; opacity: 0; }
.anim-delay-4 { animation-delay: .46s; opacity: 0; }
.anim-delay-5 { animation-delay: .58s; opacity: 0; }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  opacity: .4;
}
main  { position: relative; z-index: 1; }
header, footer { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: #c8d6e5; border-radius: 99px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: .1s; }
.reveal-delay-2.visible { transition-delay: .2s; }
.reveal-delay-3.visible { transition-delay: .3s; }

.logo-img { width: 150px; height: auto; }
.logo-img-small { width: 80px; height: auto; }

.brand-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(14,149,225,.4), transparent);
}

.hero-ring-sm {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  border: 1px solid rgba(14,149,225,.05);
  pointer-events: none;
}
.hero-ring-lg {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 9999px;
  border: 1px solid rgba(14,149,225,.03);
  pointer-events: none;
}

header > div {
  flex-wrap: wrap;
  align-items: center;
}
header > div > ul {
  flex: 1 1 100%;
  justify-content: center;
}
@media (min-width: 350px) {
  header > div { flex-wrap: nowrap; }
  header > div > ul { flex: 0 0 auto; }
}

.qr-card {
  width: 120px;
  height: auto;           
  aspect-ratio: 1 / 1;   
  padding: 10px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (min-width: 400px) {
  .qr-card { width: 128px; padding: 12px; }
}
@media (min-width: 640px) {
  .qr-card { width: 144px; }
}
.qr-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  border-color: rgba(14,149,225,.4) !important;
}

.mockup-glow {
  position: absolute;
  inset: 0;
  background: rgba(14,149,225,.1);
  filter: blur(64px);
  border-radius: 9999px;
  transform: scale(.75);
  pointer-events: none;
}

.stats-grid {
  display: grid !important;
  gap: 1.5rem;
  grid-template-columns: 1fr !important;         
}
@media (min-width: 500px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; } 
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr) !important; }  
}

/* ---- QR Modal ---- */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  cursor: pointer;
}
.qr-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.qr-modal-content {
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 24rem;
  width: calc(100% - 2rem);
  transform: scale(.95);
  transition: transform .3s ease;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
}
.qr-modal-overlay.is-open .qr-modal-content { transform: scale(1); }
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #797979;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .2s ease;
}
.modal-close-btn:hover { color: #212529; }
.modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #212529;
  margin-bottom: 1.5rem;
}
.qr-modal-img {
  width: 256px;
  height: 256px;
  object-fit: contain;
}