Files
QR-master/landing-preview.html
2026-07-08 19:03:40 +02:00

1208 lines
55 KiB
HTML

<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Master — Premium Landing Preview</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
/* ============================================================
QR MASTER — PREMIUM REDESIGN PREVIEW
Design principles:
- One accent color, no rainbow gradients
- Motion = guidance, not decoration (transform/opacity only)
- prefers-reduced-motion respected everywhere
============================================================ */
:root {
--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
/* motion tokens */
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--dur-micro: 160ms;
--dur-ui: 450ms;
--dur-story: 900ms;
--radius: 14px;
--radius-sm: 10px;
}
html[data-theme="dark"] {
--bg: #0a0a0e;
--bg-elevated: #0f0f15;
--surface: #13131b;
--surface-hover: #181822;
--text: #f4f4f6;
--text-secondary: #b4b4bf;
--muted: #7c7c89;
--border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.14);
--accent: #7c6bff;
--accent-strong: #8f80ff;
--accent-soft: rgba(124, 107, 255, 0.12);
--accent-glow: rgba(124, 107, 255, 0.18);
--qr-fg: #f4f4f6;
--qr-bg: #13131b;
--shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 32px rgba(0,0,0,.35);
--shadow-pop: 0 2px 8px rgba(0,0,0,.5), 0 24px 64px rgba(0,0,0,.5);
--nav-bg: rgba(10, 10, 14, 0.72);
}
html[data-theme="light"] {
--bg: #fafafa;
--bg-elevated: #ffffff;
--surface: #ffffff;
--surface-hover: #f6f6f8;
--text: #101014;
--text-secondary: #45454f;
--muted: #82828c;
--border: rgba(16, 16, 20, 0.09);
--border-strong: rgba(16, 16, 20, 0.16);
--accent: #533afd;
--accent-strong: #4229e8;
--accent-soft: rgba(83, 58, 253, 0.07);
--accent-glow: rgba(83, 58, 253, 0.12);
--qr-fg: #101014;
--qr-bg: #ffffff;
--shadow-card: 0 1px 2px rgba(16,16,20,.05), 0 8px 28px rgba(16,16,20,.07);
--shadow-pop: 0 2px 8px rgba(16,16,20,.08), 0 24px 56px rgba(16,16,20,.13);
--nav-bg: rgba(250, 250, 250, 0.78);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-sans);
background: var(--bg);
color: var(--text);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
/* ---------- reveal on scroll ---------- */
.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity var(--dur-story) var(--ease), transform var(--dur-story) var(--ease);
transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
.reveal { opacity: 1; transform: none; }
}
/* ---------- nav ---------- */
.nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
background: var(--nav-bg);
-webkit-backdrop-filter: saturate(1.4) blur(16px);
backdrop-filter: saturate(1.4) blur(16px);
border-bottom: 1px solid transparent;
transition: border-color var(--dur-ui) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
display: flex; align-items: center; justify-content: space-between;
height: 64px;
}
.logo {
display: flex; align-items: center; gap: 10px;
font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
color: var(--text); text-decoration: none;
}
.logo-mark {
width: 28px; height: 28px; border-radius: 8px;
background: var(--accent);
display: grid; place-items: center;
box-shadow: 0 4px 14px var(--accent-glow);
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
transition: color var(--dur-micro) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
width: 36px; height: 36px; border-radius: 10px;
border: 1px solid var(--border); background: transparent;
color: var(--text-secondary); cursor: pointer;
display: grid; place-items: center;
transition: all var(--dur-micro) var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
/* ---------- buttons ---------- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 0 20px; height: 44px;
border-radius: var(--radius-sm);
font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
text-decoration: none; cursor: pointer; border: none;
transition: transform var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease),
background-color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
background: var(--accent); color: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 12px 32px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost {
background: transparent; color: var(--text);
border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
/* ---------- hero ---------- */
.hero {
position: relative;
padding: 160px 0 96px;
overflow: hidden;
}
/* Single, restrained accent glow — not a gradient soup */
.hero::before {
content: "";
position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
width: 900px; height: 600px;
background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
pointer-events: none;
}
/* Fine dot grid, fades out */
.hero::after {
content: "";
position: absolute; inset: 0;
background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
background-size: 28px 28px;
-webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
pointer-events: none;
opacity: 0.5;
}
.hero-grid {
position: relative; z-index: 1;
display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.eyebrow {
display: inline-flex; align-items: center; gap: 8px;
font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
letter-spacing: 0.12em; text-transform: uppercase;
color: var(--accent-strong);
padding: 6px 12px; border-radius: 100px;
border: 1px solid var(--border); background: var(--accent-soft);
}
.eyebrow .dot {
width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
margin-top: 22px;
font-size: clamp(38px, 5vw, 58px);
line-height: 1.06;
letter-spacing: -0.035em;
font-weight: 700;
}
.hero h1 .accent { color: var(--accent-strong); }
.hero-sub {
margin-top: 20px;
font-size: 17.5px; line-height: 1.65;
color: var(--text-secondary);
max-width: 480px;
}
.hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
margin-top: 28px; display: flex; align-items: center; gap: 18px;
color: var(--muted); font-size: 13.5px;
}
.hero-proof .check-list { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-proof .check-item { display: flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 14px; height: 14px; color: var(--accent-strong); flex-shrink: 0; }
/* ---------- 3D hero (Three.js background) ---------- */
#three-bg {
position: absolute; inset: 0;
width: 100%; height: 100%;
z-index: 0;
pointer-events: none;
opacity: 0;
transition: opacity 1.2s var(--ease);
}
#three-bg.ready { opacity: 1; }
.hero-visual {
position: relative;
display: flex; align-items: center; justify-content: center;
min-height: 420px;
}
/* floating chips around the cube */
.orbit-chip {
position: absolute;
padding: 8px 14px;
border-radius: 100px;
background: var(--surface);
border: 1px solid var(--border);
box-shadow: var(--shadow-card);
font-size: 12.5px; font-weight: 600;
display: flex; align-items: center; gap: 7px;
color: var(--text-secondary);
animation: floatY 6s ease-in-out infinite;
animation-delay: var(--fd, 0s);
z-index: 2;
}
.orbit-chip svg { width: 13px; height: 13px; color: var(--accent-strong); }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chip-1 { top: 8%; right: 4%; }
.chip-2 { bottom: 14%; left: 0%; --fd: -2s; }
.chip-3 { top: 42%; right: -4%; --fd: -4s; }
/* ---------- stats strip ---------- */
.stats {
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: var(--bg-elevated);
transition: background-color var(--dur-ui) var(--ease);
}
.stats-inner {
display: grid; grid-template-columns: repeat(4, 1fr);
padding: 40px 0;
}
.stat { text-align: center; padding: 0 16px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
font-size: 34px; font-weight: 700; letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 4px; font-size: 13px; color: var(--muted); }
/* ---------- sections ---------- */
section.block { padding: 104px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong);
}
.section-head h2 {
margin-top: 14px;
font-size: clamp(28px, 3.4vw, 40px);
letter-spacing: -0.03em; line-height: 1.15; font-weight: 700;
}
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--text-secondary); }
/* ---------- generator ---------- */
.generator-card {
display: grid; grid-template-columns: 1fr 340px; gap: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 20px;
box-shadow: var(--shadow-pop);
overflow: hidden;
transition: background-color var(--dur-ui) var(--ease);
}
.generator-left { padding: 40px; }
.generator-left h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.generator-left .gen-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field-label {
display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
margin-bottom: 8px; letter-spacing: 0.02em;
}
.url-input {
width: 100%; height: 48px;
padding: 0 16px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-strong);
background: var(--bg-elevated);
color: var(--text);
font-family: var(--font-mono); font-size: 13.5px;
outline: none;
transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.url-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gen-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; margin-top: 8px; }
.swatch {
width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
border: 2px solid transparent;
transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--accent); }
.generator-right {
background: var(--bg-elevated);
border-left: 1px solid var(--border);
display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 40px; gap: 18px;
transition: background-color var(--dur-ui) var(--ease);
}
.qr-preview-frame {
width: 208px; height: 208px;
background: #fff; border-radius: 16px;
display: grid; place-items: center;
box-shadow: var(--shadow-card);
border: 1px solid var(--border);
}
.qr-preview-frame img, .qr-preview-frame canvas { width: 176px !important; height: 176px !important; border-radius: 4px; }
.gen-note { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
/* ---------- comparison (static vs dynamic) ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 36px;
position: relative;
transition: border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
.compare-card.featured {
border-color: var(--accent);
background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 45%);
}
.compare-tag {
position: absolute; top: -12px; left: 32px;
padding: 4px 12px; border-radius: 100px;
font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
background: var(--surface); color: var(--muted);
border: 1px solid var(--border-strong);
}
.compare-card.featured .compare-tag { background: var(--accent); color: #fff; border-color: var(--accent); }
.compare-card h3 { font-size: 21px; letter-spacing: -0.02em; }
.compare-card .compare-desc { margin-top: 8px; color: var(--text-secondary); font-size: 14.5px; }
.compare-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.compare-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-secondary); }
.compare-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.compare-list .yes svg { color: var(--accent-strong); }
.compare-list .no svg { color: var(--muted); opacity: 0.6; }
.compare-list .no { color: var(--muted); }
/* ---------- features ---------- */
.features-grid {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 28px;
transform-style: preserve-3d;
will-change: transform;
transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease),
background-color var(--dur-ui) var(--ease);
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.feature-icon {
width: 40px; height: 40px; border-radius: 10px;
background: var(--accent-soft);
display: grid; place-items: center;
margin-bottom: 18px;
transform: translateZ(20px);
}
.feature-icon svg { width: 19px; height: 19px; color: var(--accent-strong); }
.feature-card h3 { font-size: 16.5px; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 30px 26px;
display: flex; flex-direction: column;
position: relative;
transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease),
box-shadow var(--dur-micro) var(--ease), background-color var(--dur-ui) var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.price-card.featured {
border-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent), var(--shadow-pop);
}
.price-badge {
position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
background: var(--accent); color: #fff;
font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
padding: 5px 14px; border-radius: 100px;
box-shadow: 0 4px 14px var(--accent-glow);
white-space: nowrap;
}
.price-name { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.price-amount { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.price-amount .num { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.price-amount .per { font-size: 13px; color: var(--muted); }
.price-list { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); }
.price-list svg { width: 15px; height: 15px; color: var(--accent-strong); flex-shrink: 0; margin-top: 3px; }
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 13.5px; }
/* ---------- FAQ ---------- */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item {
border-bottom: 1px solid var(--border);
}
.faq-item summary {
list-style: none; cursor: pointer;
display: flex; align-items: center; justify-content: space-between; gap: 16px;
padding: 22px 4px;
font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
transition: color var(--dur-micro) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-item summary svg {
width: 16px; height: 16px; flex-shrink: 0; color: var(--muted);
transition: transform var(--dur-ui) var(--ease);
}
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-answer {
padding: 0 4px 22px;
color: var(--text-secondary); font-size: 14.5px; line-height: 1.7;
max-width: 620px;
}
/* ---------- final CTA ---------- */
.final-cta {
position: relative;
text-align: center;
padding: 120px 0 130px;
overflow: hidden;
}
.final-cta::before {
content: "";
position: absolute; bottom: -320px; left: 50%; transform: translateX(-50%);
width: 900px; height: 560px;
background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
pointer-events: none;
}
.final-cta h2 {
font-size: clamp(30px, 4vw, 46px);
letter-spacing: -0.035em; line-height: 1.1; font-weight: 700;
max-width: 640px; margin: 0 auto;
position: relative; z-index: 1;
}
.final-cta p { margin: 18px auto 0; color: var(--text-secondary); font-size: 16.5px; max-width: 460px; position: relative; z-index: 1; }
.final-cta .hero-ctas { justify-content: center; position: relative; z-index: 1; }
/* ---------- footer ---------- */
footer {
border-top: 1px solid var(--border);
padding: 48px 0;
background: var(--bg-elevated);
transition: background-color var(--dur-ui) var(--ease);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner .muted { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color var(--dur-micro) var(--ease); }
.footer-links a:hover { color: var(--text); }
/* preview banner */
.preview-banner {
position: fixed; bottom: 20px; right: 20px; z-index: 200;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: 100px;
padding: 8px 16px;
font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
color: var(--muted);
box-shadow: var(--shadow-pop);
}
/* ---------- responsive ---------- */
@media (max-width: 960px) {
.hero-grid { grid-template-columns: 1fr; gap: 48px; }
.hero { padding-top: 130px; }
.hero-visual { min-height: 340px; }
.features-grid { grid-template-columns: repeat(2, 1fr); }
.pricing-grid { grid-template-columns: repeat(2, 1fr); }
.generator-card { grid-template-columns: 1fr; }
.generator-right { border-left: none; border-top: 1px solid var(--border); }
.stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
.stat:nth-child(3) { border-left: none; }
.nav-links { display: none; }
}
@media (max-width: 600px) {
.features-grid, .pricing-grid, .compare-grid { grid-template-columns: 1fr; }
section.block { padding: 72px 0; }
}
</style>
</head>
<body>
<!-- ==================== NAV ==================== -->
<nav class="nav" id="nav">
<div class="container nav-inner">
<a class="logo" href="#">
<span class="logo-mark">
<svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 14h3v3h-3zM18 18h3v3h-3z"/></svg>
</span>
QR Master
</a>
<div class="nav-links">
<a href="#generator">Generator</a>
<a href="#features">Features</a>
<a href="#pricing">Pricing</a>
<a href="#faq">FAQ</a>
</div>
<div class="nav-actions">
<button class="theme-toggle" id="themeToggle" aria-label="Toggle theme">
<svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4m11.4-11.4 1.4-1.4"/></svg>
<svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg>
</button>
<a href="#" class="btn btn-ghost btn-sm">Login</a>
<a href="#" class="btn btn-primary btn-sm">Get Started Free</a>
</div>
</div>
</nav>
<!-- ==================== HERO ==================== -->
<header class="hero" id="hero">
<canvas id="three-bg" aria-hidden="true"></canvas>
<div class="container hero-grid">
<div>
<span class="eyebrow reveal"><span class="dot"></span>Free Dynamic QR Code Generator</span>
<h1 class="reveal" style="--d:80ms">QR codes that stay <span class="accent">editable</span>. Analytics that stay yours.</h1>
<p class="hero-sub reveal" style="--d:160ms">Create dynamic QR codes with editable destinations, real-time scan tracking, and custom branding. Static codes are free forever — no signup needed.</p>
<div class="hero-ctas reveal" style="--d:240ms">
<a href="#generator" class="btn btn-primary">Make a QR Code — Free</a>
<a href="#pricing" class="btn btn-ghost">View Pricing</a>
</div>
<div class="hero-proof reveal" style="--d:320ms">
<div class="check-list">
<span class="check-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>No credit card</span>
<span class="check-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Free forever plan</span>
<span class="check-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>GDPR-friendly analytics</span>
</div>
</div>
</div>
<div class="hero-visual" id="heroVisual">
<div class="orbit-chip chip-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M3 3v18h18"/><path d="m7 14 4-4 4 2 5-6"/></svg>+2,4k scans today</div>
<div class="orbit-chip chip-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>Destination updated</div>
<div class="orbit-chip chip-3"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>48 countries</div>
</div>
</div>
</header>
<!-- ==================== STATS ==================== -->
<div class="stats">
<div class="container stats-inner">
<div class="stat reveal"><div class="stat-num" data-count="12500" data-suffix="+">0</div><div class="stat-label">Happy Users</div></div>
<div class="stat reveal" style="--d:80ms"><div class="stat-num" data-count="86000" data-suffix="+">0</div><div class="stat-label">Active QR Codes</div></div>
<div class="stat reveal" style="--d:160ms"><div class="stat-num" data-count="4200000" data-suffix="+">0</div><div class="stat-label">Total Scans</div></div>
<div class="stat reveal" style="--d:240ms"><div class="stat-num" data-count="120" data-suffix="+">0</div><div class="stat-label">Countries</div></div>
</div>
</div>
<!-- ==================== GENERATOR ==================== -->
<section class="block" id="generator">
<div class="container">
<div class="section-head center reveal">
<div class="section-eyebrow">Instant Generator</div>
<h2>Type a URL. Get a QR code. Done.</h2>
<p>No account, no watermark, no catch. Static codes work forever.</p>
</div>
<div class="generator-card reveal" style="--d:120ms">
<div class="generator-left">
<h3>Instant QR Code Generator</h3>
<p class="gen-sub">Live preview updates as you type.</p>
<label class="field-label" for="urlInput">Destination URL</label>
<input class="url-input" id="urlInput" type="url" value="https://www.qrmaster.net" spellcheck="false">
<div style="margin-top:20px">
<span class="field-label">Foreground color</span>
<div class="swatches" id="swatches">
<button class="swatch active" data-color="#101014" style="background:#101014" aria-label="Black"></button>
<button class="swatch" data-color="#533afd" style="background:#533afd" aria-label="Purple"></button>
<button class="swatch" data-color="#0f766e" style="background:#0f766e" aria-label="Teal"></button>
<button class="swatch" data-color="#b91c1c" style="background:#b91c1c" aria-label="Red"></button>
<button class="swatch" data-color="#1d4ed8" style="background:#1d4ed8" aria-label="Blue"></button>
</div>
</div>
<div class="gen-row">
<button class="btn btn-primary" id="downloadBtn">Download PNG</button>
<a href="#" class="btn btn-ghost">Save &amp; Track →</a>
</div>
</div>
<div class="generator-right">
<div class="qr-preview-frame" id="qrTarget"></div>
<span class="gen-note">// live preview — scan me</span>
</div>
</div>
</div>
</section>
<!-- ==================== STATIC VS DYNAMIC ==================== -->
<section class="block" style="padding-top:0">
<div class="container">
<div class="section-head reveal">
<div class="section-eyebrow">Static vs. Dynamic</div>
<h2>Stop reprinting. Start editing.</h2>
<p>Dynamic QR codes let you switch destinations instantly and track every scan — the printed code never changes.</p>
</div>
<div class="compare-grid">
<div class="compare-card reveal">
<span class="compare-tag">Always free</span>
<h3>Static QR Codes</h3>
<p class="compare-desc">Perfect for permanent content that never changes.</p>
<ul class="compare-list">
<li class="yes"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Works forever, offline-proof</li>
<li class="yes"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>No account required</li>
<li class="no"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg>Content cannot be edited</li>
<li class="no"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg>No scan tracking</li>
</ul>
</div>
<div class="compare-card featured reveal" style="--d:120ms">
<span class="compare-tag">Recommended</span>
<h3>Dynamic QR Codes</h3>
<p class="compare-desc">Full control with tracking and editing capabilities.</p>
<ul class="compare-list">
<li class="yes"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Edit destination anytime — no reprints</li>
<li class="yes"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Scan analytics: devices, locations, time</li>
<li class="yes"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Custom branding with colors &amp; logos</li>
<li class="yes"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Bulk creation from Excel / CSV</li>
</ul>
</div>
</div>
</div>
</section>
<!-- ==================== FEATURES ==================== -->
<section class="block" id="features" style="padding-top:0">
<div class="container">
<div class="section-head reveal">
<div class="section-eyebrow">Platform</div>
<h2>Everything you need for professional QR codes</h2>
<p>From a single menu code to thousand-row bulk batches — one clean workflow.</p>
</div>
<div class="features-grid">
<div class="feature-card tilt reveal">
<div class="feature-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M3 3v18h18"/><path d="m7 14 4-4 4 2 5-6"/></svg></div>
<h3>Advanced Analytics</h3>
<p>Track scans, locations, devices, and user behavior with detailed, privacy-respecting insights.</p>
</div>
<div class="feature-card tilt reveal" style="--d:60ms">
<div class="feature-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5"/><circle cx="17.5" cy="10.5" r=".5"/><circle cx="8.5" cy="7.5" r=".5"/><circle cx="6.5" cy="12.5" r=".5"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.93 0 1.7-.75 1.7-1.7 0-.44-.16-.86-.44-1.18-.28-.31-.44-.72-.44-1.15a1.7 1.7 0 0 1 1.7-1.7H16a6 6 0 0 0 6-6c0-4.6-4.5-8.27-10-8.27z"/></svg></div>
<h3>Full Customization</h3>
<p>Brand your QR codes with custom colors, corner styles, and your own logo.</p>
</div>
<div class="feature-card tilt reveal" style="--d:120ms">
<div class="feature-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v4m0 12v4M2 12h4m12 0h4"/><circle cx="12" cy="12" r="7"/></svg></div>
<h3>Unlimited Static Codes</h3>
<p>Create as many static QR codes as you need. Free forever, no limits, no watermarks.</p>
</div>
<div class="feature-card tilt reveal" style="--d:180ms">
<div class="feature-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3m8-18h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3"/><path d="M8 12h8m-4-4v8"/></svg></div>
<h3>Bulk Operations</h3>
<p>Create hundreds of QR codes at once with CSV / Excel import and batch processing.</p>
</div>
<div class="feature-card tilt reveal" style="--d:240ms">
<div class="feature-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3H5a2 2 0 0 0-2 2v4m18 0V5a2 2 0 0 0-2-2h-4m0 18h4a2 2 0 0 0 2-2v-4M3 15v4a2 2 0 0 0 2 2h4"/></svg></div>
<h3>Integrations</h3>
<p>Connect with Zapier, Airtable, Google Sheets, and the tools you already use.</p>
</div>
<div class="feature-card tilt reveal" style="--d:300ms">
<div class="feature-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 18 6-6-6-6M8 6l-6 6 6 6"/></svg></div>
<h3>Developer API</h3>
<p>Integrate QR code generation into your own applications with our REST API.</p>
</div>
</div>
</div>
</section>
<!-- ==================== PRICING ==================== -->
<section class="block" id="pricing" style="padding-top:0">
<div class="container">
<div class="section-head center reveal">
<div class="section-eyebrow">Pricing</div>
<h2>Simple plans. No surprises.</h2>
<p>All plans include unlimited static QR codes and basic customization.</p>
</div>
<div class="pricing-grid">
<div class="price-card reveal">
<div class="price-name">Free</div>
<div class="price-amount"><span class="num">€0</span><span class="per">forever</span></div>
<ul class="price-list">
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>3 active dynamic QR codes</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Unlimited static QR codes</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Basic scan tracking</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Download as SVG / PNG</li>
</ul>
<a href="#" class="btn btn-ghost">Start Free</a>
</div>
<div class="price-card featured reveal" style="--d:80ms">
<span class="price-badge">Most Popular</span>
<div class="price-name">Pro</div>
<div class="price-amount"><span class="num">€9</span><span class="per">/ month</span></div>
<ul class="price-list">
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>50 dynamic QR codes</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Advanced analytics</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Custom branding (colors &amp; logos)</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Unlimited static QR codes</li>
</ul>
<a href="#" class="btn btn-primary">Upgrade to Pro</a>
</div>
<div class="price-card reveal" style="--d:160ms">
<div class="price-name">Business</div>
<div class="price-amount"><span class="num">€29</span><span class="per">/ month</span></div>
<ul class="price-list">
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>500 dynamic QR codes</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Bulk creation (up to 1,000)</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Everything from Pro</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Priority email support</li>
</ul>
<a href="#" class="btn btn-ghost">Choose Business</a>
</div>
<div class="price-card reveal" style="--d:240ms">
<div class="price-name">Enterprise</div>
<div class="price-amount"><span class="num">Custom</span></div>
<ul class="price-list">
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Unlimited dynamic QR codes</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Everything from Business</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>Dedicated account manager</li>
<li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>SLA &amp; custom contracts</li>
</ul>
<a href="#" class="btn btn-ghost">Contact Us</a>
</div>
</div>
<p class="pricing-note reveal">Cancel anytime. Your static QR codes keep working — always.</p>
</div>
</section>
<!-- ==================== FAQ ==================== -->
<section class="block" id="faq" style="padding-top:0">
<div class="container">
<div class="section-head center reveal">
<div class="section-eyebrow">FAQ</div>
<h2>Frequently asked questions</h2>
</div>
<div class="faq-wrap reveal" style="--d:120ms">
<details class="faq-item" open>
<summary>Do I need an account to create QR codes?<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></summary>
<p class="faq-answer">No account is required for static QR codes. Dynamic QR codes with tracking and editing capabilities require a free account.</p>
</details>
<details class="faq-item">
<summary>What's the difference between static and dynamic QR codes?<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></summary>
<p class="faq-answer">Static QR codes contain fixed content that cannot be changed. Dynamic QR codes can be edited anytime and provide detailed analytics.</p>
</details>
<details class="faq-item">
<summary>Will my QR codes work forever?<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></summary>
<p class="faq-answer">Static QR codes work forever as the content is embedded directly. Dynamic QR codes work as long as your account is active.</p>
</details>
<details class="faq-item">
<summary>What file type should I use for printing?<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></summary>
<p class="faq-answer">For print materials, we recommend SVG format for scalability or high-resolution PNG (300+ DPI) for best quality.</p>
</details>
<details class="faq-item">
<summary>How do analytics work?<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></summary>
<p class="faq-answer">We track scans, locations, devices, and referrers while respecting user privacy. IP addresses are hashed, no personal data is stored, and we honor Do Not Track headers.</p>
</details>
<details class="faq-item">
<summary>Can I bulk-create codes with my own data?<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></summary>
<p class="faq-answer">Yes, you can upload CSV or Excel files to create multiple QR codes at once with custom data mapping.</p>
</details>
</div>
</div>
</section>
<!-- ==================== FINAL CTA ==================== -->
<section class="final-cta">
<div class="container">
<h2 class="reveal">Your next print run shouldn't depend on a URL.</h2>
<p class="reveal" style="--d:100ms">Create a dynamic QR code in 30 seconds. Edit it forever.</p>
<div class="hero-ctas reveal" style="--d:200ms; justify-content:center">
<a href="#generator" class="btn btn-primary">Make a QR Code — Free</a>
</div>
</div>
</section>
<!-- ==================== FOOTER ==================== -->
<footer>
<div class="container footer-inner">
<a class="logo" href="#" style="font-size:15px">
<span class="logo-mark" style="width:24px;height:24px;border-radius:7px">
<svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" style="width:13px;height:13px"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 14h3v3h-3zM18 18h3v3h-3z"/></svg>
</span>
QR Master
</a>
<div class="footer-links">
<a href="#">Tools</a><a href="#">Blog</a><a href="#">Alternatives</a><a href="#">Privacy</a><a href="#">Imprint</a>
</div>
<span class="muted">© 2026 QR Master. All rights reserved.</span>
</div>
</footer>
<div class="preview-banner">DESIGN PREVIEW — NOT LIVE</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script>
/* ============================================================
THREE.JS HERO BACKGROUND
A floating field of QR modules (instanced cubes) with a
gentle wave, soft lighting, and mouse parallax.
- transform-only animation, capped pixel ratio
- pauses when hero is off-screen
- respects prefers-reduced-motion (static render)
- theme-aware colors (hooks into the theme toggle)
============================================================ */
(function () {
'use strict';
if (typeof THREE === 'undefined') return; // CDN offline → hero still works without 3D
var canvas = document.getElementById('three-bg');
if (!canvas) return;
var reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
var renderer;
try {
renderer = new THREE.WebGLRenderer({ canvas: canvas, alpha: true, antialias: true, powerPreference: 'low-power' });
} catch (e) { return; }
renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(40, 1, 0.1, 120);
camera.position.set(0, 2, 32);
scene.add(new THREE.AmbientLight(0xffffff, 0.85));
var dir = new THREE.DirectionalLight(0xffffff, 0.65);
dir.position.set(8, 14, 10);
scene.add(dir);
var accentLight = new THREE.PointLight(0x7c6bff, 0.9, 60);
accentLight.position.set(10, 6, 14);
scene.add(accentLight);
/* ----- build QR module grid (deterministic pseudo-QR) ----- */
function mulberry32(seed) {
return function () {
seed |= 0; seed = seed + 0x6D2B79F5 | 0;
var t = Math.imul(seed ^ seed >>> 15, 1 | seed);
t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
return ((t ^ t >>> 14) >>> 0) / 4294967296;
};
}
var N = 29;
function finderModule(u, v) { // 7x7 finder pattern shape
var ring = (u === 0 || u === 6 || v === 0 || v === 6);
var core = (u >= 2 && u <= 4 && v >= 2 && v <= 4);
return ring || core;
}
var rnd = mulberry32(20260708);
var modules = []; // {x, y}
for (var y = 0; y < N; y++) {
for (var x = 0; x < N; x++) {
var f = null;
if (x < 7 && y < 7) f = finderModule(x, y);
else if (x >= N - 7 && y < 7) f = finderModule(x - (N - 7), y);
else if (x < 7 && y >= N - 7) f = finderModule(x, y - (N - 7));
var on = (f !== null) ? f : rnd() > 0.55;
if (on) modules.push({ x: x, y: y });
}
}
var count = modules.length;
var geo = new THREE.BoxGeometry(0.8, 0.8, 0.8);
var mat = new THREE.MeshStandardMaterial({ roughness: 0.4, metalness: 0.15, transparent: true, opacity: 0.92 });
var mesh = new THREE.InstancedMesh(geo, mat, count);
mesh.instanceMatrix.setUsage(THREE.DynamicDrawUsage);
// ~6% of modules get the accent color
var accentRnd = mulberry32(99);
var isAccent = [];
for (var i = 0; i < count; i++) isAccent.push(accentRnd() < 0.06);
var color = new THREE.Color();
function applyThemeColors() {
var dark = document.documentElement.getAttribute('data-theme') === 'dark';
var base = dark ? 0x34344a : 0xd6d6e2;
var accent = dark ? 0x7c6bff : 0x533afd;
for (var i = 0; i < count; i++) {
color.setHex(isAccent[i] ? accent : base);
mesh.setColorAt(i, color);
}
if (mesh.instanceColor) mesh.instanceColor.needsUpdate = true;
accentLight.color.setHex(accent);
}
var group = new THREE.Group();
group.add(mesh);
// lay the plane back, slightly turned — reads as a "surface" behind the UI
var baseRX = -0.95, baseRY = -0.28, baseRZ = -0.08;
group.rotation.set(baseRX, baseRY, baseRZ);
group.position.set(7, -5, 0);
scene.add(group);
/* ----- instance placement + wave ----- */
var dummy = new THREE.Object3D();
function layout(t) {
for (var i = 0; i < count; i++) {
var m = modules[i];
var wave = Math.sin(t * 1.1 + (m.x + m.y) * 0.32) * 0.55
+ Math.sin(t * 0.7 + m.x * 0.5 - m.y * 0.3) * 0.25;
dummy.position.set(m.x - N / 2, N / 2 - m.y, wave);
var s = 1 + Math.sin(t * 1.1 + (m.x + m.y) * 0.32) * 0.06;
dummy.scale.set(s, s, s);
dummy.updateMatrix();
mesh.setMatrixAt(i, dummy.matrix);
}
mesh.instanceMatrix.needsUpdate = true;
}
/* ----- sizing ----- */
var hero = document.getElementById('hero');
function resize() {
var w = canvas.clientWidth || hero.clientWidth;
var h = canvas.clientHeight || hero.clientHeight;
if (!w || !h) return;
renderer.setSize(w, h, false);
camera.aspect = w / h;
camera.updateProjectionMatrix();
// on narrow screens center the field and push it back
if (w < 960) { group.position.x = 0; camera.position.z = 40; }
else { group.position.x = 7; camera.position.z = 32; }
}
window.addEventListener('resize', resize);
/* ----- mouse parallax ----- */
var tRX = 0, tRY = 0, cRX = 0, cRY = 0;
if (!reduceMotion) {
hero.addEventListener('mousemove', function (e) {
var r = hero.getBoundingClientRect();
tRY = ((e.clientX - r.left) / r.width - 0.5) * 0.22;
tRX = ((e.clientY - r.top) / r.height - 0.5) * 0.14;
});
hero.addEventListener('mouseleave', function () { tRX = 0; tRY = 0; });
}
/* ----- render loop (paused off-screen) ----- */
var running = true;
if ('IntersectionObserver' in window) {
new IntersectionObserver(function (entries) {
running = entries[0].isIntersecting;
}, { threshold: 0.02 }).observe(canvas);
}
var clock = new THREE.Clock();
function frame() {
requestAnimationFrame(frame);
if (!running) return;
var t = clock.getElapsedTime();
layout(t);
cRX += (tRX - cRX) * 0.05;
cRY += (tRY - cRY) * 0.05;
group.rotation.x = baseRX + Math.sin(t * 0.18) * 0.03 + cRX;
group.rotation.y = baseRY + Math.sin(t * 0.14) * 0.04 + cRY;
renderer.render(scene, camera);
}
/* ----- theme hook ----- */
window.__onThemeChange = function () {
applyThemeColors();
if (reduceMotion) renderer.render(scene, camera);
};
/* ----- init ----- */
applyThemeColors();
resize();
layout(0);
if (reduceMotion) {
renderer.render(scene, camera); // single static frame
} else {
frame();
}
canvas.classList.add('ready'); // fade in
})();
</script>
<script>
(function () {
'use strict';
var reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
/* ---------- theme toggle ---------- */
var root = document.documentElement;
try {
var saved = localStorage.getItem('qrm-theme');
if (saved === 'dark' || saved === 'light') root.setAttribute('data-theme', saved);
} catch (e) {}
document.getElementById('themeToggle').addEventListener('click', function () {
var next = root.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
root.setAttribute('data-theme', next);
try { localStorage.setItem('qrm-theme', next); } catch (e) {}
if (window.__onThemeChange) window.__onThemeChange(); // notify Three.js scene
});
/* ---------- nav border on scroll ---------- */
var nav = document.getElementById('nav');
window.addEventListener('scroll', function () {
nav.classList.toggle('scrolled', window.scrollY > 8);
}, { passive: true });
/* ---------- reveal on scroll ---------- */
var revealEls = document.querySelectorAll('.reveal');
if ('IntersectionObserver' in window && !reduceMotion) {
var io = new IntersectionObserver(function (entries) {
entries.forEach(function (en) {
if (en.isIntersecting) { en.target.classList.add('in'); io.unobserve(en.target); }
});
}, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
revealEls.forEach(function (el) { io.observe(el); });
} else {
revealEls.forEach(function (el) { el.classList.add('in'); });
}
/* ---------- count-up stats ---------- */
function formatNum(n) {
if (n >= 1000000) return (n / 1000000).toFixed(1).replace('.0', '') + 'M';
if (n >= 1000) return (n / 1000).toFixed(1).replace('.0', '') + 'k';
return String(Math.round(n));
}
function countUp(el) {
var target = parseInt(el.getAttribute('data-count'), 10);
var suffix = el.getAttribute('data-suffix') || '';
if (reduceMotion) { el.textContent = formatNum(target) + suffix; return; }
var start = null, dur = 1400;
function step(ts) {
if (!start) start = ts;
var p = Math.min((ts - start) / dur, 1);
var eased = 1 - Math.pow(1 - p, 3);
el.textContent = formatNum(target * eased) + (p === 1 ? suffix : '');
if (p < 1) requestAnimationFrame(step);
}
requestAnimationFrame(step);
}
var statEls = document.querySelectorAll('.stat-num');
if ('IntersectionObserver' in window) {
var sio = new IntersectionObserver(function (entries) {
entries.forEach(function (en) {
if (en.isIntersecting) { countUp(en.target); sio.unobserve(en.target); }
});
}, { threshold: 0.5 });
statEls.forEach(function (el) { sio.observe(el); });
} else {
statEls.forEach(countUp);
}
/* ---------- pseudo-QR painter (cube faces) ---------- */
function mulberry32(seed) {
return function () {
seed |= 0; seed = seed + 0x6D2B79F5 | 0;
var t = Math.imul(seed ^ seed >>> 15, 1 | seed);
t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
return ((t ^ t >>> 14) >>> 0) / 4294967296;
};
}
function drawFinder(ctx, x, y, fg, bg) {
ctx.fillStyle = fg; ctx.fillRect(x, y, 7, 7);
ctx.fillStyle = bg; ctx.fillRect(x + 1, y + 1, 5, 5);
ctx.fillStyle = fg; ctx.fillRect(x + 2, y + 2, 3, 3);
}
function paintPseudoQR(canvas, seed) {
var s = getComputedStyle(document.documentElement);
var fg = s.getPropertyValue('--qr-fg').trim() || '#111';
var bg = s.getPropertyValue('--qr-bg').trim() || '#fff';
var n = 29, ctx = canvas.getContext('2d');
ctx.fillStyle = bg; ctx.fillRect(0, 0, n, n);
var rnd = mulberry32(seed);
ctx.fillStyle = fg;
for (var y = 0; y < n; y++) {
for (var x = 0; x < n; x++) {
var inFinder = (x < 8 && y < 8) || (x > n - 9 && y < 8) || (x < 8 && y > n - 9);
if (!inFinder && rnd() > 0.55) ctx.fillRect(x, y, 1, 1);
}
}
drawFinder(ctx, 0, 0, fg, bg);
drawFinder(ctx, n - 7, 0, fg, bg);
drawFinder(ctx, 0, n - 7, fg, bg);
}
/* ---------- card tilt (features) ---------- */
var canHover = window.matchMedia('(hover: hover)').matches;
if (!reduceMotion && canHover) {
document.querySelectorAll('.tilt').forEach(function (card) {
card.addEventListener('mousemove', function (e) {
var r = card.getBoundingClientRect();
var px = (e.clientX - r.left) / r.width - 0.5;
var py = (e.clientY - r.top) / r.height - 0.5;
card.style.transform = 'perspective(800px) rotateX(' + (-py * 5) + 'deg) rotateY(' + (px * 5) + 'deg) translateY(-2px)';
});
card.addEventListener('mouseleave', function () {
card.style.transform = '';
});
});
}
/* ---------- live QR generator ---------- */
var qrTarget = document.getElementById('qrTarget');
var urlInput = document.getElementById('urlInput');
var qrColor = '#101014';
var qrInstance = null;
var debounceT = null;
function renderQR() {
var text = urlInput.value.trim() || 'https://www.qrmaster.net';
qrTarget.innerHTML = '';
if (typeof QRCode !== 'undefined') {
qrInstance = new QRCode(qrTarget, {
text: text, width: 176, height: 176,
colorDark: qrColor, colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.M
});
} else {
// offline fallback: pseudo-QR
var c = document.createElement('canvas');
c.width = 29; c.height = 29;
c.style.width = '176px'; c.style.height = '176px'; c.style.imageRendering = 'pixelated';
qrTarget.appendChild(c);
var seed = 0;
for (var i = 0; i < text.length; i++) seed = (seed * 31 + text.charCodeAt(i)) | 0;
paintPseudoQR(c, seed);
}
}
urlInput.addEventListener('input', function () {
clearTimeout(debounceT);
debounceT = setTimeout(renderQR, 250);
});
document.getElementById('swatches').addEventListener('click', function (e) {
var btn = e.target.closest('.swatch');
if (!btn) return;
document.querySelectorAll('.swatch').forEach(function (s) { s.classList.remove('active'); });
btn.classList.add('active');
qrColor = btn.getAttribute('data-color');
renderQR();
});
document.getElementById('downloadBtn').addEventListener('click', function () {
var img = qrTarget.querySelector('img');
var canvas = qrTarget.querySelector('canvas');
var url = null;
if (img && img.src) url = img.src;
else if (canvas) url = canvas.toDataURL('image/png');
if (!url) return;
var a = document.createElement('a');
a.href = url; a.download = 'qr-master-code.png';
document.body.appendChild(a); a.click(); a.remove();
});
// initial render (wait a tick for the CDN lib)
if (document.readyState === 'complete') renderQR();
else window.addEventListener('load', renderQR);
})();
</script>
</body>
</html>