/* Segura Automation V12 — visual hierarchy, brighter live demo, compact mobile hero */
:root{
  --v12-electric:#79d8ff;
  --v12-electric-2:#5fa7ff;
  --v12-mint:#78ebc8;
  --v12-ink:#061120;
}

/* Keep the dark premium identity, but give the hero a visible focal area. */
.v11-hero{
  min-height:calc(100svh - 74px);
  padding:clamp(34px,4.4vw,62px) 0 50px;
  background:
    radial-gradient(circle at 76% 28%,rgba(54,156,255,.24),transparent 32%),
    radial-gradient(circle at 69% 62%,rgba(69,231,207,.09),transparent 31%),
    radial-gradient(circle at 22% 18%,rgba(77,119,255,.075),transparent 24%),
    var(--v11-bg);
}
.v11-hero-grid{
  grid-template-columns:minmax(0,.78fr) minmax(520px,1.22fr);
  gap:clamp(30px,4.2vw,64px);
  align-items:center;
}
.v11-copy{max-width:610px}
.v11-copy h1{
  font-size:clamp(3.05rem,4.65vw,5.3rem);
  line-height:.96;
  letter-spacing:-.052em;
  margin-bottom:20px;
}
.v11-copy>p{font-size:clamp(1.02rem,1.25vw,1.18rem);line-height:1.55;margin-bottom:24px}

