/* AttendeeQR.com — landing page styles */

:root {
  --navy: #0b1437;
  --ink: #1f2a4d;
  --muted: #5b6685;
  --line: #e3e8f4;
  --bg: #ffffff;
  --tint: #f4f7fd;
  --blue: #1463ff;
  --blue-dark: #0b4fe0;
  --violet: #7b3cf0;
  --green: #16b98a;
  --grad: linear-gradient(90deg, #1463ff 0%, #7b3cf0 100%);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 55, .06), 0 2px 8px rgba(11, 20, 55, .05);
  --shadow: 0 10px 30px -10px rgba(20, 50, 140, .25), 0 2px 6px rgba(11, 20, 55, .05);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(20, 99, 255, .45); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(20, 99, 255, .7); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 20, 55, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav .btn { color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 11px 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (banner) ---------- */
.hero { position: relative; overflow: hidden; background: #eef4fb; }
.hero-backdrop {
  position: absolute; inset: -40px;
  background: url("assets/banner-desktop.webp") center / cover no-repeat;
  filter: blur(40px) saturate(1.1);
  opacity: .55;
  transform: scale(1.1);
}
.hero-frame { position: relative; max-width: 1536px; margin: 0 auto; }
.hero-img { width: 100%; height: auto; }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  position: absolute; pointer-events: auto;
  border-radius: 999px;
  color: transparent; font-size: 1px; overflow: hidden;
  transition: background .15s ease, box-shadow .15s ease;
}
.hotspot:hover { background: rgba(255, 255, 255, .14); box-shadow: 0 10px 24px -10px rgba(20, 99, 255, .7); }
.hotspot:active { background: rgba(11, 20, 55, .08); }
.hotspot:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.hotspots-mobile { display: none; }
@media (min-width: 1537px) {
  .hero-frame { box-shadow: 0 0 60px -20px rgba(11, 20, 55, .25); }
}

/* ---------- Strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 12px; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item strong { font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip-item span { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.lede { margin-top: 16px; color: var(--muted); font-size: 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Icon tiles */
.step-icon, .feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
}
.step-icon svg, .feature-icon svg { width: 28px; height: 28px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { background: #e7efff; } .ic-blue svg { stroke: var(--blue); }
.ic-violet { background: #f0e8ff; } .ic-violet svg { stroke: var(--violet); }
.ic-green { background: #e1f7ef; } .ic-green svg { stroke: var(--green); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 22px; right: 26px; font-size: 54px; font-weight: 800; line-height: 1; color: #eef2fa; }
.step h3 { font-size: 21px; margin: 22px 0 10px; }
.step p { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { font-size: 19px; margin: 20px 0 8px; }
.feature p { color: var(--muted); font-size: 16px; }

/* ---------- Demo ---------- */
.demo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; max-width: 980px; margin: 0 auto; }
.demo-phone { display: flex; justify-content: center; }
.phone {
  position: relative; width: 280px; padding: 14px; border-radius: 42px;
  background: linear-gradient(160deg, #1d2547, #0b1437);
  box-shadow: 0 30px 60px -20px rgba(11, 20, 55, .45);
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0b1437; border-radius: 0 0 14px 14px; z-index: 2; }
.pass { background: #fff; border-radius: 30px; padding: 44px 22px 26px; text-align: center; }
.pass-logo { height: 26px; width: auto; margin: 0 auto; }
.pass-event { font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 600; }
.pass-qr { position: relative; margin: 16px auto 14px; width: 170px; padding: 10px; border-radius: 14px; border: 2px solid var(--line); overflow: hidden; }
.pass-qr svg { width: 100%; height: auto; }
.pass-qr svg rect { fill: var(--navy); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #22d3a6, transparent); box-shadow: 0 0 14px 4px rgba(34, 211, 166, .55); opacity: 0; }
.pass.scanning .scanline { opacity: 1; animation: scan .9s ease-in-out; }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.pass-name { font-weight: 800; color: var(--navy); font-size: 19px; }
.pass-type { font-size: 13px; color: var(--muted); }
.pass-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: #e1f7ef; color: #0c8a66; font-weight: 700; font-size: 15px; opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease; }
.pass-status svg { width: 20px; height: 20px; fill: var(--green); stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pass-status svg circle { stroke: none; }
.pass.ok .pass-status { opacity: 1; transform: scale(1); }

.dash { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dash-title { font-weight: 800; color: var(--navy); font-size: 19px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff0f0; color: #d93636; font-weight: 700; font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e64545; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--tint); border-radius: 14px; padding: 14px; text-align: center; }
.stat-num { display: block; font-weight: 800; font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-num.bump { animation: bump .45s ease; }
@keyframes bump { 40% { color: var(--blue); transform: scale(1.08); } }
.stat-lbl { font-size: 13px; color: var(--muted); }
.progress { height: 8px; background: var(--tint); border-radius: 99px; margin: 16px 0 22px; overflow: hidden; }
.progress-bar { height: 100%; width: 71%; background: var(--grad); border-radius: 99px; transition: width .5s ease; }
.recent { list-style: none; margin: 10px 0 20px; padding: 0; min-height: 240px; }
.recent li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.recent li:last-child { border-bottom: 0; }
.recent li.new { animation: slidein .4s ease; background: linear-gradient(90deg, rgba(20, 99, 255, .06), transparent); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; }
.recent .who { flex: 1; min-width: 0; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .ok { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #0c8a66; font-weight: 600; }
.recent .ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.recent time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; width: 64px; text-align: right; }

/* ---------- Use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.case-emoji { font-size: 30px; line-height: 1; }
.case h3 { font-size: 18px; margin: 14px 0 6px; }
.case p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA / Contact ---------- */
.cta { background: radial-gradient(1200px 500px at 0% 0%, #2b7bff 0%, transparent 60%), linear-gradient(120deg, #1463ff 0%, #5a3cf0 60%, #7b3cf0 100%); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow-light { color: rgba(255, 255, 255, .8); }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cta-copy > p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.cta-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.cta-points li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cta-form { background: #fff; color: var(--ink); border-radius: 24px; padding: 30px; box-shadow: 0 30px 60px -20px rgba(11, 20, 55, .45); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 99, 255, .14); background: #fff; }
.field .invalid { border-color: #e64545; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; min-height: 1.4em; }
.form-note.error { color: #d93636; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 48px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand img { height: 36px; width: auto; }
.tagline { margin-top: 8px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blue); }
.footer-contact a { font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--ink); font-weight: 600; }
.footer-bottom a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .site-nav { gap: 20px; }
  .steps, .features, .cases { grid-template-columns: repeat(2, 1fr); }
  .steps .step:last-child { grid-column: 1 / -1; }
  .demo { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -18px rgba(11, 20, 55, .35);
    padding: 8px 16px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn { margin-top: 14px; padding: 13px 18px; font-size: 16px; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { height: 32px; }
  .hotspots-desktop { display: none; }
  .hotspots-mobile { display: block; }
  .hero-backdrop { display: none; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item { padding: 18px 8px; }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip-item strong { font-size: 19px; }
  .strip-item span { font-size: 14px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .lede { font-size: 16px; }
  .steps, .features, .cases { grid-template-columns: 1fr; gap: 16px; }
  .demo { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .dash { padding: 20px 16px; }
  .stat { padding: 12px 6px; }
  .stat-num { font-size: 21px; }
  .stat-lbl { font-size: 12px; }
  .cta-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
