/* ============================================================
   HERO — light theme · pastel mesh · glass chat widget
   ============================================================ */

.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
  /* pastel gradient mesh — same as Landing Page v2 */
  background:
    radial-gradient(900px 600px at 8% 0%,   #C9F6E2 0%, transparent 60%),
    radial-gradient(800px 600px at 92% 0%,  #FFFFFF 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 28%, #E6D3FF 0%, transparent 60%),
    radial-gradient(900px 700px at 50% 60%, #CFE5FF 0%, transparent 55%),
    linear-gradient(180deg, #F4F6F4 0%, #F7F8FA 100%);
}

/* eyebrow / meta strip */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--navy-55);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(79,211,163,0.20);
  flex-shrink: 0;
}
.hero-meta .pipe { width: 1px; height: 12px; background: var(--navy-12); }

/* h1 */
.hero h1 {
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--navy);
  max-width: 1100px;
  text-wrap: balance;
}
html[lang="ar"] .hero h1 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }

/* sub */
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--navy-70);
  max-width: 620px;
  margin: 0 0 40px;
}

/* cta row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-fine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy-55);
  margin-top: 12px;
}
.hero-fine .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mint-wash);
  color: var(--mint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* two-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  min-height: 540px;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: auto; }
}

/* right side stage */
.hero-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
@media (max-width: 1080px) { .hero-side { min-height: 400px; } }

/* ── HiAgent chat widget (replaces old glass-chat) ── */
.hichat {
  width: min(400px, 100%);
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(36px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(200%) brightness(1.08);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(10,23,51,0.06) inset,
    0 32px 80px -24px rgba(10,23,51,0.22),
    0 6px 20px -6px rgba(79,211,163,0.18);
  position: relative;
  z-index: 2;
  animation: float-drift 9s ease-in-out infinite;
  padding-top: 16px;
}

.hichat-scenario-dots {
  display: flex; gap: 5px; align-items: center;
  padding: 0 18px 10px;
}
.hichat-scenario-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(10,23,51,0.14);
  transition: all 0.3s ease;
}
.hichat-scenario-dots span.active { background: var(--navy); width: 18px; border-radius: 3px; }

/* thread */
.hichat-thread {
  padding: 10px 16px 16px;
  min-height: 280px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: transparent;
  scroll-behavior: smooth;
}
.hichat-thread::-webkit-scrollbar { width: 0; }

/* date divider */
.hichat-date {
  text-align: center;
  font-size: 10px;
  color: var(--navy-40);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0 10px;
}

/* message row */
.hichat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.35s cubic-bezier(0.22,0.7,0.2,1) forwards;
}
@keyframes msg-in {
  to { opacity: 1; transform: none; }
}
.hichat-msg.from-client { align-items: flex-end; }
.hichat-msg.from-agent  { align-items: flex-start; }
html[lang="ar"] .hichat-msg.from-client { align-items: flex-start; }
html[lang="ar"] .hichat-msg.from-agent  { align-items: flex-end; }

.hichat-sender {
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  padding: 0 4px; margin-bottom: 2px;
}
.from-client .hichat-sender { color: var(--navy-40); }
.from-agent  .hichat-sender { color: var(--mint-deep); }

/* bubble */
.hichat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 84%;
  position: relative;
}
.from-client .hichat-bubble {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 5px;
}
html[lang="ar"] .from-client .hichat-bubble { border-bottom-right-radius: 18px; border-bottom-left-radius: 5px; direction: rtl; }
.from-agent .hichat-bubble {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.90);
  color: var(--navy);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 8px -4px rgba(10,23,51,0.08);
}
html[lang="ar"] .from-agent .hichat-bubble { border-bottom-left-radius: 18px; border-bottom-right-radius: 5px; direction: rtl; }

