/* Public landing page. Colours come from the logo. */
:root {
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #ffffff;
	--tint: #f5f8ff;
	--sky: #1ea7ff;
	--blue: #1e6ff2;
	--indigo: #4f46e5;
	--violet: #7b3ff2;
	--orange: #ff9f1c;
	--green: #2db84d;
	--pink: #e8336d;
	--radius: 20px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
	--shadow-lg: 0 24px 60px -20px rgba(30, 64, 175, .35), 0 8px 24px -12px rgba(15, 23, 42, .18);
	--ease: cubic-bezier(.22, 1, .36, 1);
	color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body.landing {
	margin: 0;
	color: var(--ink);
	background: var(--bg);
	font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }

.skip-link {
	position: absolute; left: 12px; top: -48px; z-index: 100;
	padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(30, 111, 242, .45); outline-offset: 3px; border-radius: 10px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .4); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
.brand-small { font-size: 16px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.site-nav a { position: relative; padding: 6px 0; transition: color .2s; }
.site-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--sky), var(--violet));
	transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 650; font-size: 15px; white-space: nowrap; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--sky), var(--blue) 45%, var(--indigo));
	background-size: 160% 160%;
	box-shadow: 0 10px 24px -10px rgba(30, 111, 242, .7);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 32px -12px rgba(30, 111, 242, .75); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.btn-white { color: var(--blue); background: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }
