/* assets/home/home.css: styles for the public home page (index.php). Standalone: it does not depend on the application's own stylesheet.
   Look: "Ocean Glass". Frosted glass cards over a drifting blue mesh. Motion uses only transform and opacity, pauses when off screen, and is switched off by the reduced motion setting.
   Content is always complete without JavaScript: the hidden starting states below apply only when html has the "js" class (set by home.js). */
:root {
  --brand: #0B63E5; --brand-hover: #084FBA; --on-brand: #FFFFFF; --brand-soft: #D3E4FF; --on-brand-soft: #001B3F; --cyan: #19B5FE;
  --ink: #0C1B33; --muted: #4C6080; --bg: #EEF5FF; --surface: #FFFFFF; --surface-alt: #E1ECFB; --surface-pop: #FFFFFF;
  --border: #D3E1F6; --border-strong: #B3C7E6; --outline: #6B83A8; --success: #0B7A5C; --success-soft: #D2F0E5;
  --state-hover: rgba(11,99,229,.08);
  --glass: rgba(255,255,255,.68); --glass-line: rgba(255,255,255,.95);
  --shadow-md: 0 6px 18px rgba(12,50,120,.12);
  --shadow-lg: 0 20px 50px rgba(12,50,120,.16);
  --nav-bg: rgba(238,245,255,.78);
  --band-a: #0B2E6B; --band-b: #0B63E5; --band-c: #19B5FE;
  --foot-bg: #071731;
  --blob1: #9FD0FF; --blob2: #BDE9FF; --blob3: #C9D8FF;
  --bar-fail: #B3261E;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #5AA2FF; --brand-hover: #82B9FF; --on-brand: #031B3D; --brand-soft: #14304A; --on-brand-soft: #CFE6FF; --cyan: #3DD6F0;
  --ink: #E8EEF8; --muted: #9AA9C2; --bg: #08111F; --surface: #0F1B30; --surface-alt: #0B1830; --surface-pop: #162540;
  --border: #1D2D49; --border-strong: #2C4468; --outline: #7388A8; --success: #3DD6A8; --success-soft: rgba(61,214,168,.16);
  --state-hover: rgba(90,162,255,.12);
  --glass: rgba(17,31,54,.62); --glass-line: rgba(120,165,230,.26);
  --shadow-md: 0 6px 18px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --nav-bg: rgba(8,17,31,.78);
  --band-a: #0A2250; --band-b: #1553B8; --band-c: #1C86D8;
  --foot-bg: #050C18;
  --blob1: #1B4C9A; --blob2: #0F6E88; --blob3: #2B3C92;
  --bar-fail: #F2867B;
  color-scheme: dark;
}
:root[data-theme="colorful"] {
  --brand: #1A6FE0; --brand-hover: #1257B5; --brand-soft: #CFE0FC; --on-brand-soft: #0A2B63; --cyan: #7C6CF0;
  --ink: #13202F; --muted: #4B5B70; --bg: #E7EEFC; --surface: #FFFFFF; --surface-alt: #DCE6FB; --surface-pop: #FFFFFF;
  --border: #CFDBF3; --border-strong: #AFC2E8; --outline: #6E83AD; --success: #17714F; --success-soft: #C7EBD7;
  --state-hover: rgba(26,111,224,.09);
  --shadow-md: 0 3px 8px rgba(31,47,99,.14);
  --shadow-lg: 0 14px 40px rgba(31,47,99,.20);
  --nav-bg: rgba(231,238,252,.78);
  --band-a: #1557B0; --band-b: #3A4FA8; --band-c: #6B3FA0;
  --foot-bg: #1B2A5E;
  --blob1: #9DB8FF; --blob2: #C7B0FF; --blob3: #A6E3FF;
  --bar-fail: #B3261E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body.hp { margin: 0; font-family: Inter, Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; color: var(--ink); background: var(--bg); transition: background .25s, color .25s; }
.hp h1, .hp h2, .hp h3, .hp h4 { font-family: inherit; margin: 0; }
.hp p { margin: 0; }
.hp a { text-decoration: none; }
:where(.hp a) { color: inherit; }
:where(.hp button) { font: inherit; color: inherit; cursor: pointer; }
.hp :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.hp section { scroll-margin-top: 80px; }
.hp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-right, 0px)); }
.hp-ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* scroll progress */
.hp-prog { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 80; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--cyan)); pointer-events: none; }

