:root {
  --bg: #0b0f1a;
  --bg-2: #11172a;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.10);
  --text: #e8ecf5;
  --muted: #9aa3b8;
  --primary: #7c5cff;
  --primary-2: #22d3ee;
  --accent: #f472b6;
  --success: #22c55e;
  --danger: #ef4444;
  --whatsapp: #25D366;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 50%, #f472b6 100%);
  --shadow: 0 20px 60px -20px rgba(124,92,255,0.45);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124,92,255,0.20), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,0.18), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,26,0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-weight: 900; font-size: 22px; letter-spacing: 1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark span { color: var(--muted); -webkit-text-fill-color: var(--muted); margin: 0 1px; }
.brand-tag { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s, background .2s, opacity .2s;
  background: var(--surface); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); border: none; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); }
.btn-whatsapp { background: var(--whatsapp); color: #06291a; border: none; }
.btn-whatsapp:hover { box-shadow: 0 12px 30px -10px rgba(37,211,102,0.55); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Hero */
.hero { padding: 70px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.lead { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.hero-stats span { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--grad); filter: blur(80px); opacity: .35; z-index: 0; }
.phone { position: relative; width: 240px; height: 420px; border-radius: 36px; background: linear-gradient(160deg, #1a2138, #0b0f1a); border: 1px solid var(--border); padding: 14px; box-shadow: var(--shadow); z-index: 1; }
.phone-screen { width: 100%; height: 100%; border-radius: 26px; background: #06080f; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.scan-frame { position: relative; width: 180px; height: 180px; border-radius: 18px; background: rgba(124,92,255,0.06); }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--primary-2); }
.corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
.corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }
.corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
.scan-line { position: absolute; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-2), transparent); top: 0; animation: scan 2.2s ease-in-out infinite; box-shadow: 0 0 12px var(--primary-2); }
@keyframes scan { 0%, 100% { top: 8px; } 50% { top: calc(100% - 10px); } }
.qr-pattern {
  position: absolute; inset: 30px; border-radius: 8px; opacity: .35;
  background:
    linear-gradient(#fff, #fff) 0 0/30px 30px no-repeat,
    linear-gradient(#fff, #fff) calc(100% - 30px) 0/30px 30px no-repeat,
    linear-gradient(#fff, #fff) 0 calc(100% - 30px)/30px 30px no-repeat,
    radial-gradient(#fff 1px, transparent 1.5px) 0 0/10px 10px;
}

/* Sections */
section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* Scanner */
.scanner-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto;
}
.tabs { display: flex; gap: 8px; background: rgba(0,0,0,0.25); padding: 6px; border-radius: 14px; margin-bottom: 20px; }
.tab { flex: 1; background: transparent; border: none; color: var(--muted); padding: 10px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .2s; font-size: 14px; }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(124,92,255,0.5); }
.tab-panel.hidden { display: none; }

.video-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: #06080f; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}
#video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,8,15,0.6); }
.video-overlay.hidden { display: none; }
.overlay-msg { color: var(--muted); text-align: center; padding: 16px 22px; border-radius: 12px; background: rgba(0,0,0,0.4); border: 1px dashed var(--border); }
.scan-target { position: absolute; inset: 18%; pointer-events: none; }
.scan-target .corner { border-color: var(--primary-2); width: 30px; height: 30px; }

.controls { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.select {
  flex: 1; min-width: 160px; padding: 11px 14px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-size: 14px;
}
.select:focus { outline: 2px solid var(--primary); }

/* Dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 50px 20px; border-radius: 16px;
  background: var(--surface); border: 2px dashed var(--border);
  cursor: pointer; text-align: center; transition: all .2s;
  gap: 10px;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--primary); background: rgba(124,92,255,0.06);
}
.dropzone-icon { font-size: 38px; }
.dropzone-hint { color: var(--muted); font-size: 13px; }

/* Result */
.result {
  margin-top: 22px; padding: 20px;
  background: linear-gradient(180deg, rgba(34,211,238,0.08), rgba(124,92,255,0.05));
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 16px;
  animation: pop .3s ease;
}
.result.hidden { display: none; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.result-type {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.icon-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 6px 12px; border-radius: 10px; cursor: pointer; font-size: 13px;
}
.icon-btn:hover { background: var(--surface); }
.result-content {
  background: rgba(0,0,0,0.3); padding: 14px 16px; border-radius: 12px;
  word-break: break-word; font-size: 14px; line-height: 1.55;
}
.result-content .row { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.result-content .row:last-child { border-bottom: none; }
.result-content .row .k { color: var(--muted); min-width: 90px; font-size: 13px; }
.result-content .row .v { color: var(--text); flex: 1; word-break: break-all; }
.result-content a { color: var(--primary-2); text-decoration: underline; }
.result-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.raw { margin-top: 12px; }
.raw pre { background: rgba(0,0,0,0.4); padding: 10px; border-radius: 8px; overflow: auto; font-size: 12px; color: var(--muted); margin-top: 8px; }
.raw summary { cursor: pointer; color: var(--muted); font-size: 13px; }
#rescanBtn { margin-top: 14px; }

.error {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca; font-size: 14px;
}
.error.hidden { display: none; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  padding: 22px; border-radius: 16px; transition: all .25s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(124,92,255,0.4); background: var(--surface-2); }
.ficon { font-size: 28px; margin-bottom: 10px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; }

/* About */
.about { padding-bottom: 80px; }
.about-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 40px 30px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(124,92,255,0.10), rgba(34,211,238,0.05));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 26px;
  box-shadow: var(--shadow);
}
.dev-name { font-size: 20px; font-weight: 700; margin-top: 6px; }
.dev-brand { color: var(--muted); margin-bottom: 14px; }
.about-card .btn { margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-stats { gap: 18px; }
  .scanner-card { padding: 16px; }
  .nav { height: 62px; }
}
