

/* ============================================
   Agences Landing Page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── Hybrid dark-hero / light-body — AI-themed ── */
body { padding-top: 0 !important; background: #FAFAFA; }
.pn-left img { height: 38px !important; }

/* ── HERO (dark, AI-themed) ── */
section:first-of-type {
    background: #0A0A0F;
    position: relative;
}
section:first-of-type::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(139,92,246,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
section:first-of-type::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at 30% 40%, rgba(139,92,246,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(59,130,246,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 30%, rgba(192,132,252,0.05) 0%, transparent 50%);
    filter: blur(60px);
    animation: meshFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes meshFloat {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%  { transform: translate(-3%, 4%) scale(1.05); opacity: 1; }
    100% { transform: translate(3%, -2%) scale(0.97); opacity: 0.8; }
}
section:first-of-type h1 em {
    font-style: normal;
    color: #8B5CF6 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #8B5CF6 !important;
}

/* ── HERO→BODY TRANSITION (first divider after hero) ── */
section:first-of-type + .ag-divider {
    height: 200px;
    max-width: 100%;
    background: linear-gradient(to bottom, #0A0A0F, #FAFAFA);
}

/* ── SECTIONS (light body) ── */
.ag-section {
    padding: 100px 0;
    position: relative;
    background: #FAFAFA;
}

/* ── TAG ── */
.ag-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B5CF6;
    border: 1px solid rgba(139,92,246,0.15);
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(139,92,246,0.04);
}
/* Tag inside hero (dark) */
section:first-of-type .ag-tag {
    color: #A0A0A8;
    border-color: rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
}

/* ── TITLE ── */
.ag-title {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #1A1A2E;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

/* ── BODY TEXT ── */
.ag-body {
    font-size: 1.05rem;
    color: #64748B;
    line-height: 1.65;
    max-width: 580px;
}

/* ── CARDS (light) ── */
.ag-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px 26px;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ag-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.ag-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
}
.ag-card h2 {
    color: #1A1A2E;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.ag-card p {
    color: #64748B;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* ── GLASS PANELS (light body) ── */
.ag-glass {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}
/* Glass inside hero (dark) */
section:first-of-type .ag-glass {
    background: #111113;
    border-color: rgba(255,255,255,0.06);
}

/* ── STATS ── */
.ag-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #8B5CF6;
}
.ag-stat-label {
    font-size: 0.72rem;
    color: #5C5C66;
    margin-top: 2px;
}

/* ── HERO METRICS BAR (Option B — defensible pillars) ── */
.ag-metrics {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ag-metrics > div {
    text-align: center;
}
.ag-metric-num {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #EDEDEF;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.ag-metric-label {
    font-size: 0.72rem;
    color: #5C5C66;
    margin-top: 4px;
    text-align: center;
}

/* Bold keywords in hero subtitle — scan in 3 seconds */
section:first-of-type p strong {
    color: #fff;
    font-weight: 700;
}

/* ── DIVIDERS (light sections) ── */
.ag-divider {
    height: 1px;
    background: #E5E7EB;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}
.ag-divider::after { display: none; }

/* ── FAQ (light) ── */
.ag-faq details {
    border-bottom: 1px solid #E5E7EB;
}
.ag-faq summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 1rem;
    color: #1A1A2E !important;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.15s ease;
}
.ag-faq summary::after {
    content: '+';
    font-size: 1.3rem;
    color: #94A3B8;
    transition: color 0.15s ease;
}
.ag-faq summary:hover::after { color: #8B5CF6; }
.ag-faq details[open] summary::after { content: '\2212'; }
.ag-faq p {
    padding: 0 0 20px;
    color: #64748B;
    line-height: 1.7;
}

/* ── BUTTONS ── */
.ag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
/* Light sections */
.ag-btn-glow {
    background: #8B5CF6;
    color: #fff !important;
    box-shadow: none;
}
.ag-btn-glow:hover {
    opacity: 0.85;
    color: #fff !important;
}
.ag-btn-gold {
    background: #8B5CF6;
    color: #fff !important;
    box-shadow: none;
}
.ag-btn-gold:hover {
    opacity: 0.85;
    color: #fff !important;
}
.ag-btn-ghost {
    border: 1px solid rgba(139,92,246,0.2);
    color: #8B5CF6 !important;
}
.ag-btn-ghost:hover {
    background: rgba(139,92,246,0.04);
    border-color: rgba(139,92,246,0.35);
    color: #8B5CF6 !important;
}
/* Dark sections (hero, CTA) */
section:first-of-type .ag-btn-glow,
section:first-of-type .ag-btn-gold,
section:last-of-type .ag-btn-glow,
section:last-of-type .ag-btn-gold {
    background: #EDEDEF;
    color: #0A0A0B !important;
}
section:first-of-type .ag-btn-glow:hover,
section:first-of-type .ag-btn-gold:hover,
section:last-of-type .ag-btn-glow:hover,
section:last-of-type .ag-btn-gold:hover {
    opacity: 0.85;
    color: #0A0A0B !important;
}
section:first-of-type .ag-btn-ghost,
section:last-of-type .ag-btn-ghost {
    border-color: rgba(255,255,255,0.12);
    color: #EDEDEF !important;
}
section:first-of-type .ag-btn-ghost:hover,
section:last-of-type .ag-btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.2);
    color: #EDEDEF !important;
}

/* ── ORBS (disabled) ── */
.ag-orb { display: none; }

/* ── CTA FINAL (dark again) ── */
section:last-of-type {
    background: #0A0A0F;
    position: relative;
    overflow: hidden;
}
section:last-of-type::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(139,92,246,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── MOBILE ── */
/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Decode elements: no translateY, only opacity */
.reveal.decode {
  transform: none;
  transition: opacity 0.4s ease;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Decode effect ── */
.decode { display: block; }
.decode .char {
  display: inline;
  position: relative;
}
.decode .char.pending { color: transparent; }
.decode .char .bit {
  position: absolute;
  left: 0; top: 0;
  color: #8B5CF6;
  pointer-events: none;
  animation: bitFlicker 0.1s steps(1) infinite;
}
.decode .char.revealed { color: inherit; transition: color 0.15s ease; }
.decode .char.revealed .bit { display: none; }
@keyframes bitFlicker {
  0% { content: '1'; }
  50% { content: '0'; }
}

/* ── Responsive large screens ── */
.container { max-width: 1140px; }

@media (min-width: 1200px) {
    .ag-title { font-size: 2.8rem; }
    .ag-body { max-width: 700px; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .ag-section { padding: 80px 0; }
    .ag-btn { width: 100%; justify-content: center; }
    .ag-title { font-size: 1.6rem; }
}

/* ══ ROBOKALI CONSENT BUBBLE (landing pattern, class prefixed ag- to avoid
   collision with the robot's own audio consent popup in robokali-mascot.js) ══ */
.ag-consent-bubble {
  position: fixed;
  bottom: 220px;
  right: 60px;
  z-index: 10005;
  max-width: 340px;
  padding: 32px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1a1040, #2d1b69);
  border: 1px solid rgba(102, 126, 234, 0.4);
  color: #e8e4f8;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: Inter, sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 126, 234, 0.15);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: agConsentFadeIn 0.5s ease forwards;
}
.ag-consent-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: 40px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #2d1b69;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}
@keyframes agConsentFadeIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.ag-consent-bubble p { margin: 0 0 16px; font-weight: 400; }
.ag-consent-bubble .ag-voice-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5), 0 0 0 4px #1a1040;
  animation: agVoicePulse 1.8s ease-in-out infinite;
}
.ag-consent-bubble .ag-voice-badge::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(102, 126, 234, 0.5);
  animation: agVoiceRipple 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes agVoicePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.08); }
}
@keyframes agVoiceRipple {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}
.ag-consent-bubble .ag-consent-buttons {
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.ag-consent-bubble .ag-btn-yes {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; border: none; border-radius: 10px;
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ag-consent-bubble .ag-btn-yes:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(102, 126, 234, 0.4);
}
.ag-consent-bubble .ag-btn-no {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer; font-size: 0.82rem; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.ag-consent-bubble .ag-btn-no:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 480px) {
  .ag-consent-bubble { right: 10px; bottom: 150px; max-width: 280px; font-size: 0.82rem; padding: 28px 16px 14px; }
  .ag-consent-bubble .ag-consent-buttons { flex-direction: column; gap: 8px; }
  .ag-consent-bubble .ag-btn-yes,
  .ag-consent-bubble .ag-btn-no { width: 100%; justify-content: center; }
}

/* ══ ROBOKALI CONTROL BAR (prev / pause / mute / next / stop) — horizontal,
   placed directly UNDER the robot (which is raised to bottom:80 to leave room).
   Mobile falls back to horizontal bottom-left via media query below. ══ */
#ag-landing-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10006;
  display: flex;
  flex-direction: row;
  gap: 4px;
  background: rgba(15, 12, 41, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 10px;
  padding: 4px 6px;
}
#ag-landing-controls button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.8rem;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}
/* Hide the robot's built-in floating mute button — the control bar already
   has a mute toggle, no need to duplicate. Scoped to this page only. */
#rk-mute-btn { display: none !important; }
#ag-landing-controls button:hover {
  color: #fff;
  background: rgba(102, 126, 234, 0.3);
}
#ag-landing-controls #ag-lc-stop {
  color: rgba(239, 68, 68, 0.5);
}
#ag-landing-controls #ag-lc-stop:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
#ag-landing-controls #ag-lc-mute.muted {
  color: #f59e0b;
}
@media (max-width: 768px) {
  #ag-landing-controls {
    bottom: 4px;
    left: 12px;
    right: auto;
  }
  #ag-landing-controls button { width: 26px; height: 26px; font-size: 0.72rem; }
}

/* Matrix rain for agences hero */
.matrix-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 85%, transparent 100%);
}
.matrix-rain .col {
  position: absolute;
  top: -100vh;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.5;
  color: #a78bfa;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  animation: matrixFall linear infinite;
  will-change: transform;
  text-shadow: 0 0 12px rgba(139,92,246,0.4), 0 0 4px rgba(139,92,246,0.2);
}
.matrix-rain .col-green {
  color: #4ade80 !important;
  text-shadow: 0 0 10px rgba(74,222,128,0.6), 0 0 24px rgba(74,222,128,0.2) !important;
}
@keyframes matrixFall {
  0%   { transform: translateY(-10vh); }
  100% { transform: translateY(calc(100vh + 100%)); }
}

/* ── Mobile fixes (agents audit) ─────────────────────────── */
@media (max-width: 768px) {
    #ag-cta {
        padding: 60px 0 !important;
    }
    .ag-metrics {
        gap: 20px !important;
    }
    .ag-metric-num {
        font-size: 1.2rem !important;
    }
    #ag-hero {
        min-height: 70vh !important;
    }
}