/* top bar */
.hp-nav { position: sticky; top: 0; z-index: 60; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hp-nav.stuck { border-color: var(--border); box-shadow: var(--shadow-md); }
.hp-nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.hp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.hp-brand img { width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 3px; box-shadow: 0 6px 16px rgba(11,99,229,.28); transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.hp-brand:hover img { transform: rotate(-12deg) scale(1.08); }
.hp-links { display: flex; gap: 2px; margin-left: 14px; }
.hp-links a { position: relative; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.hp-links a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hp-links a:hover, .hp-links a.on { color: var(--ink); }
.hp-links a:hover::after, .hp-links a.on::after { transform: scaleX(1); }
.hp-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hp-theme, .hp-menu-btn { background: var(--brand-soft); border: 0; color: var(--on-brand-soft); border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s, background .2s; }
.hp-theme:hover, .hp-menu-btn:hover { transform: translateY(-2px) rotate(8deg); }
.hp-theme .hp-ic { width: 18px; height: 18px; }
.hp-menu-btn { display: none; }
.hp-theme-menu { position: relative; }
.hp-theme-menu .tm-ic { display: none; }
:root[data-theme-pref="light"] .tm-ic-light, :root[data-theme-pref="dark"] .tm-ic-dark,
:root[data-theme-pref="colorful"] .tm-ic-colorful, :root[data-theme-pref="system"] .tm-ic-system { display: inline-block; }
:root:not([data-theme-pref]) .tm-ic-light { display: inline-block; }
.theme-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 206px; padding: 8px; z-index: 70; background: var(--surface-pop); color: var(--ink); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
.theme-menu.open .theme-dropdown { display: block; animation: hp-pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes hp-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.theme-dropdown .dd-label { padding: 6px 12px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.theme-dropdown button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 14px Inter, Roboto, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.theme-dropdown button:hover, .theme-dropdown button:focus-visible { background: var(--state-hover); outline: none; }
.theme-dropdown button svg { color: var(--muted); flex: none; width: 17px; height: 17px; }
.theme-dropdown button > span:first-of-type { flex: 1; }
.theme-dropdown .tm-check { visibility: hidden; color: var(--brand); display: inline-flex; }
.theme-dropdown .tm-check svg { color: var(--brand); }
.theme-dropdown button.active { background: var(--brand-soft); color: var(--on-brand-soft); }
.theme-dropdown button.active svg { color: currentColor; }
.theme-dropdown button.active .tm-check { visibility: visible; }

/* buttons */
.hp-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; font-size: 15px; height: 50px; padding: 0 28px; border: 1.5px solid transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s; }
.hp-btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.hp-btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-hover)); color: var(--on-brand); box-shadow: 0 10px 26px rgba(11,99,229,.34); }
.hp-btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-20deg); }
.hp-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,99,229,.44); }
.hp-btn-primary:hover::after { animation: hp-shine .8s; }
@keyframes hp-shine { to { left: 130%; } }
.hp-btn-ghost { background: var(--glass); border-color: var(--glass-line); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hp-btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.hp-btn-ghost:hover, .hp-btn-outline:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hp-btn-outline:hover { background: var(--state-hover); }
.hp-btn:active { transform: translateY(0) scale(.97); }
.hp-btn-light { background: #fff; color: #0B2E6B; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.hp-btn-light:hover { transform: translateY(-3px); }
.hp-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hp-btn-line:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.hp-btn .hp-ic { transition: transform .3s; }
.hp-btn:hover .hp-ic { transform: translateX(4px); }
.hp-textlink { display: inline-flex; align-items: center; gap: 6px; height: 50px; font-weight: 600; font-size: 15px; color: var(--brand); padding: 0 8px; border-radius: 999px; }
.hp-textlink .hp-ic { transition: transform .3s; }
.hp-textlink:hover .hp-ic { transform: translateY(3px); }

/* hero */
.hp-hero { position: relative; overflow: hidden; padding: 64px 0 96px; isolation: isolate; }
.hp-mesh { position: absolute; inset: -10%; z-index: -1; pointer-events: none; }
.hp-mesh i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; animation: hp-blob 18s ease-in-out infinite; }
.hp-mesh i:nth-child(1) { width: 560px; height: 560px; background: var(--blob1); right: -6%; top: -12%; }
.hp-mesh i:nth-child(2) { width: 480px; height: 480px; background: var(--blob2); left: -6%; bottom: -8%; animation-delay: -6s; animation-duration: 22s; }
.hp-mesh i:nth-child(3) { width: 380px; height: 380px; background: var(--blob3); left: 38%; top: 20%; animation-delay: -11s; animation-duration: 26s; opacity: .5; }
@keyframes hp-blob { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 33% { transform: translate3d(60px,40px,0) scale(1.12); } 66% { transform: translate3d(-40px,60px,0) scale(.94); } }
.hp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13.5px; font-weight: 600; color: var(--brand); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hp-kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); position: relative; }
.hp-kicker .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); animation: hp-ping 1.8s ease-out infinite; }
@keyframes hp-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.hp-hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin-top: 20px; text-wrap: balance; }
.hp-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hp-hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: hp-wordup .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 250ms); }
@keyframes hp-wordup { to { transform: none; } }
.hp-hero h1 .g { color: var(--brand); }
.hp-hero h1 .g .w > span { background: linear-gradient(90deg, var(--brand), var(--cyan), var(--brand)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: hp-wordup .9s cubic-bezier(.2,.8,.2,1) forwards, hp-flow 6s linear infinite; animation-delay: calc(var(--i) * 70ms + 250ms), 0s; }
@keyframes hp-flow { to { background-position: -200% 0; } }
.hp-hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-top: 22px; }
.hp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hp-assure { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.hp-assure span { display: inline-flex; align-items: center; gap: 7px; }
.hp-assure svg { color: var(--success); }
.hp-in { opacity: 0; transform: translateY(22px); animation: hp-inup .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes hp-inup { to { opacity: 1; transform: none; } }

/* hero visual: a drawn status panel, tilted by the pointer */
.hp-vis { position: relative; height: 540px; perspective: 1400px; }
.hp-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.hp-card { position: absolute; left: 6%; top: 12%; width: min(440px, 88%); padding: 22px; border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); transform: translateZ(30px); animation: hp-hover 7s ease-in-out infinite; color: var(--ink); }
@keyframes hp-hover { 50% { transform: translateZ(30px) translateY(-12px); } }
.hp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hp-card-head strong { font-size: 15px; }
.hp-example { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--on-brand-soft); }
.hp-bars { display: flex; gap: 9px; align-items: flex-end; height: 120px; padding: 4px; }
.hp-bars i { flex: 1; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--cyan), var(--brand)); height: var(--h); transform: scaleY(0); transform-origin: bottom; animation: hp-grow .9s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: calc(var(--n) * 80ms + 900ms); }
@keyframes hp-grow { to { transform: none; } }
.hp-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-top: 8px; border-radius: 16px; background: var(--brand-soft); font-size: 14px; opacity: 0; transform: translateX(-18px); animation: hp-slidein .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--n) * 140ms + 1500ms); }
@keyframes hp-slidein { to { opacity: 1; transform: none; } }
.hp-row .ic { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--brand); flex: none; }
.hp-row .t { flex: 1; min-width: 0; color: var(--on-brand-soft); }
.hp-row .t b { display: block; font-weight: 700; }
.hp-row .t small { display: block; font-size: 12.5px; opacity: .8; }
.hp-row .ck { margin-left: auto; color: var(--success); width: 20px; height: 20px; stroke-width: 2.6; }
.hp-row .ck path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: hp-draw .6s ease forwards; animation-delay: calc(var(--n) * 140ms + 2000ms); }
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
.hp-chip { position: absolute; display: flex; gap: 11px; align-items: center; padding: 11px 16px 11px 12px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); white-space: nowrap; }
.hp-chip b { display: block; font-size: 13.5px; }
.hp-chip small { display: block; color: var(--muted); font-size: 12px; }
.hp-ci { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.hp-chip.c1 { right: 0; top: 6%; transform: translateZ(80px); animation: hp-fl 6.5s ease-in-out infinite; }
.hp-chip.c2 { left: 0; bottom: 12%; transform: translateZ(90px); animation: hp-fl 8s ease-in-out -3s infinite; }
.hp-chip.c3 { right: 4%; bottom: 0; transform: translateZ(60px); animation: hp-fl 7s ease-in-out -5s infinite; }
@keyframes hp-fl { 50% { translate: 0 -14px; } }
.hp-cube { position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y); border-radius: 24%; background: linear-gradient(135deg, var(--cyan), var(--brand)); box-shadow: 0 20px 40px rgba(11,99,229,.35); transform: translateZ(var(--z)); animation: hp-spin3 var(--t) ease-in-out infinite; }
.hp-cube::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.34); border: 1px solid rgba(255,255,255,.8); transform: translate(12%, -12%) scale(.9); }
@keyframes hp-spin3 { 0%, 100% { rotate: 0deg; translate: 0 0; } 50% { rotate: 18deg; translate: 10px -22px; } }
.hp-paused, .hp-paused * { animation-play-state: paused !important; }

