/* A9X LABS — CONTACT · "DIRECT LINE" (L127)
   Luxury contact + sales live-chat intake. Mobile-first, RTL, light/dark. */

.ct {
    --ct-ink: #eef2ff; --ct-ink-2: #b9c4de; --ct-ink-3: #7e8aa8;
    --ct-line: rgba(126, 158, 255, .14); --ct-line-2: rgba(126, 158, 255, .26);
    --ct-cyan: #22d3ee; --ct-violet: #7c5cff; --ct-magenta: #e879f9;
    --ct-grad: linear-gradient(100deg, #8fd6ff, #7c5cff 46%, #e879f9);
    --ct-mono: 'JetBrains Mono', ui-monospace, monospace;
    --ct-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    position: relative; min-width: 0; max-width: 100%; color: var(--ct-ink);
    font-family: var(--ct-ui); -webkit-font-smoothing: antialiased;
}
html[lang="ar"] .ct { --ct-ui: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
.ct *, .ct *::before, .ct *::after { box-sizing: border-box; }
.ct .wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 3.4vw, 44px); }

.ct [data-ct-reveal] { opacity: 0; translate: 0 16px; }
.ct.ct-armed [data-ct-reveal] { transition: opacity .7s ease, translate .65s cubic-bezier(.16,1,.3,1); }
.ct [data-ct-reveal].is-in { opacity: 1; translate: 0; }

/* hero */
.ct-hero { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); align-items: center;
    gap: clamp(24px,4.4vw,56px); padding-block: clamp(32px,6vh,72px) clamp(20px,4vh,44px); position: relative; }
.ct-kicker { margin: 0; font-family: var(--ct-mono); font-size: .56rem; letter-spacing: .28em;
    text-transform: uppercase; color: var(--ct-ink-3); }
.ct-hero h1 { margin: 14px 0 0; font-size: clamp(2.2rem,5vw,4rem); line-height: 1.02;
    letter-spacing: -.045em; font-weight: 860; color: #fff; }
.ct-hero h1 em { font-style: normal; background: var(--ct-grad); -webkit-background-clip: text;
    background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html[lang="ar"] .ct-hero h1 { line-height: 1.2; letter-spacing: -.01em; }
.ct-lede { margin-block-start: 14px; max-width: 54ch; font-size: .95rem; line-height: 1.8; color: var(--ct-ink-2); }
.ct-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-block-start: 20px; }
.ct-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; padding: 0; list-style: none; }
.ct-meta li { padding: 7px 11px; border-radius: 12px; border: 1px solid var(--ct-line);
    background: rgba(255,255,255,.025); font-size: .6rem; color: var(--ct-ink-3); }
.ct-meta b { display: block; font-size: .72rem; color: var(--ct-ink-2); }
.ct-hero__visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.ct-ring { position: absolute; top: 50%; left: 50%; width: min(330px,84%); aspect-ratio: 1;
    translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(126,158,255,.16);
    animation: ctSpin 32s linear infinite; }
.ct-ring::before { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 7px; height: 7px;
    border-radius: 50%; background: var(--ct-cyan); box-shadow: 0 0 14px 3px rgba(34,211,238,.8); }
.ct-ring--b { width: min(250px,64%); border-style: dashed; border-color: rgba(232,121,249,.22);
    animation-direction: reverse; animation-duration: 44s; }
.ct-ring--b::before { width: 5px; height: 5px; background: var(--ct-magenta); box-shadow: 0 0 12px 3px rgba(232,121,249,.8); }
.ct-ring--c { width: min(190px,50%); border-color: rgba(34,211,238,.18); animation-duration: 56s; }
.ct-core { position: relative; z-index: 2; width: clamp(130px,15vw,168px); filter: drop-shadow(0 18px 30px rgba(124,92,255,.45));
    animation: ctFloat 7s ease-in-out infinite; }
.ct-core svg { width: 100%; height: auto; }
.ct-hero__visual::after { content: ""; position: absolute; width: 48%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,255,.32), transparent 68%); filter: blur(34px); }
.ct-chip { position: absolute; z-index: 3; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--ct-line-2);
    background: rgba(7,10,22,.9); font-family: var(--ct-mono); font-size: .42rem; letter-spacing: .14em;
    color: #c9d4ee; animation: ctBob 6.5s ease-in-out infinite alternate; }
