/* ============================================================
   AURA — DESIGN SYSTEM (extracted from reference + hero)
   Hero is locked. These tokens extend it for sections/footer.
   Reference personality: monochrome premium, black canvas,
   white type, hairline borders, pill eyebrows, soft glow.
   ============================================================ */

/* model-viewer base styles */
model-viewer {
  display: block;
  width: 100%;
  height: 100%;
}
model-viewer::part(progress-bar) { display: none; }
model-viewer::part(ar-button) { display: none; }

:root {
  --bg-0: #050505;
  --bg-1: #0a0b0d;
  --surface: #101214;
  --surface-2: #15181c;
  --field: #0e1013;
  --line-2: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);
  --text-1: #f4f6f8;
  --text-2: rgba(244, 246, 248, .64);
  --text-3: rgba(244, 246, 248, .42);
  --action: #ffffff;
  --action-ink: #060708;
  --teal: #5eead4; /* hero continuity only — focus glow */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 44px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --container: 1120px;
  --section-pad: clamp(56px, 8vw, 100px);
  --t-fast: .18s ease;
  --t-norm: .45s cubic-bezier(.22, .8, .28, 1);
  --t-slow: .8s cubic-bezier(.22, .8, .28, 1);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, .5);
  --glow-beam: 0 0 60px rgba(255, 255, 255, .14);
  /* fluid type scale */
  --fs-xs: clamp(11px, .85vw, 12px);
  --fs-sm: clamp(12px, .95vw, 13.5px);
  /* RTL font */
  --font-arabic: 'Tajawal', 'Noto Sans Arabic', system-ui, sans-serif;
  --fs-base: clamp(13px, 1.1vw, 15px);
  --fs-lg: clamp(15px, 1.3vw, 17px);
  --fs-xl: clamp(20px, 2.2vw, 28px);
  --fs-2xl: clamp(28px, 3.5vw, 40px);
  --fs-3xl: clamp(36px, 4.8vw, 56px);
}

/* ---------- continuity bridge: the shot breathes out ---------- */
/* NOTE: bridge end color MUST equal .post-hero start color,
   otherwise a hard seam cuts across the film (bad UX). */
.bridge {
  position: relative;
  z-index: 1;
  height: clamp(32px, 5vh, 64px);
  background: linear-gradient(to bottom, transparent 0%, rgba(5,5,5,.28) 100%);
  overflow: hidden;
}
.bridge::before {
  content: "";
  position: absolute;
  left: 50%; top: -40px;
  width: 1px; height: 200px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent);
  opacity: .35;
}
.bridge::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: min(720px, 80vw); height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}

/* ---------- shared section scaffold ---------- */
/* One unbroken grade: starts EXACTLY where .bridge ends (.28),
   settles gently into solid black far below the fold.
   No full-width bands near the logo — legibility comes from a
   soft radial scrim behind the copy (#intro), never a hard edge. */
.post-hero {
  background: linear-gradient(to bottom,
    rgba(5,5,5,.28) 0,
    rgba(5,5,5,.6) 560px,
    var(--bg-0) 1080px);
  color: var(--text-1);
  position: relative;
  z-index: 1;
}
.post-hero::before {
  /* faint perspective grid echoing reference hero floor */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 34% at 50% 0%, rgba(255,255,255,.05), transparent 70%);
}
/* film grain over the whole take — GPU-cheap, static, subtle */
.post-hero::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.wrap {
  width: min(var(--container), calc(100% - clamp(24px, 5vw, 48px)));
  margin-inline: auto;
  position: relative;
}
.section { padding-block: var(--section-pad); position: relative; }
/* opening lines sit directly on the film — soft radial scrim
   behind the copy (no edges, no bands) + deep text shadow */
#intro { padding-top: clamp(24px, 4vw, 48px); }
#intro .wrap::before {
  content: "";
  position: absolute;
  inset: -40px -60px -20px;
  pointer-events: none;
  background: radial-gradient(58% 52% at 50% 42%, rgba(0,0,0,.66), transparent 70%);
}
#intro .wrap > * { position: relative; }
#intro .h2, #intro .lead { text-shadow: 0 2px 30px rgba(0,0,0,.9); }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.eyebrow-pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: .8;
  font-style: normal;
}
.h2 {
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 750;
  margin: 20px 0 12px;
  text-wrap: balance;
}
.lead {
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: 620px;
  margin-inline: auto;
}
.center { text-align: center; }

