/* Home page v2 (04.12.2026): hero with a live AI console, proof strip, steps, AI bento, scroll reveal, sticky mobile CTA. */
.hp.ae { --hx-a: #6366f1; --hx-b: #8b5cf6; --hx-c: #06b6d4; --hx-ink: #0b1020; --hx-grad: linear-gradient(135deg, var(--hx-a), var(--hx-b)); }

/* ── hero ── */
.hx-hero { position: relative; overflow: hidden; color: #e2e8f0; padding: 92px 0 56px; background: #070a16; isolation: isolate; }
.hx-aurora { position: absolute; inset: -20% -10% auto; height: 140%; z-index: -1; filter: blur(60px); opacity: .9; }
.hx-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: hx-float 18s ease-in-out infinite; }
.hx-aurora span:nth-child(1) { width: 620px; height: 620px; left: -6%; top: 4%; background: radial-gradient(circle, rgba(99,102,241,.65), transparent 65%); }
.hx-aurora span:nth-child(2) { width: 560px; height: 560px; right: -4%; top: -6%; background: radial-gradient(circle, rgba(139,92,246,.6), transparent 65%); animation-delay: -6s; }
.hx-aurora span:nth-child(3) { width: 520px; height: 520px; left: 38%; top: 36%; background: radial-gradient(circle, rgba(6,182,212,.4), transparent 65%); animation-delay: -12s; }
@keyframes hx-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.08); } }
.hx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e9d5ff; background: rgba(139,92,246,.14); border: 1px solid rgba(167,139,250,.35); }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 0 rgba(167,139,250,.6); animation: hx-ping 2s infinite; }
@keyframes hx-ping { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.6); } 70% { box-shadow: 0 0 0 10px rgba(167,139,250,0); } 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); } }
.hx-title { margin: 22px 0 18px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hx-grad { background: linear-gradient(90deg, #a5b4fc, #c084fc, #67e8f9, #a5b4fc); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx-shine 8s linear infinite; }
@keyframes hx-shine { to { background-position: 300% 0; } }
.hx-lead { font-size: 18px; line-height: 1.65; color: #cbd5e1; max-width: 560px; margin: 0 0 28px; }
.hx-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s; }
.hx-btn--primary { color: #fff; background: var(--hx-grad); box-shadow: 0 12px 30px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.hx-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(99,102,241,.55); color: #fff; }
.hx-btn--ghost { color: #e2e8f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
.hx-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hx-btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
.hx-checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #94a3b8; font-size: 14px; }
.hx-checks i { color: #34d399; margin-right: 6px; }

/* the console */
.hx-console { position: relative; border-radius: 22px; background: linear-gradient(180deg, rgba(17,24,48,.92), rgba(12,16,34,.96)); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(139,92,246,.15), 0 0 80px rgba(99,102,241,.18); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s; }
.hx-console:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hx-console__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(148,163,184,.12); font-size: 12.5px; color: #94a3b8; }
.hx-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.hx-console__bar i:nth-child(1) { background: #f87171; } .hx-console__bar i:nth-child(2) { background: #fbbf24; } .hx-console__bar i:nth-child(3) { background: #34d399; }
.hx-console__bar span { margin-left: 8px; color: #cbd5e1; font-weight: 600; }
.hx-console__bar em { margin-left: auto; font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(148,163,184,.14); color: #cbd5e1; }
.hx-console__body { padding: 18px; display: grid; gap: 14px; }
.hx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hx-kpi { border-radius: 14px; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.12); }
.hx-kpi small { display: block; font-size: 11.5px; color: #94a3b8; }
.hx-kpi strong { display: block; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; margin: 2px 0; }
.hx-up { font-size: 12px; color: #34d399; font-weight: 700; } .hx-flat { font-size: 12px; color: #fbbf24; font-weight: 700; }
.hx-spark { width: 100%; height: 64px; }
.hx-spark__line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: hx-draw 2.2s .4s ease forwards; }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }
.hx-chat { display: grid; gap: 10px; }
.hx-q, .hx-a { display: flex; gap: 10px; align-items: flex-start; }
.hx-q p, .hx-a p { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; min-height: 40px; }
.hx-q { justify-content: flex-end; } .hx-q .hx-ava { order: 2; }
.hx-q p { background: rgba(99,102,241,.22); color: #e0e7ff; border-bottom-right-radius: 4px; }
.hx-a p { background: rgba(255,255,255,.06); color: #e2e8f0; border: 1px solid rgba(148,163,184,.14); border-bottom-left-radius: 4px; flex: 1; }
.hx-ava { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: #334155; }
.hx-ava--ai { background: var(--hx-grad); }
.hx-caret::after { content: "▍"; margin-left: 1px; color: #a78bfa; animation: hx-blink 1s steps(1) infinite; }
@keyframes hx-blink { 50% { opacity: 0; } }
.hx-alert { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #fde68a; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); }

/* proof strip */
.hx-proof { list-style: none; margin: 56px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.14); backdrop-filter: blur(8px); }
.hx-proof li { text-align: center; padding: 6px; }
.hx-proof strong { display: block; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hx-proof span { font-size: 13px; color: #94a3b8; }

/* ── steps ── */
.hx-steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: none; }
.hx-steps__list::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, #c7d2fe, #ddd6fe, transparent); z-index: 0; }
.hx-steps__list li { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.hx-steps__n { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--hx-grad); box-shadow: 0 14px 30px rgba(99,102,241,.35); }
.hx-steps__list h3 { font-size: 19px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.hx-steps__list p { color: #475569; margin: 0; line-height: 1.6; }

/* ── AI bento ── */
.hx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 18px; }
.hx-tile { position: relative; overflow: hidden; border-radius: 22px; padding: 24px; background: #fff; border: 1px solid #e6e8f0; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 34px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hx-tile:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 22px 48px rgba(15,23,42,.1); }
.hx-tile h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 12px 0 6px; }
.hx-tile p { color: #475569; margin: 0; line-height: 1.6; font-size: 15px; }
.hx-tile__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--hx-grad); box-shadow: 0 10px 24px rgba(99,102,241,.3); }
.hx-tile img { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 16px; border: 1px solid #e6e8f0; }
.hx-tile--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: center; background: linear-gradient(135deg, #0b1020, #1b1440); border-color: transparent; }
.hx-tile--wide h3 { color: #fff; } .hx-tile--wide p { color: #cbd5e1; }
.hx-tile--wide img { margin-top: 0; border-color: rgba(148,163,184,.2); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.hx-tile--tall { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px; align-content: start; background: linear-gradient(135deg, #f7f7ff, #fff); }
.hx-tile--tall > :not(img) { grid-column: 1; }
.hx-tile--tall img { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-height: 260px; object-fit: cover; object-position: top; }

/* ── features and the rest: lighter cards ── */
.hp.ae .ae-feat { border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.hp.ae .ae-feat:hover { transform: translateY(-3px); }

/* ── scroll reveal (only when the script runs and motion is welcome) ── */
.hx-js .hx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hx-js .hx-reveal.is-in { opacity: 1; transform: none; }

/* ── sticky download on phones ── */
.hx-sticky { display: none; }
@media (max-width: 767px) {
	.hx-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; justify-content: center; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 14px; font-weight: 800; color: #fff; text-decoration: none; background: var(--hx-grad); box-shadow: 0 14px 30px rgba(99,102,241,.45); transform: translateY(140%); transition: transform .3s; }
	.hx-sticky.is-on { transform: none; }
}

/* ── responsive ── */
@media (max-width: 1100px) {
	.hx-hero__grid { grid-template-columns: 1fr; }
	.hx-console { transform: none; max-width: 640px; }
	.hx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-tile--wide { grid-column: span 2; }
}
@media (max-width: 767px) {
	.hx-hero { padding: 56px 0 40px; }
	.hx-lead { font-size: 16px; }
	.hx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hx-kpi strong { font-size: 17px; }
	.hx-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-steps__list { grid-template-columns: 1fr; }
	.hx-steps__list::before { display: none; }
	.hx-bento { grid-template-columns: 1fr; }
	.hx-tile--wide { grid-column: auto; grid-template-columns: 1fr; }
	.hx-tile--tall { grid-column: auto; grid-template-columns: 1fr; }
	.hx-tile--tall img { grid-column: 1; grid-row: auto; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.hx-aurora span, .hx-dot, .hx-grad, .hx-spark__line, .hx-caret::after { animation: none !important; }
	.hx-spark__line { stroke-dashoffset: 0; }
	.hx-console { transform: none; transition: none; }
	.hx-js .hx-reveal { opacity: 1; transform: none; transition: none; }
}