.ct-chip--a { top: 14%; inset-inline-start: 4%; }
.ct-chip--b { top: 42%; inset-inline-end: 2%; animation-delay: 1.2s; }
.ct-chip--c { bottom: 16%; inset-inline-start: 12%; animation-delay: 2.2s; }

/* buttons */
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    padding: 10px 18px; border-radius: 12px; border: 1px solid var(--ct-line-2); background: rgba(255,255,255,.04);
    color: #fff; font: 650 .8rem/1 var(--ct-ui); text-decoration: none; cursor: pointer;
    transition: transform .25s var(--ct-ease, cubic-bezier(.16,1,.3,1)), background .25s, border-color .25s, box-shadow .3s; }
.ct-btn:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.55); background: rgba(124,92,255,.16);
    box-shadow: 0 16px 36px -20px rgba(124,92,255,.9); }
.ct-btn--solid { border-color: transparent; background: linear-gradient(120deg,#5b3ff0,#7c5cff 55%,#22d3ee);
    box-shadow: 0 16px 38px -18px rgba(124,92,255,.95), inset 0 1px 0 rgba(255,255,255,.22); }
.ct-live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 999px;
    background: rgba(4,8,18,.4); font-family: var(--ct-mono); font-size: .4rem; letter-spacing: .12em; }
.ct-live i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px 2px rgba(74,222,128,.6); }

/* heads + topics */
.ct-head { max-width: 720px; margin-block-end: 20px; }
.ct-index { font-family: var(--ct-mono); font-size: .5rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ct-ink-3); }
.ct-head h2 { margin: 8px 0 0; font-size: clamp(1.6rem,3vw,2.3rem); letter-spacing: -.035em; font-weight: 850; color: #fff; }
.ct-head p { margin-block-start: 8px; font-size: .84rem; line-height: 1.7; color: var(--ct-ink-2); }
.ct-topics { padding-block: clamp(20px,4vh,44px); }
.ct-topicgrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.ct-topic { position: relative; display: grid; gap: 4px; justify-items: start; text-align: start; padding: 15px;
    border-radius: 15px; border: 1px solid var(--ct-line); background: rgba(255,255,255,.022);
    color: var(--ct-ink-2); font-family: var(--ct-ui); cursor: pointer;
    transition: border-color .25s, transform .3s, background .25s; }
.ct-topic:hover, .ct-topic:focus-visible { border-color: var(--ct-line-2); background: rgba(124,92,255,.09);
    transform: translateY(-2px); outline: none; }
.ct-topic__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    border: 1px solid rgba(34,211,238,.3); background: rgba(34,211,238,.09); color: var(--ct-cyan); }
.ct-topic__ico .icon { width: 14px; height: 14px; }
.ct-topic b { font-size: .86rem; color: var(--ct-ink); }
.ct-topic span:not(.ct-topic__ico) { font-size: .72rem; line-height: 1.55; }
.ct-topic i { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; font-style: normal;
    color: var(--ct-violet); font-size: .75rem; }
[dir="rtl"] .ct-topic i { transform: scaleX(-1); }

/* form + side */
.ct-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(16px,2.4vw,28px);
    align-items: start; padding-block: clamp(10px,2vh,22px) clamp(28px,5vh,56px); }
.ct-form { padding: clamp(18px,2.4vw,26px); border-radius: 22px; border: 1px solid var(--ct-line);
    background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block-end: 9px; }
.ct-field { display: grid; gap: 5px; }
.ct-field label { font-family: var(--ct-mono); font-size: .48rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ct-ink-3); }
.ct-field label small { color: var(--ct-ink-3); opacity: .7; }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; border: 1px solid var(--ct-line-2);
    border-radius: 11px; padding: 11px 12px; background: rgba(5,10,22,.6); color: var(--ct-ink);
    font: .85rem/1.5 var(--ct-ui); outline: none; transition: border-color .2s, box-shadow .2s; }
