/* Nisaab — Emerald & Midnight homepage experience (loaded on the front page only). */
:root { --mint: #A7F3D0; --teal: #14B8A6; --em: #059669; --em-d: #047857; --mid: #062B2B; --elev: #103B37; --dtext: #D1E9E3; --ink: #102E2A; --mut: #45645B; --line: #D6E9DE; }

/* ---------- Dark cinematic sections ---------- */
.x-dark { position: relative; isolation: isolate; overflow: hidden; color: var(--dtext); }
.x-dark::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(167,243,208,.20) 0%, rgba(20,184,166,.08) 40%, transparent 72%); }
.x-dark h1, .x-dark h2, .x-dark h3 { color: #fff; }
.x-dark p, .x-dark li { color: var(--dtext); }
.x-dark .sc-eyebrow { background: rgba(167,243,208,.12); color: var(--mint); border: 1px solid rgba(167,243,208,.22); }
.x-mint { color: var(--mint) !important; }
.x-grid-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(167,243,208,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(167,243,208,.06) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }

/* ---------- Hero ---------- */
.x-hero { min-height: min(100vh, 980px); display: flex; flex-direction: column; justify-content: center; }
.x-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.x-hero .x-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34rem; }
.x-particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.x-btn-mint .wp-block-button__link { background: var(--mint); color: var(--mid); box-shadow: 0 0 0 0 rgba(167,243,208,.5), 0 18px 40px -18px rgba(167,243,208,.8); }
.x-btn-mint .wp-block-button__link:hover { background: #fff; color: var(--mid); }
.x-btn-ghost .wp-block-button__link { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(167,243,208,.35); }
.x-btn-ghost .wp-block-button__link:hover { background: rgba(167,243,208,.14); color: #fff; }
.x-support { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--dtext); }
.x-support::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* 3D product ecosystem */
.x3d { position: relative; perspective: 1700px; perspective-origin: 50% 40%; aspect-ratio: 1.18; width: 100%; max-width: 680px; margin-inline: auto; }
.x3d__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(9deg + var(--ry, 0deg))) rotateY(calc(-16deg + var(--rx, 0deg))); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.x3d__main { position: absolute; left: 6%; top: 10%; width: 86%; transform: translateZ(0); }
.x3d__card { position: absolute; transform-style: preserve-3d; }
.x3d__card > .xg { transform: translateZ(var(--z, 80px)); }
.x3d .c1 { left: -4%; top: 2%; --z: 120px; } .x3d .c2 { right: -6%; top: 14%; --z: 160px; } .x3d .c3 { right: -2%; bottom: 6%; --z: 110px; }
.x3d .c4 { left: -8%; bottom: 14%; --z: 140px; } .x3d .c5 { left: 32%; bottom: -4%; --z: 190px; }
.x3d__floor { position: absolute; left: 0; right: 0; bottom: -6%; height: 40%; transform: rotateX(80deg) translateZ(-120px); background: radial-gradient(ellipse, rgba(20,184,166,.35), transparent 65%); filter: blur(6px); }