/* ticker */
.hp-tick { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface-alt); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hp-tick-track { display: flex; gap: 44px; width: max-content; animation: hp-scrollx 38s linear infinite; }
.hp-tick:hover .hp-tick-track { animation-play-state: paused; }
.hp-tick span { display: inline-flex; gap: 12px; align-items: center; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hp-tick span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
@keyframes hp-scrollx { to { transform: translateX(-50%); } }

/* shared section layout */
.hp-sec { padding: 104px 0; position: relative; }
.hp-sec.alt { background: var(--surface-alt); }
.hp-head { max-width: 700px; margin: 0 auto 54px; text-align: center; }
.hp-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.hp-head h2, .hp-split h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.hp-head p { color: var(--muted); margin-top: 14px; font-size: 17.5px; }
.js .hp-rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .hp-rv.on { opacity: 1; transform: none; }

/* feature cards */
.hp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-feat { position: relative; overflow: hidden; padding: 30px; border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-md); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, opacity .8s, translate .8s; }
.hp-feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0), rgba(90,170,255,.26), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hp-feat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.hp-feat:hover::before { opacity: 1; }
.hp-feat .ic { position: relative; width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--on-brand-soft); margin-bottom: 20px; transition: transform .5s cubic-bezier(.3,1.5,.5,1), background .3s, color .3s; }
.hp-feat:hover .ic { transform: rotate(-8deg) scale(1.1); background: var(--brand); color: var(--on-brand); }
.hp-feat h3 { position: relative; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hp-feat p { position: relative; color: var(--muted); font-size: 15.5px; }

/* product tour */
.hp-tour { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; }
.hp-tabs { display: grid; gap: 10px; }
.hp-tab { position: relative; text-align: left; padding: 20px 22px; border-radius: 24px; border: 1px solid transparent; background: transparent; transition: background .3s, border-color .3s, transform .3s; }
.hp-tab:hover { background: var(--glass); transform: translateX(4px); }
.hp-tab[aria-selected="true"] { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-md); }
.hp-tab b { display: block; font-size: 18px; }
.hp-tab span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.hp-tab i { position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transform: scaleX(0); transform-origin: left; }
.hp-tab[aria-selected="true"] i { animation: hp-fillbar 6s linear forwards; }
.hp-tour.manual .hp-tab[aria-selected="true"] i { animation: none; transform: scaleX(1); }
@keyframes hp-fillbar { to { transform: scaleX(1); } }
.hp-stage { position: relative; min-height: 380px; padding: 28px; border-radius: 34px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); overflow: hidden; }
.hp-pane { position: absolute; inset: 28px; opacity: 0; transform: translateY(20px) scale(.98); pointer-events: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.hp-pane.on { opacity: 1; transform: none; pointer-events: auto; }
.hp-pane h4 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.hp-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-opt { padding: 12px 20px; border-radius: 999px; background: var(--brand-soft); color: var(--on-brand-soft); font-weight: 600; font-size: 14.5px; border: 0; transition: transform .25s, background .25s, color .25s; }
.hp-opt:hover { transform: translateY(-2px); }
.hp-opt.sel { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px rgba(11,99,229,.32); }
.hp-note { font-size: 14px; color: var(--muted); }
.hp-tbl { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 9px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.hp-tbl b { flex: 1; font-size: 15px; }
.hp-sw { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--border-strong); border: 0; padding: 0; transition: background .3s; flex: none; }
.hp-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.hp-sw[aria-checked="true"] { background: var(--brand); }
.hp-sw[aria-checked="true"]::after { transform: translateX(20px); }
.hp-rest { display: grid; gap: 14px; }
.hp-meter { height: 12px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.hp-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); transform: scaleX(0); transform-origin: left; }
.hp-pane.on .hp-meter i { animation: hp-fillbar 2.6s cubic-bezier(.5,0,.2,1) .3s forwards; }
.hp-done { display: flex; gap: 8px; align-items: center; color: var(--success); font-weight: 600; opacity: 0; }
.hp-pane.on .hp-done { animation: hp-inup .6s 3s forwards; }