.btn-white:hover { transform: translateY(-2px); }
.g-icon { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; isolation: isolate; }
.hero-glow {
	position: absolute; inset: -30% -10% auto; height: 760px; z-index: -1;
	background:
		radial-gradient(40% 50% at 78% 40%, rgba(123, 63, 242, .16), transparent 70%),
		radial-gradient(45% 55% at 20% 20%, rgba(30, 167, 255, .18), transparent 70%),
		radial-gradient(30% 40% at 90% 85%, rgba(255, 159, 28, .14), transparent 70%);
	animation: glow 14s ease-in-out infinite alternate;
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: radial-gradient(rgba(15, 23, 42, .08) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
	mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; margin-bottom: 22px;
	border: 1px solid #dbe5ff; border-radius: 999px; background: rgba(255, 255, 255, .8);
	font-size: 14px; font-weight: 600; color: var(--blue);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(45, 184, 77, .5); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 850; letter-spacing: -.035em; line-height: 1.02; }
.gradient-text {
	background: linear-gradient(100deg, var(--sky), var(--blue) 30%, var(--violet) 65%, var(--orange));
	background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: shine 8s linear infinite;
}
.lead { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
	content: ""; width: 18px; height: 18px; border-radius: 50%;
	background: #e8f8ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232db84d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Hero visual: phone with an install card, orbits and floating chips. */
.hero-visual { position: relative; height: 560px; display: grid; place-items: center; perspective: 1200px; }
.phone { transition: rotate .5s var(--ease); }
.orbit { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.orbit-one {
	width: 520px; height: 520px;
	background: conic-gradient(from 0deg, transparent 0 55%, rgba(30, 167, 255, .55), rgba(123, 63, 242, .55), rgba(255, 159, 28, .6), transparent 92%) border-box;
	-webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	animation: spin 18s linear infinite;
}
.orbit-two { width: 400px; height: 400px; border: 1px dashed rgba(79, 70, 229, .25); animation: spin 40s linear infinite reverse; }
.phone {
	position: relative; width: 270px; height: 540px; padding: 12px; border-radius: 44px;
	background: linear-gradient(160deg, #1f2937, #0b1220);
	box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
	animation: float 7s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #0b1220; z-index: 2; }
.phone-screen {
	height: 100%; border-radius: 34px; overflow: hidden; padding: 54px 18px 18px;
	background: linear-gradient(180deg, #f7faff, #ffffff 40%);
	display: flex; flex-direction: column; gap: 16px;
}
.mini-head { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 14px; }
.mini-head img { border-radius: 6px; }
.app-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid #eef2f7; }
.app-icon { border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -8px rgba(30, 111, 242, .6); }
.app-name { font-weight: 750; font-size: 16px; }
.app-meta { font-size: 12.5px; color: var(--muted); }
.install-btn {
	position: relative; overflow: hidden; height: 46px; border-radius: 14px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; font-weight: 700;
}
.install-btn span { position: relative; z-index: 1; }
.install-btn .progress {
	position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .22);
	animation: install 4.5s var(--ease) infinite;
}
.install-btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg); animation: sheen 3.2s ease-in-out infinite;
}
.mini-list { display: grid; gap: 10px; margin-top: 4px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #eef2f7; }
.mini-row em { flex: 1; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #e2e8f0, #f1f5f9); }
.dot { width: 28px; height: 28px; border-radius: 9px; }
.dot-blue { background: linear-gradient(135deg, var(--sky), var(--blue)); }
.dot-green { background: linear-gradient(135deg, #8ad43a, var(--green)); }
.dot-orange { background: linear-gradient(135deg, #ffc21a, #ff7a00); }
.float-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
	border-radius: 14px; background: rgba(255, 255, 255, .92); border: 1px solid #e8eefc;
	box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 650; white-space: nowrap;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.float-chip svg { width: 20px; height: 20px; }
.chip-android { top: 18%; left: 0; animation: float 6s ease-in-out infinite; }
.chip-ios { bottom: 20%; right: 0; animation: float 7s ease-in-out -2s infinite; }
.chip-live { bottom: 6%; left: 8%; animation: float 8s ease-in-out -4s infinite; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* Stats */
.stats { padding: 8px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.stat strong { display: block; font-size: 28px; letter-spacing: -.02em; background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, var(--tint), #fff); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2, .security-grid h2, .cta-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 820; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.eyebrow { margin-bottom: 12px; font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
	position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.feature::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0;
	background: linear-gradient(135deg, var(--sky), var(--violet), var(--orange));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	transition: opacity .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature h3 { margin: 18px 0 8px; font-size: 19px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.f-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; transition: transform .4s var(--ease); }
.feature:hover .f-icon { transform: rotate(-6deg) scale(1.08); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-blue { background: linear-gradient(135deg, var(--sky), var(--blue)); }
.f-green { background: linear-gradient(135deg, #8ad43a, var(--green)); }
.f-orange { background: linear-gradient(135deg, #ffc21a, #ff7a00); }
.f-pink { background: linear-gradient(135deg, #ff6b9a, var(--pink)); }
.f-violet { background: linear-gradient(135deg, #9f7aea, var(--violet)); }
.f-sky { background: linear-gradient(135deg, #5ad1ff, var(--sky)); }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps::before {
	content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px;
	background: linear-gradient(90deg, var(--sky), var(--violet), var(--orange));
	transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.steps.is-visible::before { transform: scaleX(1); }
.step { position: relative; padding: 0 12px; text-align: center; }
.step-num {
	position: relative; z-index: 1; display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 20px;
	border-radius: 50%; background: #fff; border: 2px solid #dbe5ff; font-size: 24px; font-weight: 800; color: var(--blue);
	box-shadow: 0 10px 24px -14px rgba(30, 111, 242, .8);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--tint)); }
.platform h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 18px; }
.platform h3 svg { width: 30px; height: 30px; }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
	content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
	background: #e7f0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6ff2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

.section-dark { position: relative; overflow: hidden; color: #e2e8f0; background: radial-gradient(60% 80% at 85% 10%, rgba(123, 63, 242, .35), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(30, 167, 255, .25), transparent 60%), #0b1220; }
.security-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.security-grid h2 { color: #fff; }
.eyebrow-light { color: #7cc4ff; }
.muted-light { margin-top: 16px; color: #94a3b8; font-size: 18px; }
.security-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.security-list li { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, transform .4s var(--ease); }
.security-list li:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.security-list strong { display: block; color: #fff; margin-bottom: 6px; }
.security-list span { color: #94a3b8; font-size: 15px; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .3s var(--ease), border-color .3s; }
.faq details[open] { border-color: #c7d7fe; box-shadow: var(--shadow-sm); }
.faq summary {
	position: relative; padding: 20px 56px 20px 22px; cursor: pointer; list-style: none; font-weight: 680; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: #eef4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6ff2' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/12px no-repeat;
	transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); animation: open .4s var(--ease); }

.cta-band {
	position: relative; overflow: hidden; padding: 72px 0; color: #fff;
	background: linear-gradient(120deg, var(--sky), var(--blue) 35%, var(--indigo) 65%, var(--violet));
	background-size: 200% 200%; animation: flow 16s ease infinite;
}
.cta-band::before {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 159, 28, .45), transparent 65%);
}
.cta-grid { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; max-width: 560px; color: rgba(255, 255, 255, .88); font-size: 18px; }
.qr-card { flex: none; display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); }
.qr-card svg { width: 168px; height: 168px; }
.qr-card span { font-size: 13px; font-weight: 600; color: var(--muted); }

.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-row nav { display: flex; gap: 22px; }
.footer-row nav a:hover { color: var(--ink); }
.footer-row p { margin-left: auto; }
.brand-small { color: var(--ink); }

/* Reveal on scroll (added by landing.js; without JS everything is visible). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 184, 77, .5); } 70% { box-shadow: 0 0 0 10px rgba(45, 184, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 184, 77, 0); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes glow { to { transform: translate3d(0, 40px, 0) scale(1.05); } }
@keyframes install { 0% { width: 0; } 60%, 100% { width: 100%; } }
@keyframes sheen { 0%, 40% { left: -50%; } 100% { left: 130%; } }
@keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 980px) {
	.hero { padding: 48px 0 64px; }
	.hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
	.lead { margin-left: auto; margin-right: auto; }
	.hero-actions, .trust { justify-content: center; }
	.hero-visual { height: 520px; }
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.security-grid { grid-template-columns: 1fr; gap: 32px; }
	.site-nav { display: none; }
	.header-row { justify-content: space-between; }
}

/* Phone */
@media (max-width: 640px) {
	.container, .narrow { width: calc(100% - 32px); }
	.header-row { height: 60px; }
	.hero h1 { font-size: 38px; }
	.hero-visual { height: 470px; scale: .88; margin: -20px 0; }
	.orbit-one { width: 420px; height: 420px; }
	.orbit-two { width: 330px; height: 330px; }
	.chip-android { left: -4px; }
	.chip-ios { right: -4px; }
	.section { padding: 68px 0; }
	.section-head { margin-bottom: 36px; }
	.feature-grid, .platform-grid, .security-list, .steps { grid-template-columns: 1fr; }
	.steps::before { display: none; }
	.stat { padding: 18px; }
	.stat strong { font-size: 24px; }
	.cta-grid { flex-direction: column; text-align: center; }
	.cta-grid .hero-actions { justify-content: center; }
	.footer-row { flex-direction: column; text-align: center; }
	.footer-row p { margin-left: 0; }
	.btn-large { width: 100%; }
}

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

.invite-hint { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.invite-hint a { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