/* timestamp + status */
.hichat-time {
  font-size: 10px; color: var(--navy-25); padding: 0 4px;
  display: flex; align-items: center; gap: 4px;
}
.from-client .hichat-time { flex-direction: row-reverse; }
.hichat-ticks { display: flex; gap: 1px; }
.hichat-ticks svg { width: 12px; height: 12px; }
.hichat-ticks.read svg { stroke: #22c55e; }

/* card responses (booking confirm, loyalty, etc.) */
.hichat-card {
  background: #fff;
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: 14px;
  overflow: hidden;
  max-width: 84%;
  box-shadow: 0 4px 14px -6px rgba(10,23,51,0.10);
}
.from-agent .hichat-card { align-self: flex-start; }
html[lang="ar"] .from-agent .hichat-card { align-self: flex-end; }
.hichat-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10,23,51,0.07);
  background: var(--paper-warm);
}
.hichat-card-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hichat-card-icon.green { background: #dcfce7; color: #16a34a; }
.hichat-card-icon.blue  { background: #dbeafe; color: #2563eb; }
.hichat-card-icon.amber { background: #fef3c7; color: #d97706; }
.hichat-card-icon.mint  { background: var(--mint-wash); color: var(--mint-deep); }
.hichat-card-title { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.hichat-card-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.hichat-card-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--navy-55);
}
.hichat-card-row svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--navy-40); }
.hichat-card-row strong { color: var(--navy); font-weight: 500; }

/* typing indicator */
.hichat-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 11px 16px;
  background: var(--paper);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  opacity: 0;
  animation: msg-in 0.3s ease forwards;
  align-self: flex-start;
}
html[lang="ar"] .hichat-typing { align-self: flex-end; border-bottom-left-radius: 18px; border-bottom-right-radius: 5px; }
.hichat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--navy-25);
  animation: typing-dot 1.2s infinite;
}
.hichat-typing span:nth-child(2) { animation-delay: 0.15s; }
.hichat-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing-dot {
  0%,80%,100% { transform: scale(0.6); opacity: 0.35; }
  40%         { transform: scale(1);   opacity: 1; }
}

/* composer */
.hichat-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.28);
}
.hichat-input {
  flex: 1; display: flex; align-items: center;
  padding: 9px 13px;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: 12px;
  font-size: 13px; color: var(--navy);
  min-height: 38px;
  cursor: text;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
.hichat-input-text { flex: 1; }
.hichat-cursor {
  width: 1.5px; height: 15px;
  background: var(--navy);
  border-radius: 1px;
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hichat-cursor.hidden { opacity: 0; animation: none; }
.hichat-send {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hichat-send:disabled { opacity: 0.3; transform: none !important; cursor: default; }
.hichat-send:not(:disabled) { transform: scale(1.04); }
.hichat-send.flash {
  animation: send-flash 0.3s ease;
}
@keyframes send-flash {
  0% { transform: scale(1.04); }
  50% { transform: scale(0.88); background: var(--mint); color: var(--navy); }
  100% { transform: scale(1); }
}

/* keep old glass-chat dormant just in case anything references it */
.glass-chat {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 32px 80px -20px rgba(10,23,51,0.18),
    0 0 0 1px rgba(10,23,51,0.04) inset;
  position: relative;
  z-index: 2;
  animation: float-drift 9s ease-in-out infinite;
}

/* chat head */
.gch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--navy-08);
  background: var(--paper-warm);
}
.gch-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--mint-soft), var(--sky));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 4px 12px -6px var(--mint-glow);
}
.gch-mark svg { width: 18px; }
.gch-meta { flex: 1; min-width: 0; }
.gch-name {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}
.gch-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.22);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.gch-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--navy-40);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gch-channel {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mint-deep);
  border: 1px solid rgba(79,211,163,0.35);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--mint-wash);
}

/* chat thread */
.glass-thread {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  background: var(--paper-2);
}

.gb-row { display: flex; flex-direction: column; gap: 4px; }
.gb-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy-40);
  padding: 0 4px;
}
.gb-role.is-mint { color: var(--mint-deep); }

