/* ============================================================================
   Contact page — "Transmission to Mr. Robot"
   A cyber command-center contact experience. Scoped entirely under .cx.
   Pairs with assets/js/contact.js (particle field, typewriter terminal,
   3D tilt, robot parallax, magnetic buttons, scroll reveal).
   Theme-aware (CSS vars flip for light), RTL-safe (logical props),
   and motion-safe (prefers-reduced-motion handled at the bottom).
   ============================================================================ */

.cx {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.cx-container { position: relative; z-index: 2; }

/* ---- Animated background: canvas particle field + blobs + perspective grid ---- */
.cx-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0.9;
}
.cx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cx-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.45; will-change: transform; }
.cx-blob-1 { width: 480px; height: 480px; top: -140px; inset-inline-end: -120px;
  background: radial-gradient(circle, var(--accent-orange-glow), transparent 70%); animation: cxDrift1 18s ease-in-out infinite; }
.cx-blob-2 { width: 440px; height: 440px; top: 38%; inset-inline-start: -150px;
  background: radial-gradient(circle, var(--accent-cyan-glow), transparent 70%); animation: cxDrift2 22s ease-in-out infinite; }
.cx-blob-3 { width: 400px; height: 400px; bottom: -140px; inset-inline-end: 16%;
  background: radial-gradient(circle, var(--accent-violet-glow), transparent 70%); animation: cxDrift3 20s ease-in-out infinite; }
.cx-grid {
  position: absolute; inset: -2px; opacity: 0.5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent-cyan) 8%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent-cyan) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 80%);
}

/* ============================ HERO ============================ */
.cx-hero { text-align: center; margin-bottom: 3.4rem; }
.cx-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.05rem; border-radius: 12px; margin-bottom: 1.3rem;
  font-size: 0.82rem; line-height: 1; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent-orange);   /* = the nav "צור קשר" pill key colour */
  background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-orange) 32%, transparent);
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-amber) 16%, transparent);
}
.cx-badge i { font-size: 0.85rem; }
.cx-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 800;
  /* site headline standard: the ONE short accent phrase carries the brand
     gradient — STATIC violet→pink→orange, no animation (was a 5-colour
     9s rainbow loop — off-brand for a professional service site) */
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink), var(--accent-orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* hug the text so the whole ramp lands on the words */
  width: fit-content; max-width: 100%; margin-inline: auto;
}
/* light theme: the global `body.light-theme h1` slate gradient outranks .cx-title —
   re-assert the brand gradient so both themes match (same fix as .pt-h1/.ip-h1) */
body.light-theme .cx-title {
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink), var(--accent-orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cx-sub { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-secondary); max-width: 580px; margin: 0 auto 1.6rem; line-height: 1.6; }

.cx-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.cx-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 12px; font-size: 0.86rem; font-weight: 600;
  color: var(--text-color);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cx-chip:hover { transform: translateY(-3px); border-color: var(--glass-border-hover); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.cx-chip i { font-size: 0.95rem; }
.cx-chip:nth-child(1) i { color: var(--accent-emerald); }
.cx-chip:nth-child(2) i { color: var(--accent-cyan); }
.cx-chip:nth-child(3) i { color: var(--accent-violet); }

/* ============================ MAIN GRID ============================ */
.cx-main { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.6rem; align-items: stretch; }

/* ============================ ROBOT + TERMINAL ============================ */
.cx-stage { position: relative; margin-bottom: 1.6rem; }
.cx-robot-wrap {
  position: relative; width: 270px; max-width: 62vw; margin: 0 auto 0.4rem;
  display: flex; justify-content: center; z-index: 4;
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
.cx-robot { width: 100%; height: auto; position: relative; z-index: 2;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.4)) drop-shadow(0 0 22px rgba(103,51,209,0.65)) drop-shadow(0 0 48px rgba(103,51,209,0.4)); animation: cxFloat 3.4s ease-in-out infinite; }
.cx-robot-glow {
  position: absolute; z-index: 1; inset: 0; margin: auto;
  width: 60%; height: 60%; max-width: 70vw; border-radius: 50%;
  background: rgba(103,51,209,0.34); filter: blur(80px);
}
.cx-robot-ring {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 28px; border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-cyan) 50%, transparent), transparent 70%);
  filter: blur(4px); animation: cxRing 4s ease-in-out infinite;
}

