/* ============================================================
   QR & Barcode Scanner Pro — Landing Page Styles
   ============================================================ */

:root {
  --navy-deep: #060b1a;
  --navy: #0a1128;
  --navy-light: #111d3a;
  --electric: #2563eb;
  --electric-bright: #3b82f6;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --white: #f8fafc;
  --white-muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(59, 130, 246, 0.18);
  --glow-blue: 0 0 40px rgba(37, 99, 235, 0.45);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ---- Background Orbs ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--electric) 0%, transparent 70%);
  top: -10%;
  left: -8%;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: 40%;
  right: -10%;
  animation-delay: -4s;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -5%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(6, 11, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--glow-blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--white-muted);
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--electric));
  transition: width var(--transition);
}

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

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--electric), var(--cyan));
  border-radius: 50px;
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: var(--glow-blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.6);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--cyan-bright);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan-bright);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 10px var(--cyan-bright);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: var(--glow-blue), var(--glow-cyan);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), 0 0 60px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 50px rgba(37, 99, 235, 0.7), 0 0 80px rgba(6, 182, 212, 0.4); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 30%, var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric), var(--cyan));
  color: var(--white);
  box-shadow: var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.55);
}

.btn-playstore {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 10px 20px;
}

.btn-playstore:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-playstore svg {
  width: 28px;
  height: 28px;
}

.btn-playstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-playstore-text small {
  font-size: 0.65rem;
  color: var(--white-muted);
  font-weight: 400;
}

.btn-playstore-text span {
  font-size: 0.95rem;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.phone-mockup {
  position: relative;
  width: 280px;
}

.phone-frame {
  position: relative;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-radius: 40px;
  padding: 12px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 80px rgba(0, 0, 0, 0.5),
    var(--glow-blue);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.5s ease;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
  z-index: -1;
  animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes phoneGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---- Section Shared ---- */
section {
  padding: 100px 0;
  position: relative;
}

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-bright);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--white-muted);
  font-size: 1.05rem;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--glow-cyan);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.15));
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--cyan-bright);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--white-muted);
  line-height: 1.6;
}

/* ---- Screenshots ---- */
.screenshots {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.04), transparent);
}

.gallery-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y pinch-zoom;
}

.gallery-slide {
  min-width: 100%;
  padding: 0 8px;
}

.gallery-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(20px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-blue);
}

.gallery-card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.gallery-btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.08);
}

.gallery-btn svg {
  width: 20px;
  height: 20px;
}

.gallery-dots {
  display: flex;
  gap: 10px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.gallery-dot.active {
  background: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-bright);
  transform: scale(1.2);
}

.screenshots-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---- Security ---- */
.security {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.03), transparent);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.security-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(6, 11, 26, 0.9));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.security-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.security-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
  box-shadow: 0 0 20px var(--cyan);
}

.security-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.25), inset 0 0 30px rgba(6, 182, 212, 0.03);
}

.security-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.security-icon svg {
  width: 28px;
  height: 28px;
}

.security-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.security-card p {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.65;
}

.security-shield {
  text-align: center;
  margin-top: 64px;
  padding: 48px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.security-shield-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.5));
}

.security-shield h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.security-shield p {
  color: var(--white-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Download CTA ---- */
.download {
  padding: 100px 0;
}

.download-box {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.download-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15), transparent 60%);
  pointer-events: none;
}

.download-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: var(--glow-blue);
  position: relative;
  z-index: 1;
}

.download-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.download-box p {
  color: var(--white-muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.download-box .btn-primary {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* ---- Footer ---- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 11, 26, 0.6);
}

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

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--white-muted);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-bright);
  margin-bottom: 20px;
}

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

.footer-col a {
  color: var(--white-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--white-muted);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--cyan-bright);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--white-muted);
}

/* ---- Legal Pages ---- */
.legal-page {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-updated {
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--white);
}

.legal-content p,
.legal-content li {
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--cyan-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-bright);
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: gap var(--transition);
}

.legal-back:hover {
  gap: 12px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (min-width: 1024px) {
  .gallery-wrapper {
    display: none;
  }

  .screenshots-grid {
    display: grid;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tagline {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(6, 11, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
  }

  section {
    padding: 72px 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .download-box {
    padding: 56px 24px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup {
    width: 240px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