/* Make the product demo feel like the visual centerpiece, not another dark block. */
.v11-story-wrap{
  min-height:548px;
  align-items:start;
  padding-top:0;
}
.v12-demo-kicker{
  width:min(100%,720px);
  margin:0 auto 12px;
  min-height:34px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#dff7ff;
  font-size:.72rem;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.v12-demo-kicker strong{font-weight:900;white-space:nowrap}
.v12-kicker-dot{
  width:8px;height:8px;border-radius:50%;flex:0 0 auto;
  background:var(--v12-mint);
  box-shadow:0 0 0 5px rgba(120,235,200,.08),0 0 18px rgba(120,235,200,.55);
}
.v12-kicker-flow{
  margin-inline-start:auto;
  color:#7f9fb9;
  letter-spacing:.02em;
  text-transform:none;
  font-size:.72rem;
}
.v11-story-glow{
  width:84%;left:8%;top:1%;
  background:radial-gradient(circle,rgba(62,168,255,.25),rgba(62,168,255,0) 67%);
  filter:blur(9px);
}
.v11-story{
  height:500px;
  border-color:rgba(126,211,255,.34);
  background:
    radial-gradient(circle at 78% 18%,rgba(61,157,255,.20),transparent 34%),
    radial-gradient(circle at 18% 75%,rgba(68,224,201,.095),transparent 31%),
    linear-gradient(145deg,#0d2746 0%,#091b31 46%,#061425 100%);
  box-shadow:
    0 34px 80px rgba(0,20,47,.46),
    0 0 56px rgba(51,154,255,.12),
    inset 0 1px rgba(255,255,255,.06);
}
.v11-story:after{
  content:"";
  position:absolute;z-index:4;left:8%;right:8%;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(134,226,255,.9),rgba(111,162,255,.45),transparent);
  pointer-events:none;
}
.v11-story-top{
  height:56px;
  background:rgba(5,20,38,.46);
  border-bottom-color:rgba(133,214,255,.17);
}
.v11-story-brand{color:#f0fbff;font-weight:850}
.v11-live{color:#a3bad0}
.v11-live:before{box-shadow:0 0 0 5px rgba(141,240,201,.08),0 0 16px rgba(141,240,201,.48)}
.v11-scene{
  inset:56px 0 58px;
  grid-template-columns:150px 1fr;
  gap:24px;
  padding:26px 32px;
  transform:translateY(9px) scale(.992);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.72,.2,1);
}
.v11-scene.ai{background:linear-gradient(100deg,rgba(23,111,197,.08),transparent 68%)}
.v11-scene.human{background:linear-gradient(100deg,rgba(38,164,129,.07),transparent 68%)}
.v11-avatar{width:108px;height:108px;border-radius:27px}
.v11-avatar svg{width:82px;height:82px}
.v11-avatar.ai img{width:64px;height:69px}
.v11-avatar.customer{background:linear-gradient(145deg,#1a4674,#0b243f);box-shadow:0 18px 44px rgba(30,108,176,.20),inset 0 1px rgba(255,255,255,.10)}
.v11-avatar.ai{background:linear-gradient(145deg,#173f6d,#0a2444);box-shadow:0 18px 46px rgba(42,137,229,.25),inset 0 1px rgba(255,255,255,.10)}
.v11-avatar.worker{background:linear-gradient(145deg,#185148,#0b302e);box-shadow:0 18px 44px rgba(39,160,129,.18),inset 0 1px rgba(255,255,255,.10)}
.v11-actor span{color:#b7cce0;font-weight:800}
.v11-scene-label{color:#8fcff2;font-size:.72rem;margin-bottom:11px}
.v11-scene.active .v11-scene-label{color:#b8ebff;text-shadow:0 0 18px rgba(105,205,255,.16)}
.v11-bubble{
  border-color:rgba(147,218,255,.24);
  background:rgba(10,33,59,.88);
  box-shadow:0 16px 38px rgba(0,0,0,.20),inset 0 1px rgba(255,255,255,.025);
}
.v11-scene.ai .v11-bubble{
  background:linear-gradient(145deg,rgba(24,78,126,.96),rgba(12,48,84,.96));
  border-color:rgba(129,219,255,.38);
  box-shadow:0 18px 44px rgba(21,101,180,.19),inset 0 1px rgba(255,255,255,.035);
}
.v11-alert{background:rgba(120,77,25,.23);border-color:rgba(255,202,122,.34)}
.v11-story-caption{bottom:15px}
.v11-story-caption strong{color:#f4fbff}
.v11-progress button{height:5px;background:#1b405e}
.v11-progress button.active{background:linear-gradient(90deg,var(--v12-electric),var(--v12-electric-2));box-shadow:0 0 13px rgba(106,201,255,.25)}

/* Arabic / RTL: explicit rules avoid cramped or reversed mobile header behavior. */
html[dir=rtl] .v12-demo-kicker{direction:rtl}
html[dir=rtl] .v12-kicker-flow{margin-inline-start:auto;text-align:left}
html[dir=rtl] .v11-story-brand{direction:ltr}
html[dir=rtl] .v11-dialog{text-align:right}
html[dir=rtl] .v11-scene-label{text-align:right}
html[dir=rtl] .v11-slot-row,html[dir=rtl] .v11-mini-actions,html[dir=rtl] .v11-resolution{justify-content:flex-start}
html[dir=rtl] .nav .brand{direction:ltr}

@media(max-width:1100px){
  .v11-hero{padding-top:30px}
  .v11-hero-grid{gap:28px}
  .v11-copy{max-width:720px}
  .v11-copy h1{font-size:clamp(2.9rem,7vw,4.65rem)}
  .v11-story-wrap{min-height:auto}
  .v12-demo-kicker{max-width:760px}
  .v11-story{height:470px;max-width:760px}
}

@media(max-width:780px){
  .v11-hero{padding-top:22px}
  .v11-copy h1{font-size:clamp(2.45rem,9.2vw,3.65rem);line-height:.98;margin-bottom:15px}
  .v11-copy>p{font-size:.98rem;line-height:1.5;margin-bottom:18px}
  .v11-story{height:430px;border-radius:25px}
  .v11-scene{grid-template-columns:96px 1fr;padding:22px 19px;gap:15px}
  .v11-avatar{width:82px;height:82px;border-radius:22px}
  .v11-avatar svg{width:63px;height:63px}
  .v11-avatar.ai img{width:51px;height:55px}
  .v11-bubble{font-size:1rem;padding:15px 16px}
  .v12-kicker-flow{display:none}
}

@media(max-width:640px){
  /* A shorter, cleaner mobile header gives the hero more room. */
  .topbar{background:rgba(4,11,22,.91)!important}
  .nav{
    height:62px!important;
    gap:9px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:center!important;
  }
  .nav .brand{min-width:0;font-size:.86rem!important;gap:7px!important;overflow:hidden}
  .nav .brand img{width:34px!important;height:34px!important;flex:0 0 auto}
  .nav .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nav .lang{order:initial!important;margin:0!important;min-width:0}
  .lang summary{min-height:44px!important;padding:8px 10px!important;gap:5px!important;border-radius:13px!important}
  .lang-current{font-size:.84rem!important}
  .lang-globe{font-size:.94rem!important}
  .menu-btn{order:initial!important;margin:0!important;width:44px!important;height:44px!important;border-radius:13px!important}
  html[dir=rtl] .nav{direction:rtl}
  html[dir=rtl] .menu-btn{margin:0!important}

  .v11-hero{min-height:auto;padding:18px 0 34px}
  .v11-hero-grid{gap:20px}
  .v11-copy{max-width:100%}
  .v11-copy h1{
    font-size:clamp(2.12rem,10.1vw,2.85rem);
    line-height:1;
    letter-spacing:-.045em;
    margin-bottom:13px;
  }
  .v11-copy>p{font-size:.94rem;line-height:1.48;max-width:34ch;margin-bottom:0}
  .v11-mobile-actions{margin-top:12px}
  .v12-demo-kicker{margin-bottom:9px;min-height:25px;font-size:.64rem;letter-spacing:.07em}
  .v12-kicker-dot{width:7px;height:7px}
  .v11-story-glow{width:104%;left:-2%;top:-5%}
  .v11-story{
    height:365px;
    border-radius:22px;
    box-shadow:0 22px 54px rgba(0,20,47,.45),0 0 35px rgba(51,154,255,.12),inset 0 1px rgba(255,255,255,.05);
  }
  .v11-story-top{height:48px;padding:0 14px}
  .v11-story-brand{font-size:.79rem;gap:8px}
  .v11-story-brand img{width:23px;height:25px}
  .v11-live{font-size:.58rem}
  .v11-scene{
    inset:48px 0 50px;
    grid-template-columns:78px minmax(0,1fr);
    align-content:center;
    align-items:center;
    text-align:start;
    padding:16px 15px;
    gap:12px;
  }
  .v11-actor{gap:6px}
  .v11-avatar{width:70px;height:70px;border-radius:19px}
  .v11-avatar svg{width:54px;height:54px}
  .v11-avatar.ai img{width:44px;height:47px}
  .v11-actor span{font-size:.69rem;text-align:center;line-height:1.2}
  .v11-dialog{text-align:start}
  .v11-scene-label{text-align:start;font-size:.6rem;letter-spacing:.11em;margin-bottom:8px}
  .v11-bubble{font-size:.91rem;line-height:1.38;padding:12px 13px;border-radius:16px 16px 16px 6px}
  .v11-scene.ai .v11-bubble{border-radius:16px 16px 6px 16px}
  .v11-bubble small{font-size:.67rem;margin-top:8px}
  .v11-slot-row{gap:6px;margin-top:9px;justify-content:flex-start}
  .v11-slot{padding:6px 9px;border-radius:9px;font-size:.7rem}
  .v11-escalation{gap:8px}
  .v11-alert{padding:8px 9px;border-radius:10px;font-size:.68rem;gap:7px}
  .v11-alert i{width:7px;height:7px}
  .v11-mini-actions{gap:6px;justify-content:flex-start}
  .v11-mini-actions span{padding:7px 9px;border-radius:9px;font-size:.67rem}
  .v11-resolution{margin-top:9px;font-size:.72rem;gap:8px;justify-content:flex-start}
  .v11-check{width:26px;height:26px;font-size:.78rem}
  .v11-story-caption{left:12px;right:12px;bottom:11px;gap:9px}
  .v11-story-caption strong{font-size:.64rem;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .v11-progress{gap:4px}
  .v11-progress button{width:14px;height:4px}
  .v11-progress button.active{width:29px}

  /* The old pill covered the live demo on phones. Keep only a compact chat button. */
  .contact-dock{right:max(12px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important}
  html[dir=rtl] .contact-dock{right:auto!important;left:max(12px,env(safe-area-inset-left))!important}
  .contact-fab{min-width:54px!important;width:54px!important;height:54px!important;padding:0!important;justify-content:center!important;gap:0!important}
  .contact-fab-label{display:none!important}
  .contact-fab-icon{order:initial!important;width:34px!important;height:34px!important}
  .contact-menu{bottom:64px!important}

  html[dir=rtl] .v11-dialog,html[dir=rtl] .v11-scene-label{text-align:right}
  html[dir=rtl] .v11-slot-row,html[dir=rtl] .v11-mini-actions,html[dir=rtl] .v11-resolution{justify-content:flex-start}
}

@media(max-width:430px){
  .wrap{width:min(calc(100% - 24px),var(--max))!important}
  .v11-copy h1{font-size:clamp(2.05rem,10vw,2.62rem)}
  .v11-story{height:355px}
  .v11-scene{grid-template-columns:72px minmax(0,1fr);padding-inline:13px;gap:10px}
  .v11-avatar{width:65px;height:65px}
  .v11-avatar svg{width:50px;height:50px}
  .v11-avatar.ai img{width:41px;height:44px}
  html[dir=rtl] .nav .brand span{display:none}
  html[dir=rtl] .nav{grid-template-columns:minmax(38px,1fr) auto auto!important}
  html[dir=rtl] .nav .brand{justify-self:start;width:38px;overflow:visible}
  html[dir=rtl] .lang-current{font-size:.82rem!important}
}

@media(max-width:360px){
  .nav .brand span{font-size:.78rem}
  .v11-copy h1{font-size:2rem}
  .v11-story{height:365px}
  .v11-scene{grid-template-columns:66px minmax(0,1fr);padding-inline:11px;gap:8px}
  .v11-avatar{width:60px;height:60px}
  .v11-avatar svg{width:46px;height:46px}
  .v11-avatar.ai img{width:38px;height:41px}
  .v11-bubble{font-size:.85rem;padding:11px}
}