/* === Active jet thruster light — restores the "wow" the cleaned art toned down === */
.cx-jet-back { /* soft cyan backlight halo behind the robot, pulsing like live thrust */
  position: absolute; z-index: 1; left: 51%; top: 79%;
  width: 178px; height: 152px; transform: translate(-50%,-50%);
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse 48% 52% at 50% 44%,
      color-mix(in srgb, var(--accent-cyan) 82%, #d4ffff) 0%,
      color-mix(in srgb, var(--accent-cyan) 45%, transparent) 40%,
      transparent 72%);
  filter: blur(13px);
  animation: cxJetPulse 1.8s ease-in-out infinite;
}
.cx-jet-core { /* bright bloom over the nozzle (screen = only adds light, never hides the jet) */
  position: absolute; z-index: 3; left: 51%; top: 75%;
  width: 118px; height: 138px; transform: translate(-50%,-50%);
  pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 30% 26% at 50% 30%, #e8ffff 0%,
        color-mix(in srgb, var(--accent-cyan) 78%, transparent) 32%, transparent 62%),
    radial-gradient(ellipse 15% 46% at 50% 70%,
        color-mix(in srgb, var(--accent-cyan) 55%, transparent) 0%, transparent 78%);
  filter: blur(6px);
  animation: cxJetFlicker 1.05s ease-in-out infinite;
}
.cx-jet-core::after { /* downward light emission below the nozzle */
  content: ''; position: absolute; left: 50%; top: 56%;
  width: 26%; height: 56%; transform: translateX(-50%);
  background: linear-gradient(to bottom,
      color-mix(in srgb, var(--accent-cyan) 55%, transparent), transparent 88%);
  filter: blur(7px); border-radius: 0 0 46% 46%;
}

/* === Twinkling energy sparkles around the robot + icon ring === */
.cx-spark {
  position: absolute; z-index: 3; width: 8px; height: 8px; border-radius: 50%;
  background: #f2fffe; pointer-events: none; opacity: 0;
  box-shadow: 0 0 7px 2px var(--accent-cyan);
  animation: cxSpark 3.4s ease-in-out infinite;
}
.cx-spark::before { /* 4-point star glint */
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 26px; transform: translate(-50%, -50%);
  background:
    linear-gradient(to bottom, transparent 46%, rgba(232,255,255,0.85) 50%, transparent 54%),
    linear-gradient(to right,  transparent 46%, rgba(232,255,255,0.85) 50%, transparent 54%);
}
.cx-spark.s1 { top: 15%; left: 17%; box-shadow: 0 0 9px 2px var(--accent-cyan);   animation-delay: 0s;   }
.cx-spark.s2 { top: 11%; left: 83%; box-shadow: 0 0 9px 2px var(--accent-violet); animation-delay: 1.1s; }
.cx-spark.s3 { top: 49%; left: 5%;  box-shadow: 0 0 9px 2px var(--accent-cyan);   animation-delay: 2.0s; }
.cx-spark.s4 { top: 57%; left: 95%; box-shadow: 0 0 9px 2px var(--accent-violet); animation-delay: 0.6s; }
.cx-spark.s5 { top: 84%; left: 24%; box-shadow: 0 0 9px 2px var(--accent-cyan);   animation-delay: 2.6s; }
.cx-spark.s6 { top: 88%; left: 76%; box-shadow: 0 0 9px 2px var(--accent-violet); animation-delay: 1.6s; }
@keyframes cxSpark {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  50%      { opacity: 1; transform: scale(1); }
}