/* ---------- reveal system (single timeline feel) ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
  filter: blur(6px);
  transition:
    opacity var(--t-slow),
    transform var(--t-slow),
    filter var(--t-slow);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.reveal-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  transform: scaleX(0);
  transition: transform 1s ease;
  transition-delay: var(--d, 0s);
}
.reveal-line.in { transform: scaleX(1); }

/* ---------- intro / logos ---------- */
.intro-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  color: var(--text-3);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
}
.intro-logos span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .85;
  padding: 4px 8px;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.mini-card {
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.mini-card b { display: block; font-size: var(--fs-sm); line-height: 1.4; font-weight: 650; }
.mini-card p { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.6; margin-top: 4px; }
.icon-sq {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  font-size: 17px;
}

/* ---------- registration (main) ---------- */
.reg { position: relative; }
.reg-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 18px;
}
.reg-left { position: sticky; top: clamp(24px, 4vh, 32px); }
.reg-left .h2 { margin-inline: 0; }
.reg-left .lead { margin-inline: 0; }
.reg-steps { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.reg-step {
  display: flex; gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.reg-step n {
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  height: 26px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reg-step div b { font-size: var(--fs-sm); }
.reg-step div p { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.6; margin-top: 4px; }
.reg-note {
  margin-top: 20px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.7;
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
}

.form-shell {
  background: linear-gradient(to bottom, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  overflow: hidden;
}
.form-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.form-head strong { font-size: var(--fs-sm); letter-spacing: .02em; }
.form-head span { font-size: var(--fs-xs); letter-spacing: .22em; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-field input,
.form-field select {
  appearance: none;
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line-2);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: 16px 16px;
  font-size: var(--fs-base);
  line-height: 1.4;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  min-height: 56px;
  -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-opacity='.6' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-field input::placeholder { color: var(--text-3); }
.form-field input:hover, .form-field select:hover { border-color: rgba(255,255,255,.22); }
.form-field input:focus-visible, .form-field select:focus-visible {
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 24px rgba(94,234,212,.12);
  background: #101318;
}
.form-field input.filled, .form-field select.filled { border-color: rgba(255,255,255,.3); }
.form-field .err {
  display: none;
  font-size: var(--fs-xs);
  color: #ff9d9d;
  line-height: 1.5;
}
.form-field.invalid input, .form-field.invalid select { border-color: rgba(255,120,120,.7); }
.form-field.invalid .err { display: block; }
.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: stretch; }
.prefix {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  min-height: 56px;
}
.form-actions { margin-top: 18px; display: grid; gap: 12px; }
.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 750;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  border-radius: var(--radius-pill);
  padding: 16px 28px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  box-shadow: var(--glow-beam);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-primary--full {
  width: 100%;
  min-height: 56px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.form-fine { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; text-align: center; }
.form-success {
  display: none;
  margin-top: 14px;
  border: 1px solid rgba(94,234,212,.35);
  background: rgba(94,234,212,.07);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.form-success.show { display: block; }

/* ---------- how / provide cards (mirror reference) ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.step-card {
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-norm), border-color var(--t-fast);
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.step-card h3 { font-size: var(--fs-sm); margin-bottom: 8px; }
.step-card > p { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.65; }
.step-visual {
  margin-top: auto;
  padding-top: 18px;
}
.orb {
  width: 80px; height: 80px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,.03) 60%, transparent 70%);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: #fff;
}
.chip-list { display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); }
.chip-list div {
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; gap: 8px; align-items: center;
}
.cube {
  width: 72px; height: 72px; margin: 0 auto;
  background: linear-gradient(145deg, #2a2e35, #0c0e11);
  border: 1px solid var(--line-2);
  transform: rotateX(18deg) rotateZ(45deg);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.cmd {
  display: flex; gap: 8px; align-items: center;
  margin-top: 14px;
  background: #0b0d10;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.cmd em { margin-left: auto; font-style: normal; background: #fff; color: #000; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.codebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.65;
  color: rgba(255,255,255,.6);
  background: #08090b;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  overflow: hidden;
}

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.provide-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(to bottom, rgba(255,255,255,.045), transparent);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.provide-visual { height: 160px; border-bottom: 1px solid var(--line-soft); background: #08090c; position: relative; overflow: hidden; }
.provide-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 110%, rgba(255,255,255,.1), transparent 70%);
}
.provide-body { padding: 18px 18px 20px; }
.provide-body b { font-size: var(--fs-sm); }
.provide-body p { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.65; margin-top: 6px; }
.pad-visual { display: grid; place-items: center; height: 100%; font-size: var(--fs-xs); color: var(--text-3); padding: 16px; text-align: center; }

/* ---------- communication channels (cinematic - chat only) ---------- */
.comm { position: relative; }
.comm .lead { max-width: 720px; }

.comm-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: clamp(40px, 5vw, 60px);
}

/* Connection Lines Canvas */
.comm-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--t-slow);
  transition-delay: calc(var(--d, 0s) + 0.3s);
}
.comm-scene.in .comm-connections { opacity: 1; }

/* Chat Cards - Side by side, wider, no scroll */
.comm-chats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 2;
}
.comm-chat {
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity var(--t-slow),
    transform var(--t-slow);
  transition-delay: var(--d, 0s);
  display: flex;
  flex-direction: column;
  height: clamp(520px, 65vh, 680px);
}
.comm-chat.in { opacity: 1; transform: none; }
.comm-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02);
}
.comm-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.comm-chat-avatar.wa { background: linear-gradient(135deg, #25D366, #128C7E); color: #062018; }
.comm-chat-avatar.tg { background: linear-gradient(135deg, #0088CC, #005599); color: #fff; }
.comm-chat-avatar svg { width: 22px; height: 22px; }
.comm-chat-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.comm-chat-info strong { font-size: var(--fs-sm); font-weight: 650; }
.comm-chat-status {
  display: block;
  font-size: var(--fs-xs);
  color: var(--teal);
  margin-top: 2px;
  letter-spacing: .04em;
}
.comm-chat-messages {
  padding: 16px 20px 20px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comm-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  min-width: 0;
  animation: msg-in 0.3s ease-out backwards;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.comm-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.comm-msg--user[data-platform="wa"] .comm-msg-bubble { background: #05c16b; color: #fff; }
.comm-msg--user[data-platform="wa"] .comm-msg-sender-name { color: #fff; }
.comm-msg--user[data-platform="wa"] .comm-msg-time { color: rgba(255,255,255,.8); }
.comm-msg--user[data-platform="tg"] .comm-msg-bubble { background: #0088cc; color: #fff; }
.comm-msg--user[data-platform="tg"] .comm-msg-sender-name { color: #fff; }
.comm-msg--user[data-platform="tg"] .comm-msg-time { color: rgba(255,255,255,.8); }
.comm-msg--ai { align-self: flex-start; }
.comm-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.comm-msg--user .comm-msg-avatar { background: var(--line-2); color: var(--text-2); }
.comm-msg--ai .comm-msg-avatar { background: linear-gradient(135deg, var(--teal), #00a090); color: #001a18; }
.comm-msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comm-msg--user .comm-msg-bubble {
  background: #05c16b;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.comm-msg--user .comm-msg-sender-name { color: #fff; }
.comm-msg--user .comm-msg-time { color: rgba(255,255,255,.8); }
.comm-msg--ai .comm-msg-bubble {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.comm-msg-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: var(--fs-xs);
}
.comm-msg-sender-name {
  font-weight: 600;
  color: inherit;
}
.comm-msg-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}
.comm-msg--user .comm-msg-time { color: rgba(0,26,24,.6); }
.comm-msg-text {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.comm-msg-bubble a,
.comm-msg-bubble code,
.comm-product-link,
.comm-product-title,
.comm-product-sku,
.comm-product-selection,
.comm-flight-route {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* Product Card in Chat */
.comm-product-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 4px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: msg-in 0.4s ease-out backwards;
  animation-delay: 0.1s;
}
.comm-product-card h4 { font-size: var(--fs-sm); font-weight: 650; margin-bottom: 6px; }
.comm-product-card .comm-product-meta { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--text-2); }
.comm-product-card .comm-product-price { color: var(--teal); font-weight: 700; font-size: var(--fs-sm); margin-top: 8px; }

/* Flight Card in Chat */
.comm-flight-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 4px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: msg-in 0.4s ease-out backwards;
  animation-delay: 0.1s;
}
.comm-flight-card .comm-flight-route { font-size: var(--fs-sm); font-weight: 650; margin-bottom: 4px; }
.comm-flight-card .comm-flight-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-2); margin-bottom: 8px; }
.comm-flight-card .comm-flight-price { color: var(--teal); font-weight: 700; font-size: var(--fs-sm); }

/* New Chat Message Styles */
.comm-msg-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--fs-xs);
}
.comm-msg-sender-name {
  font-weight: 650;
  color: var(--text-1);
}
.comm-msg-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.comm-msg-text {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* Product Card Styles */
.comm-product-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 4px;
  animation: msg-in 0.4s ease-out backwards;
  animation-delay: 0.1s;
}
.comm-product-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.comm-product-title {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-1);
  line-height: 1.3;
}
.comm-product-brand {
  font-size: var(--fs-xs);
  color: var(--teal);
  font-weight: 500;
}
.comm-product-rating {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.comm-product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.comm-product-price {
  color: var(--teal);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.comm-product-stock {
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.comm-product-options {
  margin-bottom: 12px;
}
.comm-product-option {
  margin-bottom: 8px;
}
.comm-product-option-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: 4px;
}
.comm-product-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comm-product-option-value {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  color: var(--text-1);
  white-space: nowrap;
}
.comm-product-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: 10px;
  line-height: 1.5;
}
.comm-product-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.comm-product-selection,
.comm-product-sku {
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.comm-product-link {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.comm-product-link:hover { text-decoration: underline; }
 
/* Product Gallery in Chat */
.comm-product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}
.comm-product-gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  min-width: 0;
  min-height: 80px;
}
.comm-product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.comm-product-gallery-item:hover img {
  transform: scale(1.05);
}

.comm-msg-bubble {
  min-width: 0;
  overflow: visible;
}
 
/* Flight Card Styles */
.comm-flight-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 4px;
  animation: msg-in 0.4s ease-out backwards;
  animation-delay: 0.1s;
}
.comm-flight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.comm-flight-airline {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-1);
}
.comm-flight-price {
  color: var(--teal);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.comm-flight-route {
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: 8px;
}
.comm-flight-meta-row {
  display: flex;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: 12px;
}
.comm-flight-preferences {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comm-flight-preference {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.comm-flight-pref-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-bottom: 4px;
}
.comm-flight-pref-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comm-flight-pref-option {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  color: var(--text-1);
  white-space: nowrap;
}

/* Typing Indicator */
.comm-chat-typing {
  display: none;
  padding: 0 20px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
}
.comm-chat-typing.active { display: flex; }
.comm-chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.comm-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.comm-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Messages container - no scrollbar */
.comm-chat-messages {
  flex: 1;
  padding: 16px 20px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Hide scrollbar but keep scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.comm-chat-messages::-webkit-scrollbar { display: none; }

/* AI Label - centered below chats */
.comm-ai-label {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  font-size: var(--fs-xs);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t-slow);
  transition-delay: calc(var(--d, 0s) + 0.5s);
  margin-top: clamp(24px, 3vw, 32px);
  text-align: center;
}
.comm-scene.in .comm-ai-label { opacity: 0.6; }

/* Responsive */
@media (max-width: 1020px) {
  .comm-chats { grid-template-columns: 1fr; gap: clamp(20px, 3vw, 28px); }
  .comm-chat { height: clamp(480px, 60vh, 580px); }
}

@media (max-width: 768px) {
  .comm-scene { margin-top: clamp(36px, 5vw, 48px); }
  .comm-chats { gap: clamp(16px, 3vw, 24px); }
  .comm-chat { height: clamp(440px, 55vh, 520px); }
}

@media (max-width: 640px) {
  .comm-scene { gap: clamp(20px, 4vw, 28px); }
  .comm-chat { height: clamp(400px, 50vh, 480px); padding-bottom: 0; }
  .comm-chat-header { padding: 14px 16px; }
  .comm-chat-messages { padding: 14px 16px 18px; }
  .comm-product-card, .comm-flight-card { padding: 12px; }
}

@media (max-width: 400px) {
  .comm-chat { height: clamp(360px, 45vh, 420px); }
  .comm-msg { max-width: 95%; font-size: 12px; }
  .comm-chat-avatar { width: 32px; height: 32px; }
  .comm-chat-avatar svg { width: 20px; height: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .comm-chat, .comm-msg, .comm-product-card, .comm-flight-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .comm-chat-typing span { animation: none; }
}

/* ============ CHAT 3D EXPERIENCE SECTION ============ */
.chat3d {
  padding-block: var(--section-pad);
  position: relative;
}
.chat3d .eyebrow-pill { margin-bottom: 12px; }
.chat3d .h2 { margin-bottom: 16px; }
.chat3d .lead { max-width: 720px; margin: 0 auto 48px; }

.chat3d-scene {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Model wrappers */
.chat3d-model-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  min-height: 280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.chat3d-model-wrapper model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
}
/* Features column */
.chat3d-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 16px;
}
.chat3d-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.chat3d-feature:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.chat3d-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 2px 8px rgba(94,234,212,.3));
}
.chat3d-feature h4 {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 6px;
}
.chat3d-feature p {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.6;
}

/* RTL support */
html[dir="rtl"] .chat3d-scene { direction: rtl; }
html[dir="rtl"] .chat3d-feature { direction: rtl; }

/* Responsive */
@media (max-width: 1020px) {
  .chat3d-scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: clamp(32px, 4vw, 48px);
    text-align: center;
  }
  .chat3d-model-wrapper { max-width: 240px; }
  .chat3d-features { order: 3; text-align: center; }
  .chat3d-feature { flex-direction: column; align-items: center; text-align: center; }
  .chat3d-feature-icon { margin-bottom: 8px; }
}

@media (max-width: 640px) {
  .chat3d-model-wrapper { max-width: 200px; aspect-ratio: 1; }
  .chat3d-feature { padding: 16px; }
  .chat3d-feature-icon { font-size: 24px; }
}

@media (max-width: 400px) {
  .chat3d-model-wrapper { max-width: 160px; }
  .chat3d-feature h4 { font-size: var(--fs-xs); }
  .chat3d-feature p { font-size: 11px; }
}

.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #07080a; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 40px; }
.trust-grid div b { font-size: var(--fs-xs); letter-spacing: .06em; }
.trust-grid div p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; margin-top: 8px; }
.stat { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat small { font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; display: block; margin-top: 6px; letter-spacing: 0; }

/* ---------- final CTA ---------- */
.cta { text-align: center; overflow: hidden; }
#cta { padding-bottom: 0; }
.cta-glow {
  width: min(560px, 80vw); height: clamp(48px, 8vw, 80px);
  margin: 0 auto;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,255,255,.14), transparent 70%);
}
.btn-row { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--action);
  color: var(--action-ink);
  font-size: var(--fs-sm);
  padding: 16px 28px;
  box-shadow: var(--glow-beam);
  border: 0;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--line-2);
  font-size: var(--fs-sm);
  padding: 14px 22px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }

/* ---------- footer : fade to black, end of the take ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  background: #040405;
  padding: clamp(48px, 8vw, 64px) 0 clamp(24px, 4vw, 32px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: clamp(20px, 4vw, 32px);
}
.brand { font-weight: 850; letter-spacing: .35em; font-size: clamp(13px, 1.5vw, 16px); }
.foot-grid p, .foot-grid a { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.75; }
.foot-grid h4 { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--text-3); margin-bottom: 14px; font-weight: 650; }
.foot-grid a { display: block; text-decoration: none; margin-bottom: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

/* ---------- responsive ---------- */
/* Tablet landscape / small desktop */
@media (max-width: 1020px) {
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-left { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { gap: 20px; padding-block: 36px; }
  .mini-card { padding: 18px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .trio { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bridge::after { width: min(90vw, 600px); height: 160px; }
}

/* Mobile */
@media (max-width: 640px) {
  .trio, .cards4, .cards3, .trust-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 80px 1fr; gap: 8px; }
  .step-card { min-height: 0; padding: 20px 16px; }
  .provide-visual { height: 140px; }
  .orb { width: 68px; height: 68px; }
  .cube { width: 64px; height: 64px; }
  .wrap { width: calc(100% - 32px); }
  .intro-logos { gap: 6px 16px; }
  .intro-logos span { font-size: 11px; padding: 3px 6px; }
  .reg-step { gap: 12px; padding: 14px 4px; }
  .reg-step n { height: 24px; min-width: 40px; font-size: 10px; }
  .btn-primary { padding: 16px 20px; font-size: var(--fs-sm); }
  .btn-ghost { padding: 12px 18px; font-size: var(--fs-xs); }
  .brand { letter-spacing: .25em; }
  .bridge { height: clamp(24px, 4vh, 48px); }
  #intro { padding-top: clamp(20px, 4vw, 36px); }
  .cta-glow { height: clamp(40px, 10vw, 64px); }
}

/* Small mobile (<= 400px) */
@media (max-width: 400px) {
  .wrap { width: calc(100% - 24px); }
  .form-field input,
  .form-field select { padding: 14px 14px; font-size: 16px; /* prevents zoom on iOS */ }
  .prefix { font-size: 13px; }
  .intro-logos { gap: 4px 12px; }
  .intro-logos span { font-size: 10px; }
  .hero-top { padding: 14px 16px; font-size: 12px; }
  .hero-bottom { padding: 18px 16px; }
  .hero-cue { font-size: 10px; gap: 8px; }
  .cue-line { height: 32px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hint-wheel, .cue-line { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- RTL overrides ---------- */
html[dir="rtl"] .section:not(.center) { text-align: right; }
html[dir="rtl"] .section.center { text-align: center; }
html[dir="rtl"] .wrap { direction: rtl; }
html[dir="rtl"] .eyebrow-pill { direction: rtl; }
html[dir="rtl"] .intro-logos { direction: rtl; }
html[dir="rtl"] .trio { direction: rtl; }
html[dir="rtl"] .mini-card { direction: rtl; }
html[dir="rtl"] .cards4 { direction: rtl; }
html[dir="rtl"] .step-card { direction: rtl; }
html[dir="rtl"] .step-visual { direction: rtl; }
html[dir="rtl"] .cards3 { direction: rtl; }
html[dir="rtl"] .provide-card { direction: rtl; }
html[dir="rtl"] .provide-visual { direction: rtl; }
html[dir="rtl"] .reg-grid { direction: rtl; }
html[dir="rtl"] .reg-step { flex-direction: row-reverse; }
html[dir="rtl"] .reg-step n { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .form-grid { direction: rtl; }
html[dir="rtl"] .form-field label { text-align: right; }
html[dir="rtl"] .form-field input,
html[dir="rtl"] .form-field select,
html[dir="rtl"] .form-field textarea { text-align: right; }
html[dir="rtl"] .phone-row { direction: rtl; }
html[dir="rtl"] .comm-chats { flex-direction: row-reverse; }
html[dir="rtl"] .comm-chat { direction: rtl; }
html[dir="rtl"] .comm-chat-header { direction: rtl; }
html[dir="rtl"] .comm-chat-messages { direction: rtl; }
html[dir="rtl"] .comm-msg { direction: rtl; }
html[dir="rtl"] .comm-msg--user { flex-direction: row; }
html[dir="rtl"] .comm-msg--ai { flex-direction: row-reverse; }
html[dir="rtl"] .comm-msg-sender { flex-direction: row-reverse; }
html[dir="rtl"] .comm-product-card { direction: rtl; }
html[dir="rtl"] .comm-product-option-values { direction: rtl; }
html[dir="rtl"] .comm-flight-card { direction: rtl; }
html[dir="rtl"] .comm-flight-pref-options { direction: rtl; }
html[dir="rtl"] .trust-grid { direction: rtl; }
html[dir="rtl"] .foot-grid { direction: rtl; }
html[dir="rtl"] .reg-left { text-align: right; }
html[dir="rtl"] .reg-step { display: flex; flex-direction: row-reverse; direction: rtl; text-align: right; }
html[dir="rtl"] .reg-step > div { direction: rtl; text-align: right; flex: 1; min-width: 0; }
html[dir="rtl"] .reg-note { text-align: right; direction: rtl; border-left: none; border-right: 1px solid var(--line-2); padding-left: 0; padding-right: 14px; }
html[dir="rtl"] .form-shell { text-align: right; }
html[dir="rtl"] .form-head { justify-content: flex-end; }
html[dir="rtl"] .reg-step n { margin-left: auto; margin-right: 0; order: 2; }
html[dir="rtl"] .reg-step b { text-align: right; }
html[dir="rtl"] .reg-step p { text-align: right; direction: rtl; }
html[dir="rtl"] .reg-steps { direction: rtl; }
html[dir="rtl"] .btn-row { flex-direction: row-reverse; }
html[dir="rtl"] .form-field select {
  padding-right: 40px;
  padding-left: 14px;
  background-position: right 12px center;
}
html[dir="rtl"] .form-field input::placeholder,
html[dir="rtl"] .form-field select::placeholder,
html[dir="rtl"] .form-field textarea::placeholder {
  text-align: right;
}