.glass-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 90%;
}
.gb-in {
  background: var(--paper);
  border: 1px solid var(--navy-08);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
html[lang="ar"] .gb-in { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; direction: rtl; }
.gb-out {
  background: linear-gradient(180deg, var(--mint-wash), #d6f5ea);
  border: 1px solid rgba(79,211,163,0.35);
  color: var(--navy);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
html[lang="ar"] .gb-out { align-self: flex-start; border-bottom-right-radius: 16px; border-bottom-left-radius: 5px; direction: rtl; }

/* booking confirm pill */
.gb-confirm {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.gb-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.gb-check svg { width: 11px; height: 11px; }
.gb-confirm-t { font-size: 13px; font-weight: 600; color: var(--mint-deep); }
.gb-meta { display: flex; flex-direction: column; gap: 5px; }
.gb-meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--navy-55);
}
.gb-ico { width: 12px; height: 12px; flex-shrink: 0; }

/* typing indicator */
.glass-typing-row { padding: 0 4px; }
.glass-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--navy-08);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
}
.glass-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--navy-40);
  opacity: 0.5;
  animation: typing 1.2s infinite;
}
.glass-typing span:nth-child(2) { animation-delay: 0.15s; }
.glass-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%,80%,100% { transform: scale(0.6); opacity: 0.35; }
  40%          { transform: scale(1);   opacity: 1; }
}

/* chat composer */
.glass-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--navy-08);
  background: var(--paper-warm);
}
.glass-composer-pill {
  flex: 1;
  padding: 9px 14px;
  background: var(--paper-2);
  border: 1px solid var(--navy-08);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--navy-40);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gc-caret {
  width: 1.5px; height: 16px;
  background: var(--navy);
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.glass-send {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy);
  border: none;
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(10,23,51,0.3);
  flex-shrink: 0;
}
.glass-send svg { width: 14px; height: 14px; }

/* floating data cards */
.hero-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 16px 40px -16px rgba(10,23,51,0.16);
  min-width: 150px;
  pointer-events: auto;
}
.float-card .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy-40);
  margin-bottom: 5px;
}
.float-card .v {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.float-card .v em { color: var(--mint-deep); font-style: normal; font-size: 0.75em; }
.fc-1 { top: 8%;  left: -5%;  --fc-base: rotate(-3deg); }
.fc-2 { top: 6%;  right: -5%; --fc-base: rotate(3deg); }
.fc-3 { bottom: 20%; left: -8%; --fc-base: rotate(2deg); }
.fc-4 { bottom: 12%; right: -5%; --fc-base: rotate(-2deg); }

/* appointment card variant */
.float-card .nx-row { display: flex; align-items: center; gap: 10px; }
.float-card .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint-soft), var(--sky));
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.float-card .nm { font-size: 12px; font-weight: 500; color: var(--navy); }
.float-card .tm { font-family: var(--mono); font-size: 9px; color: var(--navy-40); margin-top: 2px; text-transform: uppercase; }
.float-card .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  margin-left: auto;
}
html[lang="ar"] .float-card .dot { margin-left: 0; margin-right: auto; }

/* ribbon — curved two-layer SVG marquee (matching Landing Page v2) */
.ribbon-stage {
  position: relative;
  height: 280px;
  margin: 96px -32px 0;
  overflow: hidden;
}
.ribbon-stage svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ribbon-text {
  font-weight: 600;
  font-size: 78px;
  letter-spacing: -0.02em;
  fill: var(--navy);
  direction: ltr;
  unicode-bidi: isolate;
}
.ribbon-text-outline {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 92px;
  fill: transparent;
  stroke: var(--navy);
  stroke-width: 1;
  direction: ltr;
  unicode-bidi: isolate;
}
html[lang="ar"] .ribbon-text { font-family: var(--ar); font-size: 64px; }
html[lang="ar"] .ribbon-text-outline { font-family: var(--ar); font-style: normal; font-size: 70px; }

/* mobile */
@media (max-width: 880px) {
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: clamp(44px, 12vw, 72px); }
  .hero-sub { font-size: 17px; }
  .hero-cta-row { gap: 10px; }
  .hero-side { min-height: 340px; }
  .fc-1, .fc-3 { display: none; }
  .fc-2 { right: 0; top: 4%; }
  .fc-4 { right: 0; bottom: 4%; }
  .ribbon-stage { height: 200px; margin-top: 56px; }
}