/* Terminal window */
.cx-terminal {
  position: relative; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-cyan) 5%, transparent), transparent 40%),
    color-mix(in srgb, #0a0f1e 92%, var(--secondary-color));
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, var(--glass-border));
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .25s ease-out, box-shadow .25s ease;
  will-change: transform;
}
.cx-terminal::after { /* cursor glare */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.10), transparent 60%);
}
.cx-terminal:hover::after { opacity: 1; }
.cx-term-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.cx-term-dots { display: inline-flex; gap: 6px; }
.cx-term-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.cx-term-dots i:nth-child(1) { background: #ff5f57; }
.cx-term-dots i:nth-child(2) { background: #febc2e; }
.cx-term-dots i:nth-child(3) { background: #28c840; }
.cx-term-title {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem; color: #8b97b1; letter-spacing: 0.02em;
  margin-inline: auto; white-space: nowrap;
}
.cx-term-live { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; color: var(--accent-emerald); }
.cx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-emerald); box-shadow: 0 0 0 0 var(--accent-emerald-glow); animation: cxPulse 2s infinite; }

.cx-term-body {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 1.1rem 1.15rem 1.3rem; min-height: 168px;
  font-size: 0.92rem; line-height: 1.7; color: #cdd6f4;
}
.cx-term-line { margin: 0 0 0.35rem; white-space: pre-wrap; }
.cx-term-sys { color: #6b7a99; }
.cx-term-sys .cx-ok { color: var(--accent-emerald); }
.cx-term-prompt { color: var(--accent-cyan); }
/* greeting is the robot's human message — let dir="auto" make it RTL for Hebrew
   (the surrounding terminal stays LTR for the system lines); align to reading start */
.cx-term-msg { margin: 0.65rem 0 0; color: #e6ebf7; text-align: start; }
.cx-term-msg .cx-term-prompt { margin-inline-end: 0.4rem; }
.cx-caret { display: inline-block; width: 9px; height: 1.05em; vertical-align: -0.18em;
  background: var(--accent-cyan); margin-inline-start: 2px; animation: cxBlink 1s steps(1) infinite; }
.cx-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================ CONTACT METHODS ============================ */
.cx-methods { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.4rem; }
.cx-quick-label { display: none; }   /* mobile-only intro line above the one-tap channels */
.cx-method {
  position: relative; display: flex; align-items: center; gap: 1rem; text-decoration: none; overflow: hidden;
  padding: 1rem 1.15rem; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .25s ease-out, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.cx-method::before { content: none; }   /* cards don't sheen — unified cube language */
.cx-method:hover { border-color: var(--glass-border-hover); box-shadow: 0 16px 38px rgba(0,0,0,0.28); }
.cx-method-icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  transition: transform .25s ease;
}
.cx-method:hover .cx-method-icon { transform: scale(1.08) rotate(-4deg); }
.cx-method-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cx-method-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }
.cx-method-value { font-size: 1.08rem; font-weight: 700; color: var(--heading-color); word-break: break-word; }
.cx-method-arrow { margin-inline-start: auto; color: var(--text-secondary); font-size: 1.15rem; transition: transform .25s ease, color .25s ease; }
.cx-method:hover .cx-method-arrow { transform: translateX(-5px); color: var(--heading-color); }
[dir="ltr"] .cx-method-arrow { transform: scaleX(-1); }
[dir="ltr"] .cx-method:hover .cx-method-arrow { transform: scaleX(-1) translateX(-5px); }

.m-phone .cx-method-icon { color: var(--accent-cyan);    background: color-mix(in srgb, var(--accent-cyan) 13%, transparent);    border: 1px solid color-mix(in srgb, var(--accent-cyan) 30%, transparent); }
.m-email .cx-method-icon { color: #3b82f6;               background: color-mix(in srgb, #3b82f6 13%, transparent);               border: 1px solid color-mix(in srgb, #3b82f6 30%, transparent); }
.m-wa    .cx-method-icon { color: var(--accent-emerald); background: color-mix(in srgb, var(--accent-emerald) 13%, transparent); border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent); }
.m-phone:hover { border-color: color-mix(in srgb, var(--accent-cyan) 50%, transparent); }
.m-email:hover { border-color: color-mix(in srgb, #3b82f6 50%, transparent); }
.m-wa:hover    { border-color: color-mix(in srgb, var(--accent-emerald) 50%, transparent); }

/* ============================ FORM CARD ============================ */
.cx-form-card {
  position: relative; overflow: hidden;
  height: 100%;   /* span the full column height so the frame matches the robot + chat side */
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 22px; padding: 2.3rem;
  box-shadow: 0 22px 60px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow .3s ease, transform .3s ease;
}
.cx-form-card:hover { box-shadow: 0 28px 70px rgba(0,0,0,0.32); }
.cx-form-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--primary-color), var(--accent-violet), var(--accent-cyan));
  background-size: 200% 100%; animation: cxGlowShift 6s linear infinite;
}
.cx-form-head { display: flex; align-items: center; gap: 0.95rem; margin-bottom: 1.7rem; }
.cx-form-head-icon {
  position: relative;
  overflow: hidden;
  margin-top: -4px;           /* tiny lift so the button sits a touch above the title line */
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff;
  background: var(--gradient-primary); box-shadow: 0 8px 22px var(--primary-glow);
}
/* zoom in/out pulse + a "ברק" shine band sweeping across in sync */
@media (prefers-reduced-motion: reduce) {
  .cx-form-head-icon { animation: none; }
  .cx-form-head-icon::after { display: none; }
}
.cx-form-title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.25rem; color: var(--heading-color); }
.cx-form-sub { margin: 0; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* Premium focus state on top of the global floating-label rules */
.cx .floating-label input:focus,
.cx .floating-label textarea:focus { box-shadow: 0 0 0 3px var(--accent-cyan-glow), 0 8px 24px color-mix(in srgb, var(--accent-cyan) 14%, transparent); }
.cx .select-wrapper { position: relative; }
.cx .select-wrapper::after {
  content: '\f107'; font-family: FontAwesome; position: absolute; inset-inline-end: 14px; top: 50%;
  transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; font-size: 1rem;
}
.cx .select-wrapper select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; transition: border-color .25s ease, box-shadow .25s ease; }
.cx .select-wrapper select:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px var(--accent-cyan-glow); outline: none; }

