/* =====================================================================
   Tally Care "pro" design system (v5)
   Effects ported from Magic UI (border beam, shimmer button, magic card,
   marquee, number ticker, animated beam, ripple, globe, word rotate) and
   Aceternity UI (timeline, animated grid) to plain CSS + vanilla JS.
   ===================================================================== */
@property --x-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --x-ink: #0b1530;
  --x-text: #45506f;
  --x-dim: #7a849f;
  --x-line: #e4e8f3;
  --x-soft: #f6f8fd;
  --x-royal: #2442e0;
  --x-royal-2: #1c33b8;
  --x-violet: #7c5cff;
  --x-coral: #ff6b45;
  --x-coral-2: #ff8f6b;
  --x-navy: #070d24;
  --x-r: 18px;
  --x-beam: linear-gradient(90deg, var(--x-coral-2), var(--x-violet));
}

.x-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.x-sec { padding: 104px 0; }
.x-sec-soft { background: var(--x-soft); border-block: 1px solid var(--x-line); }

/* ---------- Type ---------- */
.x-h1 { font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -.04em; color: var(--x-ink); }
.x-h2 { font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.08; letter-spacing: -.035em; color: var(--x-ink); max-width: 20ch; }
.x-sub { margin-top: 14px; font-size: 17.5px; line-height: 1.65; color: var(--x-text); max-width: 56ch; }
.x-lead { margin-top: 22px; font-size: 18.5px; line-height: 1.65; color: var(--x-text); max-width: 54ch; }
.x-head { margin-bottom: 52px; }
.x-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.x-head-c { text-align: center; }
.x-head-c .x-h2, .x-head-c .x-sub { margin-inline: auto; }

/* ---------- Buttons ---------- */
/* Shimmer button (Magic UI): a light that travels around the edge */
.x-shimmer { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--x-ink); color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.2; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(11, 21, 48, .55), inset 0 -8px 12px rgba(255, 255, 255, .1); transition: transform .2s, box-shadow .2s; }
.x-shimmer::before { content: ''; position: absolute; inset: -100%; z-index: -2; background: conic-gradient(from calc(270deg - 45deg), transparent 0, #fff 90deg, transparent 90deg); animation: x-spin 3s linear infinite; filter: blur(2px); }
.x-shimmer::after { content: ''; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit; background: inherit; background: var(--x-ink); }
.x-shimmer:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(11, 21, 48, .6), inset 0 -6px 12px rgba(255, 255, 255, .22); }
.x-shimmer:active { transform: translateY(1px); }
.x-shimmer.is-light { background: #fff; color: var(--x-ink); }
.x-shimmer.is-light::before { background: conic-gradient(from calc(270deg - 45deg), transparent 0, var(--x-violet) 90deg, transparent 90deg); }
.x-shimmer.is-light::after { background: #fff; }
.x-btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 2px rgba(11, 21, 48, .05); transition: border-color .2s, box-shadow .2s, transform .2s; }
.x-btn-soft:hover { border-color: #c9d2ec; box-shadow: 0 10px 24px -14px rgba(11, 21, 48, .35); transform: translateY(-1px); }
.x-btn-glass { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: 15px; backdrop-filter: blur(8px); transition: background-color .2s; }
.x-btn-glass:hover { background: rgba(255, 255, 255, .16); }
.x-shimmer:focus-visible, .x-btn-soft:focus-visible, .x-btn-glass:focus-visible, .x-tile:focus-visible { outline: 3px solid var(--x-violet); outline-offset: 3px; }

/* Border beam (Magic UI): a beam of light travelling along a card's border */
.x-beamborder { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--x-angle), transparent 0 72%, var(--x-coral-2) 82%, var(--x-violet) 94%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: x-angle 6s linear infinite; }

/* Magic card (Magic UI): spotlight border + glow that follow the pointer */
.x-magic { --mx: -400px; --my: -400px; position: relative; isolation: isolate; border-radius: var(--x-r); border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, radial-gradient(280px circle at var(--mx) var(--my), #b3a1ff, #ffb199, var(--x-line) 100%) border-box; }
.x-magic::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(124, 92, 255, .09), transparent 70%); }
.x-magic:hover::before { opacity: 1; }

/* ---------- Hero ---------- */
.x-hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: radial-gradient(1000px 520px at 78% 20%, #eef1ff 0%, rgba(255, 255, 255, 0) 70%), #fff; }
/* Animated grid pattern (Magic UI) */
.x-gridbg { position: absolute; inset: 0; pointer-events: none; --g: 56px;
  background-image: linear-gradient(to right, rgba(36, 66, 224, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(36, 66, 224, .07) 1px, transparent 1px);
  background-size: var(--g) var(--g); -webkit-mask: radial-gradient(70% 70% at 50% 35%, #000 30%, transparent 85%); mask: radial-gradient(70% 70% at 50% 35%, #000 30%, transparent 85%); }
.x-gridbg i { position: absolute; left: calc(var(--c) * var(--g) + 1px); top: calc(var(--r) * var(--g) + 1px); width: calc(var(--g) - 1px); height: calc(var(--g) - 1px); background: rgba(36, 66, 224, .09); opacity: 0; animation: x-flick 4.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes x-flick { 0%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }
.x-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.x-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--x-line); font-size: 13.5px; font-weight: 600; color: var(--x-ink); box-shadow: 0 6px 18px -12px rgba(11, 21, 48, .35); transition: border-color .2s; }
.x-pill:hover { border-color: #c9d2ec; }
.x-pill-tag { padding: 3px 10px; border-radius: 999px; background: var(--x-ink); color: #fff; font-size: 12px; }
/* Animated shiny text (Magic UI) */
.x-shiny { background: linear-gradient(110deg, var(--x-ink) 35%, #9aa6c8 50%, var(--x-ink) 65%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: x-shine 3.5s linear infinite; }
@keyframes x-shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.x-h1 { margin-top: 26px; }
/* Word rotate (Magic UI) */
.x-rotate { display: inline-block; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.x-rotate-w { display: inline-block; background: linear-gradient(90deg, var(--x-royal), var(--x-violet) 55%, var(--x-coral)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s, filter .45s; }
.x-rotate-w.is-out { transform: translateY(-70%); opacity: 0; filter: blur(6px); }
.x-rotate-w.is-in { transform: translateY(70%); opacity: 0; filter: blur(6px); transition: none; }
.x-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.x-trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; font-weight: 500; color: var(--x-ink); }
.x-trust li { display: inline-flex; align-items: center; gap: 8px; }
.x-trust svg { color: var(--x-royal); }

/* Integration hub (Magic UI animated beam) */
.x-hub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 40px 30px 30px; border-radius: 28px; background: rgba(255, 255, 255, .78); border: 1px solid var(--x-line); box-shadow: 0 40px 80px -40px rgba(11, 21, 48, .35); backdrop-filter: blur(8px); }
.x-hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.x-hub-svg .bg { stroke: #dfe4f3; stroke-width: 2; fill: none; }
.x-hub-svg .fx { stroke: url(#xBeam); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 14 86; animation: x-beam 3.2s cubic-bezier(.16, 1, .3, 1) infinite; }
.x-hub-svg .fx.rev { animation-name: x-beam-rev; }
@keyframes x-beam { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes x-beam-rev { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
.x-hub-col { position: relative; z-index: 2; display: grid; gap: 30px; }
.x-hub-col:last-of-type { justify-items: end; }
.x-node { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; text-align: center; }
.x-node-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); box-shadow: 0 12px 24px -14px rgba(11, 21, 48, .45); }
.x-node-lb { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--x-text); }
.x-hub-mid { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.x-core { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 24px 44px -18px rgba(36, 66, 224, .55); }
.x-core img { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 16px; }
/* Ripple (Magic UI) */
.x-ripple { position: absolute; inset: 0; pointer-events: none; }
.x-ripple i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(124, 92, 255, .45); animation: x-ripple 3.6s ease-out infinite; }
.x-ripple i:nth-child(2) { animation-delay: 1.2s; } .x-ripple i:nth-child(3) { animation-delay: 2.4s; }
@keyframes x-ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.x-core-lb { font-family: Sora, sans-serif; font-weight: 700; font-size: 15px; color: var(--x-ink); }
.x-hub-cap { grid-column: 1 / -1; position: relative; z-index: 2; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--x-line); text-align: center; font-size: 13.5px; color: var(--x-dim); }

/* ---------- Marquee (Magic UI) ---------- */
.x-marq { padding: 26px 0; border-block: 1px solid var(--x-line); background: var(--x-soft); display: grid; gap: 12px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.x-marq-row { display: flex; overflow: hidden; }
.x-marq-track { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; animation: x-marq 46s linear infinite; }
.x-marq-row.is-rev .x-marq-track { animation-direction: reverse; animation-duration: 52s; }
.x-marq:hover .x-marq-track { animation-play-state: paused; }
@keyframes x-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.x-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--x-line); font-size: 14px; font-weight: 600; color: var(--x-ink); white-space: nowrap; }
.x-chip svg { color: var(--x-violet); }

/* ---------- Numbers (Magic UI number ticker) ---------- */
.x-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 56px; }
.x-stat { padding: 8px 28px; border-left: 1px solid var(--x-line); }
.x-stat:first-child { border-left: 0; padding-left: 0; }
.x-stat-n { font-family: Sora, sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; color: var(--x-ink); font-variant-numeric: tabular-nums; }
.x-stat-l { margin-top: 10px; font-size: 14.5px; color: var(--x-text); }

/* ---------- Bento services ---------- */
.x-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.x-tile { display: flex; overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; box-shadow: 0 1px 2px rgba(11, 21, 48, .04); }
.x-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(11, 21, 48, .45); }
.x-tile.is-wide { grid-column: span 2; }
.x-tile.is-tall { grid-row: span 2; flex-direction: column; }
.x-tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 30px; flex: 1; }
.x-tile-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #eef1ff, #f5efff); color: var(--x-royal); border: 1px solid #e3e6fb; }
.x-tile-h { margin-top: 8px; font-family: Sora, sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--x-ink); }
.x-tile-p { font-size: 15.5px; line-height: 1.6; color: var(--x-text); }
.x-tile-pts { margin-top: 4px; display: grid; gap: 7px; font-size: 14.5px; color: var(--x-ink); }
.x-tile-pts span { display: flex; align-items: center; gap: 8px; }
.x-tile-pts svg { color: var(--x-violet); flex-shrink: 0; }
.x-tile-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--x-royal); }
.x-tile-more svg { transition: transform .2s; }
.x-tile:hover .x-tile-more svg { transform: translateX(4px); }
.x-tile-art { position: relative; flex: 0 0 42%; overflow: hidden; border-radius: 0 var(--x-r) var(--x-r) 0; }
.x-tile.is-tall .x-tile-art { flex: 1 1 auto; min-height: 220px; border-radius: 0 0 var(--x-r) var(--x-r); }
.x-tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.x-tile:hover .x-tile-art img { transform: scale(1.05); }

/* ---------- Split layouts ---------- */
.x-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 56px; align-items: center; }
.x-split-top { align-items: start; }
.x-sticky { position: sticky; top: 120px; }
.x-ind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- Store ---------- */
.x-store { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.x-prod { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.x-prod:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(11, 21, 48, .45); }
.x-prod-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--x-r) var(--x-r) 0 0; background: var(--x-soft); }
.x-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.x-prod:hover .x-prod-img img { transform: scale(1.05); }
.x-prod-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(11, 21, 48, .82); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.x-prod-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.x-prod-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--x-royal); }
.x-prod-meta span { font-family: 'IBM Plex Mono', monospace; font-weight: 400; color: var(--x-dim); }
.x-prod-h { margin-top: 8px; font-family: Sora, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -.015em; color: var(--x-ink); }
.x-prod-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.x-prod-price strong { display: block; font-family: Sora, sans-serif; font-size: 22px; letter-spacing: -.02em; color: var(--x-ink); }
.x-prod-price small { font-size: 12.5px; color: var(--x-dim); }
.x-buy { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--x-ink); color: #fff; font-weight: 600; font-size: 14px; transition: background-color .2s; }
.x-buy:hover { background: var(--x-royal); }