/* Emerald glass card */
.xg { background: linear-gradient(160deg, rgba(16,59,55,.82), rgba(6,43,43,.78)); border: 1px solid rgba(167,243,208,.22); border-radius: 16px; padding: .8rem .95rem;
  box-shadow: inset 0 1px 0 rgba(167,243,208,.22), 0 24px 50px -20px rgba(0,0,0,.65), 0 0 30px -12px rgba(20,184,166,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: .78rem; line-height: 1.3; min-width: 150px; }
.xg b { display: block; font-size: 1.15rem; font-family: var(--wp--preset--font-family--display); color: #fff; }
.xg small { color: var(--dtext); display: block; font-size: .7rem; }
.xg .xg-row { display: flex; align-items: center; gap: .55rem; }
.xg .xg-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(167,243,208,.14); font-size: .95rem; flex: none; }
.xg-ring { --p: 94; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); display: grid; place-items: center; flex: none; }
.xg-ring::after { content: attr(data-v); width: 36px; height: 36px; border-radius: 50%; background: var(--mid); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.xg-bar { height: 6px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: .45rem; }
.xg-bar i { display: block; height: 100%; width: var(--w, 70%); background: linear-gradient(90deg, var(--em), var(--mint)); border-radius: inherit; }

/* ---------- Illustrative app UI (light, readable) ---------- */
.ui { background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 80px -36px rgba(0,0,0,.6), 0 0 0 1px rgba(167,243,208,.15); overflow: hidden; color: var(--ink); font-size: .74rem; line-height: 1.3; text-align: left; }
.x-light .ui { box-shadow: 0 30px 60px -34px rgba(6,43,43,.45); }
.ui-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .7rem; background: #EEF7F2; border-bottom: 1px solid var(--line); }
.ui-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; } .ui-bar i:nth-child(2) { background: #fbbf24; } .ui-bar i:nth-child(3) { background: #34d399; }
.ui-bar span { margin-left: auto; margin-right: auto; font-size: .64rem; color: var(--mut); background: #fff; padding: .12rem .8rem; border-radius: 99px; border: 1px solid var(--line); }
.ui-body { display: grid; grid-template-columns: 22% 1fr; min-height: 100%; }
.ui-side { background: linear-gradient(180deg, var(--mid), var(--elev)); color: var(--dtext); padding: .7rem .55rem; display: grid; align-content: start; gap: .2rem; font-size: .66rem; }
.ui-side b { color: #fff; font-family: var(--wp--preset--font-family--display); font-size: .82rem; margin: 0 0 .5rem .3rem; display: flex; gap: .35rem; align-items: center; }
.ui-side b::before { content: "✦"; color: var(--mint); }
.ui-side span { padding: .32rem .45rem; border-radius: 7px; } .ui-side span.on { background: rgba(167,243,208,.14); color: #fff; font-weight: 600; }
.ui-main { padding: .8rem .9rem; display: grid; gap: .6rem; background: #F7FCF9; }
.ui-h { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .95rem; color: var(--ink); }
.ui-sub { color: var(--mut); font-size: .66rem; }
.ui-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.ui-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .55rem; }
.ui-kpi small { color: var(--mut); font-size: .6rem; display: block; } .ui-kpi b { font-size: .95rem; font-family: var(--wp--preset--font-family--display); }
.ui-kpi .xg-bar { background: #E3F2EA; height: 4px; margin-top: .3rem; }
.ui-kpi.dark { background: var(--mid); color: #fff; border-color: var(--mid); } .ui-kpi.dark small { color: var(--mint); }
.ui-row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; }
.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .6rem; }
.ui-card > b { font-size: .7rem; display: block; margin-bottom: .4rem; }
.ui-chart { display: flex; align-items: end; gap: 6%; height: 70px; padding-top: .2rem; }
.ui-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal), var(--em)); height: var(--h); }
.ui-chart i.hi { background: linear-gradient(180deg, var(--mint), #6EE7B7); }
.ui-alert { display: block; border-radius: 7px; padding: .3rem .45rem; margin-bottom: .3rem; font-size: .62rem; }
.ui-alert.r { background: #FEF2F2; color: #991B1B; } .ui-alert.a { background: #FFFBEB; color: #92400E; } .ui-alert.g { background: #ECFDF5; color: #065F46; }
.ui-tag { display: inline-block; padding: .1rem .45rem; border-radius: 99px; font-size: .6rem; font-weight: 700; background: #DCF5EA; color: #065F46; }
.ui-tag.warn { background: #FEF3C7; color: #92400E; } .ui-tag.bad { background: #FEE2E2; color: #991B1B; } .ui-tag.dark { background: var(--mid); color: var(--mint); }
.ui-table { width: 100%; border-collapse: collapse; font-size: .68rem; }
.ui-table th { text-align: left; color: var(--mut); font-weight: 600; font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .4rem; border-bottom: 1px solid var(--line); }
.ui-table td { padding: .38rem .4rem; border-bottom: 1px solid #EEF6F1; }
.ui-av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #DCF5EA; color: #065F46; font-weight: 700; font-size: .58rem; margin-right: .35rem; vertical-align: middle; }
.x-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--mut); margin-top: .7rem; }
.x-label::before { content: "◇"; color: var(--em); }
.x-dark .x-label { color: var(--dtext); } .x-dark .x-label::before { color: var(--mint); }

/* ---------- Problem → connected ---------- */
.x-hub { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
.x-hub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.x-hub .ln { stroke: rgba(167,243,208,.55); stroke-width: 1.6; fill: none; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.x-hub .ln.br { stroke: rgba(248,113,113,.45); stroke-dasharray: 4 7; stroke-dashoffset: 0; transition: opacity .6s; }
.x-hub.is-on .ln { stroke-dashoffset: 0; } .x-hub.is-on .ln.br { opacity: 0; }
.x-node { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); left: var(--x0); top: var(--y0); transition: left 1.1s cubic-bezier(.2,.7,.2,1), top 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); white-space: nowrap; }
.x-hub.is-on .x-node { left: var(--x1); top: var(--y1); --rot: 0deg; }
.x-node .xg { min-width: 0; padding: .55rem .75rem; font-weight: 600; font-size: .78rem; }
.x-hub .x-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.6); opacity: .25; transition: all .9s .5s cubic-bezier(.2,.7,.2,1); width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--em-d), var(--em) 50%, var(--teal)); box-shadow: 0 0 0 10px rgba(167,243,208,.08), 0 0 70px rgba(20,184,166,.55); color: #fff; font-family: var(--wp--preset--font-family--display); font-weight: 700; text-align: center; font-size: .95rem; }
.x-hub.is-on .x-core { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.x-pains { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
.x-pain { padding: .85rem 1rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(167,243,208,.14); font-size: .9rem; }
.x-pain b { display: block; color: #fff; margin-bottom: .15rem; }

/* ---------- Tabs (platform + roles) ---------- */
.x-tabs { display: grid; gap: 1.5rem; }
.x-tablist { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.x-tab { font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; padding: .62rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; gap: .45rem; align-items: center; transition: all .2s; }
.x-tab:hover { border-color: var(--em); color: var(--em-d); }
.x-tab[aria-selected="true"] { background: var(--mid); border-color: var(--mid); color: #fff; box-shadow: 0 10px 24px -12px rgba(6,43,43,.7); }
.x-dark .x-tab { background: rgba(255,255,255,.05); border-color: rgba(167,243,208,.2); color: var(--dtext); }
.x-dark .x-tab[aria-selected="true"] { background: var(--mint); border-color: var(--mint); color: var(--mid); }
.x-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.x-panel[hidden] { display: none; }
.x-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: .2rem 0 .5rem; }
.x-panel .x-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--em-d); }
.x-dark .x-panel .x-kicker { color: var(--mint); }
.x-panel ul { padding-left: 0; list-style: none; margin: .8rem 0 0; display: grid; gap: .45rem; }
.x-panel li { padding-left: 1.6rem; position: relative; }
.x-panel li::before { content: ""; position: absolute; left: 0; top: .38em; width: 1rem; height: 1rem; border-radius: 50%; background: #DCF5EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.5L12 5.4' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.x-dark .x-panel li::before { background-color: rgba(167,243,208,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.5L12 5.4' fill='none' stroke='%23A7F3D0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) { .x-panel:not([hidden]) { animation: x-in .5s cubic-bezier(.2,.7,.2,1); } @keyframes x-in { from { opacity: 0; transform: translateY(12px); } } }

/* ---------- Feature showcase rows ---------- */
.x-show .wp-block-columns { align-items: center; }
.x-tilt { transform: perspective(1400px) rotateY(var(--ty, -6deg)) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.x-tilt:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.x-flip .x-tilt { --ty: 6deg; }

/* Attendance + timetable */
.x-att td:last-child { text-align: right; }
.x-pa { display: inline-flex; gap: .2rem; }
.x-pa i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .6rem; font-weight: 800; background: #F1F5F3; color: #94A3B8; }
.x-pa i.p { background: #DCF5EA; color: #065F46; } .x-pa i.a { background: #FEE2E2; color: #991B1B; } .x-pa i.l { background: #FEF3C7; color: #92400E; }
.x-tt { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 3px; font-size: .6rem; }
.x-tt div { padding: .32rem .25rem; border-radius: 6px; background: #F1F8F4; text-align: center; }
.x-tt .h { background: transparent; color: var(--mut); font-weight: 700; }
.x-tt .m { background: #DCF5EA; color: #065F46; } .x-tt .e { background: #E0F2FE; color: #075985; } .x-tt .s { background: #FEF3C7; color: #92400E; }
.x-tt .sub { background: var(--mid); color: var(--mint); font-weight: 700; position: relative; }

/* Learning workflow */
.x-flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; position: relative; counter-reset: st; }
.x-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px; background: var(--line); }
.x-flow::after { content: ""; position: absolute; left: 10%; top: 26px; height: 2px; width: 80%; background: linear-gradient(90deg, var(--em), var(--teal)); transform-origin: left; transform: scaleX(var(--fp, 0)); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.is-in .x-flow, .x-flow.is-in { --fp: 1; }
.x-step { position: relative; z-index: 1; text-align: center; }
.x-step .x-dot { width: 52px; height: 52px; margin: 0 auto .6rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(6,43,43,.5); }
.x-step b { display: block; font-size: .92rem; }
.x-step small { color: var(--mut); font-size: .78rem; }
.x-step .ui { margin-top: .7rem; padding: .55rem; font-size: .66rem; }

/* Report card / gradebook */
.x-rc { display: grid; grid-template-columns: 1.25fr 1fr; gap: .7rem; }
.x-grade { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.8rem; color: var(--em-d); line-height: 1; }

/* Finance voucher → receipt */
.x-fin { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.x-voucher { border: 1.5px dashed #9FD8BD; border-radius: 14px; background: #fff; padding: 1rem; font-size: .78rem; position: relative; }
.x-voucher h4 { margin: 0 0 .5rem; font-size: .95rem; }
.x-voucher .ln { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px dotted var(--line); }
.x-voucher .tot { font-weight: 800; font-size: .95rem; border: 0; padding-top: .5rem; }
.x-stamp { position: absolute; right: 12px; top: 40%; transform: rotate(-14deg) scale(1.6); opacity: 0; border: 2.5px solid var(--em); color: var(--em-d); font-weight: 900; letter-spacing: .1em; padding: .25rem .6rem; border-radius: 8px; font-size: .8rem; background: rgba(236,253,245,.9); transition: all .45s cubic-bezier(.3,1.6,.5,1) .9s; }
.is-in .x-stamp { opacity: 1; transform: rotate(-14deg) scale(1); }
.x-fin .x-arrow { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--mid); color: var(--mint); display: grid; place-items: center; font-weight: 800; z-index: 2; }

/* Phone frame */
.x-phone { width: min(290px, 100%); margin-inline: auto; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #1d4d47, #062B2B); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(167,243,208,.25); }
.x-phone .scr { border-radius: 26px; background: #F3FBF6; overflow: hidden; min-height: 520px; padding: .9rem .75rem; display: grid; align-content: start; gap: .55rem; font-size: .75rem; color: var(--ink); }
.x-phone .notch { width: 90px; height: 18px; border-radius: 99px; background: #062B2B; margin: -.3rem auto .3rem; }
.x-msg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .7rem; box-shadow: 0 8px 18px -14px rgba(6,43,43,.5); }
.x-msg b { display: block; font-size: .78rem; } .x-msg small { color: var(--mut); font-size: .66rem; }
.x-msg.dark { background: var(--mid); color: #fff; border-color: var(--mid); } .x-msg.dark small { color: var(--mint); }
.is-in .x-msg { animation: x-msg .55s cubic-bezier(.2,.7,.2,1) both; }
.is-in .x-msg:nth-child(3) { animation-delay: .15s } .is-in .x-msg:nth-child(4) { animation-delay: .3s } .is-in .x-msg:nth-child(5) { animation-delay: .45s } .is-in .x-msg:nth-child(6) { animation-delay: .6s } .is-in .x-msg:nth-child(7) { animation-delay: .75s }
@keyframes x-msg { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* Assistant chat */
.x-chat { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); overflow: hidden; color: var(--ink); max-width: 480px; margin-inline: auto; }
.x-chat-h { display: flex; gap: .6rem; align-items: center; padding: .75rem 1rem; background: linear-gradient(135deg, var(--mid), var(--elev)); color: #fff; font-weight: 700; font-size: .9rem; }
.x-chat-h i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(167,243,208,.16); font-style: normal; color: var(--mint); }
.x-chat-h small { display: block; font-weight: 500; color: var(--dtext); font-size: .7rem; }
.x-langs { margin-left: auto; display: flex; gap: .25rem; }
.x-langs span { font-size: .66rem; padding: .15rem .45rem; border-radius: 99px; border: 1px solid rgba(167,243,208,.3); color: var(--dtext); }
.x-langs span.on { background: var(--mint); color: var(--mid); border-color: var(--mint); }
.x-chat-b { padding: 1rem; display: grid; gap: .55rem; min-height: 270px; align-content: start; background: #F7FCF9; }
.x-bub { max-width: 82%; padding: .55rem .8rem; border-radius: 14px; font-size: .85rem; line-height: 1.45; animation: x-msg .45s cubic-bezier(.2,.7,.2,1) both; }
.x-bub.u { justify-self: end; background: var(--mid); color: #fff; border-bottom-right-radius: 4px; }
.x-bub.b { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.x-bub[dir="rtl"] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", var(--wp--preset--font-family--body); line-height: 2; }
.x-bub.u[dir="rtl"] { justify-self: start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.x-bub.b[dir="rtl"] { justify-self: end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.x-quick { display: flex; flex-wrap: wrap; gap: .35rem; }
.x-quick span { font-size: .72rem; padding: .3rem .6rem; border-radius: 99px; background: #DCF5EA; color: #065F46; font-weight: 600; }
.x-typing { display: inline-flex; gap: 4px; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; justify-self: start; }
.x-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--em); animation: x-dot 1s infinite; } .x-typing i:nth-child(2) { animation-delay: .15s } .x-typing i:nth-child(3) { animation-delay: .3s }
@keyframes x-dot { 50% { transform: translateY(-4px); opacity: .4; } }

/* Live learning */
.x-live { display: grid; gap: .7rem; }
.x-switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .82rem; }
.x-switch i { width: 42px; height: 24px; border-radius: 99px; background: #CBD5E1; position: relative; transition: background .4s .8s; }
.x-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .4s .8s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.is-in .x-switch i { background: var(--em); } .is-in .x-switch i::after { transform: translateX(18px); }
.x-join { display: inline-block; padding: .4rem .9rem; border-radius: 99px; background: var(--em-d); color: #fff; font-weight: 700; font-size: .72rem; }

/* Reporting composition */
.x-report { position: relative; }
.x-report .x-float { position: absolute; }
.x-exports { display: flex; gap: .4rem; flex-wrap: wrap; }
.x-exports span { padding: .35rem .7rem; border-radius: 9px; font-weight: 700; font-size: .68rem; border: 1px solid var(--line); background: #fff; }
.x-exports span::before { margin-right: .3rem; } .x-exports .pdf::before { content: "📄"; } .x-exports .xls::before { content: "📊"; } .x-exports .csv::before { content: "🗂️"; }
.x-donut { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--em) 0 62%, var(--teal) 62% 84%, #A7F3D0 84% 100%); display: grid; place-items: center; margin: auto; }
.x-donut::after { content: "Rs 1.4M"; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--ink); }
.x-line { width: 100%; height: 80px; }
.x-line path.l { fill: none; stroke: var(--em); stroke-width: 2.5; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1) .2s; }
.is-in .x-line path.l { stroke-dashoffset: 0; }

/* Product tour teaser: fanned screens */
.x-fan { position: relative; height: 380px; perspective: 1600px; }
.x-fan .ui { position: absolute; width: 58%; left: 21%; top: 8%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.x-fan .f1 { transform: translateX(-46%) rotateY(28deg) translateZ(-120px) scale(.9); }
.x-fan .f3 { transform: translateX(46%) rotateY(-28deg) translateZ(-120px) scale(.9); }
.x-fan .f2 { z-index: 2; transform: translateZ(40px); }
.x-fan:hover .f1 { transform: translateX(-56%) rotateY(32deg) translateZ(-140px) scale(.9); } .x-fan:hover .f3 { transform: translateX(56%) rotateY(-32deg) translateZ(-140px) scale(.9); }

/* Final CTA 3D */
.x-cta3d { position: absolute; inset: 0; z-index: -1; perspective: 1400px; pointer-events: none; opacity: .55; }
.x-cta3d .xg { position: absolute; width: 190px; }
.x-cta3d .q1 { left: 6%; top: 18%; transform: rotateY(28deg) rotateX(8deg); } .x-cta3d .q2 { right: 6%; top: 24%; transform: rotateY(-28deg) rotateX(8deg); }
.x-cta3d .q3 { left: 14%; bottom: 10%; transform: rotateY(20deg) rotateX(-6deg); } .x-cta3d .q4 { right: 12%; bottom: 12%; transform: rotateY(-22deg) rotateX(-6deg); }

/* ---------- Entrance sequence + motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sc-nav { animation: x-down .7s cubic-bezier(.2,.7,.2,1) both; }
  .x-hero .sc-eyebrow { animation: x-up .6s .15s cubic-bezier(.2,.7,.2,1) both; }
  .x-hero h1 { animation: x-h1 .9s .1s cubic-bezier(.2,.7,.2,1) both; }
  .x-hero .x-lead { animation: x-up .7s .45s cubic-bezier(.2,.7,.2,1) both; }
  .x-hero .wp-block-buttons, .x-hero .x-support { animation: x-up .7s 1.15s cubic-bezier(.2,.7,.2,1) both; }
  .x3d__main { animation: x-enter 1.1s .55s cubic-bezier(.2,.7,.2,1) both; }
  .x3d__card { animation: x-card .8s cubic-bezier(.2,.8,.3,1.15) both; }
  .x3d .c1 { animation-delay: 1.05s } .x3d .c2 { animation-delay: 1.2s } .x3d .c3 { animation-delay: 1.35s } .x3d .c4 { animation-delay: 1.5s } .x3d .c5 { animation-delay: 1.65s }
  .x3d__card > .xg { animation: x-bob 7s ease-in-out infinite; }
  .x3d .c2 > .xg { animation-delay: -2s } .x3d .c3 > .xg { animation-delay: -4s } .x3d .c4 > .xg { animation-delay: -1s } .x3d .c5 > .xg { animation-delay: -3s }
  .x-hero .x-dark-orb { animation: x-orb 16s ease-in-out infinite alternate; }
  @keyframes x-down { from { opacity: 0; transform: translateY(-16px); } }
  @keyframes x-up { from { opacity: 0; transform: translateY(16px); } }
  @keyframes x-h1 { from { transform: translateY(26px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10% 0); } }
  @keyframes x-enter { from { opacity: 0; transform: translateZ(-260px) translateY(40px) rotateX(14deg); } }
  @keyframes x-card { from { opacity: 0; transform: translateZ(-120px) scale(.85); } }
  @keyframes x-bob { 0%, 100% { transform: translateZ(var(--z)) translateY(0); } 50% { transform: translateZ(var(--z)) translateY(-10px); } }
}
@media (prefers-reduced-motion: reduce) { .x3d__stage { transition: none; } .x-hub .x-node { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .x-panel { grid-template-columns: 1fr; }
  .x-flow { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 1.4rem; } .x-flow::before, .x-flow::after { display: none; }
  .x-fin { grid-template-columns: 1fr; } .x-fin .x-arrow { display: none; }
  .x-rc { grid-template-columns: 1fr; }
  .x-fan { height: 300px; } .x-fan .ui { width: 80%; left: 10%; } .x-fan .f1, .x-fan .f3 { display: none; }
}
@media (max-width: 781px) {
  .x-hero { min-height: 0; }
  .x3d { perspective: none; aspect-ratio: auto; }
  .x3d__stage { position: relative; transform: none !important; }
  .x3d__main { position: relative; left: 0; top: 0; width: 100%; }
  .x3d__card { display: none; } .x3d .c2, .x3d .c5 { display: block; } .x3d .c2 { right: -2%; top: -8%; } .x3d .c5 { left: 4%; bottom: -10%; }
  .x3d__card > .xg { transform: none !important; }
  .x-pains { grid-template-columns: 1fr; }
  .ui-kpis { grid-template-columns: repeat(2, 1fr); }
  .ui-body { grid-template-columns: 1fr; } .ui-side { display: none; }
  .x-tilt, .x-tilt:hover { transform: none; }
  .x-tablist { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; } .x-tab { flex: none; }
  .x-hub { max-width: 380px; } .x-node .xg { font-size: .7rem; padding: .45rem .6rem; }
  .x-cta3d { display: none; }
}

/* ---------- Layout fixes (v2.0.1) ---------- */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.is-layout-constrained > .x-tabs, .is-layout-constrained > .x-fan { max-width: var(--wp--style--global--wide-size) !important; width: 100%; }
.is-layout-constrained > .x-cta3d, .is-layout-constrained > .x-particles, .is-layout-constrained > .x-grid-bg { max-width: none !important; margin: 0 !important; }
.x-dark .has-muted-color, .x-dark .sc-muted { color: var(--dtext) !important; }
.x-dark:has(.x-cta3d) { padding-top: clamp(5rem, 10vw, 8rem) !important; padding-bottom: clamp(5rem, 10vw, 8rem) !important; }
.x-hero .sc-eyebrow { font-size: .72rem; }
/* tighter 3D composition */
.x3d { aspect-ratio: 1.42; }
.x3d__main { top: 14%; left: 7%; width: 84%; }
.x3d .c1 { left: -3%; top: 3%; } .x3d .c2 { right: -5%; top: 8%; } .x3d .c3 { right: -4%; bottom: 8%; }
.x3d .c4 { left: -7%; bottom: 14%; } .x3d .c5 { left: 34%; bottom: 0%; }
.x-hero .x-label { display: block; text-align: center; margin-top: 1.4rem; }
/* nav on the dark hero */
.home .sc-header:not(.is-scrolled) .sc-nav { background: rgba(6,43,43,.45); border-color: rgba(167,243,208,.2); }
.home .sc-header:not(.is-scrolled) .sc-logo, .home .sc-header:not(.is-scrolled) .wp-block-navigation a, .home .sc-header:not(.is-scrolled) .wp-block-navigation__responsive-container-open { color: #fff; }
.home .sc-header:not(.is-scrolled) .sc-btn-sm .wp-block-button__link { background: var(--mint); color: var(--mid); }
@media (max-width: 781px) {
  .x3d .c2, .x3d .c5 { display: none; }
  .x-node .xg { white-space: normal; max-width: 112px; text-align: center; font-size: .66rem; }
  .x-hub .x-core { width: 96px; height: 96px; font-size: .8rem; }
}
.x-node { width: max-content; }
@media (max-width: 781px) {
  .x-hub.is-on .x-node { left: calc(50% + (var(--x1) - 50%) * .78); top: calc(50% + (var(--y1) - 50%) * .9); }
  .x-node .xg { white-space: nowrap; max-width: none; font-size: .64rem; padding: .4rem .55rem; }
}
.x-node { transform: translate(-50%, -50%) rotate(var(--r0, 0deg)); }
.x-hub.is-on .x-node { transform: translate(-50%, -50%); }
@media (max-width: 900px) { .x-panel { grid-template-columns: minmax(0, 1fr); } .x-tabs { min-width: 0; } }
.x-tabs { grid-template-columns: minmax(0, 1fr); } .x-tablist { min-width: 0; }