/* steps */
.hp-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 42px; height: 3px; border-radius: 3px; background: var(--border); }
.hp-steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 42px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.js .hp-steps::after { transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.4,0,.2,1) .2s; }
.js .hp-steps.on::after { transform: scaleX(1); }
.hp-step { position: relative; text-align: center; padding: 0 8px; }
.hp-step .n { position: relative; z-index: 1; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; background: var(--brand); color: var(--on-brand); border: 3px solid var(--brand); box-shadow: 0 12px 28px rgba(11,99,229,.3); }
.js .hp-step .n { background: var(--surface); color: var(--brand); border-color: var(--border-strong); box-shadow: none; transform: scale(.6); transition: transform .6s cubic-bezier(.3,1.6,.5,1), background .4s, color .4s, border-color .4s, box-shadow .4s; transition-delay: calc(var(--i) * 450ms + 250ms); }
.js .hp-steps.on .hp-step .n { transform: none; background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 12px 28px rgba(11,99,229,.3); }
.hp-step h3 { font-size: 18px; font-weight: 700; }
.hp-step p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* numbers band */
.hp-numbers { position: relative; overflow: hidden; padding: 84px 0; color: #fff; background: linear-gradient(120deg, var(--band-a), var(--band-b), var(--band-c), var(--band-b)); background-size: 300% 100%; animation: hp-bandflow 16s ease-in-out infinite; }
@keyframes hp-bandflow { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.hp-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); animation: hp-fl 9s ease-in-out infinite; pointer-events: none; }
.hp-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hp-stat b { display: block; font-size: clamp(56px, 7vw, 92px); line-height: 1; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hp-stat span { display: block; margin-top: 12px; font-size: 16px; opacity: .92; max-width: 22ch; }

/* why */
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hp-split > div > p { color: var(--muted); font-size: 17.5px; margin-top: 14px; }
.hp-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.hp-checks li { display: flex; gap: 14px; align-items: flex-start; }
.hp-checks .tick { flex: none; width: 40px; height: 40px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--success-soft); color: var(--success); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.hp-checks li:hover .tick { transform: scale(1.15) rotate(-6deg); }
.hp-checks span { color: var(--muted); font-size: 15.5px; }
.hp-checks strong { color: var(--ink); }
.hp-panel-dark { padding: 34px; border-radius: 34px; color: #fff; background: linear-gradient(150deg, var(--band-a), var(--band-b)); box-shadow: var(--shadow-lg); }
.hp-panel-dark h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.hp-split .hp-panel-dark > p { color: rgba(255,255,255,.85); margin: 0 0 20px; font-size: 16px; }
.hp-flow { display: grid; gap: 10px; }
.hp-flow div { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 14px 16px; font-size: 14.5px; }
.hp-flow svg { flex: none; width: 18px; height: 18px; }
.hp-flow div .hp-ic { color: #BFE0FF; }
.hp-panel-dark.go .hp-flow div { animation: hp-glow 6s ease-in-out infinite; animation-delay: calc(var(--k) * 1.5s); }
@keyframes hp-glow { 0%, 20%, 100% { background: rgba(255,255,255,.12); transform: none; } 6%, 14% { background: rgba(255,255,255,.28); transform: translateX(8px); } }

/* faq */
.hp-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.hp-q { border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); transition: box-shadow .3s; }
.hp-q:hover { box-shadow: var(--shadow-md); }
.hp-q > button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 16.5px; }
.hp-q .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--on-brand-soft); transition: transform .4s cubic-bezier(.3,1.5,.5,1), background .3s, color .3s; }
.hp-q.open .pm { transform: rotate(135deg); background: var(--brand); color: var(--on-brand); }
.hp-qa { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.hp-q.open .hp-qa, html:not(.js) .hp-qa { grid-template-rows: 1fr; }
.hp-qa > div { overflow: hidden; }
.hp-qa p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* closing band */
.hp-band { position: relative; overflow: hidden; margin-top: 0; padding: 72px 0; text-align: center; color: #fff; background: linear-gradient(130deg, var(--band-a), var(--band-b) 65%, var(--band-c)); }
.hp-band h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; margin: 0 auto 14px; max-width: 20ch; }
.hp-band p { color: rgba(255,255,255,.9); font-size: 17.5px; margin: 0 auto 28px; max-width: 520px; }
.hp-band .hp-cta { justify-content: center; margin-top: 0; position: relative; }
.hp-band .wrap-in { position: relative; }

/* footer */
.hp-foot { background: var(--foot-bg); color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: 14.5px; }
.hp-foot-top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hp-foot .hp-brand { margin-bottom: 12px; color: #fff; }
.hp-foot p { max-width: 340px; }
.hp-foot h4 { color: #fff; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; opacity: .8; }
.hp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hp-foot li a { display: inline-block; padding: 4px 0; color: rgba(255,255,255,.78); transition: color .2s, transform .25s; }
.hp-foot li a:hover { color: #fff; transform: translateX(5px); }
.hp-foot-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; opacity: .85; }
.app-version { margin-left: 8px; padding-left: 10px; border-left: 1px solid currentColor; opacity: .75; white-space: nowrap; }

/* back to top */
.hp-up { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 55; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(11,99,229,.4); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.3,1.5,.5,1); }
.hp-up.on { opacity: 1; transform: none; pointer-events: auto; }
.hp-up.on:hover { transform: translateY(-4px); }
.hp-up .hp-ic { width: 22px; height: 22px; stroke-width: 2.2; }

/* no JavaScript: show every tour pane stacked, nothing hidden */
html:not(.js) .hp-stage { min-height: 0; display: grid; gap: 28px; }
html:not(.js) .hp-pane { position: static; opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .hp-tab i, html:not(.js) .hp-meter i { transform: none; }
html:not(.js) .hp-done { opacity: 1; }

/* responsive */
@media (max-width: 980px) {
  .hp-hero-grid, .hp-tour, .hp-split { grid-template-columns: 1fr; }
  .hp-split { gap: 40px; }
  .hp-vis { height: 500px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hp-grid3 { grid-template-columns: repeat(2, 1fr); }
  .hp-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .hp-steps::before, .hp-steps::after { display: none; }
  .hp-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .hp-menu-btn { display: inline-flex; }
  .hp-links { position: absolute; left: 0; right: 0; top: 68px; display: grid; gap: 4px; margin: 0; padding: 0 20px; max-height: 0; overflow: hidden; visibility: hidden; background: var(--bg); border-bottom: 1px solid transparent; transition: max-height .5s cubic-bezier(.2,.8,.2,1), padding .4s, visibility 0s .5s; }
  .hp-links.open { max-height: 420px; padding: 8px 20px 20px; visibility: visible; border-bottom-color: var(--border); transition-delay: 0s; }
  .hp-links a { padding: 14px 18px; border-radius: 18px; font-size: 16px; font-weight: 600; background: var(--surface); opacity: 0; transform: translateX(-14px); transition: opacity .4s, transform .4s, color .2s; }
  .hp-links a::after { display: none; }
  .hp-links.open a { opacity: 1; transform: none; }
  .hp-links.open a:nth-child(2) { transition-delay: .06s; } .hp-links.open a:nth-child(3) { transition-delay: .12s; }
  .hp-links.open a:nth-child(4) { transition-delay: .18s; } .hp-links.open a:nth-child(5) { transition-delay: .24s; }
}
@media (max-width: 560px) { .hp-nav-in { gap: 10px; } .hp-nav-actions { gap: 6px; } .hp-brand span { display: none; } .hp-nav-actions .hp-btn-sm { padding: 0 14px; } .hp-theme, .hp-menu-btn { width: 40px; height: 40px; } }
@media (max-width: 600px) {
  .hp-sec { padding: 76px 0; }
  .hp-hero { padding: 40px 0 70px; }
  .hp-grid3, .hp-steps { grid-template-columns: 1fr; }
  .hp-vis { height: 470px; }
  .hp-chip { scale: .88; }
  .hp-chip.c1 { right: -6px; } .hp-chip.c2 { left: -6px; }
  .hp-stage { min-height: 430px; padding: 20px; } .hp-pane { inset: 20px; }
  .hp-cta .hp-btn { flex: 1 1 100%; }
  .hp-foot-top { flex-direction: column; }
  .hp-assure { flex-direction: column; gap: 10px; }
}
@media (max-width: 420px) { .hp-btn { padding: 0 22px; } .hp-chip.c3 { display: none; } }

/* reduced motion: every animation off, everything shown in its final state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hp *, .hp *::before, .hp *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hp-in, .hp-row, .js .hp-rv { opacity: 1; transform: none; }
  .hp-hero h1 .w > span { transform: none; }
  .hp-bars i, .hp-meter i, .js .hp-steps::after { transform: none; }
  .hp-row .ck path { stroke-dashoffset: 0; }
  .js .hp-step .n { transform: none; background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
  .hp-done { opacity: 1; }
  .hp-tick-track { animation: none; }
}