/* ---------- Plans ---------- */
.x-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.x-plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: 24px; background: #fff; border: 1px solid var(--x-line); }
.x-plan-h { font-family: Sora, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--x-ink); }
.x-plan-sub { margin-top: 4px; font-size: 14.5px; color: var(--x-dim); }
.x-plan-list { margin: 26px 0 30px; display: grid; gap: 12px; font-size: 15px; color: var(--x-ink); }
.x-plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.x-plan-list svg { margin-top: 3px; flex-shrink: 0; color: var(--x-royal); }
.x-plan-cta { margin-top: auto; width: 100%; }
/* Neon gradient card (Magic UI) for the recommended plan */
.x-plan.is-hot { background: var(--x-navy); border-color: transparent; color: #fff; box-shadow: 0 40px 80px -40px rgba(36, 66, 224, .8); }
.x-plan.is-hot::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--x-angle), var(--x-coral), var(--x-violet), var(--x-royal), var(--x-coral)); animation: x-angle 5s linear infinite; }
.x-plan.is-hot::after { content: ''; position: absolute; inset: -2px; z-index: -2; border-radius: 26px; background: inherit; background: conic-gradient(from var(--x-angle), var(--x-coral), var(--x-violet), var(--x-royal), var(--x-coral)); filter: blur(26px); opacity: .55; animation: x-angle 5s linear infinite; }
.x-plans { isolation: isolate; }
.x-plan.is-hot .x-plan-h { color: #fff; }
.x-plan.is-hot .x-plan-sub { color: #9fb0e0; }
.x-plan.is-hot .x-plan-list { color: #dfe6fb; }
.x-plan.is-hot .x-plan-list svg { color: var(--x-coral-2); }
.x-plan-flag { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 12px; font-weight: 600; color: #fff; }
.x-plan-flag svg { color: #ffd166; fill: #ffd166; }

/* ---------- Timeline (Aceternity) ---------- */
.x-tl { --p: 0; position: relative; display: grid; gap: 22px; padding-left: 44px; }
.x-tl-line { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--x-line); overflow: hidden; }
.x-tl-line span { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--x-violet), var(--x-coral)); box-shadow: 0 0 12px var(--x-violet); }
.x-tl-step { position: relative; padding: 26px 28px; border-radius: var(--x-r); background: #fff; border: 1px solid var(--x-line); transition: border-color .3s, box-shadow .3s; }
.x-tl-dot { position: absolute; left: -38px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #cfd6ec; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.x-tl-step.is-on { border-color: #d9d2ff; box-shadow: 0 20px 40px -30px rgba(124, 92, 255, .6); }
.x-tl-step.is-on .x-tl-dot { border-color: var(--x-violet); background: var(--x-violet); box-shadow: 0 0 0 5px rgba(124, 92, 255, .15); }
.x-tl-when { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; color: var(--x-violet); }
.x-tl-h { margin-top: 6px; font-family: Sora, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--x-ink); }
.x-tl-p { margin-top: 6px; font-size: 15.5px; line-height: 1.65; color: var(--x-text); }
.x-callcard { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 16px 34px -24px rgba(11, 21, 48, .4); transition: border-color .2s; }
.x-callcard:hover { border-color: #c9d2ec; }
.x-callcard-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--x-coral-2), var(--x-coral)); color: #fff; }
.x-callcard-l { display: block; font-size: 13px; color: var(--x-dim); }
.x-callcard-n { display: block; font-family: Sora, sans-serif; font-weight: 700; font-size: 19px; color: var(--x-ink); word-spacing: 3px; }

/* ---------- FAQ ---------- */
.x-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.x-qa { border-radius: 16px; background: #fff; border: 1px solid var(--x-line); transition: border-color .2s, box-shadow .2s; }
.x-qa[open] { border-color: #d9d2ff; box-shadow: 0 18px 36px -28px rgba(124, 92, 255, .6); }
.x-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; color: var(--x-ink); }
.x-qa summary::-webkit-details-marker { display: none; }
.x-qa summary:focus-visible { outline: 3px solid var(--x-violet); outline-offset: 2px; border-radius: 16px; }
.x-qa-ic { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--x-soft); color: var(--x-ink); transition: transform .25s, background-color .2s, color .2s; }
.x-qa[open] .x-qa-ic { transform: rotate(180deg); background: var(--x-violet); color: #fff; }
.x-qa p { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.7; color: var(--x-text); }

/* ---------- Closing band with globe (Magic UI globe + light rays) ---------- */
.x-end { position: relative; overflow: hidden; padding: 96px 0; background: radial-gradient(900px 500px at 80% 50%, #1b2a7a 0%, rgba(7, 13, 36, 0) 70%), var(--x-navy); color: #fff; }
.x-rays { position: absolute; inset: 0; pointer-events: none; }
.x-rays i { position: absolute; top: -30%; width: 140px; height: 160%; background: linear-gradient(180deg, rgba(160, 140, 255, .35), transparent 70%); filter: blur(28px); transform: rotate(18deg); animation: x-ray 7s ease-in-out infinite; }
.x-rays i:nth-child(1) { left: 8%; } .x-rays i:nth-child(2) { left: 30%; animation-delay: -2s; width: 90px; }
.x-rays i:nth-child(3) { left: 52%; animation-delay: -4s; } .x-rays i:nth-child(4) { left: 72%; animation-delay: -5.5s; width: 110px; }
@keyframes x-ray { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }
.x-end-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.x-end-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; font-weight: 500; color: #c9d3f3; }
.x-end-h { margin-top: 22px; font-family: Sora, sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; max-width: 15ch; }
.x-end-p { margin-top: 18px; font-size: 18px; line-height: 1.65; color: #b6c2e6; max-width: 50ch; }
.x-globe-box { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.x-globe { width: 100%; height: 100%; opacity: 0; transition: opacity 1s; cursor: grab; contain: layout paint size; }
.x-globe.is-on { opacity: 1; }
.x-globe-pin { position: absolute; left: 50%; top: 50%; transform: translate(10px, -34px); display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); pointer-events: none; }
.x-globe-pin svg { color: #ffd166; fill: #ffd166; }

@keyframes x-spin { to { transform: rotate(360deg); } }
@keyframes x-angle { to { --x-angle: 360deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .x-hero-in, .x-end-in, .x-split { grid-template-columns: 1fr; }
  .x-hub { max-width: 640px; }
  .x-sticky { position: static; }
  .x-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-tile.is-tall { grid-row: span 1; }
  .x-store, .x-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .x-wrap { padding: 0 16px; }
  .x-sec { padding: 72px 0; }
  .x-hero { padding: 40px 0 64px; }
  .x-lead { font-size: 16.5px; }
  .x-hub { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 28px 12px 20px; }
  .x-node { width: 84px; }
  .x-node-ic { width: 48px; height: 48px; }
  .x-node-lb { font-size: 11.5px; }
  .x-core { width: 84px; height: 84px; }
  .x-core img { width: 50px; height: 50px; }
  .x-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; padding-block: 44px; }
  .x-stat { padding: 0 16px; }
  .x-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .x-bento, .x-store, .x-plans, .x-faq, .x-ind { grid-template-columns: 1fr; }
  .x-tile.is-wide { grid-column: auto; flex-direction: column; }
  .x-tile-art { flex-basis: 200px; border-radius: 0 0 var(--x-r) var(--x-r); }
  .x-plans { max-width: 520px; }
  .x-end { padding: 72px 0; }
  .x-globe-box { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-shimmer::before, .x-beamborder, .x-gridbg i, .x-shiny, .x-ripple i, .x-marq-track, .x-plan.is-hot::before, .x-plan.is-hot::after, .x-rays i, .x-hub-svg .fx { animation: none !important; }
  .x-hub-svg .fx { stroke-dasharray: none; opacity: .5; }
}

/* =====================================================================
   Site-wide upgrade: header, menus, buttons, cards, forms, headings
   (pro.css loads after site.css + tailwind.css, so these win)
   ===================================================================== */
.tc { color: var(--x-text); }
.topbar { background: linear-gradient(90deg, #070d24, #111c4a 55%, #070d24); }
.site-head { background: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(228, 232, 243, .7); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
#site-header.is-scrolled .site-head { background: rgba(255, 255, 255, .86); box-shadow: 0 12px 34px -22px rgba(11, 21, 48, .4); }
.nav-link { position: relative; margin-block: auto; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; color: var(--x-text); transition: background-color .2s, color .2s; }
.nav-link:hover { background: var(--x-soft); color: var(--x-ink); }
.nav-link::after { left: 50%; right: auto; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(90deg, var(--x-coral), var(--x-violet)); transform: translateX(-50%) scale(0); }
.nav-link:hover::after { transform: translateX(-50%) scale(0); }
.nav-link.is-active { color: var(--x-ink); background: #eef1ff; }
.nav-link.is-active::after { transform: translateX(-50%) scale(1); }
.nav-tool { border-radius: 999px; }
.x-shimmer-sm { padding: 10px 18px; font-size: 14px; margin-left: 6px; }
.dropdown-surface { border-radius: 22px; border-color: rgba(228, 232, 243, .9); box-shadow: 0 40px 90px -36px rgba(11, 21, 48, .45), 0 0 0 1px rgba(255, 255, 255, .6) inset; }
.mega-item { border-radius: 14px; }
.mega-item:hover, .mega-item:focus-visible, .mega-item.is-current { background: linear-gradient(135deg, #f4f6ff, #f8f4ff); }
.mega-icon { border-radius: 12px; background: linear-gradient(135deg, #eef1ff, #f5efff); border-color: #e3e6fb; color: var(--x-royal); }
.mega-item:hover .mega-icon, .mega-item.is-current .mega-icon { background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); border-color: transparent; color: #fff; }
.mega-side { border-radius: 16px; background: radial-gradient(260px 200px at 90% 0%, #2b3fb8, transparent 70%), var(--x-navy); }

.btn-primary, .btn-accent, .btn-outline, .btn-ghost-light, .btn-white, .btn-dark { border-radius: 999px; }
.btn-primary { background: linear-gradient(135deg, var(--x-royal) 0%, #4a3df0 100%); box-shadow: 0 10px 24px -12px rgba(52, 66, 230, .9), inset 0 -6px 10px rgba(255, 255, 255, .12); }
.btn-primary:hover { background: linear-gradient(135deg, var(--x-royal-2) 0%, #3d2fe0 100%); box-shadow: 0 14px 30px -12px rgba(52, 66, 230, .95), inset 0 -6px 10px rgba(255, 255, 255, .18); }
.btn-dark { background: var(--x-ink); }
.btn-outline { border-color: var(--x-line); box-shadow: 0 1px 2px rgba(11, 21, 48, .05); }
.btn-outline:hover { border-color: #c4cdea; background: var(--x-soft); }

.eyebrow { gap: .5rem; padding: 6px 14px 6px 10px; border-radius: 999px; background: #eef1ff; border: 1px solid #e0e5fb; font-size: .8rem; letter-spacing: .01em; text-transform: none; color: var(--x-royal); }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(90deg, var(--x-coral), var(--x-violet)); }
.eyebrow.is-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #c9d3f3; }
.section-title { font-family: Sora, Inter, sans-serif; letter-spacing: -.035em; line-height: 1.08; }

.card { border-radius: 20px; border-color: var(--x-line); box-shadow: 0 1px 2px rgba(11, 21, 48, .04); }
.card-hover:hover { border-color: #d6dcf2; box-shadow: 0 26px 50px -30px rgba(11, 21, 48, .45); }
/* pointer spotlight on cards (Magic UI magic card, glow only) */
.card, [data-addon], .ind-card, .x-tl-step, .x-qa { position: relative; }
.card::after, [data-addon]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, -300px) var(--my, -300px), rgba(124, 92, 255, .08), transparent 70%); }
.card:hover::after, [data-addon]:hover::after { opacity: 1; }
.addon { border-radius: 20px; }
.field { border-radius: 12px; border-color: var(--x-line); }
.field:focus { border-color: var(--x-violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .15); }
.bg-alt { background: var(--x-soft); }

/* ---------- Inner page hero ---------- */
.x-phero { position: relative; overflow: hidden; padding: 56px 0 72px; border-bottom: 1px solid var(--x-line); background: radial-gradient(900px 480px at 85% 10%, #eef1ff 0%, rgba(255, 255, 255, 0) 70%), #fff; }
.x-phero-in { position: relative; display: grid; gap: 48px; align-items: center; }
.x-phero-in.has-art { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.x-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--x-dim); }
.x-crumb a:hover { color: var(--x-royal); }
.x-crumb span { color: var(--x-ink); font-weight: 600; }
.x-phero .eyebrow { margin-top: 22px; }
.x-phero-h { margin-top: 18px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 18ch; }
.x-phero-facts { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.x-phero-facts div { padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--x-line); box-shadow: 0 10px 24px -20px rgba(11, 21, 48, .4); }
.x-phero-facts dd { font-family: Sora, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--x-ink); }
.x-phero-facts dd + dd { margin-top: 2px; font-family: Inter, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--x-dim); }
.x-phero-art { position: relative; border-radius: 26px; padding: 10px; background: rgba(255, 255, 255, .7); border: 1px solid var(--x-line); box-shadow: 0 40px 80px -40px rgba(11, 21, 48, .4); backdrop-filter: blur(8px); }
.x-phero-art img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 100% center; border-radius: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--x-line); }
.footer-h { font-family: Sora, sans-serif; letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.footer-list a:hover { color: var(--x-royal); }
.social-btn { border-radius: 12px; }
.social-btn:hover { background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); border-color: transparent; }

@media (max-width: 1080px) { .x-phero-in.has-art { grid-template-columns: 1fr; } .x-phero-art { max-width: 640px; } }
@media (max-width: 760px) { .x-phero { padding: 36px 0 56px; } .x-phero-art { display: none; } }

/* =====================================================================
   Services bento v2: live mini-demos (Magic UI bento-grid style)
   ===================================================================== */
.x-svc-side { max-width: 460px; }
.x-svc-side .x-sub { margin-top: 0; }
.x-bento { grid-auto-rows: auto; }
.x-tile { flex-direction: column; min-height: 380px; }
.x-tile.is-tall { grid-row: span 2; }
.x-tile-vis { position: relative; flex: 1 1 auto; min-height: 220px; overflow: hidden; border-radius: var(--x-r) var(--x-r) 0 0;
  background: radial-gradient(circle at 1px 1px, rgba(36, 66, 224, .13) 1px, transparent 0) 0 0 / 18px 18px, radial-gradient(420px 220px at 50% 0%, #f1efff, transparent 70%);
  -webkit-mask: linear-gradient(to bottom, #000 72%, transparent); mask: linear-gradient(to bottom, #000 72%, transparent); }
.x-tile.is-tall .x-tile-vis { min-height: 520px; }
.x-tile-text { flex: 0 0 auto; gap: 8px; padding: 4px 26px 26px; }
.x-tile-row { display: flex; align-items: center; gap: 12px; }
.x-tile-row .x-tile-h { margin-top: 0; }
.x-tile-ic { width: 40px; height: 40px; flex-shrink: 0; }
.x-tile-more { margin-top: 4px; padding-top: 0; }
@media (hover: hover) {
  .x-tile-more { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
  .x-tile:hover .x-tile-more, .x-tile:focus-visible .x-tile-more { opacity: 1; transform: none; }
}
.bv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px 24px 30px; font-family: Inter, sans-serif; }
.bv-line { display: block; height: 7px; border-radius: 4px; background: #e6eaf6; }
.bv-line.is-ink { background: var(--x-ink); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

/* Customization: TDL code typing + invoice */
.bv-code { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.bv-term { border-radius: 12px; background: var(--x-navy); box-shadow: 0 24px 40px -22px rgba(11, 21, 48, .7); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bv-term-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: #111a3d; }
.bv-term-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a4672; }
.bv-term-bar i:first-child { background: var(--x-coral); }
.bv-term-bar span { margin-left: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8e9bc6; }
.bv-term-code { margin: 0; min-height: 118px; padding: 12px 14px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; line-height: 1.65; color: #c9d3f3; white-space: pre; overflow: hidden; }
.bv-term-code::after { content: ''; display: inline-block; width: 7px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--x-coral-2); animation: x-caret 1s steps(1) infinite; }
@keyframes x-caret { 50% { opacity: 0; } }
.bv-inv { display: grid; gap: 7px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 20px 36px -22px rgba(11, 21, 48, .5); transform: rotate(3deg); }
.bv-inv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bv-inv-logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.bv-inv-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.bv-qr { display: grid; grid-template-columns: repeat(5, 6px); gap: 1.5px; padding: 4px; border-radius: 5px; background: #fff; border: 1px solid var(--x-line); opacity: 0; transform: scale(.6); transition: opacity .35s .15s, transform .4s .15s cubic-bezier(.3, 1.6, .5, 1); }
.bv-qr i { width: 6px; height: 6px; border-radius: 1px; background: #eef1f9; }
.bv-qr i.on { background: var(--x-ink); }
.bv-inv.is-done .bv-inv-logo { transform: scale(1); }
.bv-inv.is-done .bv-qr { opacity: 1; transform: none; }

/* Data sync: beams to head office + live event list */
.bv-sync { flex-direction: column; justify-content: flex-start; gap: 46px; padding-top: 30px; }
.bv-ho { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: var(--x-navy); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 18px 34px -16px rgba(36, 66, 224, .7); }
.bv-ho svg { color: var(--x-coral-2); }
.bv-branches { position: relative; z-index: 2; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.bv-branch { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--x-text); }
.bv-branch > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); box-shadow: 0 10px 20px -12px rgba(11, 21, 48, .45); }
.bv-alist { position: relative; z-index: 2; width: 100%; max-width: 330px; display: grid; gap: 8px; }
.bv-alist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .94); border: 1px solid var(--x-line); box-shadow: 0 12px 24px -18px rgba(11, 21, 48, .45); }
.bv-alist li:nth-child(n + 4) { display: none; }
.bv-alist li.is-new { animation: x-pop .5s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes x-pop { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
.bv-alist b { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, #eef1ff, #f5efff); color: var(--x-violet); }
.bv-alist span { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--x-ink); line-height: 1.25; }
.bv-alist small { display: block; font-weight: 500; font-size: 12px; color: var(--x-dim); }
.bv-alist em { font-style: normal; font-size: 11.5px; color: var(--x-dim); }

/* AMC: health-check ticks */
.bv-amc { flex-direction: column; align-items: stretch; justify-content: center; max-width: 300px; margin: 0 auto; }
.bv-amc-h { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--x-ink); }
.bv-amc-h svg { color: var(--x-violet); }
.bv-amc ul { display: grid; gap: 8px; }
.bv-amc li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--x-line); font-size: 13.5px; font-weight: 500; color: var(--x-text); transition: border-color .3s, color .3s; }
.bv-tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfd6ec; color: transparent; transition: all .3s; }
.bv-amc li.is-on { color: var(--x-ink); border-color: #d9d2ff; }
.bv-amc li.is-on .bv-tick { background: #10b981; border-color: #10b981; color: #fff; transform: scale(1.08); }

/* Integration: files marquee + import progress */
.bv-int { flex-direction: column; justify-content: center; gap: 18px; padding-inline: 0; }
.bv-files { width: 100%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.bv-files-track { display: flex; gap: 10px; width: max-content; animation: x-marq 22s linear infinite; }
.bv-file { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--x-line); font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--x-ink); box-shadow: 0 10px 20px -16px rgba(11, 21, 48, .4); }
.bv-file i { width: 10px; height: 12px; border-radius: 2px; }
.bv-import { width: calc(100% - 48px); max-width: 320px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 16px 30px -22px rgba(11, 21, 48, .5); }
.bv-import-l { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--x-ink); }
.bv-import-l svg { color: #21a366; }
.bv-bar { display: block; margin: 10px 0 7px; height: 7px; border-radius: 4px; background: #eef1f9; overflow: hidden; }
.bv-bar i { display: block; height: 100%; border-radius: 4px; background: var(--x-beam); animation: x-fill 3.4s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes x-fill { 0% { width: 4%; } 80%, 100% { width: 100%; } }
.bv-import-s { font-size: 11.5px; color: var(--x-dim); }

/* Barcode: scan line + cart */
.bv-bar-demo { flex-direction: column; justify-content: center; gap: 12px; }
.bv-code128 { position: relative; display: flex; align-items: stretch; height: 56px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 12px 24px -18px rgba(11, 21, 48, .5); overflow: hidden; }
.bv-code128 i { display: block; background: var(--x-ink); border-radius: 1px; }
.bv-scanline { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--x-coral); box-shadow: 0 0 10px 2px rgba(255, 107, 69, .6); animation: x-scan 2.2s ease-in-out infinite alternate; }
@keyframes x-scan { from { left: 6%; } to { left: 94%; } }
.bv-cart { width: 100%; max-width: 270px; display: grid; gap: 5px; }
.bv-cart li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--x-line); font-size: 12.5px; color: var(--x-text); opacity: .35; transition: opacity .3s; }
.bv-cart li.is-on { opacity: 1; }
.bv-cart b { color: var(--x-ink); }
.bv-total { display: flex; justify-content: space-between; width: 100%; max-width: 270px; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--x-ink); }

/* Remote access: session + role switches */
.bv-remote { flex-direction: column; justify-content: center; gap: 12px; }
.bv-session { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; padding: 12px 14px; border-radius: 16px; background: var(--x-navy); color: #fff; box-shadow: 0 20px 36px -20px rgba(11, 21, 48, .7); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bv-ava { display: flex; }
.bv-ava span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--x-navy); font-size: 11px; font-weight: 700; }
.bv-ava span:first-child { background: linear-gradient(135deg, var(--x-coral-2), var(--x-coral)); }
.bv-ava span:last-child { margin-left: -10px; background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); }
.bv-session-t { flex: 1; min-width: 0; font-size: 13.5px; }
.bv-session-t small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9fb0e0; }
.bv-session-t small i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); animation: x-dot 1.6s ease-in-out infinite; }
@keyframes x-dot { 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } }
.bv-lock { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #ffd166; }
.bv-roles { width: 100%; max-width: 380px; display: grid; gap: 7px; }
.bv-roles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--x-line); }
.bv-roles b { display: block; font-size: 13px; color: var(--x-ink); }
.bv-roles small { font-size: 12px; color: var(--x-dim); }
.bv-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; border-radius: 999px; background: #d7ddef; transition: background-color .3s; }
.bv-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 21, 48, .3); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.bv-switch.on { background: linear-gradient(90deg, var(--x-royal), var(--x-violet)); }
.bv-switch.on::after { transform: translateX(16px); }

.bv-img img { width: 100%; height: 100%; object-fit: cover; }
.x-tile:hover .bv-term, .x-tile:hover .bv-session { transform: translateY(-3px); }

@media (max-width: 1080px) { .x-tile.is-tall { grid-row: span 1; } .x-tile.is-tall .x-tile-vis { min-height: 440px; } }
@media (max-width: 760px) {
  .x-tile, .x-tile.is-wide { min-height: 0; }
  .x-tile-vis { min-height: 230px; }
  .x-tile.is-tall .x-tile-vis { min-height: 420px; }
  .bv-code { grid-template-columns: 1fr; }
  .bv-inv { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-files-track, .bv-bar i, .bv-scanline, .bv-term-code::after, .bv-session-t small i { animation: none !important; }
  .bv-bar i { width: 100%; }
}
/* bento fixes */
.bv > * { flex-shrink: 0; }
.x-tile-vis { min-height: 250px; }
.x-tile.is-tall .x-tile-vis { min-height: 480px; }
.bv-sync { justify-content: center; gap: 40px; padding-top: 22px; }
.bv-roles li { padding: 7px 14px; }
.bv-cart li { padding: 5px 10px; }
.bv-bar-demo, .bv-remote { gap: 10px; padding-top: 18px; padding-bottom: 26px; }
@media (min-width: 1081px) { .x-svc .x-head-row { flex-wrap: nowrap; } .x-svc .x-head-row > :first-child { flex: 1 1 auto; } .x-svc-side { flex: 0 0 420px; } }
.x-tile-4 .x-tile-vis, .x-tile-5 .x-tile-vis { min-height: 290px; }
.bv-bar-demo, .bv-remote { padding-top: 28px; }

/* Marquee v2: seamless loop on any screen width + nicer chips */
.x-marq { padding: 30px 0; gap: 14px; background: linear-gradient(180deg, #fff, var(--x-soft)); }
.x-marq-track { gap: 0; padding-right: 0; width: max-content; animation-duration: 60s; }
.x-marq-row.is-rev .x-marq-track { animation-duration: 66s; }
.x-marq-set { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; }
.x-chip { gap: 10px; padding: 7px 16px 7px 7px; font-size: 14px; box-shadow: 0 6px 16px -14px rgba(11, 21, 48, .5); transition: border-color .2s, box-shadow .2s, transform .2s; }
.x-chip:hover { border-color: #d6cdff; box-shadow: 0 12px 24px -16px rgba(124, 92, 255, .6); transform: translateY(-1px); }
.x-chip-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #eef1ff, #f5efff); border: 1px solid #e3e6fb; color: var(--x-violet); }
.x-marq-row.is-rev .x-chip-ic { background: linear-gradient(135deg, #fff2ec, #fff7f2); border-color: #ffe0d4; color: var(--x-coral); }
.x-chip > svg { display: none; }
@media (max-width: 760px) { .x-marq { padding: 22px 0; } .x-chip { font-size: 13px; } }

/* Numbers band directly under the hero (marquee removed) */
.x-hero { padding-bottom: 64px; }
.x-stats { padding-block: 40px; border-top: 1px solid var(--x-line); border-bottom: 1px solid var(--x-line); }
.x-svc { padding-top: 88px; }
@media (max-width: 760px) { .x-hero { padding-bottom: 48px; } .x-stats { padding-block: 32px; } .x-svc { padding-top: 64px; } }

/* Globe v2: spin in, then zoom to Kalaburagi (pin shows once landed) */
.x-globe { -webkit-mask: radial-gradient(circle closest-side, #000 93%, transparent 100%); mask: radial-gradient(circle closest-side, #000 93%, transparent 100%); }
.x-globe-pin { left: 50%; top: 50%; transform: translate(-50%, calc(-100% - 18px)) scale(.85); opacity: 0; transition: opacity .5s .15s, transform .5s .15s cubic-bezier(.3, 1.5, .5, 1); padding: 7px 13px; font-size: 13px; background: rgba(11, 21, 48, .7); white-space: nowrap; }
.x-globe-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: rgba(11, 21, 48, .7); border-right: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22); }
.x-globe-ping { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ff8f6b; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 0 18px 4px rgba(255, 143, 107, .8); opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.x-globe-ping i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff8f6b; animation: x-ripple 2.2s ease-out infinite; }
.x-globe-ping i:nth-child(2) { animation-delay: 1.1s; }
.x-globe-box.is-landed .x-globe-pin { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1); }
.x-globe-box.is-landed .x-globe-ping { opacity: 1; transform: scale(1); }

/* =====================================================================
   Realistic Earth (assets/js/earth.js): spin, zoom to Gulbarga, satellite map
   ===================================================================== */
.x-earth { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.x-earth::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(80, 120, 255, .25), transparent 70%); filter: blur(30px); pointer-events: none; }
.x-earth-cv { position: relative; width: 100%; height: 100%; display: block; -webkit-mask: radial-gradient(circle closest-side, #000 97%, transparent 100%); mask: radial-gradient(circle closest-side, #000 97%, transparent 100%); transition: opacity .9s; }
.x-earth::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .0), 0 0 0 0 rgba(124, 92, 255, 0); transition: box-shadow 1s; }
.x-earth.is-landed::after { box-shadow: 0 0 0 2px rgba(160, 180, 255, .55), 0 0 60px 6px rgba(110, 120, 255, .45); }
.x-earth-map { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.x-earth-map iframe { width: 100%; height: 100%; border: 0; }
.x-earth.is-map .x-earth-map { opacity: 1; transform: none; pointer-events: auto; }
.x-earth.is-map .x-earth-cv { opacity: 0; }
.x-earth .x-globe-pin { position: absolute; left: 50%; top: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 21, 48, .78); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 15px; font-weight: 700; backdrop-filter: blur(6px); white-space: nowrap; pointer-events: none;
  transform: translate(-50%, calc(-100% - 20px)) scale(.85); opacity: 0; transition: opacity .5s .1s, transform .5s .1s cubic-bezier(.3, 1.5, .5, 1); }
.x-earth .x-globe-pin small { font-size: 11.5px; font-weight: 500; color: #c3cdf0; }
.x-earth .x-globe-pin svg { color: #ffd166; fill: #ffd166; }
.x-earth .x-globe-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: rgba(11, 21, 48, .78); border-right: 1px solid rgba(255, 255, 255, .25); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.x-earth .x-globe-ping { position: absolute; z-index: 3; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ff8f6b; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 18px 4px rgba(255, 143, 107, .8); opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.x-earth.is-landed .x-globe-pin { opacity: 1; transform: translate(-50%, calc(-100% - 20px)) scale(1); }
.x-earth.is-landed .x-globe-ping { opacity: 1; transform: scale(1); }
.x-earth-replay { position: absolute; z-index: 4; left: 50%; bottom: 6%; transform: translateX(-50%) translateY(8px); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(11, 21, 48, .78); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .4s .6s, transform .4s .6s; }
.x-earth.is-map .x-earth-replay { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.x-earth-replay:hover { background: rgba(36, 66, 224, .9); }
.x-earth-credit { position: absolute; right: 0; bottom: -22px; font-size: 11px; color: rgba(201, 211, 243, .55); }
.x-earth.no-webgl { border-radius: 50%; background: url(/assets/img/earth/earth-2k.jpg) 62% 40% / 260% auto; }
@media (max-width: 760px) { .x-earth { max-width: 360px; } }
/* continuous zoom: stacked satellite map layers inside the circle */
.x-earth-map { opacity: 1 !important; transform: none !important; transition: none; }
.x-earth-layer { position: absolute; left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.17); transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: none; }
.x-earth-layer iframe { width: 100%; height: 100%; border: 0; }
.x-earth.is-map .x-earth-map { pointer-events: auto; }
.x-earth.is-map .x-earth-layer:last-child { pointer-events: auto; }
.x-earth.is-map .x-earth-cv { opacity: 0 !important; }
.x-earth-cv { transition: none; }

/* =====================================================================
   Header v2: live status strip + Aceternity-style resizable navbar
   (full-width at the top, floating glass capsule once you scroll)
   ===================================================================== */
.x-topbar { position: relative; background: #070d24; color: #aab6dd; font-size: 12.5px; }
.x-topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .7), rgba(255, 143, 107, .7), transparent); background-size: 200% 100%; animation: x-line 6s linear infinite; }
@keyframes x-line { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.x-status { display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 600; color: #c9d3f3; white-space: nowrap; }
.x-status i { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.x-status.is-open { color: #d1fae5; }
.x-status.is-open i { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); animation: x-dot 1.8s ease-in-out infinite; }
.x-topbar-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; transition: background-color .2s, color .2s; }
.x-topbar-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.x-topbar-call { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 700; word-spacing: 2px; transition: background-color .2s; }
.x-topbar-call:hover { background: rgba(255, 255, 255, .16); }

/* Resizable navbar */
#site-header { padding: 0; transition: padding .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
#site-header > * { pointer-events: auto; }
.site-head { width: 100%; margin: 0 auto; border-radius: 0; transition: width .55s cubic-bezier(.2, .8, .2, 1), border-radius .55s, background-color .4s, box-shadow .4s, border-color .4s; }
.site-head > div { transition: height .45s cubic-bezier(.2, .8, .2, 1), padding .45s; }
.site-head img { transition: height .45s cubic-bezier(.2, .8, .2, 1); }
#site-header.is-float { padding-top: 10px; }
#site-header.is-float .site-head { width: min(1140px, calc(100% - 24px)); border-radius: 999px; border: 1px solid rgba(214, 220, 240, .85); background: rgba(255, 255, 255, .78); box-shadow: 0 20px 50px -22px rgba(11, 21, 48, .35), 0 0 0 1px rgba(255, 255, 255, .6) inset; }
#site-header.is-float .site-head > div { height: 60px; padding-left: 14px; padding-right: 8px; }
#site-header.is-float .site-head img { height: 34px; }
#site-header.is-float .nav-link { height: 38px; }
#site-header.is-float .x-shimmer-sm { padding: 9px 16px; }
@media (max-width: 1023px) {
  #site-header.is-float { padding-top: 8px; }
  #site-header.is-float .site-head { width: calc(100% - 16px); border-radius: 18px; }
  #site-header.is-float .site-head > div { height: 56px; padding-left: 12px; padding-right: 6px; }
}

/* Sliding hover pill behind the nav links */
nav[aria-label="Main"] { position: relative; align-items: center; }
.nav-pill { position: absolute; left: 0; top: 50%; height: 40px; border-radius: 999px; background: #eef1ff; opacity: 0; transform: translateY(-50%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; pointer-events: none; z-index: 0; }
nav[aria-label="Main"].has-pill .nav-pill { opacity: 1; }
nav[aria-label="Main"] .dropdown, nav[aria-label="Main"] > .nav-link { position: relative; z-index: 1; }
nav[aria-label="Main"].has-pill .nav-link:hover { background: transparent; }
nav[aria-label="Main"].has-pill .nav-link.is-active { background: transparent; }
.nav-link.is-active::after { transform: translateX(-50%) scale(1); }

/* Login as a tidy icon pill */
.nav-tool { height: 40px; padding: 0 14px; border: 1px solid transparent; }
.nav-tool:hover { border-color: var(--x-line); background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .x-topbar::after, .x-status.is-open i { animation: none; }
  #site-header, .site-head, .site-head > div, .site-head img, .nav-pill { transition: none; }
}

/* Floating capsule: slightly darker tint (pill and login turn white so they stand out) */
#site-header.is-float .site-head { background: rgba(224, 230, 245, .9); border-color: rgba(196, 206, 234, .95); box-shadow: 0 20px 50px -22px rgba(11, 21, 48, .4), 0 0 0 1px rgba(255, 255, 255, .55) inset; }
#site-header.is-float .nav-pill { background: #fff; box-shadow: 0 4px 12px -6px rgba(11, 21, 48, .3); }
#site-header.is-float .nav-link.is-active { background: #fff; }
#site-header.is-float .nav-tool:hover { background: #fff; border-color: transparent; }

/* Hub illustrations on inner pages (same style as the home hero) */
.x-phero-hub { position: relative; }
.x-phero-hub .x-hub { padding: 36px 26px 26px; }
.x-core-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); box-shadow: inset 0 -6px 12px rgba(255, 255, 255, .15); }
.x-hub .x-core-lb { text-align: center; max-width: 140px; line-height: 1.25; }
@media (max-width: 760px) {
  .x-phero-hub { margin-top: 8px; }
  .x-phero-hub .x-hub { padding: 26px 10px 18px; }
}

/* Who it's for: icon nodes in the hub style */
.x-ind-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; transition: transform .25s, box-shadow .25s; }
.x-ind-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(11, 21, 48, .45); }
.x-ind-card .x-node-ic { width: 52px; height: 52px; flex-shrink: 0; transition: background-color .25s, color .25s, border-color .25s; }
.x-ind-card:hover .x-node-ic { background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); border-color: transparent; color: #fff; }

/* =====================================================================
   Per-page illustrations (includes/page-art.php)
   ===================================================================== */
.x-art { position: relative; padding: 30px 26px 24px; border-radius: 28px; background: rgba(255, 255, 255, .8); border: 1px solid var(--x-line); box-shadow: 0 40px 80px -40px rgba(11, 21, 48, .35); backdrop-filter: blur(8px); overflow: hidden; }
.x-art .x-hub-cap { margin-top: 18px; }
.x-art .x-ripple { position: absolute; inset: 0; pointer-events: none; }

/* Orbiting circles (TallyPrime) */
.xo { position: relative; width: 340px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.xo-ring { position: absolute; border-radius: 50%; border: 1.5px dashed #d5dcf2; }
.xo-ring.is-in { inset: 23%; }
.xo-ring.is-out { inset: 4%; }
.xo-orbit { position: absolute; inset: 0; animation: x-spin 26s linear infinite; }
.xo-orbit.is-out { animation-duration: 40s; animation-direction: reverse; }
.xo-ic { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; transform: rotate(var(--a)) translateX(92px) rotate(calc(-1 * var(--a))); }
.xo-orbit.is-out .xo-ic { transform: rotate(var(--a)) translateX(156px) rotate(calc(-1 * var(--a))); }
.xo-ic > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); box-shadow: 0 12px 24px -14px rgba(11, 21, 48, .45); animation: x-spin 26s linear infinite reverse; }
.xo-orbit.is-out .xo-ic > span { animation-duration: 40s; animation-direction: normal; color: var(--x-violet); }
.xo-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 24px 44px -18px rgba(36, 66, 224, .55); }
.xo-core img { position: relative; width: 56px; height: 56px; border-radius: 14px; }
.xo-legend { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.xo-legend span { padding: 4px 10px; border-radius: 999px; background: var(--x-soft); border: 1px solid var(--x-line); font-size: 12px; font-weight: 600; color: var(--x-text); }

/* Network topology (Server) */
.xt { position: relative; display: grid; gap: 34px; justify-items: center; padding: 6px 0; }
.xt-row { position: relative; z-index: 2; display: flex; justify-content: space-between; width: 100%; gap: 6px; }
.xt-row .x-node { width: auto; flex: 1; }
.xt-row .x-node-ic { width: 52px; height: 52px; }
.xt-core { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--x-navy); color: #fff; box-shadow: 0 24px 44px -18px rgba(36, 66, 224, .7); }
.xt-core .x-core-ic { width: 52px; height: 52px; border-radius: 14px; }
.xt-core-t b { display: block; font-family: Sora, sans-serif; font-size: 15px; }
.xt-core-t small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9fb0e0; }
.xt-core-t small i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: x-dot 1.6s ease-in-out infinite; }

/* Install grid (Add-on store) */
.xg { border-radius: 18px; border: 1px solid var(--x-line); background: #fff; overflow: hidden; box-shadow: 0 20px 40px -28px rgba(11, 21, 48, .5); }
.xg-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--x-navy); color: #fff; font-size: 13px; }
.xg-bar span { display: flex; gap: 5px; } .xg-bar span i { width: 8px; height: 8px; border-radius: 50%; background: #3a4672; } .xg-bar span i:first-child { background: var(--x-coral); }
.xg-bar b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.xg-bar em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #9fb0e0; }
.xg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.xg-grid li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 12px; border-radius: 14px; border: 1px dashed #d5dcf2; background: var(--x-soft); color: var(--x-dim); transition: all .35s; }
.xg-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--x-line); }
.xg-t { font-size: 12.5px; font-weight: 600; }
.xg-ok { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #fff; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.xg-grid li.is-on { border-style: solid; border-color: #d9d2ff; background: #fff; color: var(--x-ink); box-shadow: 0 12px 22px -16px rgba(124, 92, 255, .6); }
.xg-grid li.is-on .xg-ic { background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); border-color: transparent; color: #fff; }
.xg-grid li.is-on .xg-ok { transform: scale(1); }

/* Floating chips (About) */
.xf { position: relative; height: 340px; }
.xf-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; }
.xf-core img { position: relative; width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 24px 44px -18px rgba(36, 66, 224, .6); }
.xf-core .x-ripple { inset: 0 0 auto 0; height: 72px; }
.xf-core .x-ripple i { border-radius: 20px; }
.xf-core b { font-family: Sora, sans-serif; font-size: 15px; color: var(--x-ink); }
.xf-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--x-line); font-size: 13px; font-weight: 600; color: var(--x-ink); box-shadow: 0 12px 24px -16px rgba(11, 21, 48, .45); white-space: nowrap; animation: x-float 6s ease-in-out infinite; }
.xf-chip svg { color: var(--x-violet); }
.xf-chip:nth-child(even) svg { color: var(--x-coral); }
@keyframes x-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Chat window (Contact) */
.xc { max-width: 380px; margin: 0 auto; border-radius: 22px; background: #eef1f9; border: 1px solid var(--x-line); overflow: hidden; box-shadow: 0 24px 44px -28px rgba(11, 21, 48, .5); }
.xc-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--x-navy); color: #fff; }
.xc-head > span:nth-child(2) { flex: 1; }
.xc-head b { display: block; font-size: 14px; }
.xc-head small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9fb0e0; }
.xc-head small i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: x-dot 1.6s ease-in-out infinite; }
.xc-ava img { width: 34px; height: 34px; border-radius: 10px; }
.xc-list { display: flex; flex-direction: column; gap: 8px; min-height: 250px; padding: 16px 14px; }
.xc-list li { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s, transform .35s cubic-bezier(.2, 1.2, .4, 1); }
.xc-list li.is-in { align-self: flex-start; background: #fff; color: var(--x-ink); border-bottom-left-radius: 4px; box-shadow: 0 6px 14px -10px rgba(11, 21, 48, .4); }
.xc-list li.is-out { align-self: flex-end; background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); color: #fff; border-bottom-right-radius: 4px; }
.xc-list li.is-on { opacity: 1; transform: none; }
.xc-typing { display: inline-flex; gap: 4px; padding: 12px 14px !important; }
.xc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .6; animation: x-typing 1s ease-in-out infinite; }
.xc-typing i:nth-child(2) { animation-delay: .15s; } .xc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes x-typing { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Learning path (Course) */
.xp-h { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 13.5px; font-weight: 700; color: var(--x-ink); }
.xp-h svg { color: var(--x-violet); }
.xp ul { display: grid; gap: 10px; }
.xp li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 10px 22px -18px rgba(11, 21, 48, .4); }
.xp-ic { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, #eef1ff, #f5efff); color: var(--x-royal); }
.xp-t { flex: 1; min-width: 0; }
.xp-t b { display: block; font-size: 14px; color: var(--x-ink); }
.xp-t small { font-size: 12px; color: var(--x-dim); }
.xp-ring { width: 40px; height: 40px; transform: rotate(-90deg); flex-shrink: 0; }
.xp-ring circle { fill: none; stroke: #e8ecf6; stroke-width: 4; }
.xp-ring circle.v { stroke: url(#xBeam); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.xp li.is-on .xp-ring circle.v { stroke-dashoffset: calc(100 - var(--p)); }
.xp em { width: 38px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--x-ink); text-align: right; }

/* Licence card (Register) */
.xl { max-width: 380px; margin: 0 auto; }
.xl-card { position: relative; overflow: hidden; aspect-ratio: 1.62; padding: 20px 22px; border-radius: 20px; color: #fff; background: radial-gradient(300px 200px at 90% 0%, rgba(124, 92, 255, .55), transparent 70%), linear-gradient(135deg, #0d1538, #1b2a72); box-shadow: 0 30px 50px -24px rgba(11, 21, 48, .7); transform: rotate(-3deg); }
.xl-glare { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; animation: x-glare 3.8s ease-in-out infinite; }
@keyframes x-glare { 0%, 30% { background-position: 150% 0; } 70%, 100% { background-position: -150% 0; } }
.xl-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.xl-logo { display: inline-flex; align-items: center; gap: 8px; font-family: Sora, sans-serif; font-size: 15px; }
.xl-logo img { width: 30px; height: 30px; border-radius: 8px; }
.xl-ed { padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #f7d774, #d4a017); color: #3d2a00; font-size: 12px; font-weight: 800; }
.xl-chip { position: relative; display: block; width: 42px; height: 32px; margin-top: 18px; border-radius: 7px; background: linear-gradient(135deg, #f2d27a, #c99a2e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.xl-serial { position: relative; margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 19px; letter-spacing: .14em; }
.xl-foot { position: relative; display: flex; justify-content: space-between; margin-top: 12px; }
.xl-foot small { display: block; font-size: 10.5px; color: #9fb0e0; text-transform: uppercase; letter-spacing: .08em; }
.xl-foot b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.xl-foot b i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.xl-list { margin-top: 22px; display: grid; gap: 8px; }
.xl-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--x-line); font-size: 13.5px; font-weight: 500; color: var(--x-text); transition: color .3s, border-color .3s; }
.xl-list li.is-on { color: var(--x-ink); border-color: #d9d2ff; }
.xl-list li.is-on .bv-tick { background: #10b981; border-color: #10b981; color: #fff; }

/* File tree (Privacy / Terms) */
.xft { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.xft-badge { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 24px 44px -18px rgba(36, 66, 224, .55); }
.xft-badge .x-core-ic { width: 56px; height: 56px; }
.xft-tree { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 16px 32px -24px rgba(11, 21, 48, .45); }
.xft-root { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13.5px; font-weight: 700; color: var(--x-ink); }
.xft-root svg { color: var(--x-violet); }
.xft-tree ul { position: relative; display: grid; gap: 4px; margin-left: 14px; padding-left: 14px; border-left: 1.5px dashed #d5dcf2; }
.xft-tree li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--x-text); transition: background-color .3s, color .3s; }
.xft-tree li > svg { color: var(--x-dim); }
.xft-tree li span { flex: 1; }
.xft-tree li em { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #fff; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.xft-tree li.is-on { background: linear-gradient(135deg, #f4f6ff, #f8f4ff); color: var(--x-ink); }
.xft-tree li.is-on > svg { color: var(--x-violet); }
.xft-tree li.is-on em { transform: scale(1); }

@media (max-width: 760px) {
  .x-art { padding: 22px 14px 18px; }
  .xo { width: 300px; }
  .xo-ic { width: 44px; height: 44px; margin: -22px 0 0 -22px; transform: rotate(var(--a)) translateX(80px) rotate(calc(-1 * var(--a))); }
  .xo-orbit.is-out .xo-ic { transform: rotate(var(--a)) translateX(134px) rotate(calc(-1 * var(--a))); }
  .xf { height: 320px; }
  .xf-chip { font-size: 12px; padding: 7px 11px; }
  .xft { grid-template-columns: 1fr; justify-items: center; }
  .xft-tree { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .xo-orbit, .xo-ic > span, .xf-chip, .xl-glare, .xc-typing i { animation: none !important; }
}
@media (max-width: 760px) {
  .xf-chip.is-r { left: auto !important; right: 2%; }
  .xf-chip.is-xtra { display: none; }
}
@media (max-width: 760px) {
  .xf-core img { width: 54px; height: 54px; border-radius: 15px; }
  .xf-core .x-ripple { height: 54px; }
  .xf-core b { font-size: 13.5px; }
}

/* =====================================================================
   Animated industry icons (each icon moves in its own way)
   ===================================================================== */
.x-anim { position: relative; overflow: visible; isolation: isolate; }
.x-anim::before { content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: 50%; padding: 2px; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--x-angle), transparent 0 55%, var(--x-coral-2), var(--x-violet), transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: x-angle 3s linear infinite; }
.x-ind-card:hover .x-anim::before, .x-anim.is-live::before { opacity: 1; }
.x-anim svg { transform-origin: 50% 50%; transform-box: fill-box; }
.x-anim-fx { position: absolute; pointer-events: none; opacity: 0; }

/* cart: rolls back and forth */
[data-anim="shopping-cart"] svg { animation: an-roll 2.6s ease-in-out infinite; }
@keyframes an-roll { 0%, 100% { transform: translateX(-2px) rotate(-3deg); } 50% { transform: translateX(2px) rotate(3deg); } }
/* truck: drives with a little bump and speed lines */
[data-anim="truck"] svg { animation: an-drive 1.4s ease-in-out infinite; }
@keyframes an-drive { 0%, 100% { transform: translate(-1px, 0); } 25% { transform: translate(1px, -1.5px); } 50% { transform: translate(2px, 0); } 75% { transform: translate(0, -1px); } }
[data-anim="truck"] .x-anim-fx { left: 9px; width: 8px; height: 2px; border-radius: 2px; background: var(--x-violet); animation: an-wind 1.4s linear infinite; }
[data-anim="truck"] .x-anim-fx:nth-of-type(1) { top: 22px; }
[data-anim="truck"] .x-anim-fx:nth-of-type(2) { top: 28px; width: 5px; animation-delay: .5s; }
@keyframes an-wind { 0% { opacity: 0; transform: translateX(6px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateX(-8px); } }
/* factory: smoke puffs rise from the chimney */
[data-anim="factory"] .x-anim-fx { left: 31px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: #b9c3e3; animation: an-smoke 2.4s ease-out infinite; }
[data-anim="factory"] .x-anim-fx:nth-of-type(2) { animation-delay: 1.2s; left: 34px; }
@keyframes an-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(4px, -14px) scale(1.6); } }
[data-anim="factory"] svg { animation: an-hum 2.4s ease-in-out infinite; }
@keyframes an-hum { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
/* calculator: key taps */
[data-anim="calculator"] svg { animation: an-tap 1.6s ease-in-out infinite; }
@keyframes an-tap { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(.88); } 80% { transform: scale(1.04); } }
[data-anim="calculator"] .x-anim-fx { right: 9px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--x-coral); animation: an-blip 1.6s ease-out infinite; }
[data-anim="calculator"] .x-anim-fx:nth-of-type(2) { display: none; }
@keyframes an-blip { 0%, 65% { opacity: 0; transform: scale(.4); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
/* pill: flips over */
[data-anim="pill"] svg { animation: an-flip 3s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes an-flip { 0%, 35% { transform: rotate(0); } 55%, 85% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
/* hard hat: nods */
[data-anim="hard-hat"] svg { animation: an-nod 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes an-nod { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-3deg); } }

/* stagger the cards so they don't all move in step; faster on hover */
.x-ind > :nth-child(2) .x-anim svg, .x-ind > :nth-child(2) .x-anim-fx { animation-delay: -.4s; }
.x-ind > :nth-child(3) .x-anim svg { animation-delay: -.9s; }
.x-ind > :nth-child(4) .x-anim svg { animation-delay: -.3s; }
.x-ind > :nth-child(5) .x-anim svg { animation-delay: -1.3s; }
.x-ind > :nth-child(6) .x-anim svg { animation-delay: -.7s; }
.x-ind-card:hover .x-anim svg, .x-ind-card:hover .x-anim-fx { animation-duration: .9s; }
.x-ind-card:hover [data-anim="pill"] svg, .x-ind-card:hover [data-anim="factory"] .x-anim-fx { animation-duration: 1.6s; }
.x-ind-card:hover .x-anim-fx { background: #fff; }
@media (prefers-reduced-motion: reduce) { .x-anim svg, .x-anim-fx, .x-anim::before { animation: none !important; } }

/* Colourful industry icons: each one gets its own colour */
[data-anim="shopping-cart"] { --c1: #34d399; --c2: #059669; --soft: #ecfdf5; --line: #c7f0dd; }
[data-anim="truck"] { --c1: #38bdf8; --c2: #0284c7; --soft: #f0f9ff; --line: #c6e6fa; }
[data-anim="factory"] { --c1: #fb923c; --c2: #ea580c; --soft: #fff7ed; --line: #fddcbf; }
[data-anim="calculator"] { --c1: #a78bfa; --c2: #7c3aed; --soft: #f5f3ff; --line: #e0d7fe; }
[data-anim="pill"] { --c1: #fb7185; --c2: #e11d48; --soft: #fff1f2; --line: #fdd0d7; }
[data-anim="hard-hat"] { --c1: #fbbf24; --c2: #d97706; --soft: #fffbeb; --line: #fbe3a8; }
.x-ind-card .x-anim { background: linear-gradient(135deg, #fff, var(--soft)); border-color: var(--line); color: var(--c2); box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--c2) 55%, transparent); }
.x-ind-card .x-anim::before { background: conic-gradient(from var(--x-angle), transparent 0 55%, var(--c1), var(--c2), transparent 100%); }
.x-ind-card:hover .x-anim { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; color: #fff; }
[data-anim="truck"] .x-anim-fx { background: var(--c1); }
[data-anim="factory"] .x-anim-fx { background: #fdba74; }
[data-anim="calculator"] .x-anim-fx { background: var(--c1); }
.x-ind-card:hover .x-anim-fx { background: #fff; }
.x-ind-card:hover { border-color: var(--line); }

/* Who it's for: 12 cards, 3 columns */
.x-ind-sub { margin-top: 0; max-width: 440px; }
.x-ind.x-ind-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .x-ind.x-ind-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .x-ind.x-ind-3 { grid-template-columns: 1fr; } }
.x-ind > :nth-child(7) .x-anim svg { animation-delay: -.5s; } .x-ind > :nth-child(8) .x-anim svg { animation-delay: -1.1s; }
.x-ind > :nth-child(9) .x-anim svg { animation-delay: -.2s; } .x-ind > :nth-child(10) .x-anim svg { animation-delay: -.8s; }
.x-ind > :nth-child(11) .x-anim svg { animation-delay: -1.4s; } .x-ind > :nth-child(12) .x-anim svg { animation-delay: -.6s; }

/* colours */
[data-anim="smartphone"] { --c1: #818cf8; --c2: #4f46e5; --soft: #eef2ff; --line: #d5dafd; }
[data-anim="shirt"] { --c1: #2dd4bf; --c2: #0d9488; --soft: #f0fdfa; --line: #c3eee6; }
[data-anim="gem"] { --c1: #e879f9; --c2: #c026d3; --soft: #fdf4ff; --line: #f3cdf8; }
[data-anim="wrench"] { --c1: #f87171; --c2: #dc2626; --soft: #fef2f2; --line: #fbd0d0; }
[data-anim="sprout"] { --c1: #a3e635; --c2: #65a30d; --soft: #f7fee7; --line: #dcf2b5; }
[data-anim="utensils"] { --c1: #22d3ee; --c2: #0891b2; --soft: #ecfeff; --line: #bdeef7; }

/* phone: buzzes, with signal arcs */
[data-anim="smartphone"] svg { animation: an-buzz 2.4s ease-in-out infinite; }
@keyframes an-buzz { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(-10deg); } 65% { transform: rotate(9deg); } 70% { transform: rotate(-7deg); } 75% { transform: rotate(5deg); } 80% { transform: rotate(0); } }
[data-anim="smartphone"] .x-anim-fx { top: 15px; width: 6px; height: 14px; border: 2px solid var(--c1); border-color: transparent var(--c1) transparent transparent; border-radius: 50%; animation: an-signal 2.4s ease-out infinite; }
[data-anim="smartphone"] .x-anim-fx:nth-of-type(1) { right: 6px; }
[data-anim="smartphone"] .x-anim-fx:nth-of-type(2) { left: 6px; border-color: transparent transparent transparent var(--c1); }
@keyframes an-signal { 0%, 55% { opacity: 0; } 65%, 80% { opacity: 1; } 100% { opacity: 0; } }
/* shirt: sways on its hanger */
[data-anim="shirt"] svg { animation: an-sway 2.8s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes an-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
/* gem: glints with sparkles */
[data-anim="gem"] svg { animation: an-glint 2.6s ease-in-out infinite; }
@keyframes an-glint { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(-6deg); } }
[data-anim="gem"] .x-anim-fx { width: 7px; height: 7px; background: var(--c1); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: an-twinkle 2.6s ease-in-out infinite; }
[data-anim="gem"] .x-anim-fx:nth-of-type(1) { top: 7px; right: 8px; }
[data-anim="gem"] .x-anim-fx:nth-of-type(2) { bottom: 9px; left: 8px; animation-delay: 1.3s; }
@keyframes an-twinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }
/* wrench: turns a bolt */
[data-anim="wrench"] svg { animation: an-turn 2s ease-in-out infinite; }
@keyframes an-turn { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-35deg); } 55% { transform: rotate(10deg); } 75% { transform: rotate(0); } }
/* sprout: grows */
[data-anim="sprout"] svg { animation: an-grow 2.8s cubic-bezier(.3, 1.4, .5, 1) infinite; transform-origin: 50% 100%; }
@keyframes an-grow { 0%, 10% { transform: scale(.55); } 45%, 85% { transform: scale(1.05); } 100% { transform: scale(.55); } }
/* utensils: clink */
[data-anim="utensils"] svg { animation: an-clink 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes an-clink { 0%, 50%, 100% { transform: rotate(0); } 60% { transform: rotate(-12deg); } 70% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
[data-anim="utensils"] .x-anim-fx { top: 9px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--c1); animation: an-blip 1.8s ease-out infinite; }
[data-anim="utensils"] .x-anim-fx:nth-of-type(2) { display: none; }
.x-ind-card:hover [data-anim="smartphone"] .x-anim-fx { border-right-color: #fff; }
.x-ind-card:hover [data-anim="smartphone"] .x-anim-fx:nth-of-type(2) { border-left-color: #fff; border-right-color: transparent; }
.x-ind-card:hover [data-anim="smartphone"] .x-anim-fx { background: transparent; }

/* =====================================================================
   Footer v2: dark, help strip, animated link arrows, glowing wordmark
   ===================================================================== */
.x-foot { position: relative; overflow: hidden; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 22px 22px, #060b20; border-top: 0; color: #a9b4d6; }
.x-foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--x-violet), var(--x-coral-2), transparent); }
.x-foot-glow { position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 80, 255, .28), transparent); pointer-events: none; }
.x-foot .x-wrap { position: relative; }

.x-foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(135deg, rgba(36, 66, 224, .22), rgba(124, 92, 255, .14)); border: 1px solid rgba(255, 255, 255, .1); }
.x-foot-cta-h { margin-top: 12px; font-family: Sora, sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.03em; color: #fff; }
.x-foot-cta-p { margin-top: 4px; font-size: 15px; color: #b6c2e6; }
.x-foot-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.x-foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 24px; }
.x-foot-about { margin-top: 18px; max-width: 380px; font-size: 14.5px; line-height: 1.7; }
.x-foot-contact { margin-top: 22px; display: grid; gap: 12px; font-size: 14px; }
.x-foot-contact li { display: flex; align-items: flex-start; gap: 12px; }
.x-foot-contact a { transition: color .2s; }
.x-foot-contact a:hover { color: #fff; }
.x-foot-ic { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #c4b5fd; margin-top: -6px; }
.x-foot-strong { font-weight: 700; color: #fff; word-spacing: 3px; }
.x-foot-h { font-family: Sora, sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.x-foot-links { margin-top: 18px; display: grid; gap: 4px; }
.x-foot-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 14.5px; transition: color .2s, transform .25s; }
.x-foot-links a svg { opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; color: var(--x-coral-2); }
.x-foot-links a:hover { color: #fff; transform: translateX(3px); }
.x-foot-links a:hover svg { opacity: 1; transform: none; }
.x-foot-social { margin-top: 22px; display: flex; gap: 8px; }
.x-foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #dfe6fb; transition: transform .2s, background-color .2s, box-shadow .2s; }
.x-foot-social a:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--x-royal), var(--x-violet)); box-shadow: 0 10px 24px -8px rgba(124, 92, 255, .8); }
.x-foot-rating { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.x-foot-rating b { color: #fff; }

/* Big wordmark */
.x-foot-word { margin: 12px 0 -18px; user-select: none; }
.x-foot-word svg { display: block; width: 100%; height: auto; overflow: visible; }
.x-foot-word text { font-family: Sora, sans-serif; font-weight: 800; font-size: 190px; letter-spacing: -8px; }
.x-word-base { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1.2; }
.x-word-draw { fill: none; stroke: rgba(160, 150, 255, .35); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: x-word-draw 4s ease-in-out forwards; }
.x-foot-word.is-in .x-word-draw { animation-play-state: running; }
@keyframes x-word-draw { to { stroke-dashoffset: 0; } }
.x-word-glow { fill: none; stroke: url(#xWordGlow); stroke-width: 1.6; opacity: 0; transition: opacity .3s; }
.x-foot-word:hover .x-word-glow { opacity: 1; }

.x-foot-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8390b8; }
.x-foot-legal { display: flex; gap: 20px; }
.x-foot-legal a:hover { color: #fff; }

@media (max-width: 1080px) { .x-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .x-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .x-foot-cta { margin-top: 40px; padding: 22px 18px; }
  .x-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 40px; }
  .x-foot-grid > :last-child { grid-column: 1 / -1; }
  .x-foot-word text { letter-spacing: -6px; }
  .x-foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .x-word-draw { animation: none; stroke-dashoffset: 0; } }
.x-word-draw { animation-play-state: paused; } .x-foot-word.is-in .x-word-draw { animation-play-state: running; }
/* wordmark v2: soft filled letters (no outline overlaps) + gradient light under the pointer */
.x-foot-word { margin: 18px 0 6px; }
.x-word-base { fill: rgba(255, 255, 255, .045); stroke: none; }
.x-word-draw { fill: url(#xWordFill); stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: x-word-in 1.6s ease-out forwards; animation-play-state: paused; }
.x-foot-word.is-in .x-word-draw { animation-play-state: running; }
@keyframes x-word-in { from { opacity: 0; transform: translateY(14px); } to { opacity: .16; transform: none; } }
.x-word-glow { fill: url(#xWordGlow); stroke: none; opacity: 0; transition: opacity .35s; }
.x-foot-word:hover .x-word-glow { opacity: .75; }
.x-foot-word { max-width: 720px; margin: 22px auto 10px; }

/* Add-on Store: highlighted top-level menu item */
nav[aria-label="Main"] .nav-link.nav-hl, nav[aria-label="Main"].has-pill .nav-link.nav-hl, nav[aria-label="Main"].has-pill .nav-link.nav-hl:hover {
  position: relative; overflow: hidden; gap: 6px; margin-inline: 4px; padding: 0 8px 0 13px; color: #fff;
  background: linear-gradient(135deg, #ff8f6b 0%, #ff6b45 55%, #f2553a 100%);
  box-shadow: 0 8px 18px -8px rgba(242, 85, 58, .75), inset 0 -4px 8px rgba(255, 255, 255, .15); }
nav[aria-label="Main"] .nav-link.nav-hl:hover { filter: brightness(1.06); }
nav[aria-label="Main"] .nav-link.nav-hl::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) -150% 0 / 250% 100% no-repeat; animation: x-glare 4.5s ease-in-out infinite; pointer-events: none; }
nav[aria-label="Main"] .nav-link.nav-hl::after { display: none; }
nav[aria-label="Main"] .nav-link.nav-hl.is-active { box-shadow: 0 0 0 3px rgba(255, 143, 107, .3), 0 8px 18px -8px rgba(242, 85, 58, .75); }
.nav-hl-n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); font-size: 11.5px; font-weight: 800; }
.mobile-link.mobile-hl { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #ff8f6b, #f2553a); }
.mobile-link.mobile-hl .nav-hl-n { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { nav[aria-label="Main"] .nav-link.nav-hl::before { animation: none; } }
/* keep the 7-item nav + CTA inside the header on laptop widths */
@media (min-width: 1024px) and (max-width: 1439px) { nav[aria-label="Main"] .nav-link { padding: 0 10px; } nav[aria-label="Main"] .nav-link.nav-hl { padding: 0 8px 0 11px; } }
@media (min-width: 1024px) and (max-width: 1359px) { nav[aria-label="Main"] .nav-link.nav-hl { padding-right: 12px; } .nav-hl .nav-hl-n { display: none; } }
@media (min-width: 1024px) and (max-width: 1179px) { nav[aria-label="Main"] .nav-link { padding: 0 7px; font-size: 13.5px; } nav[aria-label="Main"] .nav-link.nav-hl { margin-inline: 2px; } }
.x-cta-short { display: none; }
@media (min-width: 1024px) and (max-width: 1179px) { .x-cta-long { display: none; } .x-cta-short { display: inline; } .x-cta-nav > svg { display: none; } .x-cta-nav { padding-inline: 14px; } }
@media (min-width: 1024px) and (max-width: 1099px) { nav[aria-label="Main"] .nav-link { padding: 0 6px; } nav[aria-label="Main"] .nav-link.nav-hl { padding: 0 11px; } .nav-hl > svg { display: none; } }
/* floating capsule: room for the Add-on Store button */
#site-header.is-float .site-head { width: min(1240px, calc(100% - 24px)); }
@media (min-width: 1440px) { #site-header.is-float nav[aria-label="Main"] .nav-link { padding: 0 11px; } #site-header.is-float nav[aria-label="Main"] .nav-link.nav-hl { padding: 0 8px 0 12px; } }

/* ---------- Nav pill: water-drop motion ---------- */
.nav-pill { width: auto; transform: translateY(-50%);
  background: radial-gradient(120% 90% at 28% 18%, rgba(255, 255, 255, .95) 0 18%, transparent 55%), #eef1ff;
  box-shadow: inset 0 -3px 6px rgba(84, 104, 220, .14), inset 0 2px 3px rgba(255, 255, 255, .9), 0 6px 14px -8px rgba(36, 66, 224, .45);
  transition: left .42s cubic-bezier(.5, 0, .2, 1), right .42s cubic-bezier(.5, 0, .2, 1), opacity .2s; }
.nav-pill.to-r { transition: right .26s cubic-bezier(.3, .7, .3, 1), left .52s cubic-bezier(.65, 0, .25, 1) .05s, opacity .2s; }
.nav-pill.to-l { transition: left .26s cubic-bezier(.3, .7, .3, 1), right .52s cubic-bezier(.65, 0, .25, 1) .05s, opacity .2s; }
.nav-pill.no-anim { transition: none; }
.nav-pill.is-settle { animation: x-drop-settle .7s cubic-bezier(.3, .6, .3, 1) .26s both; }
@keyframes x-drop-settle {
  0% { scale: 1 1; }
  25% { scale: 1.05 .84; }
  50% { scale: .97 1.07; }
  72% { scale: 1.02 .97; }
  100% { scale: 1 1; }
}
#site-header.is-float .nav-pill { background: radial-gradient(120% 90% at 28% 18%, #fff 0 20%, transparent 60%), linear-gradient(180deg, #fff, #f3f5ff);
  box-shadow: inset 0 -3px 6px rgba(84, 104, 220, .12), inset 0 2px 3px #fff, 0 6px 14px -7px rgba(11, 21, 48, .35); }

/* active dot falls in like a drip */
.nav-link.is-active::after { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: x-drip .9s cubic-bezier(.3, .7, .3, 1) .2s both; }
@keyframes x-drip {
  0% { transform: translate(-50%, -22px) scale(.3, .6); opacity: 0; }
  45% { transform: translate(-50%, 1px) scale(.8, 1.4); opacity: 1; }
  62% { transform: translate(-50%, 0) scale(1.5, .6); }
  80% { transform: translate(-50%, -1px) scale(.9, 1.15); }
  100% { transform: translate(-50%, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .nav-pill, .nav-pill.to-r, .nav-pill.to-l { transition: none; } .nav-pill.is-settle, .nav-link.is-active::after { animation: none; } }
/* only the drop is drawn while it is active (no second pill left behind on the current page) */
#site-header nav[aria-label="Main"].has-pill .nav-link.is-active:not(.nav-hl) { background: transparent; }

/* ---------- Nav pill v3: real water (goo-filtered liquid body + glossy surface + ripple) ---------- */
.nav-goo { position: absolute; inset: -10px 0; z-index: 0; pointer-events: none; filter: url(#xGoo); opacity: 0; transition: opacity .25s; }
nav[aria-label="Main"].has-pill .nav-goo, nav[aria-label="Main"].has-pill .nav-shine { opacity: 1; }
nav[aria-label="Main"] .nav-goo .nav-pill { top: 50%; height: 40px; opacity: 1; box-shadow: none; border-radius: 999px;
  background: linear-gradient(180deg, #e3f5ff 0%, #b9e3ff 100%); }
#site-header.is-float nav[aria-label="Main"] .nav-goo .nav-pill { height: 38px; background: linear-gradient(180deg, #ecf8ff 0%, #c4e8ff 100%); }
.nav-drip { position: absolute; top: 50%; left: var(--cx, 0); border-radius: 50%; background: #c9eaff; transform: translate(-50%, -50%); }
.nav-drip.is-a { width: 24px; height: 24px; transition: left .62s cubic-bezier(.55, 0, .25, 1) .04s; }
.nav-drip.is-b { width: 15px; height: 15px; transition: left .85s cubic-bezier(.55, 0, .25, 1) .08s; }

/* glossy water surface + lens edge, follows the body exactly */
.nav-shine { position: absolute; top: 50%; height: 40px; border-radius: 999px; transform: translateY(-50%); pointer-events: none; z-index: 0; opacity: 0;
  background:
    radial-gradient(60% 55% at 30% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 50% at 78% 88%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 -6px 10px -4px rgba(40, 140, 230, .35), inset 0 3px 4px -1px rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(120, 190, 255, .45), 0 8px 18px -8px rgba(30, 120, 220, .55);
  transition: left .42s cubic-bezier(.5, 0, .2, 1), right .42s cubic-bezier(.5, 0, .2, 1), opacity .25s; }
#site-header.is-float .nav-shine { height: 38px; }
.nav-shine.to-r { transition: right .26s cubic-bezier(.3, .7, .3, 1), left .52s cubic-bezier(.65, 0, .25, 1) .05s, opacity .25s; }
.nav-shine.to-l { transition: left .26s cubic-bezier(.3, .7, .3, 1), right .52s cubic-bezier(.65, 0, .25, 1) .05s, opacity .25s; }
.nav-shine.is-settle { animation: x-drop-settle .7s cubic-bezier(.3, .6, .3, 1) .26s both; }
/* ripple ring when the drop lands */
.nav-shine::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid rgba(90, 175, 255, .55); opacity: 0; }
.nav-shine.is-settle::after { animation: x-ripple-ring .8s ease-out .3s; }
@keyframes x-ripple-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.45); } }
nav[aria-label="Main"].pill-snap .nav-pill, nav[aria-label="Main"].pill-snap .nav-shine, nav[aria-label="Main"].pill-snap .nav-drip { transition: none; }

/* the current page's dot becomes a little water drop too */
.nav-link.is-active::after { background: radial-gradient(circle at 35% 30%, #fff 0 18%, #5cb8ff 45%, #2a86e8 100%); width: 6px; height: 7px; }
@media (prefers-reduced-motion: reduce) { .nav-drip, .nav-shine, .nav-shine.to-r, .nav-shine.to-l { transition: none; } .nav-shine.is-settle, .nav-shine.is-settle::after { animation: none; } }
.nav-drip.is-a { transition: left .8s cubic-bezier(.7, 0, .2, 1) .06s; }
.nav-drip.is-b { transition: left 1.05s cubic-bezier(.75, 0, .2, 1) .1s; }
.nav-drip { background: #a6dbff; }
.nav-drip.is-a { width: 30px; height: 30px; }
.nav-drip.is-b { width: 22px; height: 22px; }