.cx-form-note { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; font-size: 0.82rem; color: var(--text-secondary); }
.cx-form-note i { color: var(--accent-emerald); }

/* Magnetic submit button (built on global .btn.primary-btn.btn-block) */
.cx #submitButton {
  position: relative; overflow: hidden;
  transition: transform .15s ease-out, box-shadow .3s ease, filter .2s ease;
  will-change: transform;
}
.cx #submitButton::after {
  content: ''; position: absolute; top: 0; inset-inline-start: -130%; width: 70%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.cx #submitButton:hover::after { animation: cxSweep 0.9s ease; }
.cx #submitButton:hover { box-shadow: 0 14px 34px var(--primary-glow); filter: brightness(1.04); }

/* ============================ SUPPORT STRIP ============================ */
.cx-support {
  position: relative; overflow: hidden; margin-top: 3.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2.3rem 2.6rem; border-radius: 24px;
  background:
    radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--secondary-color) 18%, transparent) 0%, transparent 55%),
    radial-gradient(120% 160% at 0% 100%, color-mix(in srgb, var(--accent-orange) 16%, transparent) 0%, transparent 55%),
    var(--surface-elevated);
  border: 1px solid var(--glass-border); box-shadow: 0 20px 54px rgba(0,0,0,0.28);
}
.cx-support::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan), var(--secondary-color), var(--accent-orange));
  background-size: 200% 100%; animation: cxGlowShift 6s linear infinite;
}
.cx-support-text { flex: 1 1 320px; min-width: 260px; position: relative; z-index: 1; }
.cx-support-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 0.5rem; }
.cx-support-title { font-family: var(--font-display); font-size: 1.75rem; margin: 0 0 0.5rem; color: var(--heading-color); }
.cx-support-desc { margin: 0 0 0.8rem; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.6; max-width: 52ch; }
.cx-support-note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--accent-emerald); }
.cx-support-actions { display: flex; flex-direction: column; gap: 0.8rem; position: relative; z-index: 1; flex-shrink: 0; }
.cx-support-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; white-space: nowrap;
  padding: 0.9rem 1.7rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.cx-support-btn i { font-size: 1.2rem; }
.cx-support-btn:hover { transform: translateY(-2px); }
.cx-support-btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,0.4); }
.cx-support-btn-wa:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(37,211,102,0.5); }
/* same solid style + brightness/glow hover as the WhatsApp button, in email sky-blue */
.cx-support-btn-mail { background: #38bdf8; color: #fff; border: 0; box-shadow: 0 8px 22px rgba(56,189,248,0.4); }
.cx-support-btn-mail:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(56,189,248,0.5); }

