/* POSMaster landing page — one stylesheet, no framework. */
:root {
    --bg: #070b18;
    --bg-2: #0b1124;
    --card: rgba(255, 255, 255, 0.035);
    --card-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #e8ecf8;
    --muted: #9aa5c4;
    --dim: #6b7696;
    --blue: #3b82f6;
    --blue-2: #60a5fa;
    --violet: #8b5cf6;
    --violet-2: #a78bfa;
    --green: #34d399;
    --amber: #fbbf24;
    --cream: #f6f2ea;
    --ink: #111827;
    --radius: 18px;
    --display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
    --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
[lang="ar"], .ar { font-family: 'Noto Sans Arabic', var(--body); }
.mono { font-family: var(--mono); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 700; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: linear-gradient(180deg, #4f8ff8, #2f6fe8); color: #fff; box-shadow: 0 8px 30px rgba(59, 130, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(59, 130, 246, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.btn-store { border: 1px solid var(--line-2); background: #0d1430; color: #fff; }
.btn-store span { font-size: .85em; color: var(--muted); font-weight: 600; }
.btn-store img { height: 19px; width: auto; }
.btn-lg.btn-store img { height: 24px; }
.btn-store:hover { border-color: var(--violet-2); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 11, 24, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, #4f46e5, #3b82f6); color: #fff; box-shadow: 0 6px 20px rgba(79, 70, 229, .45); }
.brand-name b { color: var(--violet-2); font-weight: 800; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; top: -260px; width: 1100px; height: 800px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(59, 130, 246, .35), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(139, 92, 246, .28), transparent 70%); filter: blur(10px); }
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%); }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pill:hover { color: #fff; }
.pill-tag { padding: 3px 9px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7.2vw, 92px); line-height: 1.02; letter-spacing: -2.5px; margin-top: 26px; }
.gradient-text { background: linear-gradient(90deg, #60a5fa 0%, #818cf8 45%, #c084fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 680px; margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-chips li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: start; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.hero-chips b { font-size: 14px; }
.hero-chips small { grid-column: 2; color: var(--dim); font-size: 12px; }
.chip-ic { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(59, 130, 246, .14); color: var(--blue-2); }
.chip-ic svg, .fc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-stage { position: relative; margin-top: 70px; perspective: 1600px; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: #121a33; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin: 0 auto; padding: 2px 14px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--dim); font: 12px var(--mono); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser.light .browser-bar { background: #e9e6df; }
.browser.light .browser-bar span { background: rgba(0, 0, 0, .06); color: #6b6b6b; }
.hero-browser { max-width: 1040px; margin: 0 auto; transform: rotateX(14deg) scale(.98); transform-origin: 50% 0; transition: transform .25s ease-out; }
.float-card { position: absolute; border-radius: 16px; padding: 14px 18px; background: rgba(13, 20, 44, .92); border: 1px solid var(--line-2); backdrop-filter: blur(8px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: float 6s ease-in-out infinite; }
.fc-1 { left: 0; top: 34%; background: #fff; color: var(--ink); border: 0; }
.fc-1 small { display: block; font: 600 11px var(--mono); letter-spacing: .6px; color: #64748b; }
.fc-1 strong { display: block; font: 800 28px var(--display); letter-spacing: -.5px; color: #15803d; }
.badge-green { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; }
.fc-2 { right: 0; top: 18%; display: flex; gap: 12px; align-items: center; animation-delay: -2s; }
.fc-2 b { display: block; font-size: 14.5px; }
.fc-2 small { font-size: 12px; color: var(--muted); }
.fc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.fc-ic.amber { background: rgba(251, 191, 36, .16); color: var(--amber); }
.fc-3 { right: 6%; bottom: 6%; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; animation-delay: -4s; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52, 211, 153, .18); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 120px 0; }
.eyebrow { font: 500 12.5px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue-2); }
.eyebrow-dark { color: #2563eb; }
.center { text-align: center; margin-inline: auto; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -1.6px; margin-top: 14px; }
.section-title.dark { color: var(--ink); }
.section-lead { max-width: 640px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.section-lead.dark { color: #4b5563; }
.split-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.split-head .section-lead { margin-top: 0; }

.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: border-color .25s, transform .25s, background .25s; }
.card:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-3px); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; }
.feature h3 { font: 700 19px var(--display); margin-top: 20px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.mock { height: 150px; border-radius: 14px; background: #0a0f22; border: 1px solid var(--line); padding: 18px; position: relative; overflow: hidden; }
.mock-scan { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.scan-code { display: flex; gap: 5px; height: 54px; justify-content: center; }
.scan-code span { width: 4px; background: #e5e7eb; border-radius: 1px; }
.scan-code span:nth-child(3n) { width: 8px; } .scan-code span:nth-child(4n) { width: 2px; }
.scan-line { position: absolute; left: 14%; right: 14%; top: 30px; height: 2px; background: #f43f5e; box-shadow: 0 0 14px #f43f5e; animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 26px; } 50% { top: 76px; } }
.scan-text { font-size: 12.5px; color: var(--muted); text-align: center; }
.scan-text b { color: #fff; } .scan-text em { color: var(--green); font-style: normal; font-weight: 700; }
.mock-offline { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.off-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 13px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-green { background: rgba(52, 211, 153, .14); color: var(--green); }
.tag-amber { background: rgba(251, 191, 36, .15); color: var(--amber); }
.tag-blue { background: rgba(96, 165, 250, .15); color: var(--blue-2); }
.tag-violet { background: rgba(167, 139, 250, .16); color: var(--violet-2); }
.mock-branches { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.br { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.br i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--violet)); width: var(--w); }
.mock-doc { display: flex; align-items: center; gap: 10px; }
.doc { width: 150px; padding: 12px; border-radius: 10px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.doc b { color: #4f46e5; font: 800 14px var(--display); }
.doc i { height: 6px; border-radius: 3px; background: #e5e7eb; }
.doc i.short { width: 60%; }
.doc strong { align-self: flex-end; font-size: 15px; }
.mock-doc .tag { align-self: flex-start; }
.mock-loyalty { display: flex; flex-wrap: wrap; align-content: center; gap: 10px; }
.mock-loyalty .tag { padding: 7px 12px; font-size: 13px; }
.mock-bars { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 20px; }
.mock-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(96, 165, 250, .35); }
.mock-bars i.hi { background: linear-gradient(180deg, #60a5fa, #3b82f6); box-shadow: 0 0 20px rgba(59, 130, 246, .5); }

/* light panel */
.light-panel { background: var(--cream); color: var(--ink); border-radius: 36px; margin: 0 18px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 48px; counter-reset: none; }
.flow-step { position: relative; padding: 22px 18px; border-radius: 18px; background: #fff; border: 1px solid #e8e2d6; }
.flow-step h3 { font: 700 18px var(--display); margin-top: 14px; }
.flow-step p { font-size: 14px; color: #4b5563; margin-top: 6px; }
.flow-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #111827; color: #fff; font: 700 15px var(--mono); }
.light-shots { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 44px; align-items: start; }
.light-shots .browser { box-shadow: 0 30px 70px rgba(17, 24, 39, .18), 0 0 0 1px rgba(17, 24, 39, .08); }

/* product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.product { overflow: hidden; }
.product img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.product-body { padding: 22px; }
.product-body h3 { font: 700 20px var(--display); margin-top: 12px; }
.product-body p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* languages */
.lang-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.lang-switch { display: inline-flex; gap: 6px; margin-top: 28px; padding: 5px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.lang-switch button { padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.lang-switch button[aria-selected="true"] { background: var(--blue); color: #fff; }
.receipt { margin-top: 20px; max-width: 360px; padding: 18px 20px; border-radius: 14px; background: #fff; color: var(--ink); font: 13.5px var(--mono); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.receipt[dir="rtl"] { font-family: 'Noto Sans Arabic', var(--mono); }
.r-head { text-align: center; font: 800 16px var(--display); padding-bottom: 8px; border-bottom: 1px dashed #cbd5e1; }
.receipt[dir="rtl"] .r-head { font-family: 'Noto Sans Arabic', var(--display); }
.r-row { display: flex; justify-content: space-between; padding: 6px 0; }
.r-row span:last-child { direction: ltr; unicode-bidi: isolate; }
.r-total { border-top: 1px dashed #cbd5e1; margin-top: 4px; padding-top: 8px; font-weight: 700; font-size: 15px; }
.r-foot { text-align: center; margin-top: 8px; color: #64748b; font-size: 12.5px; }
.lang-shot { transform: perspective(1400px) rotateY(-8deg); }

/* stats */
.stats { padding: 20px 0 60px; }
.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(59, 130, 246, .08), rgba(139, 92, 246, .04)); overflow: hidden; }
.stat { padding: 28px 22px; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat strong { display: block; font: 800 44px/1 var(--display); letter-spacing: -1px; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* roles */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.role { padding: 24px; }
.role-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, rgba(79, 70, 229, .35), rgba(59, 130, 246, .25)); font: 700 14px var(--mono); color: #c7d2fe; border: 1px solid rgba(129, 140, 248, .35); }
.role h3 { font: 700 18px var(--display); margin-top: 18px; }
.role p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.roles-note { text-align: center; margin-top: 28px; color: var(--muted); }

/* security */
.security-box { padding: 56px; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(800px 300px at 0% 0%, rgba(59, 130, 246, .12), transparent 60%), var(--bg-2); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.sec { padding: 26px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec:nth-child(3n) { border-inline-end: 0; }
.sec:nth-last-child(-n + 3) { border-bottom: 0; }
.sec-label { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11px; color: var(--blue-2); letter-spacing: .6px; }
.sec h3 { font: 700 18px var(--display); margin-top: 14px; }
.sec p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* tech */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.tech { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.tech-k { display: block; font-size: 11.5px; letter-spacing: 1.2px; color: var(--dim); }
.tech b { display: block; margin-top: 6px; font-size: 16px; }

/* tour */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 34px auto 0; padding: 6px; width: fit-content; max-width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.tour-tabs button { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tour-tabs button small { padding: 0 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); font: 500 11.5px var(--mono); }
.tour-tabs button[aria-selected="true"] { background: rgba(59, 130, 246, .18); color: #fff; }
.tour-stage { margin-top: 30px; }
.tour-browser { max-width: 980px; margin: 0 auto; }
.tour-browser img { transition: opacity .25s; }
.tour-browser img.fading { opacity: .15; }
.tour-caption { max-width: 980px; margin: 22px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.tour-caption h3 { font: 700 22px var(--display); }
.tour-caption p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.tour-nav { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; }
.round-btn.primary { background: var(--blue); border-color: var(--blue); }
.round-btn:hover { border-color: var(--blue-2); }
.tour-thumbs { display: flex; gap: 12px; margin-top: 30px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tour-thumbs button { flex: 0 0 150px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; scroll-snap-align: center; transition: opacity .2s, border-color .2s; }
.tour-thumbs button[aria-current="true"], .tour-thumbs button:hover { opacity: 1; border-color: var(--blue); }
.tour-thumbs img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* install */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.install { padding: 24px; }
.install .flow-num { background: var(--blue); }
.install h3 { font: 700 19px var(--display); margin-top: 16px; }
.install p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.install-shot { max-width: 760px; margin: 40px auto 0; }

/* cta */
.cta { position: relative; padding: 130px 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta .hero-glow { top: auto; bottom: -420px; }
.cta-inner { position: relative; text-align: center; }
.demo-accounts { margin: 44px auto 0; max-width: 900px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.demo-accounts > p { font-size: 12px; letter-spacing: 1.2px; color: var(--dim); }
.demo-accounts ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.demo-accounts li { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 14px; }
.demo-accounts li span { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin-inline-start: auto; color: var(--dim); font-size: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-stage.reveal.in .hero-browser { transform: rotateX(8deg) scale(1); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .main-nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: rgba(11, 17, 36, .97); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
    .main-nav a { padding: 10px 12px; border-radius: 10px; }
    .main-nav a:hover { background: rgba(255, 255, 255, .05); }
    .main-nav.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-inline-start: auto; }
    .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { border-inline-end: 0; }
    .stat:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
    .lang-wrap { grid-template-columns: 1fr; }
    .lang-shot { transform: none; }
    .float-card { display: none; }
}
@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .hide-sm, .header-actions .btn-store { display: none; }
    .hero { padding-top: 120px; }
    .hero-browser, .hero-stage.reveal.in .hero-browser { transform: none !important; }
    .hero-title { letter-spacing: -1.2px; }
    .hero-chips li { flex: 1 1 45%; }
    .section { padding: 80px 0; }
    .split-head { grid-template-columns: 1fr; gap: 16px; }
    .feature-grid, .product-grid, .flow, .roles-grid, .tech-grid, .install-grid, .light-shots { grid-template-columns: 1fr; }
    .light-panel { margin: 0; border-radius: 26px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid var(--line); }
    .stat:nth-child(odd) { border-inline-end: 1px solid var(--line); }
    .stat:nth-child(even) { border-inline-end: 0; }
    .stat:nth-last-child(-n + 2) { border-bottom: 0; }
    .stat strong { font-size: 36px; }
    .security-box { padding: 26px 18px; border-radius: 22px; }
    .sec-grid { grid-template-columns: 1fr; }
    .sec { border-inline-end: 0 !important; border-bottom: 1px solid var(--line) !important; }
    .sec:last-child { border-bottom: 0 !important; }
    .tour-caption { flex-direction: column; align-items: flex-start; }
    .demo-accounts ul { grid-template-columns: 1fr 1fr; }
    .footer-copy { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