.ct-field textarea { resize: vertical; min-height: 130px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: rgba(124,92,255,.65);
    box-shadow: 0 0 0 3px rgba(124,92,255,.14); }
.ct-field option { background: #0a0f1f; color: #eef2ff; }
.ct-err { color: #fda4af; font-size: .7rem; }
.ct-flash { display: flex; gap: 8px; align-items: center; padding: 11px 13px; margin-block-end: 14px;
    border-radius: 12px; border: 1px solid rgba(74,222,128,.35); background: rgba(74,222,128,.08);
    color: #9fe8c9; font-size: .78rem; }
.ct-send { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px;
    margin-block-start: 14px; border: 0; border-radius: 12px; cursor: pointer; color: #04121d;
    background: linear-gradient(100deg,#7dd3fc,#34d399); font: 800 .8rem/1 var(--ct-ui);
    letter-spacing: .04em; text-transform: uppercase; transition: transform .2s, filter .2s; }
.ct-send:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ct-note { display: flex; gap: 7px; align-items: flex-start; margin-block-start: 10px; font-size: .66rem;
    line-height: 1.6; color: var(--ct-ink-3); }
.ct-side { display: grid; gap: 10px; }
.ct-card { padding: 16px; border-radius: 16px; border: 1px solid var(--ct-line); background: rgba(255,255,255,.022); }
.ct-card h3 { margin: 8px 0 0; font-size: 1.05rem; color: #fff; }
.ct-card p { margin-block-start: 5px; font-size: .78rem; line-height: 1.7; color: var(--ct-ink-2); }
.ct-card .ct-btn { margin-block-start: 10px; width: 100%; }
.ct-ch { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ct-line);
    color: inherit; text-decoration: none; }
.ct-ch:first-of-type { margin-block-start: 8px; }
.ct-ch__ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px;
    border: 1px solid rgba(34,211,238,.28); background: rgba(34,211,238,.08); color: var(--ct-cyan); }
.ct-ch__ico .icon { width: 14px; height: 14px; }
.ct-ch b { display: block; font-size: .78rem; }
.ct-ch small { display: block; font-size: .62rem; color: var(--ct-ink-3); }
.ct-list { margin: 10px 0 0; padding-inline-start: 16px; display: grid; gap: 7px; font-size: .74rem;
    line-height: 1.6; color: var(--ct-ink-2); }
.ct-quicklinks { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 12px; }
.ct-quicklinks a { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--ct-line);
    font-size: .6rem; color: var(--ct-ink-2); text-decoration: none; }
.ct-quicklinks a:hover { border-color: var(--ct-line-2); color: #fff; }

/* live chat */
.ct-chat { position: fixed; inset: 0; z-index: 700; display: grid; place-items: end; padding: 16px; }
.ct-chat[hidden] { display: none !important; }
.ct-chat__back { position: absolute; inset: 0; background: rgba(2,4,10,.65); backdrop-filter: blur(4px); }
.ct-chat__panel { position: relative; z-index: 1; display: grid; width: min(440px,100%); max-height: min(86svh,680px);
    border-radius: 20px; border: 1px solid rgba(126,158,255,.25); background: linear-gradient(170deg,#0a1024,#04060f);
    box-shadow: 0 50px 120px -50px #000, inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden;
    animation: ctPop .35s cubic-bezier(.16,1,.3,1) both; }
.ct-chat__head { display: flex; justify-content: space-between; gap: 10px; padding: 16px 16px 12px;
    border-block-end: 1px solid var(--ct-line); }
.ct-chat__head h2 { margin: 8px 0 0; font-size: 1.3rem; letter-spacing: -.03em; color: #fff; }
.ct-chat__head p { margin-block-start: 4px; font-size: .72rem; line-height: 1.6; color: var(--ct-ink-3); }
.ct-chat__x { align-self: flex-start; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ct-line);
    background: rgba(255,255,255,.04); color: var(--ct-ink-2); cursor: pointer; }
.ct-chat__body { display: grid; gap: 8px; align-content: start; padding: 14px; overflow: auto; min-height: 160px; }
.ct-bubble { max-width: 88%; padding: 9px 11px; border-radius: 12px; font-size: .78rem; line-height: 1.55; }
.ct-bubble--agent { justify-self: start; border: 1px solid rgba(126,158,255,.2); background: rgba(255,255,255,.05); color: #cfd9ee; }
.ct-bubble--user { justify-self: end; background: linear-gradient(120deg,#7c5cff,#22d3ee); color: #05070f; font-weight: 600; }
.ct-bubble--ok { justify-self: start; border: 1px solid rgba(74,222,128,.35); background: rgba(74,222,128,.08); color: #9fe8c9; }
.ct-chat__form { display: grid; gap: 7px; padding: 12px 14px 14px; border-block-start: 1px solid var(--ct-line); }
.ct-chat__row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ct-chat__form input, .ct-chat__form textarea { width: 100%; border: 1px solid var(--ct-line-2); border-radius: 10px;
    padding: 9px 10px; background: rgba(5,10,22,.7); color: var(--ct-ink); font: .78rem/1.5 var(--ct-ui); outline: none; }
.ct-chat__form textarea { resize: none; }
.ct-chat__send { display: flex; gap: 7px; align-items: flex-end; }
.ct-chat__send textarea { flex: 1; }
.ct-chat__send button { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0;
    border-radius: 10px; background: linear-gradient(120deg,#7c5cff,#22d3ee); color: #05070f; cursor: pointer; }
.ct-chat__err { min-height: 1em; margin: 0; font-size: .66rem; color: #fda4af; }
html.ct-lock { overflow: hidden; }

/* light */
html[data-theme="light"] .ct { --ct-ink:#130c2b; --ct-ink-2:#4d4669; --ct-ink-3:#7d7697;
    --ct-line:rgba(37,22,84,.12); --ct-line-2:rgba(37,22,84,.2); }
html[data-theme="light"] .ct-hero h1, html[data-theme="light"] .ct-head h2, html[data-theme="light"] .ct-card h3 { color:#130c2b; }
html[data-theme="light"] .ct-form, html[data-theme="light"] .ct-card, html[data-theme="light"] .ct-topic { background:#fff; }
html[data-theme="light"] .ct-field input, html[data-theme="light"] .ct-field select, html[data-theme="light"] .ct-field textarea { background:#fff; color:#130c2b; }
html[data-theme="light"] .ct-field option { background:#fff; color:#130c2b; }
html[data-theme="light"] .ct-chip { background: rgba(255,255,255,.94); color:#4d4669; }
html[data-theme="light"] .ct-chat__panel { background: linear-gradient(170deg,#ffffff,#f4f2ff); }
html[data-theme="light"] .ct-chat__head h2 { color:#130c2b; }
html[data-theme="light"] .ct-chat__body .ct-bubble--agent { background:#f2eeff; color:#4d4669; border-color: rgba(37,22,84,.12); }
html[data-theme="light"] .ct-chat__form input, html[data-theme="light"] .ct-chat__form textarea { background:#fff; color:#130c2b; }

/* responsive */
@media (max-width: 1024px) {
    .ct-hero { grid-template-columns: 1fr; text-align: center; }
    .ct-hero__copy { max-width: 720px; margin-inline: auto; }
    .ct-actions, .ct-meta { justify-content: center; }
    .ct-hero__visual { min-height: 300px; order: -1; }
    .ct-topicgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ct-grid { grid-template-columns: 1fr; }
    .ct-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ct-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .ct-hero h1 { font-size: clamp(2rem,9.4vw,2.7rem); }
    .ct-hero__visual { min-height: 240px; }
    .ct-topicgrid { grid-template-columns: 1fr; }
    .ct-row2 { grid-template-columns: 1fr; }
    .ct-side { grid-template-columns: 1fr; }
    .ct-chat { padding: 0; }
    .ct-chat__panel { width: 100%; max-height: 92svh; border-radius: 18px 18px 0 0; }
    .ct-chat__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-ring, .ct-core, .ct-chip, .ct-chat__panel { animation: none !important; }
    .ct [data-ct-reveal] { opacity: 1 !important; translate: none !important; }
}
@keyframes ctSpin { to { transform: rotate(360deg); } }
@keyframes ctFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ctBob { from { translate: 0 -4px; } to { translate: 0 5px; } }
@keyframes ctPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