/* ============================ SCROLL REVEAL ============================ */
.cx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.cx-reveal.is-visible { opacity: 1; transform: none; }

/* ============================ KEYFRAMES ============================ */
@keyframes cxShine { to { background-position: 220% center; } }
@keyframes cxFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-26px); }
  100% { transform: translateY(0); }
}
@keyframes cxRing { 0%,100% { opacity: 0.5; transform: translateX(-50%) scale(0.92); } 50% { opacity: 0.85; transform: translateX(-50%) scale(1.06); } }
@keyframes cxJetPulse { 0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.95; transform: translate(-50%,-50%) scale(1.1); } }
@keyframes cxJetFlicker { 0%,100% { opacity: 0.72; } 35% { opacity: 1; } 60% { opacity: 0.85; } 80% { opacity: 0.96; } }
@keyframes cxPulse { 0% { box-shadow: 0 0 0 0 var(--accent-emerald-glow); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes cxBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
@keyframes cxGlowShift { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes cxBolt { 0%,100% { transform: scale(1); } 8% { transform: scale(1.25) rotate(-8deg); } 16% { transform: scale(1); } }
@keyframes cxSweep { from { inset-inline-start: -130%; } to { inset-inline-start: 130%; } }
@keyframes cxDrift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px, 22px); } }
@keyframes cxDrift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px, -20px); } }
@keyframes cxDrift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px, -24px); } }

/* ============================ LIGHT THEME ============================ */
body.light-theme .cx-blob { opacity: 0.3; }
body.light-theme .cx-canvas { opacity: 0.6; }
body.light-theme .cx-grid { opacity: 0.7; }
body.light-theme .cx-terminal {
  background: linear-gradient(180deg, #0f1830, #0b1224);
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
}            /* terminal stays dark in light mode — it's a "screen" */
body.light-theme .cx-form-card,
body.light-theme .cx-method,
body.light-theme .cx-chip { box-shadow: 0 10px 30px rgba(15,23,42,0.08); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  /* minmax(0,1fr): a plain 1fr column refuses to shrink below its widest child's
     min-content (terminal mono lines / long email), so at ≤360px the whole column
     grew past the viewport and every card rendered cut off on the left. */
  .cx-main { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .cx-method-value { overflow-wrap: anywhere; }
  /* Mobile order = hero → one-tap channels (phone/mail/WhatsApp) → form → robot.
     .cx-left dissolves (display:contents) so its children join the grid and can
     be ordered independently — tap-to-contact beats a 6-field form on phones. */
  .cx-left { display: contents; }
  .cx-quick-label { display: block; order: 1; margin: 0 0 -1.2rem; text-align: center; font-weight: 600; color: var(--text-secondary); }
  .cx-methods { order: 2; margin-top: 0; }
  .cx-right { order: 3; }
  .cx-stage { order: 4; }
}
@media (max-width: 600px) {
  .cx { padding: 2.6rem 0 3.6rem; }
  .cx-form-card { padding: 1.5rem; }
  .cx-support { padding: 1.8rem 1.5rem; }
  .cx-support-actions { width: 100%; }
  .cx-support-btn { width: 100%; }
  .cx-term-title { display: none; }
  .cx-term-body { min-height: 150px; font-size: 0.86rem; }
}

/* ============================ MOTION-SAFE ============================ */
@media (prefers-reduced-motion: reduce) {
  .cx-robot, .cx-robot-ring, .cx-jet-back, .cx-jet-core, .cx-spark, .cx-dot, .cx-title, .cx-form-card::before,
  .cx-support::before, .cx-badge i, .cx-blob, .cx-caret,
  .cx-reveal { animation: none !important; }
  .cx-reveal { opacity: 1; transform: none; }
  .cx-terminal, .cx-method { transform: none !important; }
}

/* Contact robot now uses the baked framed thruster glow (like the product robots);
   disable the old per-element jet/ring so they don't double up or misalign. (2026-06-26) */
.cx-jet-back, .cx-jet-core, .cx-robot-ring { display: none !important; }

/* "light-up" on approach — the exact blog category-pill behaviour (user request) */
.cx-badge:hover { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff;
  transform: translateY(-3px); box-shadow: 0 8px 22px var(--accent-orange-glow); }
.cx-badge:hover i { color: #fff; }
